-
Bug
-
Resolution: Done
-
Normal
-
None
+++ This bug was initially created as a clone of Bug #2147579 +++
Description of problem:
Unable to promote content view due to "NoMethodError: undefined method `get_status' for nil:NilClass"
Version-Release number of selected component (if applicable):
Satellite version 6.10
How reproducible:
100%
Steps to Reproduce:
1. Publish job is working as expected using the Ansible playbook.
2. Promoting with the below playbook fails with error:-
3. Run a playbook using the module `redhat.satellite.content_view_version`
```
- name: Publish new content view version to lib and dev
redhat.satellite.content_view_version:
username: "{{ user }}"
password: "{{ pw }}"
server_url: "{{ url }}"
content_view: "{{ view }}"
organization: "{{ org }}"
validate_certs: no
description: "testing content view"
lifecycle_environments: - Dev
loop: "{{ views }}"
loop_control:
loop_var: view
```
Actual results:
"msg": "Task Promote content view 'Test'; organization 'Test'(xxxxxx) did not succeed. Task information: [\"undefined method `get_status' for nil:NilClass\"]",
Expected results:
Success
— Additional comment from on 2022-11-24T15:36:51Z
Trace for reference
==================
329: Actions::Katello::ContentView::Publish (skipped) [ 0.33s / 0.33s ]
Queue: default
Started at: 2022-11-23 20:34:29 UTC
Ended at: 2022-11-23 20:34:29 UTC
Real time: 0.33s
Execution time (excluding suspended state): 0.33s
Input:
—
content_view:
id: 61
name: RHEL7 7.9
label: RHEL7_7_9
organization:
id: 5
name: Turkcell Test
label: Turkcell_Test
services_checked:
- pulp3
- candlepin
- candlepin_auth
history_id: 1136
content_view_id: 61
auto_publish_composite_ids: []
content_view_version_name: RHEL7 7.9 49.0
content_view_version_id: 818
environment_id: 6
user_id: 14
skip_promotion:
current_request_id: 756307d9-36f2-42e9-88b4-d1d3314ed582
current_timezone: Europe/Istanbul
current_organization_id: 5
current_location_id: 3
current_user_id: 14
Output:
—
content_view_id: 61
content_view_version_id: 818
skip_promotion:
Error:
NoMethodError
undefined method `get_status' for nil:NilClass
—
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/models/katello/host/content_facet.rb:207:in
`update_errata_status'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/lib/actions/katello/content_view/publish.rb:120:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/relation/delegation.rb:87:in
`each'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/relation/delegation.rb:87:in
`each'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/lib/actions/katello/content_view/publish.rb:118:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:594:in
`block (2 levels) in execute_finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/rails_executor_wrap.rb:20:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/execution_wrapper.rb:88:in
`wrap'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/rails_executor_wrap.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action/progress.rb:31:in
`with_progress_calculation'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action/progress.rb:23:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/load_setting_values.rb:25:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_request_id.rb:19:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_request_id.rb:52:in
`restore_current_request_id'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_request_id.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_timezone.rb:19:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_timezone.rb:44:in
`restore_curent_timezone'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_timezone.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_taxonomies.rb:19:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in
`restore_current_taxonomies'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_taxonomies.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:40:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:25:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:54:in
`restore_curent_user'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:25:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/world.rb:31:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:593:in
`block in execute_finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:473:in
`block in with_error_handling'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:473:in
`catch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:473:in
`with_error_handling'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:592:in
`execute_finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:286:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in
`block (2 levels) in execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract.rb:167:in
`with_meta_calculation'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in
`block in execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in
`open_action'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:78:in
`run_step'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:63:in
`dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:70:in
`block in run_in_sequence'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:70:in
`all?'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:70:in
`run_in_sequence'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:59:in
`dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:28:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/common/transaction.rb:17:in
`block in rollback_on_error'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in
`block in transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:280:in
`block in within_new_transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in
`block (2 levels) in synchronize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in
`handle_interrupt'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in
`block in synchronize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in
`handle_interrupt'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in
`synchronize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:278:in
`within_new_transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in
`transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in
`transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/transaction_adapters/active_record.rb:6:in
`transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/common/transaction.rb:16:in
`rollback_on_error'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/common/transaction.rb:10:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:29:in
`block in finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:54:in
`restore_curent_user'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:29:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/world.rb:31:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:27:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director.rb:123:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:11:in
`block (2 levels) in perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors.rb:18:in
`run_user_code'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:9:in
`block in perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:25:in
`with_telemetry'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:8:in
`perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/serialization.rb:27:in
`perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:192:in
`execute_job'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:165:in
`block (2 levels) in process'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:128:in
`block in invoke'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:133:in
`invoke'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:164:in
`block in process'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:137:in
`block (6 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:109:in
`local'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:136:in
`block (5 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq.rb:37:in
`block in '" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:132:in
`block (4 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:250:in
`stats'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:127:in
`block (3 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_logger.rb:8:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:126:in
`block (2 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:74:in
`global'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in
`block in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in
`with_context'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in
`with_job_hash_context'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in
`dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in
`process'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in
`process_one'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in
`run'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in
`watchdog'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in
`block in safe_thread'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in
`block in create_with_logging_context'"
— Additional comment from on 2022-11-24T15:37:32Z
Trace for reference
==================
329: Actions::Katello::ContentView::Publish (skipped) [ 0.33s / 0.33s ]
Queue: default
Started at: 2022-11-23 20:34:29 UTC
Ended at: 2022-11-23 20:34:29 UTC
Real time: 0.33s
Execution time (excluding suspended state): 0.33s
Input:
—
content_view:
id: 61
name: RHEL7 7.9
label: RHEL7_7_9
organization:
id: 5
name: Turkcell Test
label: Turkcell_Test
services_checked:
- pulp3
- candlepin
- candlepin_auth
history_id: 1136
content_view_id: 61
auto_publish_composite_ids: []
content_view_version_name: RHEL7 7.9 49.0
content_view_version_id: 818
environment_id: 6
user_id: 14
skip_promotion:
current_request_id: 756307d9-36f2-42e9-88b4-d1d3314ed582
current_timezone: Europe/Istanbul
current_organization_id: 5
current_location_id: 3
current_user_id: 14
Output:
—
content_view_id: 61
content_view_version_id: 818
skip_promotion:
Error:
NoMethodError
undefined method `get_status' for nil:NilClass
—
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/models/katello/host/content_facet.rb:207:in
`update_errata_status'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/lib/actions/katello/content_view/publish.rb:120:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/relation/delegation.rb:87:in
`each'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/relation/delegation.rb:87:in
`each'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/lib/actions/katello/content_view/publish.rb:118:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:594:in
`block (2 levels) in execute_finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/rails_executor_wrap.rb:20:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/execution_wrapper.rb:88:in
`wrap'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/rails_executor_wrap.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action/progress.rb:31:in
`with_progress_calculation'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action/progress.rb:23:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/load_setting_values.rb:25:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_request_id.rb:19:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_request_id.rb:52:in
`restore_current_request_id'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_request_id.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_timezone.rb:19:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_timezone.rb:44:in
`restore_curent_timezone'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_timezone.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_taxonomies.rb:19:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in
`restore_current_taxonomies'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_taxonomies.rb:19:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:40:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:25:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:54:in
`restore_curent_user'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:25:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/world.rb:31:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:593:in
`block in execute_finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:473:in
`block in with_error_handling'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:473:in
`catch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:473:in
`with_error_handling'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:592:in
`execute_finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/action.rb:286:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in
`block (2 levels) in execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract.rb:167:in
`with_meta_calculation'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in
`block in execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in
`open_action'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:78:in
`run_step'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:63:in
`dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:70:in
`block in run_in_sequence'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:70:in
`all?'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:70:in
`run_in_sequence'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:59:in
`dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:28:in
`block in finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:48:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/common/transaction.rb:17:in
`block in rollback_on_error'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in
`block in transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:280:in
`block in within_new_transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in
`block (2 levels) in synchronize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in
`handle_interrupt'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in
`block in synchronize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in
`handle_interrupt'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in
`synchronize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/transaction.rb:278:in
`within_new_transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in
`transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/transactions.rb:212:in
`transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/transaction_adapters/active_record.rb:6:in
`transaction'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/common/transaction.rb:16:in
`rollback_on_error'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/common/transaction.rb:10:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:27:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware.rb:19:in
`pass'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:29:in
`block in finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:54:in
`restore_curent_user'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-4.1.6/app/lib/actions/middleware/keep_current_user.rb:29:in
`finalize_phase'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/stack.rb:23:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/middleware/world.rb:31:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director/sequential_manager.rb:27:in
`finalize'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/director.rb:123:in
`execute'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:11:in
`block (2 levels) in perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors.rb:18:in
`run_user_code'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:9:in
`block in perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:25:in
`with_telemetry'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/worker_jobs.rb:8:in
`perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.9/lib/dynflow/executors/sidekiq/serialization.rb:27:in
`perform'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:192:in
`execute_job'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:165:in
`block (2 levels) in process'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:128:in
`block in invoke'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/middleware/chain.rb:133:in
`invoke'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:164:in
`block in process'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:137:in
`block (6 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:109:in
`local'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:136:in
`block (5 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq.rb:37:in
`block in '" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:132:in
`block (4 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:250:in
`stats'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:127:in
`block (3 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_logger.rb:8:in
`call'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:126:in
`block (2 levels) in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/job_retry.rb:74:in
`global'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:125:in
`block in dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:48:in
`with_context'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/logging.rb:42:in
`with_job_hash_context'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:124:in
`dispatch'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:163:in
`process'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:83:in
`process_one'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/processor.rb:71:in
`run'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:16:in
`watchdog'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/sidekiq-5.2.7/lib/sidekiq/util.rb:25:in
`block in safe_thread'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in
`block in create_with_logging_context'"
— Additional comment from on 2022-11-24T15:47:48Z
It seems like a regression from 6.10.0 itself
Old BZ :
1957035 – Promotion content view failed with NoMethodError: undefined method `get_status' for nil:NilClass
https://bugzilla.redhat.com/show_bug.cgi?id=1957035
PR: https://github.com/Katello/katello/pull/9613/files
@iballou@redhat.com @sajha@redhat.com , Good Morning.. Any of you perhaps have any idea, what could be causing the same traceback here again for 6.10.6 and above ?
— Additional comment from on 2022-11-28T14:21:47Z
Adding needinfo for Ian based upon comment 3.
— Additional comment from on 2022-11-28T14:50:42Z
(In reply to Sayan Das from comment #3)
> It seems like a regression from 6.10.0 itself
>
> Old BZ :
>
> 1957035 – Promotion content view failed with NoMethodError: undefined method
> `get_status' for nil:NilClass
> https://bugzilla.redhat.com/show_bug.cgi?id=1957035
>
> PR: https://github.com/Katello/katello/pull/9613/files
>
>
> @iballou@redhat.com @sajha@redhat.com , Good Morning.. Any of you perhaps
> have any idea, what could be causing the same traceback here again for
> 6.10.6 and above ?
If it helps: the mismatch in case 03369666 was in a Host assigned to a different Organization than the CV:
foreman=# SELECT organization_id FROM katello_content_views WHERE id = 61;
organization_id
-----------------
5
(1 row)
foreman=#
vs:
foreman=# SELECT hosts.id,hosts.organization_id FROM hosts INNER JOIN katello_content_facets AS kcf ON kcf.host_id = hosts.id WHERE kcf.content_view_id = 61 and hosts.organization_id != 5;
id | organization_id
-----+----------------
7826 | 1
(1 row)
foreman=#
— Additional comment from on 2022-11-28T14:57:33Z
From the code it looks like there may be an orphaned content facet. In Katello we have host records and related content facet records that represent the content side of a host. A host can exist by itself but not a content facet. The `host` in the code is nil, which must mean it's missing.
To check for orphaned content facets, you can use the following in the foreman console: `::Katello::Host::ContentFacet.select
{|c| c.host.nil?}`For any that return from that command, check their host IDs. Together, that could look like:
```
::Katello::Host::ContentFacet.select {|c| c.host.nil?}
.pluck(:host_id)
```
Then, check that the hosts with those IDs are indeed missing from the DB.
If they are, then the content facets are definitely orphaned.
Depending on then number of orphaned content facets, it should be safe to delete their records. The content facets may have become orphaned from a failed host deletion task.
— Additional comment from on 2022-12-12T16:00:25Z
Based on the comments and debugging, this seems like a corner case with failed host deletion task leaving orphan content facets. I believe a log message for such facets where host has been deleted and skipping and moving on to the rest of promotion seems like the best course of action. The facets can then be cleaned either manually or with a rake task we can write.
— Additional comment from on 2022-12-13T15:12:52Z
Created redmine issue https://projects.theforeman.org/issues/35861 from this bug
— Additional comment from on 2023-01-16T16:03:14Z
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35861 has been resolved.
— Additional comment from on 2023-01-17T13:56:12Z
Hi sajha@redhat.com,
this BZ did not cherry-pick cleanly for Satellite 6.13.0, could you please perform a manual cherry-pick?
You can find the documentation for cherry-picks at http://ohsnap.sat.engineering.redhat.com/docs/cherry_picking
Please contact satellite6-build@redhat.com if you have any questions around this request.
Thanks!
— Additional comment from on 2023-02-01T11:40:09Z
build status: succeeded
brew:
- rubygem-katello#9d91894fbb44325a5241107a88c0f037a060d74f: closed - https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=50434598
— Additional comment from on 2023-02-21T18:49:19Z
Verified on 6.13 - Snap 11
Steps to Verify:
Followed steps from the PR here:https://github.com/Katello/katello/pull/10391
These reproduced the orphaned content facet issue, and I was able to use the rake task
foreman-rake katello:clean_orphaned_facets
to clean them up.
Expected Results:
Using the foreman-rake katello:clean_orphaned_facets command allows publishing without the "NoMethodError: undefined method `get_status' for nil:NilClass" issue
Actual Results:
Using the foreman-rake katello:clean_orphaned_facets command allows publishing without the "NoMethodError: undefined method `get_status' for nil:NilClass" issue
— Additional comment from on 2023-03-17T20:27:16Z
-
-
- Bug 2107136 has been marked as a duplicate of this bug. ***
-
- external trackers