Bug 1138177

Summary: [RFE][ImportDomain] Permissions on VMs and Templates should be part of the OVF
Product: [oVirt] ovirt-engine Reporter: Maor <mlipchuk>
Component: RFEsAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Lilach Zitnitski <lzitnits>
Severity: low Docs Contact:
Priority: medium    
Version: 3.5.0CC: amureini, bugs, lpeer, mlipchuk, ratamir, rbalakri, Rhev-m-bugs, scohen, srevivo, trichard, ykaul, ylavi
Target Milestone: ovirt-4.2.0Keywords: FutureFeature
Target Release: ---Flags: rule-engine: ovirt-4.2+
ratamir: testing_plan_complete?
ylavi: planning_ack+
rule-engine: devel_ack+
ratamir: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Permissions on virtual machines and templates are now part of the OVF, so that when a storage domain is detached from one data center and attached to another, the virtual machines and templates can be imported with their previous permissions.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:21:56 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:
Bug Depends On: 1518134    
Bug Blocks: 1548842    

Description Maor 2014-09-04 08:03:59 UTC
Description of problem:
Permissions on VMs and Templates should be part of the OVF, so when ever a Storage Domain will be detached an attached to another Data Center, the VMs/Templates could be imported to the new Data Center with their previous permissions

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Add a permission to a VM
2. Try to detach the Storage Domain that VM as disk on and attach it to another Data Center
3. Register the VM to the new Data Center

Actual results:
The permissions of that VM will not exists any more

Expected results:
The permissions of that VM should be part of the new VM

Additional info:

Comment 1 Yaniv Kaul 2015-11-19 20:39:22 UTC
I wonder how it'd work between different RHEV setups.
We have another RFE to export/import permissions.

Comment 2 Yaniv Kaul 2017-11-16 13:15:57 UTC
Maor - is any of it implemented in the DR feature of 4.2? https://gerrit.ovirt.org/#/c/83406/ for example?

Comment 3 Maor 2017-11-16 13:45:59 UTC
Yes, it should already be merged in oVirt.
Moving to ON_QA based on BZ1505428

Comment 4 Lilach Zitnitski 2017-12-11 14:30:26 UTC
--------------------------------------
Tested with the following code:
----------------------------------------
rhvm-4.2.0-0.6.el7.noarch
vdsm-4.20.9-1.el7ev.x86_64

Tested with the following scenario:

Steps to Reproduce:
1. Add a permission to a VM
2. Try to detach the Storage Domain that VM as disk on and attach it to another Data Center
3. Register the VM to the new Data Center

Actual results:
The permissions of that VM are be part of the new VM

Expected results:

Moving to VERIFIED!

Comment 5 Sandro Bonazzola 2017-12-20 11:21:56 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.