# OpenNebula 5.0 and the new RPC API methods

**URL:** <https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431>\
**Category:** Product Support\
**Created:** [June 21, 2016, 11:16am UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431 "2016-06-21T11:16:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [June 21, 2016, 11:16am UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/1 "2016-06-21T11:16:08Z")

</div>

Hi all

I were testing the new RPC calls and it seems that some of them have changed so we have found some backwards incompatibilities between the 4.x and 5.x versions. In our case the most important change is related with the host management.

it seems that `one.host.allocate` has changed since the last version:  
[http://docs.opennebula.org/5.0/integration/system\_interfaces/api.html](http://docs.opennebula.org/5.0/integration/system_interfaces/api.html)  
[http://docs.opennebula.org/4.12/integration/system\_interfaces/api.html](http://docs.opennebula.org/4.12/integration/system_interfaces/api.html)

Using the 4.x rpc call we get this error:

> [ERROR] \_rpc failed to make request faultCode -501 faultString Parameter that is supposed to be integer is not method one.host.allocate args [string, hyp101.altaria.os], [string, kvm], [string, kvm], [string, ovswitch], [int, -1]

The reason is that `vn_mad` is not used by the new onehost command, and also the VNET template should be changed. This is done on purpose? It’s not commented in the compatibility guide and it breaks the compatibility with some RPC clients.

This change also raises another question, how is possible now to setup an heteregenous hyp cluster with OVS and linux bridges hyps? In OpenNebula 4.x we were able to setup the vn\_mad for each host, so we were able to include linux and OVS bridges in different hypervisors, thanks to `OVS_BRIDGE` variable, as example we had for an specific  
VNET:

> NAME = “vscnetwork”  
> BRIDGE=“br101”  
> OVS\_BRIDGE=“ovsbr”  
> VLAN=“YES”  
> VLAN\_ID=“295”

and we had hosts with `dummy` and also hyps with `ovsswitch` network drivers, so OVS\_BRIDGE was used for OVS hyps, how is possible to keep this heterogeneous configuration now? It’s still supported?

Thanks in advance!  
Alvaro

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [July 1, 2016, 10:36am UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/2 "2016-07-01T10:36:37Z")

</div>

Hi Alvaro

About the XML-RPC API, you are totally right, we missed the compatibility  
notes about that. Sorry for the inconveniences

[http://dev.opennebula.org/issues/4588](http://dev.opennebula.org/issues/4588)

and this

[http://dev.opennebula.org/issues/4600](http://dev.opennebula.org/issues/4600)

About the OVS\_BRIDGE parameters, now the VN\_MAD drivers are attached to the  
network. This way a host can implement multiple network types, (as opposed  
to the OVS\_BRIDGE parameter to implement the same network with different  
drivers, but only to some extent).

So you can have openvswitch networks and linux bridges networks, and each  
host can implement any of them. If you only have support for a given  
network type on a host, you can create a cluster to be sure that only VMs  
of a given type are allocated to that host (in 5.0 you can add a VM to  
multiple clusters).

Cheers

Ruben

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [July 1, 2016, 3:08pm UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/3 "2016-07-01T15:08:27Z")

</div>

Hi @ruben

Thanks a lot for your feedback! We will update our vnet templates to include the new parameter.

About the RPC changes that means that the opennebula clients must be updated to support ONE 5.0 right?

Cheers  
Alvaro

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [July 1, 2016, 4:09pm UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/4 "2016-07-01T16:09:15Z")

</div>

> About the RPC changes that means that the opennebula clients must be  
> updated to support ONE 5.0 right?

Yep, right

> ## Visit Topic [http://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/3](http://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/3) or reply to this email to respond.
> 
> ## In Reply To ruben [http://forum.opennebula.io/users/ruben](http://forum.opennebula.io/users/ruben) Ruben S. Montero [http://forum.opennebula.io/users/ruben](http://forum.opennebula.io/users/ruben) Developer July 1 Hi Alvaro About the XML-RPC API, you are totally right, we missed the compatibility notes about that. Sorry for the inconveniences [Bug #4588: xmlrpc changes missing from the compatibility guide - OpenNebula - OpenNebula Development pages](http://dev.opennebula.org/issues/4588) and this [Bug #4600: Wrong param description for vnet and ds allocate - OpenNebula - OpenNebula Development pages](http://dev.opennebula.org/issues/4600) About the OVS\_BRIDGE parameters, now the VN\_MAD drivers are attached to th…
> 
> Visit Topic  
> [http://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/3](http://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/3)  
> or reply to this email to respond.
> 
> You are receiving these emails cause you have enabled mailing list mode.
> 
> To unsubscribe from these emails, click here  
> [http://forum.opennebula.io/email/unsubscribe/c3c1a8f6afe128a1c69e964853b9a61af953141f804c06b53ae6b138edcc3e7b](http://forum.opennebula.io/email/unsubscribe/c3c1a8f6afe128a1c69e964853b9a61af953141f804c06b53ae6b138edcc3e7b)  
> .
> 
> Alternatively you may click here  
> \<[reply@forum.opennebula.org](mailto:reply@forum.opennebula.org)?subject=unsubscribe\> to unsubscribe via email.

Ruben S. Montero, PhD  
Project co-Lead and Chief Architect  
OpenNebula - Flexible Enterprise Cloud Made Simple  
[www.OpenNebula.org](http://www.OpenNebula.org) | [rsmontero@opennebula.org](mailto:rsmontero@opennebula.org) | @OpenNebula

---

<div class="post-metadata">

**Author:** ![cmartin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cmartin/32/4278_2.png) [@cmartin](https://forum.opennebula.io/u/cmartin)\
**Post date:** [July 1, 2016, 4:17pm UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/5 "2016-07-01T16:17:06Z")

</div>

Hi,

We have added the xml-rpc changes to the compatibility guide:

[http://docs.opennebula.org/5.0/intro\_release\_notes/release\_notes/compatibility.html](http://docs.opennebula.org/5.0/intro_release_notes/release_notes/compatibility.html)

Cheers.

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [July 4, 2016, 6:58am UTC](https://forum.opennebula.io/t/opennebula-5-0-and-the-new-rpc-api-methods/2431/6 "2016-07-04T06:58:53Z")

</div>

Ok, thanks a lot
