Project

General

Profile

Actions

Bug #34465

closed

Content View import failing for an Airgapped Setup with RH Repos

Added by Partha Aji over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Steps
------
In the upstream server/org
  1. Enable a couple of rh repositories
  2. Mark them immediate in repo details
  3. Sync
  4. Export with
    # hammer content-export complete repository --id <repo-id>
    
In the Downstream Server /Org
  1. Subscriptions -> Manage Manifest -> CdnConfiguration -> Airgapped (click update to set it)
  2. Import a manifest with those repositories
  3. 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 #1

Updated by Partha Aji over 2 years ago

  • Bugzilla link set to 2055329
Actions #2

Updated by Partha Aji over 2 years ago

  • Pull request https://github.com/Katello/katello/pull/9955 added
Actions #3

Updated by Chris Roberts over 2 years ago

  • Target version changed from Katello 4.4.0 to Katello 4.5.0
  • Triaged changed from No to Yes
Actions #4

Updated by Chris Roberts over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Partha Aji
  • Target version changed from Katello 4.5.0 to Katello 4.3.2
Actions #5

Updated by Partha Aji over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF