Bug 1338943 - VM Snapshot can't be cloned to new VM
Summary: VM Snapshot can't be cloned to new VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 3.6.5
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ovirt-3.6.7
: 3.6.7.1
Assignee: jniederm
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks: 1213937
TreeView+ depends on / blocked
 
Reported: 2016-05-23 16:55 UTC by jniederm
Modified: 2016-07-04 12:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When creating new VM from VM snapshot usign "Clone" action: * Custom properties either inherited from snapshot or edited by user in "Clone VM from Snapshot" dialog was not applied to new VM. * "VmCreator" role was not sufficient to create (clone) VM from snapshot. Error popup was shown with message "User is not authorized to perform this action." after "Clone VM from Snapshot" dialog was confirmed. Both problems fixed
Clone Of:
Environment:
Last Closed: 2016-07-04 12:29:28 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-3.6.z+
mgoldboi: planning_ack+
tjelinek: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 57888 0 master MERGED webadmin: Fix of custom properties 2016-05-24 06:55:30 UTC
oVirt gerrit 57893 0 ovirt-engine-3.6 MERGED webadmin: Fix of custom properties 2016-05-24 07:08:01 UTC
oVirt gerrit 58135 0 ovirt-engine-3.6.7 MERGED webadmin: Fix of custom properties 2016-05-29 12:09:38 UTC

Description jniederm 2016-05-23 16:55:51 UTC
Description of problem:
Creating a VM from VM snapshot fails with error popup "User is not authorized to perform this action." if the user is not admin@userportal and has only role VmCreator.

Version-Release number of selected component (if applicable):
3.6.5, also tested on master (commit 6a84511)

How reproducible:
100%

Steps to Reproduce:
1. Create a VM
2. Create a snapshot of the VM
3. Pick a user and assign him system-wide role 'VmCreator', 'SuperUser' role for some unrelated VM (just to allow him to log in Webadmin) and make sure he has no other permissions.
4. Log to webadmin using user above.
5. Clone snapshot (step 2) to new VM
6. In "Clone VM from Snapshot" dialog set name only and press "OK".

Actual results:
Error dialog pops up: 
Operation canceled
Error while executing action:
<vm-name>:
    User is not authorized to perform this action.

Expected results:
VM is created.

Additional info:
It actually turned out that no user (even admin@internal) can adjust custom properties in "Clone VM from Snapshot" dialog.

Steps to reproduce:
(from Webadmin as admin@internal)
1. Create VM
2. Create a snapshot of the VM
3. Select "Clone" on the snapshot
4. Adjust Custom properties in "Clone VM from Snapshot" dialog
5. Confirm dialog wiht "OK"
6. Check custom properties of newly created VM in Edit VM dialog

Actual results:
no custom properties

Expected results:
Custom properties set in "Clone VM from Snapshot" dialog are reflected to the VM.

Comment 1 Red Hat Bugzilla Rules Engine 2016-05-23 16:55:57 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 2 Tomas Jelinek 2016-05-24 07:13:02 UTC
no, not modified - on more backport needed

Comment 4 meital avital 2016-06-23 07:21:08 UTC
Verified on version: 3.6.7.2-0.1.el6


Note You need to log in before you can comment on or make changes to this bug.