Bug 737888 - Add-on content can be accessed with base server product not subscribed.
Summary: Add-on content can be accessed with base server product not subscribed.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel62
TreeView+ depends on / blocked
 
Reported: 2011-09-13 10:54 UTC by yu zheng
Modified: 2015-05-14 15:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-22 17:53:46 UTC


Attachments (Terms of Use)

Description yu zheng 2011-09-13 10:54:39 UTC
Description of problem:
After subscribing an Add-on product(e.g. Red Hat Enterprise Linux Scalable File System(for RHEL Server)), the packages of the Add-on could be downloaded and installed, although there isn't any base server product subscribed.

Version-Release number of selected component (if applicable):
subscription-manager-0.96.9-1.el6.x86_64
python-rhsm-0.96.11-1.el6
candlepin (stage env)

How reproducible:
Always

setup:
edit /etc/rhsm/rhsm.conf
hostname = subscription.rhn.stage.redhat.com


Steps to Reproduce:
1. # ls /etc/pki/product/
69.pem
2. register to stage using stage_test_38/redhat 
3. subscribe to Scalable File System  
[root@localhost pki]# subscription-manager subscribe --pool=8a99f981308acf4201308ebb543b6935
Successfully subscribed the system to Pool 8a99f981308acf4201308ebb543b6935
4. list installed products
[root@localhost pki]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+

ProductName:            Red Hat Enterprise Linux Scalable File System (for RHEL Server)
Status:                 Not Installed
Expires:                06/14/2012
SerialNumber:           9086942616217777698
ContractNumber:         2394389
AccountNumber:          1465533


ProductName:            Red Hat Enterprise Linux 6 Server
Status:                 Not Subscribed
Expires:
SerialNumber:
ContractNumber:
AccountNumber:
5.list enabled repos
[root@localhost pki]# yum repolist
repo id                             repo name                                               status
rhel-scalefs-for-rhel-6-server-rpms Red Hat Enterprise Linux Scalable File System (for RHEL 7
repolist: 7
6.list available pkgs under the repo
[root@localhost pki]# repoquery -a --repoid=rhel-scalefs-for-rhel-6-server-rpms
xfsdump-0:3.0.4-2.el6.x86_64
xfsprogs-0:3.1.1-4.el6.i686
xfsprogs-0:3.1.1-4.el6.x86_64
xfsprogs-devel-0:3.1.1-4.el6.i686
xfsprogs-devel-0:3.1.1-4.el6.x86_64
xfsprogs-qa-devel-0:3.1.1-4.el6.i686
xfsprogs-qa-devel-0:3.1.1-4.el6.x86_64
7.install a pkg
[root@localhost pki]# yum install xfsdump-0:3.0.4-2.el6.x86_64
....
Complete!

Actual results:
The package of Scalable File System can be downloaded and installed successfully.

Expected results:
Consumer shouldn't have access to the content of Scalable File System add-on with no base server product subscribed.

Comment 5 Bryan Kearney 2011-09-22 17:53:46 UTC
Closing this BUG as it works as designed.


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