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 1583209 - [RFE] [Sat6] Text-Only errata are not included in hammer export causing errata count mismatch between connected and disconnected Satellite
Summary: [RFE] [Sat6] Text-Only errata are not included in hammer export causing errat...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.2.14
Hardware: All
OS: All
high
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-28 13:13 UTC by Jan Jansky
Modified: 2023-10-06 17:48 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:08:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
errata count on connected satellite (58.07 KB, image/png)
2021-07-16 14:28 UTC, Lai
no flags Details
errata count on disconnected satellite (60.52 KB, image/png)
2021-07-16 14:29 UTC, Lai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3776901 0 None None None 2018-12-27 10:18:29 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:08:40 UTC

Description Jan Jansky 2018-05-28 13:13:35 UTC
Description of problem: When customer have connected Satellite he synchronize for example RHEL 7Server repository, create export ( hammer repository export --organization-id 3 --async --id 12) and on second disconnected satellite do import  Set Red Hat CDN URL: disconnected_sat/pub/export/<exported_repos_name> and synchronze, it will exclude all erratas which are only Text-Based (no package)


How reproducible:
Reproduced in lab.

Steps to Reproduce:
in next comment

Actual results:
errata count is different number on connect and disconnected Satellites


Expected results:
Same count of errata on both Satellites, even if Errata is Text-only (no package)

Comment 2 Jan Jansky 2018-05-28 13:14:59 UTC
Missing erratas:

RHBA-2015:2444
RHBA-2016:0627
RHBA-2017:1258
RHBA-2017:1536
RHBA-2017:2283

All just text based without any package

Comment 3 Ashish Humbe 2018-06-19 17:04:07 UTC
Changing the component to Pulp after confirmation with Justin. 

A similar issue is seen for "Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64" repository. On a master satellite when we sync this repo from CDN package count is shown as 730 and when using ISS we sync it on slave satellite the package count is 334 only. 

On the master satellite server, in the satellite webui the package count is shown as 730 whereas in the repodata - updateinfo.xml (in /var/lib/pulp/published/yum/https/repos/RedHat/Library/content/dist/rhel/server/7/7Server/x86_64/extras/os/repodata/ path) file for Extras repo we see the errata count around 330 only. 

So it seems that after reposync when pulp publishes the repo in Library environment the text only errata are getting excluded. Due to this when we export the repository using hammer command less number of errata are present in it. 

The issue needs to be fixed in the pulp repo publish task which reduces the number of errata in the repodata. 

Additional details about text-only errata in Extras repository: In the extras repo we are publishing text only errata's 

- when we release new container image
- when we announce packages getting deprecated in that repo.

These errata does not have any RPM packages associated with it.

Comment 7 pulp-infra@redhat.com 2018-06-22 00:18:13 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 8 pulp-infra@redhat.com 2018-06-22 00:18:17 UTC
The Pulp upstream bug priority is at Low. Updating the external tracker on this bug.

Comment 19 Tanya Tereshchenko 2020-01-06 09:52:56 UTC
Unlinking the redmine issue because it's pulp2 one which will be closed as WONTFIX.
No new upstream issue is associated, Pulp 3 supports text-only errata natively.

Comment 21 Robin Chan 2020-01-06 16:15:57 UTC
I fixed the QA contact and pinged @mpusater regarding Aha card. Seems like they would prefer to have one, so I'll let them chime in.

Comment 28 Lai 2021-07-16 14:26:41 UTC
The functionality of import/export is completely different now due to changes in 6.10.

Steps to retest:
1. Get 2 sat 6.10 up.  One for export and one for disconnected import.

#On machine to Export

2. Import manifest
3. Set RH download policy to "immediate" by going to Administer -> Setting -> Content Tab -> "Default Red Hat Repository download policy" -> Set policy to "immediate"
4. Enable the RHEL7 and RHEL7 extra repos
5. Sync the repos
6. Create a cv, add all the repos enabled in step 4 and publish cv
7. Run the export command: hammer content-export complete version --id <cv-id> --organization-id <org-id>
8. Verify that the export files are created in "/var/lib/pulp/exports/<organization name>/<cv name><export time stamp>
 
#Import Disconnected Satellite Portion

9. On the satellite to import the cv, import manifest that would have all the repos created in step 4
10. Set "Default Red Hat Repository download policy" to "immediate" just like step 3.
11. Set "Disconnected Mode" to yes by going to Administer -> Setting -> Content Tab -> "Disconnected Mode" -> Set to "Yes"
11. SCP the files from the exported directory in step 8 to /var/lib/pulp/imports in the satellite in which you want to import (scp -r <source> <destination>)
12. Verify that the files are present in /var/lib/pulp/imports/<dir with imports>
13. Provide write permission to the dir imported: chown -R pulp:pulp /var/lib/pulp/imports/<dir with import>
14. Run the import command: hammer conent-import version --organization-id 1 --path /var/lib/pulp/imports/<dir with imports>
15. Verify that on the UI that the cv is imported with correct number of repos and erratas

Expected:
15) The number of repos and erratas should match those from the exported machine.

Actual:
15) The number of repos and erratas do match those from the exported machine.

Verified on 6.10_09

Comment 29 Lai 2021-07-16 14:28:15 UTC
Created attachment 1802439 [details]
errata count on connected satellite

Comment 30 Lai 2021-07-16 14:29:26 UTC
Created attachment 1802440 [details]
errata count on disconnected satellite

Comment 34 errata-xmlrpc 2021-11-16 14:08:26 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.10 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-2021:4702

Comment 35 Red Hat Bugzilla 2023-09-15 00:09:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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