Bug 745973 - Subscription Assistant shows nothing when it should
Summary: Subscription Assistant shows nothing when it should
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 5.8
Assignee: Michael Stead
QA Contact: J.C. Molet
URL:
Whiteboard:
Depends On:
Blocks: 715031 772956
TreeView+ depends on / blocked
 
Reported: 2011-10-13 14:36 UTC by J.C. Molet
Modified: 2013-01-10 10:56 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2012-02-21 06:41:51 UTC
Target Upstream Version:


Attachments (Terms of Use)
future_entitlement (80.44 KB, application/octet-stream)
2011-12-06 19:11 UTC, J.C. Molet
no flags Details
quantity (85.52 KB, image/png)
2011-12-06 19:18 UTC, J.C. Molet
no flags Details
future entitlements (80.44 KB, image/png)
2011-12-08 19:08 UTC, J.C. Molet
no flags Details
icon works (64.17 KB, image/png)
2011-12-21 21:07 UTC, J.C. Molet
no flags Details
Selection_012 defect resolve screenshot (98.38 KB, image/png)
2011-12-27 09:24 UTC, spandey
no flags Details
icon is blanking out for future subscription (114.02 KB, image/png)
2011-12-28 08:23 UTC, Shwetha Kallesh
no flags Details
Icon is not blanking out anymore (112.09 KB, image/png)
2012-01-04 08:56 UTC, Shwetha Kallesh
no flags Details
Error while subscribing the product for a future date (102.83 KB, image/png)
2012-01-04 08:58 UTC, Shwetha Kallesh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Description J.C. Molet 2011-10-13 14:36:40 UTC
Description of problem:
When partially subscribed to a future entitlement (with no current entitlements), Subscription Assistant does not include that produce in its product list.

Version-Release number of selected component (if applicable):
python-rhsm-0.96.13-1.git.0.a237980.el6.noarch
subscription-manager-firstboot-0.96.14-1.git.0.51fc69c.el6.x86_64
subscription-manager-0.96.14-1.git.0.51fc69c.el6.x86_64
subscription-manager-gnome-0.96.14-1.git.0.51fc69c.el6.x86_64

candlepin:
{:version "0.4.19", :result true, :release "1"}
@ commit 2fe099e481ebfca893b5384a8e1d1e6de8973a70

How reproducible:
Always

Steps to Reproduce:
1. Have a single product associated with a stackable subscription (I used
100000000000002.pem in the candlepin TESTDATA)
2. Make sure you have enough sockets so that you need multiple subscriptions to
satisfy the product.
3. Register your rhsm
4. partially subscribe to a future subscription (that is: add a year+ to your
search filter and only subscribe with quantity=1)
5. Open subscription assistant and search on today's date (default date).  

Actual results:
No products are listed in the product list

Expected results:
Your product is shown in the product list as it doesn't have a current/valid entitlement.

Additional info:
Could be a candlepin issue?

Comment 1 Devan Goodwin 2011-10-13 14:59:17 UTC
Another issue, if I bind with quantity 1 my status switches from red to yellow, even though my entitlement doesn't start until 2012. This should still be red, we examine compliance status for today...

Comment 2 Devan Goodwin 2011-10-13 15:08:26 UTC
So it looks like two issues at play:

1. cert sorter thinks a system with partially valid entitlements for the future is in yellow state. it should be red, we have no valid entitlements *right now*.

2. subscription assistant does not look at partially entitled, it only looks at unentitled.

Comment 5 Devan Goodwin 2011-11-30 17:52:33 UTC
Appears to be fixed as a result of the work on bug #740377. Status stays red after getting the partial future entitlement. The subscription assistant then still lists subscription and finds appropriate pools for today's date.

The quantity suggested was 1 instead of 2 in sub assistant, but I believe this is because of bug #745995. (quantity suggestion is not date aware)

Moving to modified.

Comment 6 J.C. Molet 2011-12-06 19:11:45 UTC
Created attachment 541533 [details]
future_entitlement

tested against versions:

subscription-manager-0.98.5-1.git.2.cd86f84.el5_7
subscription-manager-firstboot-0.98.5-1.git.2.cd86f84.el5_7
subscription-manager-gnome-0.98.5-1.git.2.cd86f84.el5_7


In regards to comment 1 , the overall cert status is good in both the facts and the icon.  The individual status for the product, however, has been blanked out. 

See attached screenshot.

Comment 7 J.C. Molet 2011-12-06 19:18:15 UTC
Created attachment 541535 [details]
quantity

The subscriptions are now showing in the subscription assistant, but the quantity value is now wrong.

It looks like it is calculating it like:

Quantity = (Quantity need to fulfill need) - (Current entitlement Quantity) -(Future Entitlement Quantity)

The future entitlement quantity should not be taken into account here, only the current ones, and this could cause interesting things like the quantity being zero (see screen shot) which causes an error.

Comment 8 J.C. Molet 2011-12-06 19:19:06 UTC
Due to comment 6 and comment 7, I'm throwing this back.

Comment 9 J.C. Molet 2011-12-08 19:08:50 UTC
Created attachment 542694 [details]
future entitlements

Comment 10 J.C. Molet 2011-12-16 18:52:14 UTC
comment 7 resolved in bug 745995

Comment 11 Michael Stead 2011-12-21 13:38:58 UTC
Future entitlements status icon no longer blanking out.

Fixed in master branch: 4c5f0be9c90b94a1eb9e3ec5ca8ab56b80418f14

Comment 12 J.C. Molet 2011-12-21 21:07:02 UTC
Created attachment 549081 [details]
icon works

subscription-manager-gnome-0.99.2-1.git.10.c47a606.el5_7

Attachment shows that the partial future entitlments still show an icon.

marking VERIFIED.

Comment 13 John Sefler 2011-12-22 13:52:23 UTC
moving back to MODIFIED awaiting verification against subscription-manager-gnome-0.98

Comment 14 Michael Stead 2011-12-22 14:23:23 UTC
Committed into 5.8 branch: 4b51014699fb650e59cbc4ce797c8570dd0f64b4

Comment 15 spandey 2011-12-27 09:23:53 UTC
Following steps and rpm used for verification

subscription-manager-firstboot-0.98.9-1.el5

subscription-manager-0.98.9-1.el5

subscription-manager-gnome-0.98.9-1.el5

subscription-manager-debuginfo-0.98.9-1.el5

subscription-manager-migration-data-1.6-1.el5

subscription-manager-migration-0.98.9-1.el5


used 4 cpu kvm machine 
 
subscribed 2 subscription to make this partial subscribe.
Displays future entitlement 

as per JC comment 12 marking this defect verified 

attached screenshot Selection_0012

Comment 16 spandey 2011-12-27 09:24:59 UTC
Created attachment 549667 [details]
Selection_012 defect resolve screenshot

Comment 17 Shwetha Kallesh 2011-12-28 08:22:13 UTC
Moving bug to new.

icon is still blanking out.Pls find the screenshot in attachment.

RPM used:

subscription-manager-migration-0.98.9-1.el5
subscription-manager-gnome-0.98.9-1.el5
subscription-manager-debuginfo-0.98.9-1.el5
subscription-manager-firstboot-0.98.9-1.el5
subscription-manager-0.98.9-1.el5

Comment 18 Shwetha Kallesh 2011-12-28 08:23:12 UTC
Created attachment 549799 [details]
icon is blanking out for future subscription

Comment 19 Michael Stead 2012-01-03 17:43:11 UTC
The fix from comment 14 is not included in: 0.98.9-1

This will have to be tested using the latest code from the RHEL5.8 branch, or once the next 5.8 build is done.

Moving back to MODIFIED so it can be reverified.

Comment 20 Michael Stead 2012-01-03 18:52:37 UTC
Can now be verified with 0.98.10-1

Comment 21 Shwetha Kallesh 2012-01-04 08:56:05 UTC
Created attachment 550631 [details]
Icon is not blanking out anymore

Comment 22 Shwetha Kallesh 2012-01-04 08:58:46 UTC
Created attachment 550632 [details]
Error while subscribing the product for a future date

RPM used:

[root@tiger ~]# rpm -qa | grep subscription-manager
subscription-manager-0.98.10-1.el5
subscription-manager-firstboot-0.98.10-1.el5
subscription-manager-migration-data-1.4-1.el5
subscription-manager-debuginfo-0.98.10-1.el5
subscription-manager-gnome-0.98.10-1.el5
subscription-manager-migration-0.98.10-1.el5

Comment 23 Shwetha Kallesh 2012-01-04 09:01:26 UTC
Subscription is successful,but an error message is getting displayed as in attachment 550632 [details]

Comment 24 Michael Stead 2012-01-05 12:54:24 UTC
It looks as though your version of python-rhsm is out of date.

Please update to version >= 0.98.9-1 and re-verify.

Comment 25 J.C. Molet 2012-01-05 18:47:08 UTC
subscription-manager-gnome-0.98.10-1.git.4.71f8f71.el5
subscription-manager-0.98.10-1.git.4.71f8f71.el5
python-rhsm-0.98.9-1.git.0.81c61d5.el5
subscription-manager-firstboot-0.98.10-1.git.4.71f8f71.el5


Tested again against above versions ^

It checks out.

Comment 26 William Poteat 2012-01-23 13:12:42 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 27 errata-xmlrpc 2012-02-21 06:41:51 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.

http://rhn.redhat.com/errata/RHBA-2012-0154.html


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