Bug 2055329

Summary: Cannot import a cv
Product: Red Hat Satellite Reporter: Lai <ltran>
Component: Inter Satellite SyncAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Radek Mynar <rmynar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: pcreech
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.3.0.9-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:33:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lai 2022-02-16 17:38:17 UTC
Description of problem:
Using the content-import command fails with "Could not import the archive.: No upstream organization was specified" even though the org was specified


Version-Release number of selected component (if applicable):
7.0 snap 9 on rhel8.5

How reproducible:
100%

Steps to Reproduce:
1. Spin up 2 satellites (one for connected and one for disconnected)

On host satellite

2. Import a manifest
3. Set the RHEL download policy to "immediate" 
4. enable a few rhel repos (I used ansible 2.9 and tools6.10 for RHEL8)
5. Sync the repos on step 3
6. Create a custom repo and sync the custom yum repo
7. Create a cv and add the repos in steps 4 and 6
8. Publish the cv
9. Run the export command: hammer content-export complete version --id <version-id> --organization-id <id>

On client Satellite

10. Import a manifest that has rhel repos from step 4
11. Set RHEL download policy to "immediate"
12. Set "Subscription connection enabled" to "No"
13. In managed manifest -> CDN configuration -> air-gapped, click update to not use import/export
14. scp the exported dir created from step 9 into the /var/lib/pulp/import dir
15. run "chown -R pulp:pulp" in the imported dir
16. run import command: hammer content-import version --organization="Default Organization" --path '/var/lib/pulp/imports/<exported_dir>'
 
Actual results:
Could not import the archive.:
  Error: Unrecognised option '--parth'.

Expected results:
Import command should complete successfully.

Additional info:
The repos I used for this were "Red Hat Ansible engine 2.9" and "Red Hat Satellite Tools 6.10 for RHEL8" and a custom zoo repo.

Comment 1 Partha Aji 2022-02-16 22:06:54 UTC
Connecting redmine issue https://projects.theforeman.org/issues/34465 from this bug

Comment 2 Bryan Kearney 2022-02-25 08:05:37 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34465 has been resolved.

Comment 6 Radek Mynar 2022-04-08 12:38:45 UTC
ContentView was correctly imported in airgapped Satellite

VERIFIED with Satellite 6.11 SNAP 15.0

Comment 9 errata-xmlrpc 2022-07-05 14:33:19 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 (Moderate: Satellite 6.11 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-2022:5498