Red Hat Bugzilla – Bug 985410
Removes VM which fails to remove snapshot with RAM will stay in the system
Last modified: 2015-09-22 09:09 EDT
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:
I propose that the VDSM code be run outside a transaction scope.
verified on is8.
Closing - RHEV 3.3 Released