Description of problem: I am using an engine with three vms only one of them has a nic I am trying to add a nic to another vm and getitng a message Mac address already in use The engine should, in case a new mac is added, pick another mac from the range defined in engine-config
This bug was caused by a zombie vm with one nic. when tried to remove that vm > it did not remove it (because the vm was damaged because of another bug) but it did add the mac of the nic back to the pool. Therefore the problem relates to the remove vm command which is not atomic
Please look at line 6399 at the attached engine.log and see that the remove which is supposed to remove only from the DB calls VDSM verb which fails, causing the remove from DB to rollback, and keep the VM with NICs and everything in the system although it is supposed to be deleted. The method involved is: org.ovirt.engine.core.bll.VmCommand.removeVmSnapshots() I propose that the VDSM code be run outside a transaction scope.
http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=f71f2ba071d70e07198650cecc19e8e65a129994
verified on is8.
Closing - RHEV 3.3 Released