Bug 1357995 - Users from IPA groups don't inherit CpuProfileCreator role in Clusters -> CPU profile
Summary: Users from IPA groups don't inherit CpuProfileCreator role in Clusters -> CPU...
Keywords:
Status: CLOSED DUPLICATE of bug 1369046
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.6.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.1.0-alpha
: ---
Assignee: Andrej Krejcir
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-19 19:04 UTC by Javier Coscia
Modified: 2020-06-11 14:27 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-30 13:03:41 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2451221 0 None None None 2016-07-19 19:23:52 UTC

Description Javier Coscia 2016-07-19 19:04:09 UTC
Description of problem:

User cannot create VMs with "ACTION_TYPE_NO_PERMISSION_TO_ASSIGN_CPU_PROFILE,$cpuProfileId,$cpuProfileName"

User who belongs to an IPA group with SuperUser role, set in Clusters -> CPU Profile, does not inherit CpuProfileCreator rights and we need to specify user manually. Adding the "CpuProfileCreator" role for the IPA group doesn't make any difference.

Initially, thought this was related to BZ 1143869 but does not seem to be the same, customer upgraded to 3.6.7 and same error happens.

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

RHEV-M 3.6.7 (rhevm-3.6.7.5-0.1.el6.noarch)

How reproducible:
100% in customer's environment

Steps to Reproduce:

1. Add an IPA group with SuperUser role into the right frame in Clusters -> choose cluster -> cpu profiles subtab -> cpu profile
2. Try to create a VM, in this case, from a Template, with a user who belongs to that IPA group


Actual results:

Will fail with following message in engine.log

2016-07-14 21:30:07,935 WARN  [org.ovirt.engine.core.bll.AddVmFromTemplateCommand] (ajp-/127.0.0.1:8702-7) [] CanDoAction of action 'AddVmFromTemplate' failed for user <user>@<domain>. Reasons: VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_NO_PERMISSION_TO_ASSIGN_CPU_PROFILE,$cpuProfileId 40868150-e4b1-49db-8b42-535ef3da8480,$cpuProfileName <CL-NAME>

Expected results:

It should let user from IPA group, with SuperUser role, to create VMs. 
User who belongs to a SuperUser IPA group role, should not need specific 'CpuProfileCreator' permissions since it should inherit them from SuperUser role from the IPA group.

Additional info:

As a workaround, add the user, not the group, with role "CpuProfileCreator" in Clusters -> CPU Profile.

Comment 2 Martin Perina 2016-07-20 07:40:29 UTC
This is not related to the fact, that role is assigned to group fetched from IPA. So moving to SLA team, which is the owner of CPU Profiles feature

Comment 5 Roy Golan 2016-08-28 07:46:42 UTC
Most probably a dup of bug 1369046. Andrej please confirm?

Comment 6 Andrej Krejcir 2016-08-29 08:20:19 UTC
It is. CpuProfiles does not check group permissions.

Comment 7 Andrej Krejcir 2016-08-30 13:03:41 UTC

*** This bug has been marked as a duplicate of bug 1369046 ***


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