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 1327844

Summary: Red Hat Access plugin 1.0.4 errors on db seed
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: RH Cloud - InsightsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: anarang, bbuckingham, cwelton, jcallaha, lphiri
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-redhat_access-1.0.5-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:10:51 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 Eric Helms 2016-04-16 19:00:11 UTC
Actual results:
[[33m WARN[0m [34m2016-04-16 09:01:19[0m [36mverbose[0m]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: ArgumentError: some permissions were not found
[[33m WARN[0m [34m2016-04-16 09:01:19[0m [36mverbose[0m]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/models/role.rb:136:in `add_permissions'
[[33m WARN[0m [34m2016-04-16 09:01:19[0m [36mverbose[0m]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /usr/share/foreman/app/models/role.rb:151:in `add_permissions!'
[[33m WARN[0m [34m2016-04-16 09:01:19[0m [36mverbose[0m]  /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: /opt/theforeman/tfm/root/usr/share/gems/gems/redhat_access-1.0.4/db/seeds.d/195-update-insights-roles.rb:6:in `block in <top (required)>'

Expected results:
Database seed passes and includes proper Red Hat Access role configuration

Additional info:

Comment 4 Corey Welton 2016-04-26 13:32:46 UTC
QE Notes:

* Assure redhat_access v 1.0.6 is installed
* Assure install is successful

Comment 5 Anisha Narang 2016-04-26 14:26:18 UTC
Correction: 
Version 1.0.5 instead of 1.0.6

Comment 6 jcallaha 2016-04-26 15:49:09 UTC
Verified in Satellite 6.2 Beta Snap 9 Compose 3.

Satellite installed correctly. Red Hat Access plugin is installed and works as expected.

tfm-rubygem-foreman-redhat_access-1.0.5-1.el7sat.noarch
tfm-rubygem-redhat_access_lib-1.0.1-1.el7sat.noarch

Comment 7 Bryan Kearney 2016-07-27 11:10:51 UTC
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://access.redhat.com/errata/RHBA-2016:1501