Bug 1165771

Summary: subscription-manager-plugin-container-* packages do not require 'subscription-manager'
Product: Red Hat Enterprise Linux 7 Reporter: Adrian Likins <alikins>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: alikins, crog, skallesh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 11:48:17 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 Adrian Likins 2014-11-19 16:32:00 UTC
Description of problem:
[subscription-manager (wottop/dbus-standard % u=)]$ rpm -q --requires subscription-manager-plugin-ostree
pygobject3-base
python-iniparse >= 0.4
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
[subscription-manager (wottop/dbus-standard % u=)]$ rpm -q --requires subscription-manager-plugin-container
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


So I can 'yum remove python-rhsm' and those packages get orphaned.

Version-Release number of selected component (if applicable):
subscription-manager-plugin-container-1.13.8-1.git.7.e3b6516.el7.x86_64

Additional info:
Probably need to require at least 'subscription-manager', and likely at least the version with the plugin support, and practically, the equiv version.

Comment 2 Adrian Likins 2015-07-27 13:33:43 UTC
pr at https://github.com/candlepin/subscription-manager/pull/1230

Comment 3 John Sefler 2015-07-28 18:20:00 UTC
(In reply to Adrian Likins from comment #2)
> pr at https://github.com/candlepin/subscription-manager/pull/1230


This pull request appears to add a new Requires to subscription-manager-plugin-container only.  Do we also want the same Requires on subscription-manager-plugin-ostree?

Comment 4 Adrian Likins 2015-07-29 15:46:38 UTC
(In reply to John Sefler from comment #3)
> (In reply to Adrian Likins from comment #2)
> > pr at https://github.com/candlepin/subscription-manager/pull/1230
> 
> 
> This pull request appears to add a new Requires to
> subscription-manager-plugin-container only.  Do we also want the same
> Requires on subscription-manager-plugin-ostree?

Good point, I'll add that too.

Comment 5 Adrian Likins 2015-07-29 15:50:27 UTC
pr updated with the dep for both.

Comment 6 Chris "Ceiu" Rog 2015-07-31 19:29:02 UTC
commit e23e1eda624b7f262825236867f093a58b166a3b
Author: Adrian Likins <alikins>
Date:   Mon Jul 27 09:31:31 2015 -0400

    1165771: make content plugins require subman
    
    Add a Requires to to subscription-manager-plugin-container
    on the same version-release of subscription-manager package.

Comment 8 Shwetha Kallesh 2015-08-06 06:50:58 UTC
Marking verified!!

[root@dhcp35-236 ~]# rpm -q --requires subscription-manager-plugin-ostree
pygobject3-base
python-iniparse >= 0.4
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
subscription-manager = 1.15.9-3.el7     -----------> subscription-manager is 
rpmlib(PayloadIsXz) <= 5.2-1                           required




[root@dhcp35-236 ~]# rpm -q --requires subscription-manager-plugin-container
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
subscription-manager = 1.15.9-3.el7    -----------> subscription-manager is 
rpmlib(PayloadIsXz) <= 5.2-1                           required

[root@dhcp35-236 ~]# 

[root@dhcp35-236 ~]# rpm -e subscription-manager
error: Failed dependencies:
	subscription-manager = 1.15.9-3.el7 is needed by (installed) subscription-manager-gui-1.15.9-3.el7.x86_64
	subscription-manager = 1.15.9-3.el7 is needed by (installed) subscription-manager-migration-1.15.9-3.el7.x86_64
	subscription-manager = 1.15.9-3.el7 is needed by (installed) subscription-manager-plugin-container-1.15.9-3.el7.x86_64
	subscription-manager = 1.15.9-3.el7 is needed by (installed) subscription-manager-plugin-ostree-1.15.9-3.el7.x86_64

Comment 9 errata-xmlrpc 2015-11-19 11:48:17 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://rhn.redhat.com/errata/RHBA-2015-2122.html