Bug #287
Network leases over 128.0.0.0 get wrong MAC address
Status: | Closed | Start date: | 07/20/2010 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
Creating a new network with the template
===================================
NAME = "PUBLIC"
TYPE = FIXED
BRIDGE = br0
LEASES = [ IP="141.52.208.195"]
LEASES = [ IP="141.52.208.194"]
LEASES = [ IP="141.52.208.193"]
LEASES = [ IP="141.52.208.192"]
LEASES = [ IP="141.52.208.191"]
LEASES = [ IP="141.52.208.190"]
===================================
results in the following leases information with IDENTICAL MAC addresses!
========================================
VIRTUAL NETWORK TEMPLATE
BRIDGE=br0
LEASES=[ IP=141.52.208.195 ]
LEASES=[ IP=141.52.208.194 ]
LEASES=[ IP=141.52.208.193 ]
LEASES=[ IP=141.52.208.192 ]
LEASES=[ IP=141.52.208.191 ]
LEASES=[ IP=141.52.208.190 ]
NAME=PUBLIC
TYPE=FIXED
LEASES INFORMATION
LEASE=[ IP=141.52.208.190, MAC=02:00:7f:ff:ff:ff, USED=1, VID=0 ]
LEASE=[ IP=141.52.208.191, MAC=02:00:7f:ff:ff:ff, USED=1, VID=5 ]
LEASE=[ IP=141.52.208.192, MAC=02:00:7f:ff:ff:ff, USED=1, VID=6 ]
LEASE=[ IP=141.52.208.193, MAC=02:00:7f:ff:ff:ff, USED=1, VID=7 ]
LEASE=[ IP=141.52.208.194, MAC=02:00:7f:ff:ff:ff, USED=1, VID=8 ]
LEASE=[ IP=141.52.208.195, MAC=02:00:7f:ff:ff:ff, USED=0, VID=-1 ]
==========================
This doesn´t happen if the assigned IP addresses lie below 128.0.0.0!!
Also trying to assign MAC fixed addresses in the network template shows the same problem when the THIRD octet (CC in AA:BB:CC:DD:EE:FF) exceeds 127=0x7F.
History
#1 Updated by Ariel Garcia almost 11 years ago
This refers to OpenNebula 1.6, as checked out from the GIT repo on 19/7/2010.
#2 Updated by Ruben S. Montero almost 11 years ago
- Status changed from New to Closed
- Resolution set to fixed
Thanks!!!
This was because a wrong size in the network leases when using MySQL. Fix has been applied to master. THANK YOU FOR THE TESTING!
#3 Updated by Ariel Garcia almost 11 years ago
Hola Ruben, that was fast, thanks a lot!! Updated the mysql table field by hand, it worked :-)