Bug 1197673
| Summary: | Start date and end date in the consumed list are wrong for future subscriptions | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Shwetha Kallesh <skallesh> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.7 | CC: | dgoodwin, 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:16 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 | ||
oops dates are completely wrong end date should be 02/16/2017 I don't think this is a bug. I believe the pool that is being attached is a temporary pool that begins in the future. In my opinion, the ambiguity of attaching the pool in comment 0 will be cleared up when RFE bug 1201520 is implemented. Shwetha could we get a re-test of this with latest subscription-manager and candlepin master? (specifically with fix from bug #1201520) And lets close if you are satisfied. Cannot attach a 24 hour pool which is available for future date,working as expected
[root@dhcp35-188 ~]# 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.1-1.el6
python-rhsm: 1.14.1-1.el6
[root@dhcp35-188 ~]# subscription-manager list --avail --ondate 2016-04-09 --match-installed
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS with unlimited virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-unlimited
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0a52a0e89
Provides Management: No
Available: 15
Suggested: 1
Service Level:
Service Type:
Subscription Type: Standard
Ends: 03/19/2017
System Type: Physical
Subscription Name: Awesome OS with unlimited virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-unlimited
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0a56e0ea1
Provides Management: No
Available: Unlimited
Suggested: 1
Service Level:
Service Type:
Subscription Type: Standard (Temporary)
Ends: 03/19/2017
System Type: Virtual
Subscription Name: Awesome OS Virtual Datacenter
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-datacenter
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d09f730c77
Provides Management: No
Available: Unlimited
Suggested: 1
Service Level:
Service Type:
Subscription Type: Standard (Temporary)
Ends: 03/19/2017
System Type: Virtual
Subscription Name: Awesome OS physical with unlimited guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-unlmtd-phys
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0a1b00d49
Provides Management: No
Available: Unlimited
Suggested: 1
Service Level:
Service Type:
Subscription Type: Standard (Temporary)
Ends: 03/19/2017
System Type: Virtual
Subscription Name: Awesome OS Stackable guest limit 4
Provides: Awesome OS Server Bits
SKU: awesomeos-guestlimit-4-stackable
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0a9770fbb
Provides Management: No
Available: 15
Suggested: 1
Service Level:
Service Type:
Subscription Type: Stackable
Ends: 03/19/2017
System Type: Physical
Subscription Name: Awesome OS with up to 4 virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-4
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0abcf109a
Provides Management: No
Available: 15
Suggested: 1
Service Level:
Service Type:
Subscription Type: Multi-Entitleable
Ends: 03/19/2017
System Type: Physical
Subscription Name: Awesome OS Stackable guest limit 4
Provides: Awesome OS Server Bits
SKU: awesomeos-guestlimit-4-stackable
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0a9a60fd3
Provides Management: No
Available: 60
Suggested: 1
Service Level:
Service Type:
Subscription Type: Stackable (Temporary)
Ends: 03/19/2017
System Type: Virtual
Subscription Name: Awesome OS with up to 4 virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-4
Contract: 1
Pool ID: 8ac681e44c69cf7c014c69d0abf010c1
Provides Management: No
Available: 60
Suggested: 1
Service Level:
Service Type:
Subscription Type: Multi-Entitleable (Temporary)
Ends: 03/19/2017
System Type: Virtual
[root@dhcp35-188 ~]# subscription-manager attach --pool 8ac681e44c69cf7c014c69d0abf010c1
Pool is restricted when it is temporary and begins in the future: '8ac681e44c69cf7c014c69d0abf010c1'
[root@dhcp35-188 ~]# echo $?
1
Verified!!
server type: Red Hat Subscription Management
subscription management server: 0.9.49-1
subscription management rules: 5.15
subscription-manager: 1.14.5-1.el6
python-rhsm: 1.14.2-1.el6
[root@dhcp35-135 ~]# subscription-manager list --avail --ondate 2016-04-25 --match-installed
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS with up to 4 virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-4
Contract: 5
Pool ID: 8ac681e44cc1fa3e014cc1fb69b51107
Provides Management: No
Available: 60
Suggested: 1
Service Level:
Service Type:
Subscription Type: Multi-Entitleable (Temporary)
Ends: 04/05/2017
System Type: Virtual
Subscription Name: Awesome OS with unlimited virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-unlimited
Contract: 5
Pool ID: 8ac681e44cc1fa3e014cc1fb61710e97
Provides Management: No
Available: 15
Suggested: 1
Service Level:
Service Type:
Subscription Type: Standard
Ends: 04/05/2017
System Type: Physical
Subscription Name: Awesome OS Stackable guest limit 4
Provides: Awesome OS Server Bits
SKU: awesomeos-guestlimit-4-stackable
Contract: 5
Pool ID: 8ac681e44cc1fa3e014cc1fb66d70ff8
Provides Management: No
Available: 15
Suggested: 1
Service Level:
Service Type:
Subscription Type: Stackable
Ends: 04/05/2017
System Type: Physical
Subscription Name: Awesome OS Stackable guest limit 4
Provides: Awesome OS Server Bits
SKU: awesomeos-guestlimit-4-stackable
Contract: 5
Pool ID: 8ac681e44cc1fa3e014cc1fb670f101d
Provides Management: No
Available: 60
Suggested: 1
Service Level:
Service Type:
Subscription Type: Stackable (Temporary)
Ends: 04/05/2017
System Type: Virtual
Subscription Name: Awesome OS Server Basic
Provides: Awesome OS Server Bits
SKU: awesomeos-server-basic
Contract: 5
Pool ID: 8ac681e44cc1fa3e014cc1fb942e1d12
Provides Management: No
Available: 15
Suggested: 1
Service Level: None
Service Type: Self-Support
Subscription Type: Standard
Ends: 04/05/2017
System Type: Physical
Subscription Name: Awesome OS with unlimited virtual guests
Provides: Awesome OS Server Bits
SKU: awesomeos-virt-unlimited
Contract: 5
Pool ID: 8ac681e44cc1fa3e014cc1fb61be0ea9
Provides Management: No
Available: Unlimited
Suggested: 1
Service Level:
Service Type:
Subscription Type: Standard (Temporary)
Ends: 04/05/2017
System Type: Virtual
[root@dhcp35-135 ~]# subscription-manager attach --pool 8ac681e44cc1fa3e014cc1fb61be0ea9
Pool is restricted when it is temporary and begins in the future: '8ac681e44cc1fa3e014cc1fb61be0ea9'
[root@dhcp35-135 ~]#
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 |
Description of problem: Start date and end date in the consumed list are interchanged for future subscriptions Version-Release number of selected component (if applicable): [root@dhcp35-219 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.45-1 subscription management rules: 5.14 subscription-manager: 1.14.1-1.git.39.3885c69.el6 python-rhsm: 1.14.2-1.git.0.fafb02d.el6 How reproducible: Steps to Reproduce: [root@dhcp35-219 ~]# subscription-manager list --avail --match-installed --ondate 2016-03-03 +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 3 Pool ID: 8ac681e44bcbaaa0014bcbabecd41963 Provides Management: No Available: 30 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 02/16/2017 System Type: Virtual Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 3 Pool ID: 8ac681e44bcbaaa0014bcbabedc419e5 ----> pool to be attached Provides Management: No Available: 30 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 02/16/2017 ---------> end date System Type: Virtual Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 3 Pool ID: 8ac681e44bcbaaa0014bcbabed8e19c5 Provides Management: No Available: 30 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 02/16/2017 System Type: Physical Subscription Name: Awesome OS Instance Based one socket Provides: Awesome OS Instance Server Bits SKU: awesomeos-onesocketib Contract: 3 Pool ID: 8ac681e44bcbaaa0014bcbabeca11944 Provides Management: No Available: 30 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Instance Based Ends: 02/16/2017 System Type: Physical [root@dhcp35-219 ~]# subscription-manager attach --pool 8ac681e44bcbaaa0014bcbabedc419e5 Successfully attached a subscription for: Awesome OS Instance Based (Standard Support) [root@dhcp35-219 ~]# [root@dhcp35-219 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Awesome OS Instance Server Bits Product ID: 32060 Version: 6.1 Arch: ALL Status: Future Subscription Status Details: Not supported by a valid subscription. Starts: Ends: [root@dhcp35-219 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Awesome OS Instance Based (Standard Support) Provides: Awesome OS Instance Server Bits SKU: awesomeos-instancebased Contract: 3 Account: 12331131231 Serial: 5406575625080161994 Pool ID: 8ac681e44bcbaaa0014bcbabedc419e5 Provides Management: No Active: False Quantity Used: 1 Service Level: Standard Service Type: L1-L3 Status Details: Subscription has not begun Subscription Type: Instance Based Starts: 02/17/2016 } ----> observe that end date and Ends: 03/03/2015 start dates are interchanged System Type: Virtual Actual results: Expected results: Additional info: