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 2255385 - After Satellite upgrade checking sync status/content info fails till next sync
Summary: After Satellite upgrade checking sync status/content info fails till next sync
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Capsule - Content
Version: 6.15.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.15.0
Assignee: Ian Ballou
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-20 14:04 UTC by Lukas Pramuk
Modified: 2024-04-23 17:16 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_katello-1.11.1.1-1,rubygem-katello-4.11.0.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-23 17:16:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 37023 0 Normal New After upgrade checking sync status/content info fails till next sync 2024-01-03 21:26:28 UTC
Foreman Issue Tracker 37031 0 Normal Ready For Testing hammer proxy content info fails when DB has no content counts 2024-01-04 23:48:28 UTC
Red Hat Issue Tracker SAT-22065 0 None None None 2023-12-20 14:06:10 UTC
Red Hat Product Errata RHSA-2024:2010 0 None None None 2024-04-23 17:16:34 UTC

Description Lukas Pramuk 2023-12-20 14:04:28 UTC
Description of problem:
After Satellite upgrade to 6.15.0 checking sync status/content info for Capsule that has assigned at least single LFE fails.
It is failing for any LFE till next sync.

Before upgrade (on Satellite 6.14) this worked fine.

It is not important that capsule is N-1 at that time 6.14. Even after upgrading Capsule to 6.15 it continues to fail.
You can also reproduce it with fresh 6.15 integrated capsule and assigning it LFE(s) that have undergone upgrade.


Version-Release number of selected component (if applicable):
6.15.0 Snap3

How reproducible:
deterministic

Steps to Reproduce:
1. Have Satellite 6.14 and Capsule 6.14 integrated 
2. Assign Capsule to LFE
3. Upgrade Satellite to 6.15
4. Check sync status or content info of the Capsule

CLI
4a.
# hammer proxy content info  --id 11
undefined method `[]' for nil:NilClass

4b.
# hammer proxy content synchronization-status  --id 11
undefined method `[]' for nil:NilClass

UI
4c. Infrastructure -> Capsules -> <external capsule>
popup
(!) Last sync failed: undefined method `[]' for nil:NilClass

4d. Infrastructure -> Capsules -> <external capsule> -> pagelet Content
(!) 500  undefined method `[]' for nil:NilClass


Actual results:
ISE

Expected results:
No ISE

Additional info:
The issue persist till next Capsule sync


2023-12-20T08:58:48 [I|app|49d567bd] Started GET "/katello/api/capsules/11/content/sync" for <CLIENT_IP> at 2023-12-20 08:58:48 -0500
2023-12-20T08:58:48 [I|app|49d567bd] Processing by Katello::Api::V2::CapsuleContentController#sync_status as JSON
2023-12-20T08:58:48 [I|app|49d567bd]   Parameters: {"api_version"=>"v2", "id"=>"11", "capsule_content"=>{}}
2023-12-20T08:58:48 [I|app|49d567bd] Authorized user admin(Admin User)
2023-12-20T08:58:48 [I|app|49d567bd]   Rendered /usr/share/gems/gems/katello-4.11.0.rc2/app/views/katello/api/v2/capsule_content/sync_status.json.rabl (Duration: 26.1ms | Allocations: 19453)
2023-12-20T08:58:48 [E|app|49d567bd] ActionView::Template::Error: undefined method `[]' for nil:NilClass
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/app/models/katello/concerns/smart_proxy_extensions.rb:461:in `block in last_env_sync_task'
 49d567bd | /usr/share/gems/gems/activerecord-6.1.7.6/lib/active_record/relation/delegation.rb:88:in `each'
 49d567bd | /usr/share/gems/gems/activerecord-6.1.7.6/lib/active_record/relation/delegation.rb:88:in `each'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/app/models/katello/concerns/smart_proxy_extensions.rb:461:in `detect'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/app/models/katello/concerns/smart_proxy_extensions.rb:461:in `last_env_sync_task'
 49d567bd | (eval):44:in `block (2 levels) in cached_source_1899727987488358725'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:158:in `node'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:116:in `block in compile_settings'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:115:in `each'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:115:in `compile_settings'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:60:in `block in to_hash'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:253:in `cache_results'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:51:in `to_hash'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/multi_builder.rb:27:in `map'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/multi_builder.rb:27:in `to_a'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:93:in `to_hash'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:51:in `block in render'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:392:in `cache_results'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:50:in `render'
 49d567bd | /usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:126:in `block (2 levels) in merge_engines_into_result'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:125:in `each'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:125:in `block in merge_engines_into_result'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `each'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:121:in `merge_engines_into_result'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:57:in `block in to_hash'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:253:in `cache_results'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/builder.rb:51:in `to_hash'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:91:in `to_hash'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:104:in `to_dumpable'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:113:in `to_json'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:51:in `block in render'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:392:in `cache_results'
 49d567bd | /usr/share/gems/gems/rabl-0.16.1/lib/rabl/engine.rb:50:in `render'
 49d567bd | /usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/app/views/katello/api/v2/capsule_content/sync_status.json.rabl:3:in `_658b8f04bf933338271c50eb7c578986'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/base.rb:247:in `public_send'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/base.rb:247:in `_run'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/template.rb:154:in `block in render'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:205:in `instrument'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/template.rb:345:in `instrument_render_template'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/template.rb:152:in `render'
 49d567bd | /usr/share/gems/gems/deface-1.5.3/lib/deface/action_view_extensions.rb:43:in `render'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `block in instrument'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `instrument'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:75:in `render_with_layout'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:55:in `render_template'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/template_renderer.rb:11:in `render'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:117:in `block in _render_template'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/base.rb:273:in `in_rendering_context'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:116:in `_render_template'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/streaming.rb:218:in `_render_template'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:103:in `render_to_body'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/rendering.rb:25:in `render'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:36:in `render'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
 49d567bd | /usr/share/ruby/benchmark.rb:308:in `realtime'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/core_ext/benchmark.rb:14:in `ms'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:46:in `block in render'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
 49d567bd | /usr/share/gems/gems/activerecord-6.1.7.6/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:45:in `render'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb:228:in `process_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rendering.rb:30:in `process_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
 49d567bd | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 49d567bd | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 49d567bd | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 49d567bd | /usr/share/gems/gems/audited-5.4.2/lib/audited/sweeper.rb:16:in `around'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 49d567bd | /usr/share/gems/gems/audited-5.4.2/lib/audited/sweeper.rb:16:in `around'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:137:in `run_callbacks'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/callbacks.rb:41:in `process_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/rescue.rb:22:in `process_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `block in instrument'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:203:in `instrument'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
 49d567bd | /usr/share/gems/gems/activerecord-6.1.7.6/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/app/controllers/katello/concerns/api/api_controller.rb:46:in `process_action'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/abstract_controller/base.rb:165:in `process'
 49d567bd | /usr/share/gems/gems/actionview-6.1.7.6/lib/action_view/rendering.rb:39:in `process'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal.rb:190:in `dispatch'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_controller/metal.rb:254:in `dispatch'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:33:in `serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/mapper.rb:19:in `block in <class:Constraints>'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/mapper.rb:49:in `serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `each'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:842:in `call'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/engine.rb:539:in `call'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/mapper.rb:20:in `block in <class:Constraints>'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/mapper.rb:49:in `serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:50:in `block in serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `each'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/journey/router.rb:32:in `serve'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/routing/route_set.rb:842:in `call'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/lib/katello/middleware/event_daemon.rb:10:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/apipie-dsl-2.6.1/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
 49d567bd | /usr/share/gems/gems/apipie-rails-1.2.3/lib/apipie/static_dispatcher.rb:68:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/static.rb:24:in `call'
 49d567bd | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
 49d567bd | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
 49d567bd | /usr/share/gems/gems/apipie-rails-1.2.3/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/tempfile_reaper.rb:15:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/etag.rb:27:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/conditional_get.rb:27:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
 49d567bd | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:266:in `context'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/session/abstract/id.rb:260:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/cookies.rb:697:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:98:in `run_callbacks'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/rack/logger.rb:37:in `call_app'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/rack/logger.rb:28:in `call'
 49d567bd | /usr/share/gems/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
 49d567bd | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
 49d567bd | /usr/share/gems/gems/request_store-1.5.1/lib/request_store/middleware.rb:19:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/request_id.rb:26:in `call'
 49d567bd | /usr/share/gems/gems/katello-4.11.0.rc2/lib/katello/prevent_json_parsing.rb:12:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/method_override.rb:24:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/runtime.rb:22:in `call'
 49d567bd | /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/executor.rb:14:in `call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/sendfile.rb:110:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/ssl.rb:77:in `call'
 49d567bd | /usr/share/gems/gems/actionpack-6.1.7.6/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
 49d567bd | /usr/share/gems/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/engine.rb:539:in `call'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send'
 49d567bd | /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:74:in `block in call'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `each'
 49d567bd | /usr/share/gems/gems/rack-2.2.8/lib/rack/urlmap.rb:58:in `call'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/configuration.rb:272:in `call'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/request.rb:100:in `block in handle_request'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/request.rb:99:in `handle_request'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/server.rb:443:in `process_client'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/server.rb:241:in `block in run'
 49d567bd | /usr/share/gems/gems/puma-6.4.0/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
 49d567bd | /usr/share/gems/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2023-12-20T08:58:48 [I|app|49d567bd] Completed 500 Internal Server Error in 140ms (Views: 0.1ms | ActiveRecord: 18.0ms | Allocations: 29322)

Comment 1 Lukas Pramuk 2023-12-21 13:54:51 UTC
"You can also reproduce it with fresh 6.15 integrated capsule and assigning it LFE(s) that have undergone upgrade." - this statement from comment#0 is not true I couldn't reproduce with fresh 6.15 Capsule

Comment 2 Ian Ballou 2024-01-03 21:26:27 UTC
Created redmine issue https://projects.theforeman.org/issues/37023 from this bug

Comment 3 Ian Ballou 2024-01-04 23:46:05 UTC
This will also require a change in hammer -- I've added the redmine for it.

Comment 4 Bryan Kearney 2024-01-05 00:03:02 UTC
Upstream bug assigned to iballou

Comment 5 Bryan Kearney 2024-01-05 00:03:04 UTC
Upstream bug assigned to iballou

Comment 6 Bryan Kearney 2024-01-11 20:03:06 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/37023 has been resolved.

Comment 11 Lukas Pramuk 2024-01-23 15:26:40 UTC
VERIFIED.

@Satellite 6.15.0 Snap 7
rubygem-katello-4.11.0.2-1.el8sat.noarch

by Upgrades Automation (upgrade-phase job)

FIX:

INFO:upgrade_logging:Waiting for capsule <redacted_fqdn> sync to finish ...
Active tasks [{'id': '5ba5fd55-4678-4493-a4c0-599fd995bd0c', 'label': 'Actions::Katello::CapsuleContent::Sync', 'pending': True, 'action': 

vs. 


REPRODUCER:

INFO:upgrade_logging:Waiting for capsule <redacted_fqdn> sync to finish ...
WARNING:nailgun.client:Received HTTP 500 response: {"displayMessage":"undefined method `[]' for nil:NilClass","errors":["undefined method `[]' for nil:NilClass"]}

Comment 14 errata-xmlrpc 2024-04-23 17:16:33 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 (Important: Satellite 6.15.0 release), 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/RHSA-2024:2010


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