Red Hat Bugzilla – Bug 842317
It's impossible to add unused MAC to NIC on VM (when adding it earlier failed for some reason - it is not freed)
Last modified: 2016-02-10 14:53:31 EST
Created attachment 599776 [details]
Description of problem:
If adding of VNIC with some specific MAC fails for some reason(for example adding Non VM Network for VM), that MAC can't be used again in the correct scenario (adding VM network for VM)
Steps to Reproduce:
1. Create VM with NIC
2. Add another NIC with specific MAC and Non VM Network
3. When 2 fails changed the Non VM Network to VM Network
4. Try to add this NIC with specific MAC and VM Network
Error message "MAC is already in use"
The NIC should be added to VM with that specific MAC address
Reset to ovirt-engine solves the problem as MAC address is stucked in memory
Created attachment 599777 [details]
MAC in Use screenshot
the solution should be to release the allocated MAC when can-do-action of UpdateVmInterface and AddVmInterface fails.
1. Create VM and add network.
2. Copy the MAC address from the VM network interface.
3. Delete the VM.
4. Try to create another nic to new/existing VM with the same MAC address (From the delete VM)
Proposed patch in http://gerrit.ovirt.org/#/c/6708/
fixed in 848453e8293f616f060d362810d42115d8ec752c.
Flags were reset by me by accident - all flags were already given beforehand.
Livnat, it's a problem to verify it at the moment because in SI13 you can't add NON_VM network to VM - step2 (solution to another BZ).
I would like to get suggestion how to reproduce this
(In reply to comment #6)
> Livnat, it's a problem to verify it at the moment because in SI13 you can't
> add NON_VM network to VM - step2 (solution to another BZ).
> I would like to get suggestion how to reproduce this
There is the option to test this via the REST api were there is no blocking of assigning non-vm networks and it goes all the way to the backend (which should block this).
Verified in SI13