Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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.