Actions
Bug #34465
closedContent View import failing for an Airgapped Setup with RH Repos
Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Steps
------
In the upstream server/org
------
In the upstream server/org
- Enable a couple of rh repositories
- Mark them immediate in repo details
- Sync
- Export with
# hammer content-export complete repository --id <repo-id>
- Subscriptions -> Manage Manifest -> CdnConfiguration -> Airgapped (click update to set it)
- Import a manifest with those repositories
- hammer content-import repository --path=.... --metadata-file=.. --organization-id=<org id>
The content-import command fails with "Could not import the archive.: No upstream organization was specified" even though the org was specified
2022-02-16T12:16:39 [I|bac|cd026bec] Task {label: Actions::Katello::ContentViewVersion::Import, id: d1080d61-3c6b-4ea4-85a1-ffc06273bfec, execution_plan_id: 7bd59850-477c-4095-9ea4-565d94c5d73d} state changed: stopped result: error 2022-02-16T12:16:39 [E|app|cd026bec] ArgumentError: No upstream organization was specified cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/lib/katello/resources/cdn/katello_cdn.rb:9:in `initialize' cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/lib/katello/resources/cdn.rb:73:in `new' cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/lib/katello/resources/cdn.rb:73:in `create' cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/models/katello/product.rb:219:in `cdn_resource' cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/models/katello/candlepin/repository_mapper.rb:77:in `feed_url' cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/models/katello/candlepin/repository_mapper.rb:33:in `build_repository' cd026bec | /usr/share/gems/gems/katello-4.3.0.2/app/lib/actions/katello/repository_set/enable_repository.rb:17:in `plan'
Actions