Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Pulp will returns wrong 'pkglist' if an erratum exists in multiple repositories and user syncs multiple of these repositories
For example:
Erratum 'RHSA-2019:1235' exists in both 'rhel-7-server-rpms' repo and 'rhel-7-server-optional-debug-rpms' repo with the following 'pkglist' respectively
rhel-7-server-rpms:
"ruby-libs-2.0.0.648-35.el7_6.x86_64.rpm",
"ruby-libs-2.0.0.648-35.el7_6.i686.rpm",
"ruby-2.0.0.648-35.el7_6.x86_64.rpm",
"rubygem-bigdecimal-1.2.0-35.el7_6.x86_64.rpm",
"rubygem-psych-2.0.0-35.el7_6.x86_64.rpm",
"rubygem-rdoc-4.0.0-35.el7_6.noarch.rpm",
"ruby-irb-2.0.0.648-35.el7_6.noarch.rpm",
"rubygem-io-console-0.4.2-35.el7_6.x86_64.rpm",
"rubygems-2.0.14.1-35.el7_6.noarch.rpm",
"rubygem-json-1.7.7-35.el7_6.x86_64.rpm"
rhel-7-server-optional-debug-rpms:
"ruby-debuginfo-2.0.0.648-35.el7_6.x86_64.rpm",
After syncing these 2 repos to the Satellite, Pulp will only list the 'ruby-debuginfo rpm' in the erratum 'pkglist'. Pulp will calculate the wrong applicability for the consumer because the erratum is listing only 1 rpm.
Test in "foreman-rake console":
# Before enabling debug repo, the erratum shows 10 packages:
pp Katello::pulp_server.resources.repository.unit_search("046aa6b4-6369-4ef7-a3f7-3959250bd86f", {:type_ids => ['erratum'], filters: {unit: {"errata_id": "RHSA-2019:1235"}}})[0]['metadata']['pkglist'][0]['packages'].size
10
# After enabling and sync debug repo. the erratum shows only 1 package.
pp Katello::pulp_server.resources.repository.unit_search("046aa6b4-6369-4ef7-a3f7-3959250bd86f", {:type_ids => ['erratum'], filters: {unit: {"errata_id": "RHSA-2019:1235"}}})[0]['metadata']['pkglist'][0]['packages'].size
1
pp Katello::pulp_server.resources.repository.unit_search("046aa6b4-6369-4ef7-a3f7-3959250bd86f", {:type_ids => ['erratum'], filters: {unit: {"errata_id": "RHSA-2019:1235"}}})[0]['metadata']['pkglist'][0]['packages'][0]['filename']
"ruby-debuginfo-2.0.0.648-35.el7_6.x86_64.rpm"
exit
Steps to Reproduce:
1. Ensure you have a RHEL 7 client with older ruby version. Lets say Client 'A'.
2. Enable and sync 'rhel-7-server-rpms' repo
3. Go to Web UI -> Hosts -> Content Hosts -> Client 'A' -> Errata tab -> Filter "id = RHSA-2019:1235" should show this erratum is applicable/installable.
4. Enable and sync 'rhel-7-server-optional-debug-rpms' repo
5. Now need to do something so that we can FORCE recalculate the applicability for Client 'A'
On client 'A' do:
subscription-manager repos --enable="rhel-7-server-optional-debug-rpms"
katello-enabled-repos-upload -f
6. Wait for the regenerate applicability task to finish
7. Go to Web UI -> Hosts -> Content Hosts -> Client 'A' -> Errata tab -> Filter "id = RHSA-2019:1235" shows empty result.
Actual results:
Errata RHSA-2019:1235 is not applicable to Client A
Expected results:
Errata RHSA-2019:1235 is applicable to the Client A
Comment 5pulp-infra@redhat.com
2019-05-28 18:31:31 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
Comment 6pulp-infra@redhat.com
2019-05-28 18:31:32 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 7pulp-infra@redhat.com
2019-06-04 19:01:56 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
Comment 8pulp-infra@redhat.com
2019-06-11 16:01:53 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Comment 9pulp-infra@redhat.com
2019-06-17 13:01:49 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
Comment 10pulp-infra@redhat.com
2019-06-17 13:31:35 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
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, 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-2019:3172
Description of problem: Pulp will returns wrong 'pkglist' if an erratum exists in multiple repositories and user syncs multiple of these repositories For example: Erratum 'RHSA-2019:1235' exists in both 'rhel-7-server-rpms' repo and 'rhel-7-server-optional-debug-rpms' repo with the following 'pkglist' respectively rhel-7-server-rpms: "ruby-libs-2.0.0.648-35.el7_6.x86_64.rpm", "ruby-libs-2.0.0.648-35.el7_6.i686.rpm", "ruby-2.0.0.648-35.el7_6.x86_64.rpm", "rubygem-bigdecimal-1.2.0-35.el7_6.x86_64.rpm", "rubygem-psych-2.0.0-35.el7_6.x86_64.rpm", "rubygem-rdoc-4.0.0-35.el7_6.noarch.rpm", "ruby-irb-2.0.0.648-35.el7_6.noarch.rpm", "rubygem-io-console-0.4.2-35.el7_6.x86_64.rpm", "rubygems-2.0.14.1-35.el7_6.noarch.rpm", "rubygem-json-1.7.7-35.el7_6.x86_64.rpm" rhel-7-server-optional-debug-rpms: "ruby-debuginfo-2.0.0.648-35.el7_6.x86_64.rpm", After syncing these 2 repos to the Satellite, Pulp will only list the 'ruby-debuginfo rpm' in the erratum 'pkglist'. Pulp will calculate the wrong applicability for the consumer because the erratum is listing only 1 rpm. Test in "foreman-rake console": # Before enabling debug repo, the erratum shows 10 packages: pp Katello::pulp_server.resources.repository.unit_search("046aa6b4-6369-4ef7-a3f7-3959250bd86f", {:type_ids => ['erratum'], filters: {unit: {"errata_id": "RHSA-2019:1235"}}})[0]['metadata']['pkglist'][0]['packages'].size 10 # After enabling and sync debug repo. the erratum shows only 1 package. pp Katello::pulp_server.resources.repository.unit_search("046aa6b4-6369-4ef7-a3f7-3959250bd86f", {:type_ids => ['erratum'], filters: {unit: {"errata_id": "RHSA-2019:1235"}}})[0]['metadata']['pkglist'][0]['packages'].size 1 pp Katello::pulp_server.resources.repository.unit_search("046aa6b4-6369-4ef7-a3f7-3959250bd86f", {:type_ids => ['erratum'], filters: {unit: {"errata_id": "RHSA-2019:1235"}}})[0]['metadata']['pkglist'][0]['packages'][0]['filename'] "ruby-debuginfo-2.0.0.648-35.el7_6.x86_64.rpm" exit Steps to Reproduce: 1. Ensure you have a RHEL 7 client with older ruby version. Lets say Client 'A'. 2. Enable and sync 'rhel-7-server-rpms' repo 3. Go to Web UI -> Hosts -> Content Hosts -> Client 'A' -> Errata tab -> Filter "id = RHSA-2019:1235" should show this erratum is applicable/installable. 4. Enable and sync 'rhel-7-server-optional-debug-rpms' repo 5. Now need to do something so that we can FORCE recalculate the applicability for Client 'A' On client 'A' do: subscription-manager repos --enable="rhel-7-server-optional-debug-rpms" katello-enabled-repos-upload -f 6. Wait for the regenerate applicability task to finish 7. Go to Web UI -> Hosts -> Content Hosts -> Client 'A' -> Errata tab -> Filter "id = RHSA-2019:1235" shows empty result. Actual results: Errata RHSA-2019:1235 is not applicable to Client A Expected results: Errata RHSA-2019:1235 is applicable to the Client A