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.

Bug 1579952

Summary: katello-agent-3.1.0-2.el7sat.noarch should have dependency on gofer >= gofer-2.7.7-3.el7sat.noarch
Product: Red Hat Satellite Reporter: Brian Smith <briasmit>
Component: katello-agentAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Ales Dujicek <adujicek>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: adujicek, ehelms
Target Milestone: 6.4.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-host-tools-3.2.1-5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 17:17:28 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 Brian Smith 2018-05-18 19:53:42 UTC
Description of problem:
katello-agent-3.1.0-2.el7sat.noarch (Satellite 6.3 tools) combined with gofer-2.7.7-2.el7sat.noarch (Satellite 6.2 tools) can cause issues when applying patches from Satellite.   

However, the katello-agent-3.1.0-2.el7sat.noarch RPM just has a dependency on gofer >= 2.7.6.  

Version-Release number of selected component (if applicable):
katello-agent-3.1.0-2.el7sat.noarch

How reproducible:
Consistently

Steps to Reproduce:
To show that katello-agent-3.1.0-2.el7sat.noarch (Satellite 6.3 tools) combined with gofer-2.7.7-2.el7sat.noarch (Satellite 6.2 tools) can cause issues:

*Built 2 VM's from RHEL 7.4 DVD ISO (TEST1, TEST2)

*Registered both with Satellite 6.3.1 (repositories: rhel-7-server-rpms, rhel-7-server-satellite-tools-6.3-rpms)

*Installed katello-agent-3.1.0-2.el7sat.noarch on both (which installed gofer-2.7.7-3.el7sat.noarch as dependency)

*Downgraded gofer on TEST2 only (rpm -Uvh --oldpackage gofer-2.7.7-2.el7sat.noarch.rpm; systemctl restart goferd)

*Ran "katello-package-upload" on both

*From Satellite: Hosts->Content Hosts->select TEST1, TEST2->Section Action->Manage Errata->Select All (179 packages)->Install Selected->via Katello Agent

*Wait for updates to complete on servers

*TEST1: yum history: 3 | System <unset>           | 2018-05-18 12:21 | I, O, U        |  195 EE

*TEST2: yum history: 3 | System <unset>           | 2018-05-18 12:21 | I, O, U        |  196 *<

*TEST2: yum history info 3:  shows Aborted, and warning: %postun(gofer-2.7.7-2.el7sat.noarch) scriptlet failed, signal 15

*TEST2: yum history: shows 184 duplicate packages (i.e. "sudo-1.8.19p2-13.el7.x86_64 is a duplicate with sudo-1.8.19p2-10.el7.x86_64")

*Reboot both TEST1 and TEST2

*TEST1 boots with no issues

*TEST2 boots to "kernel panic - not syncing VFS: Unable to mount root fs on unknown-block(0,0)


Actual results:
Server with katello-agent-3.1.0-2.el7sat.noarch (Satellite 6.3 tools) combined with gofer-2.7.7-2.el7sat.noarch (Satellite 6.2 tools) fails to boot after RHEL 7.4 to RHEL 7.5 upgrade.

Expected results:
If katello-agent-3.1.0-2.el7sat.noarch needs gofer-2.7.7-3.el7sat.noarch to work properly, it should have a dependency on that version.   

Additional info:
The Satellite 6.3 upgrade documentation (https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/pdf/upgrading_and_updating_red_hat_satellite/Red_Hat_Satellite-6.3-Upgrading_and_Updating_Red_Hat_Satellite-en-US.pdf) says to upgrade the Satellite agent by running: 

yum upgrade katello-agent katello-host-tools katello-host-toolsfact-plugin
pulp-rpm-handlers qpid-proton-c

None of these packages depend on gofer-2.7.7-3.el7sat.noarch, so it isn't updated.   This can create the situation above under "Steps to reproduce" were the katello-agent is updated, but gofer is not, and then the server is later patched from RHEL 7.4 to RHEL 7.5 which will result in the server not booting.

Comment 4 errata-xmlrpc 2018-10-16 17:17:28 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-2018:2929