Description of problem: The product status does not get updated appropriately when laying down new products which do not have .pem files in /etc/pki/products Version-Release number of selected component (if applicable): # rpm -qa | egrep "subscription-manager|python-rhsm" subscription-manager-gui-1.8.6-1.git.11.f1d449c.el5 python-rhsm-1.8.9-1.git.7.214419e.el5 subscription-manager-migration-1.8.6-1.git.11.f1d449c.el5 subscription-manager-1.8.6-1.git.11.f1d449c.el5 subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5 subscription-manager-firstboot-1.8.6-1.git.11.f1d449c.el5 How reproducible: Always Steps to Reproduce: Registering to a Stage Server 1. unregister 2. Remove any product certs in /etc/pki/product. 3. Restore the two files you backed up. 4. Make sure ccs is uninstalled. 5. yum clean all # subscription-manager register Username: stage_test_2 Password: The system has been registered with ID: 1f498405-53e4-41f4-ac27-77806f35d51b # subscription-manager list --avail | grep -i -A2 High-Availability Subscription Name: High-Availability (8 sockets) SKU: RH1149049 Pool ID: 8a99f9833c01cc09013c025321d00130 -- Subscription Name: High-Availability (8 sockets) SKU: RH1149049 Pool ID: 8a99f9833c01cc09013c025321df013f -- Subscription Name: High-Availability (8 sockets) SKU: RH1149049 Pool ID: 8a99f9843c01ccba013c037a0fa0015a -- Subscription Name: High-Availability (8 sockets) SKU: RH1149049 Pool ID: 8a99f9843c01ccba013c037a0fd40169 # subscription-manager subscribe --pool=8a99f9833c01cc09013c025321d00130 Successfully attached a subscription for: High-Availability (8 sockets) # subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: High-Availability (8 sockets) Provides: Red Hat Enterprise Linux High Availability (for RHEL Server) SKU: RH1149049 Contract: 10014697 Account: 5206740 Serial Number: 6582271433544536451 Pool ID: 8a99f9843c01ccba013c037a0fd40169 Active: True Quantity Used: 1 Service Level: Layered Service Type: L1-L3 Starts: 12/31/2012 Ends: 12/31/2013 # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 5.9 Arch: x86_64 Status: Not Subscribed Starts: Ends: # ls /etc/pki/products/ 69.pem # yum install ipvsadm Loaded plugins: product-id, rhnplugin, security, subscription-manager 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. rhel-ha-for-rhel-5-server-rpms | 3.7 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package ipvsadm.x86_64 0:1.24-13.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================================================== Installing: ipvsadm x86_64 1.24-13.el5 rhel-ha-for-rhel-5-server-rpms 34 k Transaction Summary =================================================================================================================================================================================================================== Install 1 Package(s) Upgrade 0 Package(s) Total download size: 34 k Is this ok [y/N]: y Downloading Packages: ipvsadm-1.24-13.el5.x86_64.rpm | 34 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : ipvsadm 1/1 Installed: ipvsadm.x86_64 0:1.24-13.el5 Complete! # ls /etc/pki/product 69.pem 83.pem # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 5.9 Arch: x86_64 Status: Not Subscribed Starts: Ends: Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server) Product ID: 83 Version: 5.8 Arch: x86_64 Status: Not Subscribed Starts: Ends: Actual results: Product: Red Hat Enterprise Linux High Availability Status should 'NOT' be Not Subscribed Expected results: Product: Red Hat Enterprise Linux High Availability Status should be Subscribed Additional info: # subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: High-Availability (8 sockets) Provides: Red Hat Enterprise Linux High Availability (for RHEL Server) SKU: RH1149049 Contract: 10014697 Account: 5206740 Serial Number: 6582271433544536451 Pool ID: 8a99f9843c01ccba013c037a0fd40169 Active: True Quantity Used: 1 Service Level: Layered Service Type: L1-L3 Starts: 12/31/2012 Ends: 12/31/2013 # subscription-manager unsubscribe --serial 6582271433544536451 Serial numbers successfully removed at the server: 6582271433544536451 1 local certificate has been deleted. # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 5.9 Arch: x86_64 Status: Not Subscribed Starts: Ends: Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server) Product ID: 83 Version: 5.8 Arch: x86_64 Status: Not Subscribed Starts: Ends: # subscription-manager subscribe --pool 8a99f9843c01ccba013c037a0fd40169 Successfully attached a subscription for: High-Availability (8 sockets) # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 5.9 Arch: x86_64 Status: Not Subscribed Starts: Ends: Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server) Product ID: 83 Version: 5.8 Arch: x86_64 Status: Subscribed Starts: 12/31/2012 Ends: 12/31/2013 >> Now it changed to subscribed. >> My guess is the Status is not getting updated appropriately when it's laying down the 83.pem file for the first time.
Setting the environment is incomplete (I missed a few things) Please refer to this https://bugzilla.redhat.com/show_bug.cgi?id=859197#c7
The server side status for installed products does eventually get updated via rhsmcertd, but that is slightly non-intuitive. I think a more expected behaviour would be that a new product cert install forces a product cert info update to the server, so that entitlement status calls are more correct.
As pointed out in Additional information, un-subscribing HA and re-subscribing it flips its status from Not-Subscribed to Subscribed without restarting rhsmcertd. In this scenario only the status of HA is flipped and not that of RHEL Server. But, 'service rhsmcertd restart' flips the status of both.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
The server side status of the products gets updated any time you check compliance. It will be updated when you run "list --installed", so we shouldn't get falsely "Not subscribed" packages as of a week or two ago.
Automated test coverage for this bug from HighAvailabilityTests: YumInstallFirstHighAvailabilityPackageAndAssertInstalledProductCerts_Test() YumInstallSecondHighAvailabilityPackageAndAssertInstalledProductCerts_Test() are passing against version... subscription-manager-1.8.11-1.el5 python-rhsm-1.8.12-1.el5 Moving to VERIFIED
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-1332.html