-
Bug
-
Resolution: Done-Errata
-
Normal
-
6.17.0
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:
- Create a CV for one org and add repo to it (I specifically used Ansible Engine)
- Publish this CV
- Export the content
- Try to import the content to another org -> Kill the worker before it can finish
- 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)
- links to
-
RHEA-2025:148331 Satellite 6.17.0 release