Bug 1201727
| Summary: | After the 24 hour pool is expired,consumed --list displays a value,even after attaching a subscription | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Shwetha Kallesh <skallesh> | ||||
| Component: | subscription-manager | Assignee: | Adrian Likins <alikins> | ||||
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.7 | CC: | alikins, awood, dgoodwin, qianzhan, redakkan, skallesh, wpoteat | ||||
| 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-07-22 06:53:32 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: | 1125249 | ||||||
| Attachments: |
|
||||||
This is a paste of rhsm.log from a different machine, but I think the Traceback shown is the cause for this bug.
2015-03-12 09:37:28,282 [DEBUG] subscription-manager:2067 @connection.py:471 - Making request: GET /candlepin/consumers/0cb68c43-41a8-4144-be17-d383f271b061/compliance
2015-03-12 09:37:29,622 [DEBUG] subscription-manager:2067 @connection.py:494 - Response: status=200, requestUuid=b7c3a419-7b24-46e9-84d7-537c5a6a8939
2015-03-12 09:37:29,628 [DEBUG] subscription-manager:2067 @cache.py:272 - Started thread to write cache: /var/lib/rhsm/cache/entitlement_status.json
2015-03-12 09:37:29,629 [DEBUG] subscription-manager:2067 @cert_sorter.py:193 - valid entitled products: ['37060']
2015-03-12 09:37:29,629 [DEBUG] subscription-manager:2067 @cert_sorter.py:194 - expired entitled products: []
2015-03-12 09:37:29,629 [DEBUG] subscription-manager:2067 @cert_sorter.py:195 - partially entitled products: []
2015-03-12 09:37:29,629 [DEBUG] subscription-manager:2067 @cert_sorter.py:196 - unentitled products: []
2015-03-12 09:37:29,629 [DEBUG] subscription-manager:2067 @cert_sorter.py:197 - future products: []
2015-03-12 09:37:29,629 [DEBUG] subscription-manager:2067 @cert_sorter.py:198 - partial stacks: []
2015-03-12 09:37:29,630 [DEBUG] subscription-manager:2067 @cert_sorter.py:199 - entitlements valid until: 2016-03-10 00:00:01+00:00
2015-03-12 09:37:29,630 [ERROR] subscription-manager:2067 @managercli.py:161 - exception caught in subscription-manager
2015-03-12 09:37:29,630 [ERROR] subscription-manager:2067 @managercli.py:162 - 'ff8080814c074718014c0cc1556f49b1'
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 85, in <module>
sys.exit(abs(main() or 0))
File "/usr/sbin/subscription-manager", line 76, in main
return managercli.ManagerCLI().main()
File "/usr/share/rhsm/subscription_manager/managercli.py", line 2616, in main
return CLI.main(self)
File "/usr/share/rhsm/subscription_manager/cli.py", line 160, in main
return cmd.main()
File "/usr/share/rhsm/subscription_manager/managercli.py", line 485, in main
return_code = self._do_command()
File "/usr/share/rhsm/subscription_manager/managercli.py", line 2277, in _do_command
self.print_consumed(service_level=self.options.service_level, filter_string=self.options.filter_string, pid_only=self.options.pid_only)
File "/usr/share/rhsm/subscription_manager/managercli.py", line 2313, in print_consumed
cert_reasons_map = sorter.reasons.get_subscription_reasons_map()
File "/usr/share/rhsm/subscription_manager/reasons.py", line 47, in get_subscription_reasons_map
if reason['message'] not in result[reason['attributes']['entitlement_id']]:
KeyError: 'ff8080814c074718014c0cc1556f49b1'
Reproducing the above case without changing date,
[root@dhcp35-188 ~]# subscription-manager register --org admin --force
Username: admin
Password:
The system has been registered with ID: b4b801fe-d56b-4807-a681-764b3498ba7c
[root@dhcp35-188 ~]# date
Sat Mar 14 21:50:17 IST 2015
[root@dhcp35-188 ~]# subscription-manager attach --auto
1 local certificate has been deleted.
Installed Product Current Status:
Product Name: Awesome OS Instance Server Bits
Status: Subscribed
[root@dhcp35-188 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 0
Account: 12331131231
Serial: 8565137744549809349
Pool ID: 8ac681e44c190f4f014c1910ae4e1c05
Provides Management: No
Active: True
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Guest has not been reported on any host and is using a temporary unmapped guest subscription.
Subscription Type: Instance Based
Starts: 03/14/2015
Ends: 03/15/2015
System Type: Virtual
[root@dhcp35-188 ~]# date
Sun Mar 15 21:55:38 IST 2015
[root@dhcp35-188 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
u'8ac681e44c190f4f014c1915f048227a'
[root@dhcp35-188 ~]# subscription-manager list --avail
Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.
[root@dhcp35-188 ~]# subscription-manager refresh
Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.
^^ server was not reachable after that so couldnot reproduce , the same error is displayed after attaching subscription as well
[root@dhcp35-188 ~]# tail -f /var/log/rhsm/rhsm.log
error: [Errno 110] Connection timed out
2015-03-15 21:56:44,800 [INFO] subscription-manager:4417 @managercli.py:364 - Server Versions: {'rules-version': 'Unknown', 'candlepin': 'Unknown', 'server-type': 'Red Hat Subscription Management'}
2015-03-15 21:56:44,807 [DEBUG] subscription-manager:4417 @cache.py:138 - Checking current system info against cache: /var/lib/rhsm/cache/installed_products.json
2015-03-15 21:56:44,809 [DEBUG] subscription-manager:4417 @cache.py:155 - No changes.
2015-03-15 21:56:44,809 [DEBUG] subscription-manager:4417 @certdirectory.py:216 - Installed product IDs: ['32060']
2015-03-15 21:56:44,812 [DEBUG] subscription-manager:4417 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-entitlement-authority.pem, candlepin-ca.pem, redhat-uep.pem
2015-03-15 21:56:44,812 [DEBUG] subscription-manager:4417 @connection.py:494 - Making request: GET /candlepin/consumers/b4b801fe-d56b-4807-a681-764b3498ba7c/compliance
2015-03-15 21:57:47,813 [ERROR] subscription-manager:4417 @cache.py:212 - [Errno 110] Connection timed out
2015-03-15 21:57:47,813 [WARNING] subscription-manager:4417 @cache.py:218 - Unable to reach server, using cached status.
2015-03-15 21:57:47,818 [INFO] subscription-manager:4417 @cert_sorter.py:205 - Product status: valid_products=32060 partial_products= expired_products= unentitled_producs= future_products= valid_until=2016-03-13 00:00:01+00:00
2015-03-15 21:57:47,819 [DEBUG] subscription-manager:4417 @cert_sorter.py:207 - partial stacks: []
2015-03-15 21:57:47,819 [ERROR] subscription-manager:4417 @managercli.py:161 - exception caught in subscription-manager
2015-03-15 21:57:47,820 [ERROR] subscription-manager:4417 @managercli.py:162 - u'8ac681e44c190f4f014c1915f048227a'
Traceback (most recent call last):
File "/usr/sbin/subscription-manager", line 85, in <module>
sys.exit(abs(main() or 0))
File "/usr/sbin/subscription-manager", line 76, in main
return managercli.ManagerCLI().main()
File "/usr/share/rhsm/subscription_manager/managercli.py", line 2623, in main
return CLI.main(self)
File "/usr/share/rhsm/subscription_manager/cli.py", line 159, in main
return cmd.main()
File "/usr/share/rhsm/subscription_manager/managercli.py", line 490, in main
return_code = self._do_command()
File "/usr/share/rhsm/subscription_manager/managercli.py", line 2284, in _do_command
self.print_consumed(service_level=self.options.service_level, filter_string=self.options.filter_string, pid_only=self.options.pid_only)
File "/usr/share/rhsm/subscription_manager/managercli.py", line 2320, in print_consumed
cert_reasons_map = sorter.reasons.get_subscription_reasons_map()
File "/usr/share/rhsm/subscription_manager/reasons.py", line 47, in get_subscription_reasons_map
if reason['message'] not in result[reason['attributes']['entitlement_id']]:
KeyError: u'8ac681e44c190f4f014c1915f048227a'
2015-03-15 21:58:21,656 [DEBUG] subscription-manager:4422 @plugins.py:569 - loaded plugin modules: [<module 'container_content' from '/usr/share/rhsm-plugins/container_content.pyc'>]
2015-03-15 21:58:21,657 [DEBUG] subscription-manager:4422 @plugins.py:570 - loaded plugins: {'container_content.ContainerContentPlugin': <container_content.ContainerContentPlugin object at 0x1cdcad0>}
2015-03-15 21:58:21,657 [DEBUG] subscription-manager:4422 @identity.py:131 - Loading consumer info from identity certificates.
2015-03-15 21:58:21,689 [INFO] subscription-manager:4422 @managercli.py:353 - Client Versions: {'python-rhsm': '1.14.2-1.git.0.fafb02d.el6', 'subscription-manager': '1.14.1-1.git.84.66aafd7.el6'}
2015-03-15 21:58:21,689 [INFO] subscription-manager:4422 @connection.py:727 - Connection built: host=10.70.1.100 port=8443 handler=/candlepin auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=False
2015-03-15 21:58:21,690 [INFO] subscription-manager:4422 @connection.py:727 - Connection built: host=10.70.1.100 port=8443 handler=/candlepin auth=none
2015-03-15 21:58:21,702 [DEBUG] subscription-manager:4422 @connection.py:446 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-stage.pem, redhat-entitlement-authority.pem, candlepin-ca.pem, redhat-uep.pem
2015-03-15 21:58:21,702 [DEBUG] subscription-manager:4422 @connection.py:494 - Making request: GET /candlepin/
2015-03-15 21:59:24,702 [ERROR] subscription-manager:4422 @utils.py:266 - Error while checking server version: [Errno 110] Connection timed out
2015-03-15 21:59:24,702 [ERROR] subscription-manager:4422 @utils.py:268 - [Errno 110] Connection timed out
Traceback (most recent call last):
File "/usr/share/rhsm/subscription_manager/utils.py", line 246, in get_server_versions
if cp.supports_resource("status"):
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 753, in supports_resource
self._load_supported_resources()
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 740, in _load_supported_resources
resources_list = self.conn.request_get("/")
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 602, in request_get
return self._request("GET", method)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 505, in _request
conn.request(request_type, handler, body=body, headers=headers)
File "/usr/lib64/python2.6/httplib.py", line 914, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.6/httplib.py", line 951, in _send_request
self.endheaders()
File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib64/python2.6/httplib.py", line 739, in send
self.connect()
File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line 73, in connect
raise error
error: [Errno 110] Connection timed out
If any of the machines showing the traceback in https://bugzilla.redhat.com/show_bug.cgi?id=1201727#c3 are still available, grab a copy of the contents of /var/lib/rhsm/cache/* . Curious what exactly the status api is returning for that particular case. Created attachment 1002322 [details]
/var/lib/rhsm/cache/ files
Looking at the code, we will hit that errors in reasons.py if there is a reason in the reasons list that includes a 'entitlement_id' attribute that references an entitlement/entitlement cert that is not valid.
That code builds up a results dict that includes the entitlement_id for the clients _valid_ entitlement certs (the list in cert_sorter.valid_entitlement_certs). For the case above, the reasons include a reason with an entitlement_id attribute that references an expired certificate, and throws the key error.
Workarounds could be:
- Don't include the entitlement_id in the reason for the unmapped ent. The downside is that the reason won't show up in 'list --consumed'
- We could also include the info, but as a different attribute ('expired_entitlement_id' for example), but afaict, client won't display that
in 'list --consumed' either, and maybe not anywhere.
- We could maybe reference the 'product_id' instead, which should show up places where we show reasons for installed products.
pr to handle this case client side at https://github.com/candlepin/subscription-manager/pull/1154 Given there are deployed clients that will hit this error, we need to avoid this case server side as well. Those changes more or less make the funtional changes in the pr above unneeded, but there are additional test cases added as well. pr for candlepin workaround at https://github.com/candlepin/candlepin/pull/848 Can you retest this please? We've made several changes to temporary entitlements since this was reported that should hopefully address the problem. Consumed list displays attached subscription as well as expired subscription.
[root@dhcp35-135 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.26.8-1
subscription management rules: 5.12
subscription-manager: 1.14.1-1.el6
python-rhsm: 1.14.1-1.el6
[root@dhcp35-135 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 1
Account: 12331131231
Serial: 7271267967134004853
Pool ID: 8ac681e44c69cf7c014c69d0cd111a9e
Provides Management: No
Active: False
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Subscription is expired
Subscription Type: Instance Based (Temporary)
Starts: 03/30/2015
Ends: 04/09/2015
System Type: Virtual
[root@dhcp35-135 ~]# subscription-manager list --avail --match-installed
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 0
Pool ID: 8ac681e44c69cf7c014c69d0ce731b03
Provides Management: No
Available: 10
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0cb2219ce
Provides Management: No
Available: 20
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0cce91a8e
Provides Management: No
Available: 20
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 0
Pool ID: 8ac681e44c69cf7c014c69d0cf441b43
Provides Management: No
Available: 10
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
[root@dhcp35-135 ~]# subscription-manager attach --pool 8ac681e44c69cf7c014c69d0cf441b43
Successfully attached a subscription for: Awesome OS Instance Based (Standard Support)
[root@dhcp35-135 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 0
Account: 12331131231
Serial: 1977292616918742016
Pool ID: 8ac681e44c69cf7c014c69d0cf441b43
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/30/2015
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 1
Account: 12331131231
Serial: 7271267967134004853
Pool ID: 8ac681e44c69cf7c014c69d0cd111a9e
Provides Management: No
Active: False
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Subscription is expired
Subscription Type: Instance Based (Temporary)
Starts: 03/30/2015
Ends: 04/09/2015
System Type: Virtual
Expired subscription is listed in the consumed list along with newly attached subscription,hence marking verified!!
[root@dhcp35-135 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.47-1
subscription management rules: 5.14
subscription-manager: 1.14.3-1.el6
python-rhsm: 1.14.2-1.el6
[root@dhcp35-135 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 1
Account: 12331131231
Serial: 2204384901448192861
Pool ID: 8ac681e44c69cf7c014c69d0cb3d19ee
Provides Management: No
Active: True
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Guest has not been reported on any host and is using a temporary unmapped guest subscription.
Subscription Type: Instance Based (Temporary)
Starts: 03/30/2015
Ends: 04/14/2015
System Type: Virtual
[root@dhcp35-135 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 1
Account: 12331131231
Serial: 2204384901448192861
Pool ID: 8ac681e44c69cf7c014c69d0cb3d19ee
Provides Management: No
Active: False
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Subscription is expired
Subscription Type: Instance Based (Temporary)
Starts: 03/30/2015
Ends: 04/14/2015
System Type: Virtual
[root@dhcp35-135 ~]# subscription-manager list --avail --match-installed
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 0
Pool ID: 8ac681e44c69cf7c014c69d0ce731b03
Provides Management: No
Available: 10
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0cb2219ce
Provides Management: No
Available: 20
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0cce91a8e
Provides Management: No
Available: 20
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 0
Pool ID: 8ac681e44c69cf7c014c69d0cf441b43
Provides Management: No
Available: 8
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Instance Based
Ends: 03/29/2016
System Type: Physical
[root@dhcp35-135 ~]# subscription-manager attach --pool 8ac681e44c69cf7c014c69d0cf441b43
Successfully attached a subscription for: Awesome OS Instance Based (Standard Support)
[root@dhcp35-135 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS Instance Based (Standard Support)
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-instancebased
Contract: 0
Account: 12331131231
Serial: 7597927241660312177
Pool ID: 8ac681e44c69cf7c014c69d0cf441b43
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/30/2015
Ends: 03/29/2016
System Type: Physical
Subscription Name: Awesome OS Instance Based one socket
Provides: Awesome OS Instance Server Bits
SKU: awesomeos-onesocketib
Contract: 1
Account: 12331131231
Serial: 2204384901448192861
Pool ID: 8ac681e44c69cf7c014c69d0cb3d19ee
Provides Management: No
Active: False
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Subscription is expired
Subscription Type: Instance Based (Temporary)
Starts: 03/30/2015
Ends: 04/14/2015
System Type: Virtual
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-1345.html *** Bug 1204057 has been marked as a duplicate of this bug. *** |
Description of problem: After the 24 hour pool is expired,consumed --list displays a value,even after attaching a subscription Version-Release number of selected component (if applicable): [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 How reproducible: Steps to Reproduce: [root@dhcp35-188 ~]# subscription-manager attach --auto Installed Product Current Status: Product Name: Awesome OS Instance Server Bits Status: Subscribed Product Name: Awesome OS Server Bits Status: Subscribed [root@dhcp35-188 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS with up to 4 virtual guests Provides: Awesome OS Server Bits SKU: awesomeos-virt-4 Contract: 2 Account: 12331131231 Serial: 8634823433601301487 Pool ID: 8ac681e44c129244014c129375c410e6 Provides Management: No Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Guest has not been reported on any host and is using a temporary unmapped guest subscription. Subscription Type: Multi-Entitleable Starts: 03/13/2015 Ends: 03/14/2015 System Type: Virtual Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 3 Account: 12331131231 Serial: 8754549498990731546 Pool ID: 8ac681e44c129244014c1293922a1866 Provides Management: No Active: True Quantity Used: 1 Service Level: Standard Service Type: L1-L3 Status Details: Guest has not been reported on any host and is using a temporary unmapped guest subscription. Subscription Type: Instance Based Starts: 03/13/2015 Ends: 03/14/2015 ----> subscription expires on March 14 System Type: Virtual [root@dhcp35-188 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS Instance Server Bits Product ID: 32060 Version: 6.1 Arch: ALL Status: Subscribed Status Details: Starts: 03/13/2015 Ends: 03/12/2016 Product Name: Awesome OS Server Bits Product ID: 37060 Version: 6.1 Arch: ALL Status: Subscribed Status Details: Starts: 03/13/2015 Ends: 03/12/2016 [root@dhcp35-188 ~]# ls /etc/pki/entitlement/ 8634823433601301487-key.pem 8634823433601301487.pem 8754549498990731546-key.pem 8754549498990731546.pem I change the date to March 14,subscription should expire [root@dhcp35-188 ~]# date 031416192015.55 Sat Mar 14 16:19:55 IST 2015 [root@dhcp35-188 ~]# subscription-manager refresh All local data refreshed [root@dhcp35-188 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ '8ac681e44c129244014c12c112b124d8' ---> displaying [root@dhcp35-188 ~]# subscription-manager list --avail +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 3 Pool ID: 8ac681e44c129244014c129391fd1856 Provides Management: No Available: 18 Suggested: 0 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 03/12/2016 System Type: Physical Subscription Name: Awesome OS Stackable guest limit 4 Provides: Awesome OS Server Bits SKU: awesomeos-guestlimit-4-stackable Contract: 3 Pool ID: 8ac681e44c129244014c129372350faa Provides Management: No Available: 40 Suggested: 1 Service Level: Service Type: Subscription Type: Stackable Ends: 03/12/2016 System Type: Virtual Subscription Name: Awesome OS Virtual Datacenter Provides: Awesome OS Server Bits SKU: awesomeos-virt-datacenter Contract: 3 Pool ID: 8ac681e44c129244014c1293667e0b7f Provides Management: No Available: Unlimited Suggested: 1 Service Level: Service Type: Subscription Type: Standard Ends: 03/12/2016 System Type: Virtual [root@dhcp35-188 ~]# subscription-manager attach --pool 8ac681e44c129244014c1293937e18da Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) [root@dhcp35-188 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ '8ac681e44c129244014c12c112b124d8' -----> still the same value is being displayed [root@dhcp35-188 ~]# ls /etc/pki/entitlement/ 8634823433601301487-key.pem 8634823433601301487.pem 8754549498990731546-key.pem 8754549498990731546.pem 7480706694634168252-key.pem 7480706694634168252.pem ^^^ observe that new ent certs have been downloaded Actual results: Expected results: Additional info: