Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 906817

Summary: [User Portal] A user with PowerUserRole|NetworkUser on DC doesn't see own diskless templates when creating new VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engineAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, bdagan, ecohen, iheim, jkt, lpeer, Rhev-m-bugs, yeylon, yzaslavs
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:15:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log, vdsm.log none

Description Jiri Belka 2013-02-01 15:02:05 UTC
Created attachment 691607 [details]
engine.log, vdsm.log

Description of problem:
A user with PowerUserRole|NetworkUser on DC doesn't see own diskless templates when creating new VM based on this diskless template.

Two findings:
1. Template occurs in the list of 'New Desktop' dialog when a template has a disk.
2. Template occurs in the list of 'New Desktop' dialog when the template is triggered as public

Ad 2 - it seems to me that PowerUserRole should delegate apart from 'TemplateOwner' also 'UserTemplateBasedVm' role to the creator of new template on this template. This is what happens when you define the template as public.

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

How reproducible:
100%

Steps to Reproduce:
1. An user with PowerUserRole|NetworkUser on DC
2. Login to User Portal
3. Create a diskless VM, 'boot options' -> 'First device' = PXE
4. Make template from this VM (no public)
5. Try to create new VM based on this template

6. An user with PowerUserRole|NetworkUser on DC
7. Login to User Portal
8. Create a diskless VM, 'boot options' -> 'First device' = PXE
9. Make template from this VM (make it public)
10. Try to create new VM based on this template

Actual results:
cannot use own non-public diskless templates

Expected results:
as creator of a template (even diskless and non-public), i should be able to use it

Additional info:
seems there are two things involved - disk and UserTemplateBasedVm role.

you can also check permissions on template in each step from Admin Portal

Comment 1 Jiri Belka 2013-02-01 15:04:46 UTC
[CLARIFICATION] Description of problem:
A user with PowerUserRole|NetworkUser on DC doesn't see own diskless template when he wants to create new VM based on this diskless template. So he wants to deploy new diskless VM but he cannot see the template.

Comment 2 Barak 2013-07-08 13:31:40 UTC
Yair,

Please consult omer on implications on instance types.

Comment 3 Jiri Belka 2013-09-04 12:12:21 UTC
ok, is13.

Comment 4 Itamar Heim 2014-01-21 22:15:50 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:22:50 UTC
Closing - RHEV 3.3 Released