Bug 1004893
| Summary: | subscription-manager list --installed status is wrong following a newly installed product cert | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Carter Kozak <ckozak> |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.5 | CC: | bkearney, ckozak, jesusr |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
Consequence:
subscription-manager list --installed status is wrong following a newly installed product cert
Fix:
update products before showing compliance
Result:
Correct status is shown to the user.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-21 21:28:37 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 862910 | ||
commit 001d371839b7325fed41ba5c0b4937393252982d
Author: ckozak <ckozak>
Date: Thu Sep 5 13:09:03 2013 -0400
1004893: update prods before compliance
Verifying Version...
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.9.7-1.el6.x86_64
I believe the candlepin version in stage is currently candlepin-0.8.28-1
[root@jsefler-6 ~]# subscription-manager register --username=stage_test_2 --serverurl=subscription.rhn.stage.redhat.com:443/subscription
Password:
The system has been registered with ID: e127e67d-a2e3-433b-a91f-e417dff46782
[root@jsefler-6 ~]# subscription-manager list --avail | grep High-Availability -A9
Subscription Name: High-Availability (8 sockets)
SKU: RH1149049
Pool ID: 8a99f9833c01cc09013c025321d00130
Available: 96
Suggested: 1
Service Level: Layered
Service Type: L1-L3
Multi-Entitlement: No
Ends: 01/03/2014
System Type: Physical
--
Subscription Name: High-Availability (8 sockets)
SKU: RH1149049
Pool ID: 8a99f9833c01cc09013c025321df013f
Available: Unlimited
Suggested: 1
Service Level: Layered
Service Type: L1-L3
Multi-Entitlement: No
Ends: 01/03/2014
System Type: Virtual
--
Subscription Name: High-Availability (8 sockets)
SKU: RH1149049
Pool ID: 8a99f9843c01ccba013c037a0fa0015a
Available: 98
Suggested: 1
Service Level: Layered
Service Type: L1-L3
Multi-Entitlement: No
Ends: 12/31/2013
System Type: Physical
--
Subscription Name: High-Availability (8 sockets)
SKU: RH1149049
Pool ID: 8a99f9843c01ccba013c037a0fd40169
Available: 98
Suggested: 1
Service Level: Layered
Service Type: L1-L3
Multi-Entitlement: No
Ends: 12/31/2013
System Type: Virtual
[root@jsefler-6 ~]# subscription-manager attach --pool 8a99f9833c01cc09013c025321d00130
Successfully attached a subscription for: High-Availability (8 sockets)
[root@jsefler-6 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.5 Beta
Arch: x86_64
Status: Not Subscribed
Status Details: Not covered by a valid subscription.
Starts:
Ends:
[root@jsefler-6 ~]# rpm -q ccs
package ccs is not installed
[root@jsefler-6 ~]# yum install -y -q ccs
This system is receiving updates from Red Hat Subscription Management.
[root@jsefler-6 ~]# rpm -q ccs
ccs-0.16.2-63.el6.x86_64
[root@jsefler-6 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.5 Beta
Arch: x86_64
Status: Not Subscribed
Status Details: Not covered by a valid subscription.
Starts:
Ends:
Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server)
Product ID: 83
Version: 6.4
Arch: x86_64
Status: Subscribed <====== VERIFIED
Status Details:
Starts: 01/03/2013
Ends: 01/03/2014
[root@jsefler-6 ~]#
VERIFIED: Upon installing the first package from the new repo, it's corresponding product cert is installed and its status is correctly displayed as "Subscribed" upon the first call to list --installed.
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. http://rhn.redhat.com/errata/RHBA-2013-1659.html |
Description of problem: As shown in the scenario below, after attaching a subscription that provides a new product and yum installing a package from the granted repo, a new product cert will be installed. Then calling list --installed will show it, but the Status is wrong. However a second call to list --installed will fix it. See example below. Version-Release number of selected component (if applicable): [root@jsefler-6 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: Unknown subscription-manager: 1.9.5-1.el6 python-rhsm: 1.9.4-1.el6 I believe the candlepin version in stage is currently candlepin-0.8.25-1 How reproducible: Steps to Reproduce: [root@jsefler-6 ~]# subscription-manager register --username=stage_test_2 --serverurl=subscription.rhn.stage.redhat.com:443/subscription Password: The system has been registered with ID: 0933f639-c0b5-4d20-92f1-aaeb71a390b0 [root@jsefler-6 ~]# subscription-manager list --avail | grep High-Availability -A9 Subscription Name: High-Availability (8 sockets) SKU: RH1149049 Pool ID: 8a99f9843c01ccba013c037a0fd40169 Available: 99 Service Level: Layered Service Type: L1-L3 Multi-Entitlement: No Ends: 12/31/2013 System Type: Virtual [root@jsefler-6 ~]# subscription-manager attach --pool=8a99f9843c01ccba013c037a0fd40169 Successfully attached a subscription for: High-Availability (8 sockets) [root@jsefler-6 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.3 Arch: x86_64 Status: Not Subscribed Status Details: Not covered by a valid subscription. Starts: Ends: [root@jsefler-6 ~]# rpm -q ccs package ccs is not installed [root@jsefler-6 ~]# yum install -y -q ccs This system is receiving updates from Red Hat Subscription Management. This system is not registered with RHN Classic or RHN Satellite. You can use rhn_register to register. RHN Satellite or RHN Classic support will be disabled. [root@jsefler-6 ~]# rpm -q ccs ccs-0.16.2-63.el6.x86_64 [root@jsefler-6 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.3 Arch: x86_64 Status: Not Subscribed Status Details: Not covered by a valid subscription. Starts: Ends: Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server) Product ID: 83 Version: 6.4 Arch: x86_64 Status: Not Subscribed Status Details: Starts: 12/31/2012 Ends: 12/31/2013 ^^^^ BANG! 1. The newly installed product id 83 is correct 2. The start/end dates of the newly installed product id 83 is probably correct 3. The combination of Status: Not Subscribed with an Status Details: <empty> is wrong. This combination should never happen. However if we run list installed again, the problem fixes itself; observe... [root@jsefler-6 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.3 Arch: x86_64 Status: Not Subscribed Status Details: Not covered by a valid subscription. Starts: Ends: Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server) Product ID: 83 Version: 6.4 Arch: x86_64 Status: Subscribed Status Details: Starts: 12/31/2012 Ends: 12/31/2013