Bug 1726829

Summary: Missing rpms in erratum pkglist when an erratum appears in multiple enabled repos
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Kersom <koliveir>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: aagrawal, andrew.schofield, arahaman, bmbouter, daviddavis, dhjoshi, dkliban, egolov, ggainey, ipanova, jalviso, mmccune, pcreech, pdwyer, rchan, ttereshc, vhernand, will_darton
Target Milestone: 6.5.2Keywords: Patch, PrioBumpField, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulp-rpm-2.18.1.6-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1713274 Environment:
Last Closed: 2019-08-06 14:37:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pulp-rpm-plugins-2.18.1.5-3.HOTFIXRHBZ1726829.el7sat.noarch.rpm none

Comment 3 pulp-infra@redhat.com 2019-07-04 07:32:32 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2019-07-04 07:32:33 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2019-07-11 08:02:09 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 7 Mike McCune 2019-07-16 17:43:46 UTC
*** 6.5.1 Hotfix Available ***

We are making a hotfix available for this bug. This fix only for Satellite Servers and not Capsules. Instructions for use:

1) Download pulp-rpm-plugins-2.18.1.5-2.HOTFIXRHBZ1726829.el7sat.noarch.rpm from this Bugzilla to your Satellite 6.5.1 server 

2) foreman-maintain service stop

3) Upgrade hotfix RPM

# rpm -Uvh pulp-rpm-plugins-2.18.1.5-2.HOTFIXRHBZ1726829.el7sat.noarch.rpm

4) foreman-maintain service start

5) Regenerate applicability for all Library repos


# foreman-rake console

paste in the following line:

Katello::Repository.where(library_instance_id: nil).each { |repo| ForemanTasks.async_task(Actions::Pulp::Repository::RegenerateApplicability, pulp_id: repo.pulp_id) }
exit

6) Wait for all tasks generated from above command to complete. This can be monitored via "Monitor -> Tasks -> Running filter"

7) Re-import applicability data into UI:

# foreman-rake katello:import_applicability

8) Resume operations.

Comment 9 Mike McCune 2019-07-18 20:35:04 UTC
Created attachment 1591868 [details]
pulp-rpm-plugins-2.18.1.5-3.HOTFIXRHBZ1726829.el7sat.noarch.rpm

Comment 10 Mike McCune 2019-07-18 20:36:29 UTC
*** Updated hotfix added ***

please use pulp-rpm-plugins-2.18.1.5-3.HOTFIXRHBZ1726829.el7sat.noarch.rpm as attached.

The -2 version did not correctly build and was missing the patch containing the fix. Apologies for the error.

Comment 12 Kersom 2019-07-19 15:17:23 UTC
Followed the steps to reproduce:
1. Ensure you have a RHEL 7 client with older ruby version. Lets say Client 'A'.

Ruby packages on Client.

[root@satclientruby ~]# rpm -qa | grep ruby | sort
ruby-2.0.0.598-25.el7_1.x86_64
rubygem-bigdecimal-1.2.0-25.el7_1.x86_64
rubygem-io-console-0.4.2-25.el7_1.x86_64
rubygem-json-1.7.7-25.el7_1.x86_64
rubygem-psych-2.0.0-25.el7_1.x86_64
rubygem-rdoc-4.0.0-25.el7_1.noarch
rubygems-2.0.14-25.el7_1.noarch
ruby-irb-2.0.0.598-25.el7_1.noarch
ruby-libs-2.0.0.598-25.el7_1.x86_64
[root@satclientruby ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.6 (Maipo)

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'
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.

Results:

Errata RHSA-2019:1235 is applicable to the Client A. See attachment 1591994 [details].

Comment 14 errata-xmlrpc 2019-08-06 14:37:35 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, 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/RHBA-2019:2363