Bug 1482569

Summary: Force remove of a storage domain should release MAC addresses only for VMs which are removed from the setup
Product: [oVirt] ovirt-engine Reporter: Maor <mlipchuk>
Component: Backend.CoreAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, tnisan
Target Milestone: ovirt-4.1.6Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-19 10:02:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Maor 2017-08-17 15:18:37 UTC
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:

Comment 1 Elad 2017-08-30 10:24:37 UTC
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