[one-users] ip not correctly freed in AR

Madko madko77 at gmail.com
Fri Dec 5 06:51:30 PST 2014


Hi,

Here is my use case:
I have 2 groups (a and b) of VM. 5 VMs in each group. Each group uses 3
vnet (admin, appli, data). Each vnet has it's own VLAN_ID (openvswitch) but
can have the same AR.

The problem is that after deploying my VMs and deleting them. 2 IP get
stuck in the leases. They are still marked as used and therefor I'm unable
to delete their related vnets. Could it be because this 2 IP from 2
different VM have the same MAC address AND the same IP address?

[oneadmin at pvidgsh101 oneflow]$ onevnet list
  ID USER            GROUP        NAME                CLUSTER    BRIDGE
LEASES
   0 oneadmin        oneadmin     admin               -          br0
   32
   1 oneadmin        oneadmin     wan_fake            -          br0
    0
   2 oneadmin        oneadmin     appli               -          br0
    0
   3 oneadmin        oneadmin     data                -          br0
    2
   4 oneadmin        oneadmin     projet_01           -          br0
    2
 116 oneadmin        oneadmin     x0005.data          -          br0
    1
 126 oneadmin        oneadmin     x0010.data          -          br0
    1
 147 oneadmin        oneadmin     WAN                 -          br0
    0

[oneadmin at pvidgsh101 oneflow]$ onevnet show 126
...
LEASES

AR  OWNER                    MAC              IP
 IP6_GLOBAL
0   VM : 1147  02:00:c0:a8:02:12    192.168.2.18
...

[oneadmin at pvidgsh101 oneflow]$ onevm show 1147
VIRTUAL MACHINE 1147 INFORMATION

ID                  : 1147
NAME                : appli0.x0010
USER                : oneadmin
GROUP               : oneadmin
STATE               : DONE
LCM_STATE           : LCM_INIT
RESCHED             : No
START TIME          : 12/03 11:42:50
END TIME            : 12/03 11:50:39
DEPLOY ID           : -
...
VM NICS

 ID NETWORK              VLAN BRIDGE       IP              MAC
  0 admin                 yes br0          192.168.199.3   02:00:c0:a8:c7:03
  1 x0010.appli           yes br0          192.168.1.19    02:00:c0:a8:01:13
  2 x0010.data            yes br0          192.168.2.18    02:00:c0:a8:02:12

[oneadmin at pvidgsh101 oneflow]$ onevnet delete 126
[VirtualNetworkDelete] Cannot delete virtual network. Can not remove a
virtual network with leases in use

I have the script to reproduce this use case. But I can't replay it because
I'd like to clean those vnet before. So I don't know yet if this situation
is reproductible.

Is there a way to force those IP (192.168.2.18 from vnet 116 and 126) to be
freed? Or to force the deletion of the vnet (id 116 and 126)?

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141205/2b402c9e/attachment-0001.htm>


More information about the Users mailing list