No VN_MAD in template (when reserve ip)

Hi.

We updated Opennebula to last stable version…

now, we cant reserve ip or create reservations… because we found an error after that…

“[one.vn.reserve] No VN_MAD in template for Virtual Network.”

At the beginning I thought it would be a failure only at sunstone… but thats not correct, the error persist using onevnet.

for example: onevnet show 14 (only header)

<VNET>
  <ID>14</ID>
  <UID>0</UID>
  <GID>0</GID>
  <UNAME>oneadmin</UNAME>
  <GNAME>oneadmin</GNAME>
  <NAME>Private-10.112.0.xxx</NAME>
  <PERMISSIONS>
    <OWNER_U>1</OWNER_U>
    <OWNER_M>1</OWNER_M>
    <OWNER_A>0</OWNER_A>
    <GROUP_U>0</GROUP_U>
    <GROUP_M>0</GROUP_M>
    <GROUP_A>0</GROUP_A>
    <OTHER_U>0</OTHER_U>
    <OTHER_M>0</OTHER_M>
    <OTHER_A>0</OTHER_A>
  </PERMISSIONS>
  <CLUSTERS>
    <ID>0</ID>
  </CLUSTERS>
  <BRIDGE><![CDATA[virbrPRIVATE]]></BRIDGE>
  <PARENT_NETWORK_ID/>
  <VN_MAD><![CDATA[dummy]]></VN_MAD>
  <PHYDEV/>
  <VLAN_ID/>
  <VLAN_ID_AUTOMATIC>0</VLAN_ID_AUTOMATIC>
  <USED_LEASES>8</USED_LEASES>
  <VROUTERS/>
  <TEMPLATE>
    <BRIDGE><![CDATA[virbrPRIVATE]]></BRIDGE>
    <DESCRIPTION><![CDATA[red 112 uso para sistemas y comunicacion nodos master.]]></DESCRIPTION>
    <DNS><![CDATA[193.144.34.209 193.144.33.38]]></DNS>
    <GATEWAY><![CDATA[10.112.0.1]]></GATEWAY>
    <NETWORK_ADDRESS><![CDATA[10.112.0.0]]></NETWORK_ADDRESS>
    <NETWORK_MASK><![CDATA[255.255.0.0]]></NETWORK_MASK>
    <PHYDEV><![CDATA[]]></PHYDEV>
    <SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
    <VLAN_ID><![CDATA[]]></VLAN_ID>
  </TEMPLATE>

i can look the vn_mad set to dummy… well i try to create the reserve like that.

onevnet reserve 14 -a 1 -s 1 -i 10.112.0.IP -n alfeijoo-devel-10.112.0.IP

And have the same error…

[one.vn.reserve] No VN_MAD in template for Virtual Network.

and oned.log

Tue Apr 24 17:13:39 2018 [Z0][ReM][D]: Req:6192 UID:0 one.vn.info invoked , 14
Tue Apr 24 17:13:39 2018 [Z0][ReM][D]: Req:6192 UID:0 one.vn.info result SUCCESS, “14<UI…”
Tue Apr 24 17:13:39 2018 [Z0][ReM][D]: Req:5392 UID:0 one.vn.reserve invoked , 14, “SIZE = 1…”
Tue Apr 24 17:13:39 2018 [Z0][VNM][E]: No VN_MAD in template for Virtual Network.
Tue Apr 24 17:13:39 2018 [Z0][ReM][E]: Req:5392 UID:0 one.vn.reserve result FAILURE [one.vn.reserve] No VN_MAD in template for Virtual Network.

we can live without pci assign using sunstone… but not without reservations…

It looks like for some reason the upgrade process didn’t set the VN_MAD. Please update your vnets to set the proper VN_MAD in each of them.

Hi Tino.

Did you said that i need to set manually the vn_mad=dummy as a atribute? or directly in the database?

You can use a “onevnet update” to add the VN_MAD.

1 Like