Bug 1246865

Summary: Cannot import puppet classes non-admin user
Product: Red Hat Satellite Reporter: Alexander Braverman <abraverm>
Component: Configuration ManagementAssignee: Ondřej Pražák <oprazak>
Status: CLOSED NEXTRELEASE QA Contact: Roman Plevka <rplevka>
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.1.0CC: bbuckingham, bkearney, cwelton, dhawke, egolov, mhulan, omaciel, oprazak, oramraz, rplevka, sjagtap, szadok, tstrachota, vkaigoro, zhunting
Target Milestone: UnspecifiedKeywords: AutomationBlocker, PrioBumpQA, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: centralci
Fixed In Version: foreman-1.11.0.83-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1463814 (view as bug list) Environment:
Last Closed: 2017-08-01 20:01:56 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:
Bug Depends On:    
Bug Blocks: 1338516, 1350159    

Description Alexander Braverman 2015-07-26 13:14:39 UTC
Description of problem:
When trying to import puppet classes as a unprivileged user, with limited access it will fail.

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

How reproducible:


Steps to Reproduce:
1. Create a Organization and Location outside of the defaults.
2. Create user with limited access associated to the Organization and Location. (Filter 'Puppet class': view_puppetclasses, create_puppetclasses, edit_puppetclasses, destroy_puppetclasses, import_puppetclasses)
3. Create Puppet environment in Capsule
4. Import Classes with hammer: hammer proxy import-classes --id 1

Actual results:
Validation failed: Organization ids Invalid organizations selection, you must select at least one of yours, Location ids Invalid locations selection, you must select at least one of yours, Name has already been taken


Expected results:
classes imported

Additional info:
maybe related to https://bugzilla.redhat.com/show_bug.cgi?id=1236740

Comment 1 Alexander Braverman 2015-08-10 12:32:16 UTC
Same on 6.1.1

Comment 7 Satellite Program 2017-01-30 11:04:03 UTC
Upstream bug assigned to oprazak

Comment 8 Satellite Program 2017-01-30 11:04:09 UTC
Upstream bug assigned to oprazak

Comment 9 Satellite Program 2017-03-14 12:04:35 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17463 has been resolved.

Comment 11 Satellite Program 2017-07-20 20:04:31 UTC
Upstream bug assigned to bbuckingham

Comment 13 Ondřej Pražák 2017-07-26 11:55:12 UTC
Connecting redmine issue http://projects.theforeman.org/issues/20418 from this bug

Comment 15 Bryan Kearney 2017-08-01 20:01:56 UTC
The fix to this bug will be delivered with release 6.3 of Satellite.