Bug 1266172 - Validation error when adding nic to vm: NETWORK_MAC_ADDRESS_IN_USE
Summary: Validation error when adding nic to vm: NETWORK_MAC_ADDRESS_IN_USE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Alona Kaplan
QA Contact: Meni Yakove
URL:
Whiteboard: network
Depends On:
Blocks: 1247966
TreeView+ depends on / blocked
 
Reported: 2015-09-24 16:44 UTC by Marcin Mirecki
Modified: 2016-02-10 19:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-04 11:26:44 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-3.6.0+
rule-engine: blocker+
ylavi: Triaged+
ylavi: planning_ack+
bazulay: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 46704 0 master MERGED engine: revet ActivateDeactivateVmNicCommand to use the old macAvailable Never
oVirt gerrit 46705 0 ovirt-engine-3.6 MERGED engine: revet ActivateDeactivateVmNicCommand to use the old macAvailable Never
oVirt gerrit 46709 0 ovirt-engine-3.6.0 MERGED engine: revet ActivateDeactivateVmNicCommand to use the old macAvailable Never

Description Marcin Mirecki 2015-09-24 16:44:46 UTC
Description of problem:

When adding a network interface to a vm, a validation error is displayed: NETWORK_MAC_ADDRESS_IN_USE.

Steps to Reproduce:
1. Go to vm tab, select interfaces sub tab
2. Click new, add interface, click ok
3. Error message is displayed: NETWORK_MAC_ADDRESS_IN_USE

Additional info:
The validation error is in MacAddressValidator:isMacAssignableValidator
The reason is that the macPool used to validate the macs of new interfaces is initialized with the pool of possible macs, and not the macs actually used. This happens in MacPoolManagerRanges:44 :
            this.macsStorage = createMacsStorage(rangesBoundaries);
The range boundaries are retrieved from the db using MacPoolDao.

Comment 1 GenadiC 2015-10-07 13:50:54 UTC
Verified on 3.6.0-0.18.el6

Comment 2 GenadiC 2015-10-07 15:05:31 UTC
THe problem started happen again.
Engine try to assign MAC address that is already used in DB to VM NIC.
Adding custom MAC from range succeeds.
Though it looks like a different bug we get the same error message

Comment 3 GenadiC 2015-10-08 09:23:09 UTC
Verified on 3.6.0-0.18.el6
Comment2 is a different issue, so will open another bug

Comment 4 Sandro Bonazzola 2015-11-04 11:26:44 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.


Note You need to log in before you can comment on or make changes to this bug.