Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-40520

AttributeError: 'NoneType' object has no attribute '_artifacts' when running pulpcore-container-handle-image-metadata in the post-upgrade step for Satellite 6.17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.17.6
    • Pulp
    • None
    • False
    • sat-artemis
    • None
    • None
    • None
    • None

      While upgrade to Satellite 6.17 works fine, there are several post-upgrade steps initiated by satellite-maintain and one of them is "Initialize and expose container image metadata in the pulpcore db".

      When that is started, the following command is invoked at the backend:

      PULP_SETTINGS=/etc/pulp/settings.py runuser -u pulp – pulpcore-manager container-handle-image-data

      And that fails with the following exception

      I, 2025-11-24 02:52:14-0500 #98487  INFO – : — Execution step 'Initialize and expose container image metadata in the pulpcore db' [pulpcore-container-handle-image-metadata] started —
      E, 2025-11-24 02:52:19-0500 #98487 ERROR – : Failed executing PULP_SETTINGS=/etc/pulp/settings.py runuser -u pulp – pulpcore-manager container-handle-image-data, exit status 1:
       Traceback (most recent call last):
        File "/usr/bin/pulpcore-manager", line 33, in <module>
          sys.exit(load_entry_point('pulpcore==3.63.21', 'console_scripts', 'pulpcore-manager')())
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/site-packages/pulpcore/app/manage.py", line 11, in manage
          execute_from_command_line(sys.argv)
        File "/usr/lib/python3.11/site-packages/django/core/management/_init_.py", line 442, in execute_from_command_line
          utility.execute()
        File "/usr/lib/python3.11/site-packages/django/core/management/_init_.py", line 436, in execute
          self.fetch_command(subcommand).run_from_argv(self.argv)
        File "/usr/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
          self.execute(*args, **cmd_options)
        File "/usr/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
          output = self.handle(*args, **options)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/site-packages/pulp_container/app/management/commands/container-handle-image-data.py", line 63, in handle
          manifests_updated_count += self.update_manifests(manifests_v2)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/site-packages/pulp_container/app/management/commands/container-handle-image-data.py", line 100, in update_manifests
          needs_update = self.init_manifest(manifest)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/site-packages/pulp_container/app/management/commands/container-handle-image-data.py", line 140, in init_manifest
          self.init_manifest_os_arch_size(manifest)
        File "/usr/lib/python3.11/site-packages/pulp_container/app/management/commands/container-handle-image-data.py", line 151, in init_manifest_os_arch_size
          manifest.init_architecture_and_os()
        File "/usr/lib/python3.11/site-packages/pulp_container/app/models.py", line 231, in init_architecture_and_os
          config_artifact = self.config_blob._artifacts.get()
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: 'NoneType' object has no attribute '_artifacts' (ForemanMaintain::Error::ExecutionError)
      /usr/share/gems/gems/foreman_maintain-1.10.4/lib/foreman_maintain/utils/command_runner.rb:59:in `execution_error'
      /usr/share/gems/gems/foreman_maintain-1.10.4/lib/foreman_maintain/concerns/system_helpers.rb:68:in `execute!'
      /usr/share/gems/gems/foreman_maintain-1.10.4/definitions/procedures/pulpcore/container_handle_image_metadata.rb:18:in `block in run'
      /usr/share/gems/gems/foreman_maintain-1.10.4/lib/foreman_maintain/reporter/cli_reporter.rb:146:in `with_spinner'
      /usr/share/ruby/forwardable.rb:238:in `with_spinner'
      /usr/share/ruby/forwardable.rb:238:in `with_spinner'
      /usr/share/gems/gems/foreman_maintain-1.10.4/definitions/procedures/pulpcore/container_handle_image_metadata.rb:12:in `run'
      /usr/share/gems/gems/foreman_maintain-1.10.4/lib/foreman_maintain/executable.rb:142:in `_run_'

       

      Environment:

      Upgrading from Satellite 6.16 to 6.17.latest

       

      Expected outcome:

      • Longterm: No such errors or exceptions
      • Short-term: There should be some commands provided to get this step completed without running into the exception

              Unassigned Unassigned
              rhn-support-saydas Sayan Das
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: