Description of problem: When a user with ClusterAdmin role at cluster level but no permissions on the storage domains tries to add a disk to a VM the following error message is displayed on the "Add Virtual Disk" dialogue: "There are no active Storage Domains in the relevant Data Center" That's false since: - There are storage domains in the relevant datacenter and those are active. - The reason user can't see/choose any storage domain is because he has no permissions on those. Version-Release number of selected component (if applicable): rhevm-backend-3.2.5-0.49.el6ev How reproducible: Always. Steps to Reproduce: 1. Grant ClusterAdmin role to a user on a specific datacenter. 2. Login to webadmin portal as that user and try to add a disk to a guest in that cluster. 3. Actual results: User is presented with following error message: "There are no active Storage Domains in the relevant Data-Center." Expected results: User is presented with an error message similar to the following one: "Insufficient privileges. You need to have [role] permissions in order to add new virtual disks" Additional info: Datacenter /\ / \ / \ Cluster Storage domain User has ClusterAdmin role on the cluster but no permissions on the storage domains. webadmin portal only displays active and accessible storage domains to the user in the Add Virtual Disk dialogue. webadmin portal wrongly assumes that the reason for no storage domains being available is that they are not active.
If we will have two different messages then the user can be aware when there are active storage domains in the Data Center and when there not any active storage domains. I suggest to rephrase the message to also indicate permissions, as so: "There are no authorized active Storage Domains in the relevant Data-Center."
Eventually changed the message to be: There are no active Storage Domains that you have permissions to create a disk on in the relevant Data-Center.
User with cluster permissions has by default the ability to add disks to vm, can you please provide more detailed steps to reproduce, because right now,the result of the current one is successful
Have you tried to add a new user and assign it *only* the ClusterAdmin role?
yep,Ok now the error message is: "There are no active Storage Domains that you have permissions to create a disk on in the relevant Data-Center." verified on rc1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0158.html