Problem changing content view for host

Problem:
Changing content view fails with undefined method `content_view=’ error
Expected outcome:
Changing content view successfully
Foreman and Proxy versions:
Foreman: 3.6.1
Ruby: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
Puppet: 7.24.0
Foreman and Proxy plugin versions:
foreman-tasks 7.2.1
foreman_ansible 11.2.0
foreman_azure_rm 2.2.9
foreman_google 1.0.3
foreman_hooks 0.3.17
foreman_remote_execution 9.1.0
foreman_setup 8.0.1
foreman_webhooks 3.0.5
katello 4.8.1
Distribution and version:
Red Hat Enterprise Linux 8.8
Other relevant data:
After upgrading Foreman from 3.5.3 to 3.6.1 I’m no longer able to change the lifecycle environment / content view for hosts (same error (log excerpt below) for different OS and major versions) using the UI (Hosts → Content Hosts → Select Action → Change Lifecycle Environment). It’s working fine using hammer though.

2023-06-14T08:46:05 [I|bac|e024ea75] Task {label: , execution_plan_id: 717a462b-94c1-49d6-8361-c8cbfcc07c4e} state changed: pending 
2023-06-14T08:46:05 [I|bac|e024ea75] Task {label: Actions::BulkAction, id: 6ff4de06-2a84-49a1-b4e5-03350ca36230, execution_plan_id: 717a462b-94c1-49d6-8361-c8cbfcc07c4e} state changed: planning 
2023-06-14T08:46:05 [I|bac|e024ea75] Task {label: Actions::BulkAction, id: 6ff4de06-2a84-49a1-b4e5-03350ca36230, execution_plan_id: 717a462b-94c1-49d6-8361-c8cbfcc07c4e} state changed: planned 
2023-06-14T08:46:06 [I|app|e024ea75]   Rendered /usr/share/gems/gems/katello-4.8.1/app/views/katello/api/v2/common/async.json.rabl within katello/api/v2/layouts/resource (Duration: 27.3ms | Allocations: 7519)
2023-06-14T08:46:06 [I|app|e024ea75]   Rendered layout /usr/share/gems/gems/katello-4.8.1/app/views/katello/api/v2/layouts/resource.json.erb (Duration: 28.5ms | Allocations: 7792)
2023-06-14T08:46:06 [I|app|e024ea75] Completed 202 Accepted in 212ms (Views: 27.1ms | ActiveRecord: 39.8ms | Allocations: 31975)
2023-06-14T08:46:06 [I|bac|e024ea75] Task {label: Actions::BulkAction, id: 6ff4de06-2a84-49a1-b4e5-03350ca36230, execution_plan_id: 717a462b-94c1-49d6-8361-c8cbfcc07c4e} state changed: running 
2023-06-14T08:46:06 [I|bac|e024ea75] Task {label: , execution_plan_id: 57160d96-7101-4d7c-ad92-c11851af0475} state changed: pending 
2023-06-14T08:46:06 [I|bac|e024ea75] Task {label: Actions::Katello::Host::UpdateContentView, id: 19140952-1051-4907-b2db-59641f30c4de, execution_plan_id: 57160d96-7101-4d7c-ad92-c11851af0475} state changed: planning 
2023-06-14T08:46:06 [E|bac|e024ea75] undefined method `content_view=' for #<Katello::Host::ContentFacet:0x00007fc530855ac8>
 e024ea75 | Did you mean?  content_views=
 e024ea75 |                content_views
 e024ea75 |                content_view_ids=
 e024ea75 |                content_view_ids (NoMethodError)
 e024ea75 | /usr/share/gems/gems/activemodel-6.1.7.3/lib/active_model/attribute_methods.rb:469:in `method_missing'
 e024ea75 | /usr/share/gems/gems/katello-4.8.1/app/lib/actions/katello/host/update_content_view.rb:7:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:525:in `block (3 levels) in execute_plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:36:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:36:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/load_setting_values.rb:15:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_request_id.rb:10:in `block in plan'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_request_id.rb:34:in `with_current_request_id'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_request_id.rb:9:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_timezone.rb:10:in `block in plan'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_timezone.rb:31:in `with_current_timezone'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_timezone.rb:9:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_taxonomies.rb:10:in `block in plan'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_taxonomies.rb:30:in `with_current_taxonomies'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_taxonomies.rb:9:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:36:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_user.rb:10:in `block in plan'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_user.rb:41:in `with_current_user'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_user.rb:9:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/world.rb:31:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:524:in `block (2 levels) in execute_plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan.rb:387:in `switch_flow'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:428:in `concurrence'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:523:in `block in execute_plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:483:in `block in with_error_handling'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:483:in `catch'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:483:in `with_error_handling'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:522:in `execute_plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:296:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/plan_step.rb:55:in `block in execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/abstract.rb:167:in `with_meta_calculation'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan.rb:289:in `block (2 levels) in plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan.rb:387:in `switch_flow'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan.rb:377:in `with_planning_scope'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan.rb:288:in `block in plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/common/transaction.rb:17:in `block in rollback_on_error'
 e024ea75 | /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
 e024ea75 | /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
 e024ea75 | /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
 e024ea75 | /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
 e024ea75 | /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
 e024ea75 | /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
 e024ea75 | /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
 e024ea75 | /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
 e024ea75 | /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
 e024ea75 | /usr/share/gems/gems/activerecord-6.1.7.3/lib/active_record/transactions.rb:209:in `transaction'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/transaction_adapters/active_record.rb:6:in `transaction'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/common/transaction.rb:16:in `rollback_on_error'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/common/transaction.rb:6:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:44:in `plan_phase'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/world.rb:31:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan.rb:287:in `plan'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/world.rb:219:in `block (2 levels) in plan_with_options'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/coordinator.rb:326:in `acquire'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/world.rb:217:in `block in plan_with_options'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/world.rb:216:in `tap'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/world.rb:216:in `plan_with_options'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_sub_plans.rb:90:in `block in trigger'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/world.rb:178:in `trigger'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_sub_plans.rb:90:in `trigger'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/bulk_action.rb:54:in `block in create_sub_plans'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/bulk_action.rb:53:in `map'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/bulk_action.rb:53:in `create_sub_plans'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_sub_plans.rb:47:in `spawn_plans'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_bulk_sub_plans.rb:71:in `spawn_plans'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_sub_plans.rb:43:in `initiate'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_bulk_sub_plans.rb:36:in `initiate'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_sub_plans.rb:23:in `block in run'
 e024ea75 | /usr/share/gems/gems/algebrick-0.7.5/lib/algebrick/matchers/abstract.rb:74:in `assigns'
 e024ea75 | /usr/share/gems/gems/algebrick-0.7.5/lib/algebrick/matching.rb:56:in `match_value'
 e024ea75 | /usr/share/gems/gems/algebrick-0.7.5/lib/algebrick/matching.rb:36:in `block in match?'
 e024ea75 | /usr/share/gems/gems/algebrick-0.7.5/lib/algebrick/matching.rb:35:in `each'
 e024ea75 | /usr/share/gems/gems/algebrick-0.7.5/lib/algebrick/matching.rb:35:in `match?'
 e024ea75 | /usr/share/gems/gems/algebrick-0.7.5/lib/algebrick/matching.rb:23:in `match'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_sub_plans.rb:18:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/with_bulk_sub_plans.rb:24:in `run'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/bulk_action.rb:21:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:582:in `block (3 levels) in execute_run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run'
 e024ea75 | /usr/share/gems/gems/activesupport-6.1.7.3/lib/active_support/execution_wrapper.rb:91:in `wrap'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/progress.rb:31:in `with_progress_calculation'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action/progress.rb:17:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/load_setting_values.rb:20:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_request_id.rb:15:in `block in run'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_request_id.rb:52:in `restore_current_request_id'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_request_id.rb:15:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_timezone.rb:15:in `block in run'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_timezone.rb:44:in `restore_curent_timezone'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_timezone.rb:15:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in `block in run'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_taxonomies.rb:45:in `restore_current_taxonomies'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_taxonomies.rb:15:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:32:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:27:in `pass'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware.rb:19:in `pass'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_user.rb:15:in `block in run'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_user.rb:54:in `restore_curent_user'
 e024ea75 | /usr/share/gems/gems/foreman-tasks-7.2.1/app/lib/actions/middleware/keep_current_user.rb:15:in `run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/stack.rb:23:in `call'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/middleware/world.rb:31:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:581:in `block (2 levels) in execute_run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:580:in `catch'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:580:in `block in execute_run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:483:in `block in with_error_handling'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:483:in `catch'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:483:in `with_error_handling'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:575:in `execute_run'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/action.rb:296:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:18:in `block (2 levels) in execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/abstract.rb:167:in `with_meta_calculation'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:17:in `block in execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:32:in `open_action'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:16:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/director.rb:69:in `execute'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/executors/sidekiq/worker_jobs.rb:11:in `block (2 levels) in perform'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/executors.rb:18:in `run_user_code'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/executors/sidekiq/worker_jobs.rb:9:in `block in perform'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/executors/sidekiq/worker_jobs.rb:25:in `with_telemetry'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/executors/sidekiq/worker_jobs.rb:8:in `perform'
 e024ea75 | /usr/share/gems/gems/dynflow-1.6.8/lib/dynflow/executors/sidekiq/serialization.rb:27:in `perform'
 e024ea75 | [ sidekiq ]
 e024ea75 | [ concurrent-ruby ]
2023-06-14T08:46:06 [I|bac|e024ea75] Task {label: Actions::Katello::Host::UpdateContentView, id: 19140952-1051-4907-b2db-59641f30c4de, execution_plan_id: 57160d96-7101-4d7c-ad92-c11851af0475} state changed: stopped  result: error
2023-06-14T08:46:06 [E|bac|e024ea75] A sub task failed (Dynflow::Action::WithSubPlans::SubtaskFailedException)
 e024ea75 | 
2023-06-14T08:46:06 [I|bac|e024ea75] Task {label: Actions::BulkAction, id: 6ff4de06-2a84-49a1-b4e5-03350ca36230, execution_plan_id: 717a462b-94c1-49d6-8361-c8cbfcc07c4e} state changed: stopped  result: warning

Installed Foreman packages:

ansible-collection-theforeman-foreman-3.10.0-1.el8.noarch
candlepin-4.2.13-1.el8.noarch
candlepin-selinux-4.2.13-1.el8.noarch
foreman-3.6.1-1.el8.noarch
foreman-cli-3.6.1-1.el8.noarch
foreman-client-release-3.6.1-1.el8.noarch
foreman-debug-3.6.1-1.el8.noarch
foreman-dynflow-sidekiq-3.6.1-1.el8.noarch
foreman-ec2-3.6.1-1.el8.noarch
foreman-installer-3.6.1-1.el8.noarch
foreman-installer-katello-3.6.1-1.el8.noarch
foreman-obsolete-packages-1.2-1.el8.noarch
foreman-ovirt-3.6.1-1.el8.noarch
foreman-postgresql-3.6.1-1.el8.noarch
foreman-proxy-3.6.1-1.el8.noarch
foreman-redis-3.6.1-1.el8.noarch
foreman-service-3.6.1-1.el8.noarch
foreman-vmware-3.6.1-1.el8.noarch
katello-4.8.1-1.el8.noarch
katello-ca-consumer-foreman.intern.rossmann.de-1.0-1.noarch
katello-certs-tools-2.9.0-1.el8.noarch
katello-client-bootstrap-1.7.9-1.el8.noarch
katello-common-4.8.1-1.el8.noarch
katello-debug-4.8.1-1.el8.noarch
katello-host-tools-3.5.7-5.el8.noarch
katello-host-tools-tracer-3.5.7-5.el8.noarch
python39-pulp-ansible-0.16.0-1.el8.noarch
python39-pulp-certguard-1.5.6-1.el8.noarch
python39-pulp-cli-0.14.0-4.el8.noarch
python39-pulp-container-2.14.5-1.el8.noarch
python39-pulp-deb-2.20.2-1.el8.noarch
python39-pulp-file-1.12.0-1.el8.noarch
python39-pulp-python-3.8.0-1.el8.noarch
python39-pulp-rpm-3.19.2-1.el8.noarch
python39-pulpcore-3.22.2-4.el8.noarch
qpid-proton-c-0.37.0-1.el8.x86_64
rubygem-foreman-tasks-7.2.1-2.fm3_6.el8.noarch
rubygem-foreman_ansible-11.2.0-1.fm3_6.el8.noarch
rubygem-foreman_azure_rm-2.2.9-1.fm3_6.el8.noarch
rubygem-foreman_google-1.0.3-1.fm3_6.el8.noarch
rubygem-foreman_hooks-0.3.17-3.fm3_3.el8.noarch
rubygem-foreman_maintain-1.3.0-1.el8.noarch
rubygem-foreman_remote_execution-9.1.0-1.fm3_6.el8.noarch
rubygem-foreman_setup-8.0.1-2.fm3_3.el8.noarch
rubygem-foreman_webhooks-3.0.5-1.fm3_5.el8.noarch
rubygem-hammer_cli-3.6.0-1.el8.noarch
rubygem-hammer_cli_foreman-3.6.0-1.el8.noarch
rubygem-hammer_cli_foreman_ansible-0.5.0-1.fm3_6.el8.noarch
rubygem-hammer_cli_foreman_google-1.0.1-1.fm3_6.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.2.2-1.fm3_0.el8.noarch
rubygem-hammer_cli_foreman_tasks-0.0.18-1.fm3_5.el8.noarch
rubygem-hammer_cli_katello-1.8.1-1.el8.noarch
rubygem-katello-4.8.1-1.el8.noarch
rubygem-pulp_ansible_client-0.16.0-1.el8.noarch
rubygem-pulp_certguard_client-1.5.7-1.el8.noarch
rubygem-pulp_container_client-2.14.3-1.el8.noarch
rubygem-pulp_deb_client-2.20.2-1.el8.noarch
rubygem-pulp_file_client-1.12.0-1.el8.noarch
rubygem-pulp_ostree_client-2.0.0-0.1.a1.el8.noarch
rubygem-pulp_python_client-3.8.0-1.el8.noarch
rubygem-pulp_rpm_client-3.19.0-1.el8.noarch
rubygem-pulpcore_client-3.22.2-1.el8.noarch
rubygem-qpid_proton-0.37.0-1.el8.x86_64
rubygem-smart_proxy_pulp-3.2.0-3.fm3_3.el8.noarch

Thanks for reporting this. You’ve definitely found a bug; I’ve opened Bug #36504: undefined method `content_view=' for #<Katello::Host::ContentFacet:0x00007fc530855ac8> - Katello - Foreman

1 Like

Hi Jeremy,
it seems to me like the bug is back in 4.9 (rubygem-katello-4.9.1-1.el8.noarch). Can you confirm?

I haven’t heard this. Can you provide more details?

it seems like the patch you provided (Fixes #36504 - Use assign_single_environment in bulk action by jeremylenz · Pull Request #10615 · Katello/katello · GitHub) didn’t made it into the KATELLO-4.9 branch: https://github.com/Katello/katello/blob/KATELLO-4.9/app/lib/actions/katello/host/update_content_view.rb

here’s a comparison of the packages:

@wbclark could you please check this?

It does look like some commits are missing from the 4.9 branch. We are investigating and will need to release a 4.9.2 with the missing commits.

1 Like

thanks, Jeremy!

Is there a timeframe for katello 4.9.2 ?

There’s no scheduled date, but you can track the release checklist in Development - TheForeman when it gets posted. I’d think the release should be within the next few weeks.

Upgrading to nightly (though a bit risky) or applying the patch yourself are other options.