Bug 1890923
Summary: | Installer fails with NoMethodError: undefined method `permissions' for nil:NilClass | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | James Jeffers <jjeffers> |
Component: | Infrastructure | Assignee: | Eric Helms <ehelms> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 6.8.0 | CC: | ahumbe, egolov, inecas, mmccune, momran, nkim, oezr, pcreech, tbrisker, zhunting |
Target Milestone: | 6.8.2 | Keywords: | PrioBumpGSS, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
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: | Story Points: | --- | |
Clone Of: | 1889320 | Environment: | |
Last Closed: | 2020-12-15 13:15:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
James Jeffers
2020-10-23 10:07:46 UTC
Upstream bug assigned to oezr Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30821 has been resolved. 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 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' *** Bug 1898505 has been marked as a duplicate of this bug. *** *** Bug 1896134 has been marked as a duplicate of this bug. *** Created redmine issue https://projects.theforeman.org/issues/31345 from this bug Upstream bug assigned to ehelms Upstream bug assigned to ehelms upstream fix merged 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 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 |