Bug 953830 - Message displayed after you subscribe to a pool which has already expired needs to be changed
Summary: Message displayed after you subscribe to a pool which has already expired nee...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Carter Kozak
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-04-19 09:42 UTC by Shwetha Kallesh
Modified: 2015-05-14 16:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-13 18:34:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Shwetha Kallesh 2013-04-19 09:42:45 UTC
Description of problem:
Message displayed after you subscribe to a pool which has already expired needs to be changed

Version-Release number of selected component (if applicable):
[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.4-1
subscription-manager: 1.8.6-1.git.1.da0bb05.el7
python-rhsm: 1.8.9-1.git.1.bbbb773.el7


How reproducible:


Steps to Reproduce:
1.[root@localhost ~]# date
Fri Apr 19 15:06:22 IST 2013

[root@localhost ~]# curl -k -u admin:admin https://10.70.35.193:8443/candlepin/pools/8ac6818a3e21268f013e2193f02418bd | python -mjson.tool | grep endDate
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2640    0  2640    0     0  63207      0 --:--:-- --:--:-- --:--:-- 64390
    "endDate": "2013-04-19T09:32:06.000+0000", 

[root@localhost ~]# subscription-manager subscribe --pool=8ac6818a3e21268f013e2193f02418bd
Successfully attached a subscription for: Awesome OS Server Bundled (2 Sockets, Standard Support)

[root@localhost ~]# ll /etc/pki/entitlement/
total 0

[root@localhost ~]# subscription-manager list --consumed
No consumed subscription pools to list

  
Actual results:
Successfully attached a subscription for:<Subscription-Name>

Expected results:
Unable to entitle consumer to the pool with id '<pool Id>'.: Subscriptions for <Subscription-Name>

Additional info:

Comment 1 Carter Kozak 2013-08-20 15:50:36 UTC
Any reason we shouldn't just block users from attaching expired pools?

Comment 2 Carter Kozak 2014-01-13 18:34:41 UTC
This appears to be fixed with latest subscription-manager and candlepin.  I'm not sure eactly when, but exception handling in the client has undergone some changes.

example:
Unable to attach pool with ID '8a908740438be86501438cd57718376c'.: Subscriptions for awesomeos-onesocketib expired on: 1/13/14 1:21 PM.


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