Bug 904974

Summary: [User Portal] admin@internal cannot see pools/VMs in user portal
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-userportalAssignee: Einav Cohen <ecohen>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: high    
Version: 3.2.0CC: acathrow, dyasny, ecohen, iheim, oourfali, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 17:25:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Belka 2013-01-28 10:21:41 UTC
Description of problem:
admin@internal doesn't see any VMs or pools in User Portal. (Also visible in si26.1)

Requested in https://bugzilla.redhat.com/show_bug.cgi?id=902341#c8

Version-Release number of selected component (if applicable):
sf4 (also in si26.1)

How reproducible:
100%

Steps to Reproduce:
1. create a pool and/or vm in Admin Portal
2. log as admin@internal in User Portal
3.
  
Actual results:
no VMs/pools

Expected results:
admin@internal should see pools/VMs in User Portal by default

Additional info:
In https://bugzilla.redhat.com/show_bug.cgi?id=902341#c7 it is stated that users in User Portal should see pool itself instead of individual pooled VMs.

Comment 1 Einav Cohen 2013-01-29 13:44:52 UTC
admin@internal, like any other user, should see only VMs/Pools which are associated with *User* permissions [i.e. not admin permissions (e.g. SuperUser)] for that user.

Regarding the "Additional info:" in the description: IIUC, this is what bug 904984 is about.

So not sure exactly what this bug is about: Jiri - can you please clarify that? maybe we are missing here the details regarding admin@internal exact permissions?

Comment 2 Jiri Belka 2013-01-31 10:20:40 UTC
In sf4, admin@internal has on system SuperUser and PowerUserRole roles by default. In si26.1, admin@internal has SuperRules role on system only by default.

In both versions, admin@internal cannot see VMs/pools in User Portal.

BZ904984 states that any user which has UserRole on system, does not see pool(s) but individual pooled VMs in User Portal.

I would say that first admin@internal should be able to see VMs by default in User Portal.

Comment 3 Oved Ourfali 2013-01-31 11:00:28 UTC
The user portal, in contrast to the admin portal, should only show you objects you have user permissions on, even if you are an administrator.

An administrator would login to the user portal only if he wants to do user oriented things, and in that case he should only see his objects, and not all the objects.

So, in my opinion, this bug should be closed.