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

Reruning interupted content import fails

XMLWordPrintable

    • 1
    • False
    • Moderate
    • Sprint 144, Sprint 145, Sprint 146, Sprint 147
    • None
    • None
    • None
    • None
    • Yes

      From snap 78 (I tested the issue with snap 80) I came across the CLI issue while testing the content import after the interruption of the previous import. This fails when the import is rerun. This worked before.
      My steps were the following:

      1. Create a CV for one org and add repo to it (I specifically used Ansible Engine)
      2. Publish this CV
      3. Export the content
      4. Try to import the content to another org -> Kill the worker before it can finish
      5. Then try to rerun the import  (Now It fails, this worked pre snap 78)

      The task that we let run normally (step 5.) fails with:

      undefined method `content' for #<Katello::RootRepository id: 4, name: "Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterp...", created_at: "2024-12-05 10:50:06.668205000 +0000", updated_at: "2024-12-05 10:50:06.668205000 +0000", major: nil, minor: nil, gpg_key_id: nil, content_id: "9318", arch: "x86_64", label: "Red_Hat_Ansible_Engine_2_9_RPMs_for_Red_Hat_Enterp...", url: "https://cdn.redhat.com/content/dist/rhel/server/7/...", unprotected: false, content_type: "yum", product_id: 202, checksum_type: nil, pulp_scratchpad_checksum_type: nil, docker_upstream_name: nil, download_policy: "immediate", verify_ssl_on_sync: true, upstream_username: nil, upstream_password: nil, deb_releases: nil, deb_components: nil, deb_architectures: nil, ssl_ca_cert_id: nil, ssl_client_cert_id: nil, ssl_client_key_id: nil, ignorable_content: nil, include_tags: nil, description: nil, ansible_collection_requirements: nil, http_proxy_policy: "global_default_http_proxy", http_proxy_id: nil, download_concurrency: nil, os_versions: nil, ansible_collection_auth_url: nil, ansible_collection_auth_token: nil, retain_package_versions_count: nil, generic_remote_options: nil, upstream_authentication_token: nil, mirroring_policy: "mirror_complete", exclude_tags: nil, metadata_expire: nil, is_container_push: false, container_push_name: nil, container_push_name_format: nil>
      Did you mean?  content_idundefined method `content' for #<Katello::RootRepository id: 4, name: "Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterp...", created_at: "2024-12-05 10:50:06.668205000 +0000", updated_at: "2024-12-05 10:50:06.668205000 +0000", major: nil, minor: nil, gpg_key_id: nil, content_id: "9318", arch: "x86_64", label: "Red_Hat_Ansible_Engine_2_9_RPMs_for_Red_Hat_Enterp...", url: "https://cdn.redhat.com/content/dist/rhel/server/7/...", unprotected: false, content_type: "yum", product_id: 202, checksum_type: nil, pulp_scratchpad_checksum_type: nil, docker_upstream_name: nil, download_policy: "immediate", verify_ssl_on_sync: true, upstream_username: nil, upstream_password: nil, deb_releases: nil, deb_components: nil, deb_architectures: nil, ssl_ca_cert_id: nil, ssl_client_cert_id: nil, ssl_client_key_id: nil, ignorable_content: nil, include_tags: nil, description: nil, ansible_collection_requirements: nil, http_proxy_policy: "global_default_http_proxy", http_proxy_id: nil, download_concurrency: nil, os_versions: nil, ansible_collection_auth_url: nil, ansible_collection_auth_token: nil, retain_package_versions_count: nil, generic_remote_options: nil, upstream_authentication_token: nil, mirroring_policy: "mirror_complete", exclude_tags: nil, metadata_expire: nil, is_container_push: false, container_push_name: nil, container_push_name_format: nil>
      Did you mean?  content_id

      There were 2 failed actions in that task:

      Actions::Katello::ContentViewVersion::Import
      and
      Actions::Katello::ContentViewVersion::AutoCreateRedhatRepositories

       

      Additional info:
      Test case which discovered this issue (test_positive_export_rerun_failed_import)

      This test case also verifies this issue https://issues.redhat.com/browse/SATQE-17481

      Tested with:

      Snap 80
      satellite-6.17.0-0.4.stream.el9sat.noarch
      foreman-3.14.0-0.2.develop.el9sat.noarch
      katello-4.16.0-0.1.master.el9sat.noarch
      Red Hat Enterprise Linux release 9.5 (Plow)

              rhn-engineering-lvasina Ladislav Vasina
              rhn-engineering-lvasina Ladislav Vasina
              Ladislav Vasina Ladislav Vasina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: