Bug 2032602

Summary: Content not accessible after importing
Product: Red Hat Satellite Reporter: Taft Sanders <tasander>
Component: Inter Satellite SyncAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.10.1CC: ahumbe, hyu, jalviso, jsherril, momran, mshimura, pcreech, rmynar, sadas
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2071006 (view as bug list) Environment:
Last Closed: 2022-07-05 14:31:01 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 Taft Sanders 2021-12-14 19:49:11 UTC
Description of problem:
After importing a complete library produced by 'hammer content-export complete library --organization="Default_Organization"' the repodata for the repositories in the content view "Import-Library" is showing 0 packages on all repositories.

Version-Release number of selected component (if applicable):
6.10.1

How reproducible:
Unknown

Steps to Reproduce:
1. Export library using 'hammer content-export complete library --organization="Default_Organization"'
2. Import the content into another Satellite using the hammer command 'hammer content-import library --organization="Default_Organization" --path=’/var/lib/pulp/imports/dump_dir’
3. Register a client to the Satellite with the environment Library/Import-Library, assign a subscription and enable all repositories. The repositories are showing 0 packages

Actual results:
The client sees the repository having 0 packages

Satellite shows the repository having all packages. The same number of packages from the imported Satellite.

Expected results:
Shouldn't the client should see the number of packages as reflected from the Satellite?

Additional info:
The packages are visible on the client after publishing the "Import-Library" content-view on the Satellite using the hammer command 'hammer content-view version republish-repositories --content-view-id ID --version 1.0 --force true'. The packages are also visible on the client in the Library/Default Organization View environment.

Comment 4 Justin Sherrill 2022-02-02 19:12:34 UTC
i've been able to reproduce, and its the same cause as https://bugzilla.redhat.com/show_bug.cgi?id=2043726

Regenerating the metadata for the CVV via 'hammer content-view version  republish-repositories'

Comment 5 Justin Sherrill 2022-02-08 19:53:43 UTC
Moving to POST since https://bugzilla.redhat.com/show_bug.cgi?id=2043726 is also in POST.  Keeping open for verification.

Comment 8 Lai 2022-03-17 01:40:02 UTC
Steps to retest:
1. Export library using 'hammer content-export complete library --organization="Default_Organization"'
2. Import the content into another Satellite using the hammer command 'hammer content-import library --organization="Default_Organization" --path=’/var/lib/pulp/imports/dump_dir’
3. Register a client to the Satellite with the environment Library/Import-Library, assign a subscription and enable all repositories.

Expected:
Repositories should show number of packages.

Actual:
repositories show correct number of packages.

Verified on 7.0 snap 13 with rhel7 and rhel8

Comment 11 errata-xmlrpc 2022-07-05 14:31:01 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