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 1890923 - Installer fails with NoMethodError: undefined method `permissions' for nil:NilClass
Summary: Installer fails with NoMethodError: undefined method `permissions' for nil:Ni...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Infrastructure
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 6.8.2
Assignee: Eric Helms
QA Contact: Lukas Pramuk
URL:
Whiteboard:
: 1896134 1898505 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-23 10:07 UTC by James Jeffers
Modified: 2023-12-15 19:53 UTC (History)
10 users (show)

Fixed In Version: foreman-2.1.2.20-1,foreman-2.1.2.23-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1889320
Environment:
Last Closed: 2020-12-15 13:15:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31345 0 High Closed Installer fails with NoMethodError: undefined method `permissions' for nil:NilClass 2021-01-28 22:11:50 UTC
Red Hat Product Errata RHBA-2020:5467 0 None None None 2020-12-15 13:15:43 UTC

Description James Jeffers 2020-10-23 10:07:46 UTC
+++ This bug was initially created as a clone of Bug #1889320 +++

This bug was initially created as a copy of Bug #1882276

I am copying this bug because: 
There is another issue with the same symptom but different cause 


Description of problem:
Satellite-installer fails at execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}''

Version-Release number of selected component (if applicable):
Satellite 6.8.0 Snap18 (upto Snap17 there was Bug #1882276) 

How reproducible:
intermittent

Steps to Reproduce:
1. Try installing satellite with cockpit enabled

Actual results:
Fails at Execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}'' returned 1: rake aborted!

Expected results:
Satellite 6.8.0 installed successfully.

Additional info:
deep down the traceback is a bit different now:

 /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-16.1.2/lib/foreman_discovery/engine.rb:152:in `block (2 levels) in <class:Engine>'

vs.

 /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-4.0.3/lib/foreman_openscap/engine.rb:127:in `block (2 levels) in <class:Engine>'

--- Additional comment from  on 2020-10-19T11:32:59Z 

Target Milestone is set to Unspecified, since this bug has Target Milestone set to 6.8.0 and approved release flag is not sat-6.8.0+

Once the bug has been granted the sat-6.8.0+ flag, the Target Milestone can be set to the desired value.

--- Additional comment from  on 2020-10-19T11:44:39Z 

New traceback: 

[ERROR 2020-10-15T11:38:35 verbose]  Execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}'' returned 1: rake aborted!
[ERROR 2020-10-15T11:38:35 verbose] NoMethodError: undefined method `permissions' for nil:NilClass
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:161:in `block (2 levels) in add_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:160:in `each'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:160:in `block in add_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:157:in `each'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:157:in `add_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:207:in `add_permissions!'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:54:in `block in update_plugin_role_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:86:in `ignore_locking'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:52:in `update_plugin_role_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:23:in `process_role'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:12:in `block in register_role'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:11:in `register_role'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:302:in `block (2 levels) in role'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:301:in `block in role'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:300:in `role'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-16.1.2/lib/foreman_discovery/engine.rb:152:in `block (2 levels) in <class:Engine>'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `instance_eval'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `register'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-16.1.2/lib/foreman_discovery/engine.rb:45:in `block in <class:Engine>'


Former (fixed) traceback:

[ERROR 2020-09-23T13:10:59 verbose]  Execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}'' returned 1: rake aborted!
[ERROR 2020-09-23T13:10:59 verbose] NoMethodError: undefined method `permissions' for nil:NilClass
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:161:in `block (2 levels) in add_permissions'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:160:in `each'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:160:in `block in add_permissions'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:157:in `each'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:157:in `add_permissions'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:207:in `add_permissions!'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:54:in `block in update_plugin_role_permissions'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/role.rb:86:in `ignore_locking'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:52:in `update_plugin_role_permissions'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:23:in `process_role'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:12:in `block in register_role'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:11:in `register_role'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:302:in `block (2 levels) in role'
[ERROR 2020-09-23T13:10:59 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:301:in `block in role'
[ERROR 2020-09-23T13:10:59 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:300:in `role'
[ERROR 2020-09-23T13:10:59 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-4.0.3/lib/foreman_openscap/engine.rb:127:in `block (2 levels) in <class:Engine>'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `instance_eval'
[ERROR 2020-09-23T13:10:59 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `register'
[ERROR 2020-09-23T13:10:59 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-4.0.3/lib/foreman_openscap/engine.rb:49:in `block in <class:Engine>'

--- Additional comment from  on 2020-10-20T12:57:59Z 

This may possibly be fixed by https://projects.theforeman.org/issues/30821. 
Additionally, it isn't specific to cockpit, in fact the stack trace points at discovery in this case, updating the title accordingly.
Most likely the rake task is running before the migrations finished and the db fully seeded, which causes the plugins to expect roles to already be there.

Comment 3 Bryan Kearney 2020-10-29 16:02:11 UTC
Upstream bug assigned to oezr

Comment 4 Bryan Kearney 2020-10-29 16:02:13 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30821 has been resolved.

Comment 8 Lukas Pramuk 2020-11-15 01:08:19 UTC
FailedQA.

@Satellite 6.8.1 Snap3
foreman-2.1.2.21-1.el7sat.noarch

Tried 5 fresh Satellite installations with cockpit feature enabled, 2 installations out of these 5 failed with the same error but slightly different traceback starting 20th line:

new traceback:

[ERROR 2020-11-14T18:08:05 verbose]  Execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}'' returned 1: rake aborted!
[ERROR 2020-11-14T18:08:05 verbose] NoMethodError: undefined method `permissions' for nil:NilClass
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:161:in `block (2 levels) in add_permissions'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:160:in `each'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:160:in `block in add_permissions'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:157:in `each'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:157:in `add_permissions'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:207:in `add_permissions!'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:54:in `block in update_plugin_role_permissions'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/role.rb:86:in `ignore_locking'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:52:in `update_plugin_role_permissions'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:23:in `process_role'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:12:in `block in register_role'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:11:in `register_role'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:311:in `block (2 levels) in role'
[ERROR 2020-11-14T18:08:05 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:310:in `block in role'
[ERROR 2020-11-14T18:08:05 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:309:in `role'
[ERROR 2020-11-14T18:08:05 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.13/lib/katello/plugin.rb:351:in `block in <top (required)>'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `instance_eval'
[ERROR 2020-11-14T18:08:05 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `register'
[ERROR 2020-11-14T18:08:05 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.13/lib/katello/plugin.rb:5:in `<top (required)>'

>>> this time the 2 tracebacks came from katello plugin (vs. foreman_dicovery plugin before)

vs.

original traceback when filing this BZ:

[ERROR 2020-10-15T11:38:35 verbose]  Execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}'' returned 1: rake aborted!
[ERROR 2020-10-15T11:38:35 verbose] NoMethodError: undefined method `permissions' for nil:NilClass
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:161:in `block (2 levels) in add_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:160:in `each'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:160:in `block in add_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:157:in `each'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:157:in `add_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:207:in `add_permissions!'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:54:in `block in update_plugin_role_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/role.rb:86:in `ignore_locking'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:52:in `update_plugin_role_permissions'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:23:in `process_role'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:12:in `block in register_role'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:114:in `as_anonymous_admin'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/services/foreman/plugin/role_lock.rb:11:in `register_role'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:302:in `block (2 levels) in role'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:301:in `block in role'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:300:in `role'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-16.1.2/lib/foreman_discovery/engine.rb:152:in `block (2 levels) in <class:Engine>'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `instance_eval'
[ERROR 2020-10-15T11:38:35 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `register'
[ERROR 2020-10-15T11:38:35 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-16.1.2/lib/foreman_discovery/engine.rb:45:in `block in <class:Engine>'


>>> the timing installer issue still persists

Comment 9 Lukas Pramuk 2020-11-15 01:21:01 UTC
Actually the 2 tracebacks I hit are not the same, there is difference starting 7th line:

[ERROR 2020-11-11T18:59:14 verbose]  Execution of '/usr/sbin/foreman-rake -- config -k 'remote_execution_cockpit_url' -v '/webcon/=%{host}'' returned 1: rake aborted!
[ERROR 2020-11-11T18:59:14 verbose] NoMethodError: undefined method `permissions' for nil:NilClass
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:161:in `block (2 levels) in add_permissions'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:160:in `each'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:160:in `block in add_permissions'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:157:in `each'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:157:in `add_permissions'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:207:in `add_permissions!'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:102:in `block (3 levels) in include_permissions_for_role'   >>>> starts to differ 
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/concerns/authorizable.rb:106:in `skip_permission_check'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:101:in `block (2 levels) in include_permissions_for_role'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:98:in `block in include_permissions_for_role'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/models/role.rb:236:in `ignore_locking'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:97:in `include_permissions_for_role'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:111:in `add_all_permissions_to_role'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:13:in `block in add_all_permissions_to_default_roles'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `block in transaction'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:280:in `block in within_new_transaction'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/transactions.rb:212:in `transaction'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:10:in `add_all_permissions_to_default_roles'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:351:in `block (2 levels) in add_all_permissions_to_default_roles'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:350:in `block in add_all_permissions_to_default_roles'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.9.0/lib/audited/auditor.rb:376:in `without_auditing'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:349:in `add_all_permissions_to_default_roles'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.13/lib/katello/plugin.rb:347:in `block in <top (required)>'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `instance_eval'
[ERROR 2020-11-11T18:59:14 verbose] /usr/share/foreman/app/registries/foreman/plugin.rb:78:in `register'
[ERROR 2020-11-11T18:59:14 verbose] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.13/lib/katello/plugin.rb:5:in `<top (required)>'



/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:102:in `block (3 levels) in include_permissions_for_role'

vs.

/usr/share/foreman/app/services/foreman/plugin/role_lock.rb:54:in `block in update_plugin_role_permissions'

Comment 10 Eric Helms 2020-11-18 14:23:55 UTC
*** Bug 1898505 has been marked as a duplicate of this bug. ***

Comment 11 Eric Helms 2020-11-18 14:46:34 UTC
*** Bug 1896134 has been marked as a duplicate of this bug. ***

Comment 12 Eric Helms 2020-11-19 16:15:58 UTC
Created redmine issue https://projects.theforeman.org/issues/31345 from this bug

Comment 13 Bryan Kearney 2020-11-23 16:02:20 UTC
Upstream bug assigned to ehelms

Comment 14 Bryan Kearney 2020-11-23 16:02:23 UTC
Upstream bug assigned to ehelms

Comment 15 Evgeni Golov 2020-11-26 10:30:59 UTC
upstream fix merged

Comment 17 Lukas Pramuk 2020-12-02 16:36:17 UTC
VERIFIED.

@Satellite 6.8.2 Snap1
foreman-2.1.2.23-1.el7sat.noarch

Tried 5 fresh Satellite installations with cockpit feature enabled
All 5 installation finished successfully

Comment 22 errata-xmlrpc 2020-12-15 13:15:26 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 (Satellite 6.8.2 Async Bug Fix Update), 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-2020:5467


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