[SOLVED] VXLAN driver error in OpenNebula 5.4

Hi all

We have the same issue described here:

https://dev.opennebula.org/issues/5360

Tue Sep 12 05:01:42 2017 [Z0][VMM][D]: Message received: LOG I 212 /var/tmp/one/vnm/vxlan/vxlan_driver.rb:54:in `create_vlan_dev’: uninitialized constant VNMMAD::VNMNetwork::IPv4 (NameError)

It seems that vxlan is not working in 5.4, any quick workaround to fix this? the vnet template is the same that before with:

VLAN="YES"
VLAN_ID="52"
VN_MAD=“vxlan”

Cheers and thanks!
Álvaro

This is the spurious line in vxlan_driver.rb :

mcs = VNMMAD::VNMNetwork::IPv4.to_s(mc)

Maybe it should be replaced by the ipaddr variable?

ok
it seems that this issue is already fixed in the master branch, so I have changed the file /var/lib/one/remotes/vnm/vxlan/vxlan_driver.rb

line 54:

mcs = VNMMAD::VNMNetwork::IPv4.to_s(mc)

by the new one:

mcs = IPAddr.new(mc, Socket::AF_INET).to_s

and then just deploy the new network driver in the hyps as oneadmin user:

$ onehost sync --force

That fix this issue.

Cheers
Álvaro