Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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.
Description of problem: repos --list is not updated when a 24 hour pool is replaced by a subscription that is overridden at SKU level after virt-who is started at host Version-Release number of selected component (if applicable): How reproducible: [root@dhcp35-188 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.46-1 subscription management rules: 5.14 subscription-manager: 1.14.1-1.git.84.66aafd7.el6 python-rhsm: 1.14.2-1.git.0.fafb02d.el6 Steps to Reproduce: [root@dhcp35-188 ~]# subscription-manager register --force Username: admin Password: Organization: admin The system has been registered with ID: 2cf87e4f-1d4f-4ca5-8cde-1a5200f900d0 [root@dhcp35-188 ~]# subscription-manager list --avail --match-installed +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 5 Pool ID: 8ac681e44c1323f8014c1324ed49097e Provides Management: No Available: 20 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Virtual Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 4 Pool ID: 8ac681e44c1323f8014c13250b2e0c23 Provides Management: No Available: 10 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Virtual Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 5 Pool ID: 8ac681e44c1323f8014c1324eca10950 Provides Management: No Available: 20 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Physical Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 4 Pool ID: 8ac681e44c1323f8014c13250a6e0c13 Provides Management: No Available: 10 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Physical Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 5 Pool ID: 8ac681e44c1323f8014c1324ef2f09a3 Provides Management: No Available: 20 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Physical Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 4 Pool ID: 8ac681e44c1323f8014c13250e2d0c65 Provides Management: No Available: 10 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Virtual Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 4 Pool ID: 8ac681e44c1323f8014c13250d7c0c55 Provides Management: No Available: 10 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Physical Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 5 Pool ID: 8ac681e44c1323f8014c1324f00909c3 Provides Management: No Available: 20 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Virtual Override the subscription with SKU awesomeos-onesocketib [root@dhcp35-188 ~]# curl --stderr /dev/null --insecure --user admin:admin --request PUT --data '{"attributes":[{"name":"version","value":"1.0"},{"name":"variant","value":"ALL"},{"name":"support_type","value":"Self-Support"},{"name":"sockets","value":"2"},{"name":"arch","value":"ALL"},{"name":"management_enabled","value":"0"},{"name":"type","value":"MKT"},{"name":"support_level","value":"None"},{"name":"warning_period","value":"30"},{"name":"vcpu","value":"4"},{"name":"multi-entitlement","value":"no","name":"content_override_enabled","value":"0"}]}' --header 'accept:application/json' --header 'content-type: application/json' https://10.70.1.100:8443/candlepin/products/awesomeos-onesocketib { "id" : "awesomeos-onesocketib", "name" : "Awesome OS Instance Based one socket", "multiplier" : 1, "attributes" : [ { "name" : "version", "value" : "1.0", "created" : "2015-03-13T12:46:45.737+0000", "updated" : "2015-03-13T12:46:45.737+0000" }, { "name" : "variant", "value" : "ALL", "created" : "2015-03-13T12:46:45.737+0000", "updated" : "2015-03-13T12:46:45.737+0000" }, { "name" : "content_override_enabled", "value" : "0", "created" : "2015-03-13T12:46:45.737+0000", "updated" : "2015-03-13T12:46:45.737+0000" }, { "name" : "support_type", "value" : "Self-Support", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "sockets", "value" : "2", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "arch", "value" : "ALL", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "management_enabled", "value" : "0", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "type", "value" : "MKT", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "support_level", "value" : "None", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "warning_period", "value" : "30", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" }, { "name" : "vcpu", "value" : "4", "created" : "2015-03-13T12:46:45.738+0000", "updated" : "2015-03-13T12:46:45.738+0000" } ], "productContent" : [ ], "dependentProductIds" : [ ], "href" : "/products/awesomeos-onesocketib", "created" : "2015-03-13T12:38:21.959+0000", "updated" : "2015-03-13T12:38:21.959+0000" } Attach a subscription that is not overridden at SKU level [root@dhcp35-188 ~]# subscription-manager attach --pool 8ac681e44c1323f8014c13250b2e0c23 1 local certificate has been deleted. Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) [root@dhcp35-188 ~]# subscription-manager repos --list +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: content-label-empty-gpg Repo Name: content-emptygpg Repo URL: https://cdn.redhat.com/foo/path Enabled: 0 Repo ID: never-enabled-content Repo Name: never-enabled-content Repo URL: https://cdn.redhat.com/foo/path/never Enabled: 0 Repo ID: content-label-no-gpg Repo Name: content-nogpg Repo URL: https://cdn.redhat.com/foo/path Enabled: 0 Repo ID: content-label Repo Name: content Repo URL: https://cdn.redhat.com/foo/path Enabled: 0 [root@dhcp35-188 ~]# rct cat-cert /etc/pki/entitlement/4286275327025678293.pem +-------------------------------------------+ Entitlement Certificate +-------------------------------------------+ Certificate: Path: /etc/pki/entitlement/4286275327025678293.pem Version: 3.2 Serial: 4286275327025678293 Start Date: 2015-03-13 00:00:00+00:00 End Date: 2015-03-14 12:46:05+00:00 Pool ID: 8ac681e44c1323f8014c13250b2e0c23 Subject: CN: 8ac681e44c1323f8014c132ce4b82279 Issuer: C: US CN: 10.70.1.100 L: Raleigh Product: ID: 32060 Name: Awesome OS Instance Server Bits Version: 6.1 Arch: ALL Tags: Brand Type: OS Brand Name: Branded Awesome OS Instance Based (Standard Support) Order: Name: Awesome OS Instance Based (Standard Support) Number: order-8675309 SKU: awesomeos-instancebased Contract: 4 Account: 12331131231 Service Level: Standard Service Type: L1-L3 Quantity: 10 Quantity Used: 1 Socket Limit: 2 RAM Limit: Core Limit: Virt Only: True Stacking ID: 15 Warning Period: 0 Provides Management: False Content: Type: yum Name: content Label: content-label Vendor: test-vendor URL: /foo/path GPG: /foo/path/gpg/ Enabled: False Expires: 0 Required Tags: Arches: ALL Content: Type: yum Name: content-emptygpg Label: content-label-empty-gpg Vendor: test-vendor URL: /foo/path GPG: Enabled: False Expires: 0 Required Tags: Arches: ALL Content: Type: yum Name: content-nogpg Label: content-label-no-gpg Vendor: test-vendor URL: /foo/path GPG: Enabled: False Expires: 0 Required Tags: Arches: ALL Content: Type: yum Name: never-enabled-content Label: never-enabled-content Vendor: test-vendor URL: /foo/path/never GPG: /foo/path/never/gpg Enabled: False -----> observe enabled =false Expires: 600 Required Tags: Arches: ALL Content: Type: yum Name: tagged-content Label: tagged-content Vendor: test-vendor URL: /foo/path/always GPG: /foo/path/always/gpg Enabled: False Expires: Required Tags: TAG1, TAG2 Arches: ALL Now at host restart the virt-who service [root@dhcp35-236 ~]# subscription-manager register --org admin Username: admin Password: The system has been registered with ID: 2843ffb7-bec1-4439-80e6-e1623613d337 [root@dhcp35-236 ~]# service virt-who start Starting virt-who: [ OK ] [root@dhcp35-188 ~]# subscription-manager refresh 1 local certificate has been deleted. All local data refreshed [root@dhcp35-188 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib -------->observe that 24 hour subscription is replaced by subscription overridden at Contract: 4 SKU level Account: 12331131231 Serial: 4050211272666770283 Pool ID: 8ac681e44c1323f8014c132dd0a222a2 Provides Management: No Active: True Quantity Used: 1 Service Level: Standard Service Type: L1-L3 Status Details: Subscription is current Subscription Type: Instance Based Starts: 03/13/2015 Ends: 03/12/2016 System Type: Virtual [root@dhcp35-188 ~]# rct cat-cert /etc/pki/entitlement/4050211272666770283.pem +-------------------------------------------+ Entitlement Certificate +-------------------------------------------+ Certificate: Path: /etc/pki/entitlement/4050211272666770283.pem Version: 3.2 Serial: 4050211272666770283 Start Date: 2015-03-13 00:00:00+00:00 End Date: 2016-03-12 00:00:00+00:00 Pool ID: 8ac681e44c1323f8014c132dd0a222a2 Subject: CN: 8ac681e44c1323f8014c132dd24822b7 Issuer: C: US CN: 10.70.1.100 L: Raleigh Product: ID: 32060 Name: Awesome OS Instance Server Bits Version: 6.1 Arch: ALL Tags: Brand Type: Brand Name: Order: Name: Awesome OS Instance Based one socket Number: order-8675309 SKU: awesomeos-onesocketib Contract: 4 Account: 12331131231 Service Level: Standard Service Type: L1-L3 Quantity: 1 Quantity Used: 1 Socket Limit: 1 RAM Limit: Core Limit: Virt Only: True Stacking ID: 15 Warning Period: 0 Provides Management: False Content: Type: yum Name: content Label: content-label Vendor: test-vendor URL: /foo/path GPG: /foo/path/gpg/ Enabled: False Expires: 0 Required Tags: Arches: ALL Content: Type: yum Name: content-emptygpg Label: content-label-empty-gpg Vendor: test-vendor URL: /foo/path GPG: Enabled: False Expires: 0 Required Tags: Arches: ALL Content: Type: yum Name: content-nogpg Label: content-label-no-gpg Vendor: test-vendor URL: /foo/path GPG: Enabled: False Expires: 0 Required Tags: Arches: ALL Content: Type: yum Name: never-enabled-content Label: never-enabled-content Vendor: test-vendor URL: /foo/path/never GPG: /foo/path/never/gpg Enabled: True ----------------------> observe that value is Enabled= true here Expires: 600 Required Tags: Arches: ALL Content: Type: yum Name: tagged-content Label: tagged-content Vendor: test-vendor URL: /foo/path/always GPG: /foo/path/always/gpg Enabled: False Expires: Required Tags: TAG1, TAG2 Arches: ALL [root@dhcp35-188 ~]# subscription-manager repos --list +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: content-label-empty-gpg Repo Name: content-emptygpg Repo URL: https://cdn.redhat.com/foo/path Enabled: 0 Repo ID: never-enabled-content Repo Name: never-enabled-content Repo URL: https://cdn.redhat.com/foo/path/never Enabled: 0 ------------------------> repos --list still shows Enbled =false Repo ID: content-label-no-gpg Repo Name: content-nogpg Repo URL: https://cdn.redhat.com/foo/path Enabled: 0 Repo ID: content-label Repo Name: content Repo URL: https://cdn.redhat.com/foo/path Enabled: 0 [root@dhcp35-188 ~]# Actual results: Expected results: Additional info: