Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2173756 - Importing incremental content not recreating metadata properly
Summary: Importing incremental content not recreating metadata properly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Inter Satellite Sync
Version: 6.12.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.13.0
Assignee: Partha Aji
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-27 21:35 UTC by Joniel Pasqualetto
Modified: 2023-09-18 12:43 UTC (History)
6 users (show)

Fixed In Version: rubygem-katello-4.7.0.19-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:25:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Hotfix RPM for Satellite 6.12.4 (10.34 MB, application/x-rpm)
2023-05-11 21:33 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.5 on RHEL8 (10.52 MB, application/x-rpm)
2023-05-11 21:38 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.5 on RHEL7 (10.57 MB, application/x-rpm)
2023-05-11 21:40 UTC, wclark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36164 0 Normal New Importing incremental content not recreating metadata properly 2023-03-03 22:27:14 UTC
Red Hat Issue Tracker SAT-16259 0 None None None 2023-03-02 15:27:02 UTC
Red Hat Issue Tracker SAT-17603 0 None None None 2023-05-11 08:39:01 UTC
Red Hat Issue Tracker SAT-17604 0 None None None 2023-05-11 08:39:04 UTC
Red Hat Knowledge Base (Solution) 7011291 0 None None None 2023-05-04 19:29:47 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:25:23 UTC

Internal Links: 2227897

Description Joniel Pasqualetto 2023-02-27 21:35:35 UTC
Description of problem:

On Satellite 6.12, importing an incremental export does not update the metadata properly on pulp.

User can see the updated number of packages on the webUI, but clients consuming the repository still see the old count (from before importing the incremental).

Forcing pulp to regenerate the metadata does create it properly and clients can then see the added packages.

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

6.12.2

How reproducible:
I managed to reproduce it using RHEL 8 AppStream repository. Exporting a custom repository worked fine. I'm working to get a complete + incremental of a smaller Red Hat repository, so we can run tests faster.

Steps to Reproduce:
1. Do complete export of a Red hat repository
2. Import complete on disconnected Satellite
3. Run "dnf repolist -v" on a client that consumes the repository
4. Export incremental of the same repository
5. Import incremental
6. On the client "dnf clean all && dnf repolist -v". Same number of packages as on step 3 are seen.


Actual results:
After incremental import, packages are not available for clients.

Expected results:
Added packages should be available for clients.


Additional info:

Comment 3 Partha Aji 2023-03-03 22:27:13 UTC
Connecting redmine issue https://projects.theforeman.org/issues/36164 from this bug

Comment 4 Bryan Kearney 2023-03-04 00:03:27 UTC
Upstream bug assigned to paji

Comment 5 Bryan Kearney 2023-03-04 00:03:30 UTC
Upstream bug assigned to paji

Comment 6 Bryan Kearney 2023-03-07 00:03:21 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36164 has been resolved.

Comment 7 Sam Bible 2023-03-15 19:00:42 UTC
Verified on 6.13 - Snap 14

Steps to Verify:
Easiest to just link to Partha's excellent reproduction steps in this Katello PR
https://github.com/Katello/katello/pull/10477

Expected results:
After importing the incremental CV version and cleaning the repos on the Host, you see the proper number of repositories (in this case, 58 as opposed to 57)

Actual results:
After importing the incremental CV version and cleaning the repos on the Host, the proper number of repositories (in this case, 58 as opposed to 57) were present.

Comment 10 errata-xmlrpc 2023-05-03 13:25:13 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 (Important: Satellite 6.13 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-2023:2097

Comment 12 wclark 2023-05-11 21:33:59 UTC
Created attachment 1964090 [details]
Hotfix RPM for Satellite 6.12.4

A Hotfix RPM for Satellite 6.12.4 is now available.

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of the Satellite 6.12.4 server

2. Download the hotfix RPM from this message's attachment.

3. # dnf install rubygem-katello-4.5.0.33-2.HOTFIXRHBZ2173756.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 13 wclark 2023-05-11 21:38:35 UTC
Created attachment 1964092 [details]
Hotfix RPM for Satellite 6.11.5 on RHEL8

A Hotfix RPM for Satellite 6.11.5 on RHEL8 is now available.

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of the Satellite 6.11.5 server

2. Download the hotfix RPM from this message's attachment.

3. # dnf install ./rubygem-katello-4.3.0.52-2.HOTFIXRHBZ2173756.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 14 wclark 2023-05-11 21:40:37 UTC
Created attachment 1964093 [details]
Hotfix RPM for Satellite 6.11.5 on RHEL7

A Hotfix RPM for Satellite 6.11.5 on RHEL7 is now available.

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of the Satellite 6.11.5 server

2. Download the hotfix RPM from this message's attachment.

3. # yum install ./tfm-rubygem-katello-4.3.0.52-2.HOTFIXRHBZ2173756.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart


Note You need to log in before you can comment on or make changes to this bug.