Description of problem: As part of the fix for BZ1475272, force remove of a storage domain will free all MAC addresses which are related to a storage pool. The engine should only free mac addresses of VMs which have disks on this storage domain and will be removed once this storage domain will be removed. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Add 3 storage domain 2. Add VM1 with disk on storage domain 1 use mac pool address for this VM 3. Add VM2 with disk on storage domain 2 and use another mac pool address for this VM 4. Force remove storage domain1 Actual results: the mac address of VM1 and VM2 will be released Expected results: the mac address of VM1 should be released, VM2 should stay the same. Additional info:
Tested the scenario from the description. After force remove of domain1, the MAC of VM1 is released and can be used for new vNIC creation and the MAC for VM2 is not released and cannot be allocated for another vNIC. Tested using: rhevm-4.1.6-0.1.el7.noarch