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.
Bug 1201727 - After the 24 hour pool is expired,consumed --list displays a value,even after attaching a subscription
Summary: After the 24 hour pool is expired,consumed --list displays a value,even after...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Adrian Likins
QA Contact: John Sefler
URL:
Whiteboard:
: 1204057 (view as bug list)
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2015-03-13 11:08 UTC by Shwetha Kallesh
Modified: 2015-09-24 18:34 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-22 06:53:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/lib/rhsm/cache/ files (10.00 KB, application/x-tar)
2015-03-16 14:39 UTC, Rehana
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1345 0 normal SHIPPED_LIVE subscription-manager and python-rhsm bug fix and enhancement update 2015-07-20 17:59:53 UTC

Description Shwetha Kallesh 2015-03-13 11:08:17 UTC
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:

Comment 2 John Sefler 2015-03-13 13:01:16 UTC
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'

Comment 3 Shwetha Kallesh 2015-03-15 17:22:29 UTC
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

Comment 4 Adrian Likins 2015-03-16 14:17:06 UTC
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.

Comment 5 Rehana 2015-03-16 14:39:53 UTC
Created attachment 1002322 [details]
/var/lib/rhsm/cache/ files

Comment 6 Adrian Likins 2015-03-16 15:23:21 UTC
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.

Comment 7 Adrian Likins 2015-03-16 18:18:59 UTC
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.

Comment 8 Adrian Likins 2015-03-16 20:30:56 UTC
pr for candlepin workaround at https://github.com/candlepin/candlepin/pull/848

Comment 9 Alex Wood 2015-04-08 14:28:30 UTC
Can you retest this please?  We've made several changes to temporary entitlements since this was reported that should hopefully address the problem.

Comment 10 Shwetha Kallesh 2015-04-09 15:09:55 UTC
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

Comment 12 Shwetha Kallesh 2015-04-14 08:19:05 UTC
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

Comment 13 errata-xmlrpc 2015-07-22 06:53:32 UTC
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

Comment 14 John Sefler 2015-09-24 18:34:37 UTC
*** Bug 1204057 has been marked as a duplicate of this bug. ***


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