Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1403029 - Updating katello-agent only does not update dependencies
Updating katello-agent only does not update dependencies
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: katello-agent (Show other bugs)
6.2.0
Unspecified Unspecified
high Severity medium (vote)
: GA
: Unused
Assigned To: satellite6-bugs
Peter Ondrejka
: PrioBumpGSS, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-08 17:55 EST by Christian Marineau
Modified: 2018-02-21 07:57 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Updating katello-agent did not update dependencies. This is now fixed.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-21 07:57:01 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 18012 None None None 2017-01-10 10:36 EST
Red Hat Product Errata RHBA-2018:0338 normal SHIPPED_LIVE Red Hat Satellite 6.3 Tools 2018-02-21 14:30:02 EST

  None (edit)
Description Christian Marineau 2016-12-08 17:55:52 EST
Description of problem:

With the latest version of katello-agent (katello-agent-2.5.0-5) the required version of gofer is only >= 2.5

This could lead in some situation where the katello-agent is up to date, but not the gofer packages.

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

How reproducible:
100%

Steps to Reproduce:
1. Have a system with the following the following packages
By example:
  - python-gofer-2.6.8-1
  - gofer-2.6.8-1
  - python-gofer-proton-2.6.8-1
  - katello-agent-2.2.6-1

2. Update katello-agent
  # yum update katello-agent

3. katello-agent will get update to latest => katello-agent-2.5.0-5
   But gofer package and its dependencies will not be updated. 

Actual results:
Some situation can occurred where katello-agent is at latest version, but the gofer packages are older.

This can most likely happen on systems registered on a Satellite that's been migrated to 6.1.X to 6.2.X. After publishing the new Satellite Tools for 6.2, If customer only run "yum update katello" on the client, gofer will not be updated if it's higher than version 2.5. 

Expected results:
Might adjust dependencies in the next version of katello-agent to ensure gofer is updated as well.

Additional info:
By example, the situation could impact the Errata management from Satellite as the Errata for bug 1323726 is not installed.
Comment 4 Craig Donnelly 2017-01-11 01:30:46 EST
I think its important to note this is not limited to gofer as a dependency, obviously.

This applies to all dependencies that katello-agent has from the Satellite-Tools repository. (None of them are true deps based on version, one for existing.)

We probably need to start building these SPECS with versions in mind for each errata.
Comment 5 Christian Marineau 2017-01-11 09:11:42 EST
(In reply to Craig Donnelly from comment #4)
> I think its important to note this is not limited to gofer as a dependency,
> obviously.
> 
> This applies to all dependencies that katello-agent has from the
> Satellite-Tools repository. (None of them are true deps based on version,
> one for existing.)
> 
> We probably need to start building these SPECS with versions in mind for
> each errata.

Thanks this is an very important point that you are bringing.

As a workaround I often do the following:
# yum --disablerepo="*" --enablerepo="rhel-*-server-satellite-tools-6.2-rpms" update
Comment 6 pm-sat@redhat.com 2017-01-19 10:20:04 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18012 has been resolved.
Comment 7 Craig Donnelly 2017-05-25 14:20:55 EDT
Moving this off of post since the currently attached fix does not address the entire dependency stack.

We need to ensure that when we build a new version of katello-agent for clients that the SPEC included the also latest versions of the defines dependencies:

Requires: gofer >= 2.7.6
Requires: python-gofer-proton >= 2.5
Requires: python-pulp-agent-lib >= 2.6
Requires: pulp-rpm-handlers >= 2.6

These should be updated to what is shipping in satellite-tools with the latest available version to enforce that customers get full updates.

Is there any reason this isn't an acceptable answer?
Comment 8 pm-sat@redhat.com 2017-05-25 16:02:34 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18012 has been resolved.
Comment 13 errata-xmlrpc 2018-02-21 07:57:01 EST
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:0338

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