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 1197673 - Start date and end date in the consumed list are wrong for future subscriptions
Summary: Start date and end date in the consumed list are wrong for future subscriptions
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: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2015-03-02 11:28 UTC by Shwetha Kallesh
Modified: 2015-07-22 06:53 UTC (History)
3 users (show)

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


Attachments (Terms of Use)


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-02 11:28:49 UTC
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:

Comment 1 Shwetha Kallesh 2015-03-02 11:33:17 UTC
oops dates are completely wrong
end date should be 02/16/2017

Comment 3 John Sefler 2015-03-23 13:59:29 UTC
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.

Comment 4 Devan Goodwin 2015-04-07 18:13:32 UTC
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.

Comment 5 Shwetha Kallesh 2015-04-08 08:52:38 UTC
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

Comment 8 Shwetha Kallesh 2015-04-24 08:33:11 UTC
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 ~]#

Comment 9 errata-xmlrpc 2015-07-22 06:53:16 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


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