Bug 676371 - Compliance Assistant closes when you're not done
Summary: Compliance Assistant closes when you're not done
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager (Show other bugs)
(Show other bugs)
Version: 6.1
Hardware: Unspecified Unspecified
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact: J.C. Molet
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
Reported: 2011-02-09 16:35 UTC by J.C. Molet
Modified: 2011-05-19 13:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-05-19 13:39:39 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
in compliance? (525.89 KB, image/png)
2011-02-18 15:38 UTC, J.C. Molet
no flags Details
in compliance? 2 (465.33 KB, image/png)
2011-02-18 15:39 UTC, J.C. Molet
no flags Details
in compliance? 3 (476.04 KB, image/png)
2011-02-18 15:40 UTC, J.C. Molet
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0611 normal SHIPPED_LIVE new package: subscription-manager 2011-05-18 17:56:21 UTC

Description J.C. Molet 2011-02-09 16:35:54 UTC
Description of problem:
The compliance assistant window closes every time something is subscribed to, even though you may still have to subscribe to more things to become compliant.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install rhsm versions above ^^ with all their deps on a rhel6 machine.
2. Configure rhsm.conf to point to your stand alone candlepin instance
3. Copy all of the product certs on the stand-alone server to your /etc/pki/product/
4. Start up subscription-manager-gui and register your system.
5. As you aren't in compliance for the products in your products directory, click the 'Become Compliant' button.
6. You will have multiple products not in compliance, and will require multiple subscriptions to resolve this.  Check all the products, and subscribe to one.
Actual results:
The compliance assistant window closes at this point, even though you still have products not in compliance.  You will have to click 'Become Compliant' again and again until you get all of the proper subscriptions subscribed to, one at a time.

Expected results:
You subscribe to the subscription and the window is refreshed.  The refreshed window will only show the remaining products that are not in compliance.

Comment 2 Chris Duryee 2011-02-10 20:23:15 UTC
fixed in master 0.96.2+, 7e2d849

Comment 3 Chris Duryee 2011-02-10 20:30:30 UTC
fixed in RHEL6 branch 0.95.2+, f6056bd

Comment 6 J.C. Molet 2011-02-18 15:37:19 UTC
Tested working as of version:

This works at first, and the list is reduced as your products become in compliance. I tested this with products that did and did not have matching subscriptions.  The list would whittle away until only the products that did not have available subscriptions were left.  This works as expected.

I then tested another case:
 - I deleted the products that did not have subscriptions (and therefore could never be in compliance) out of the /etc/pki/products folder to simulate these things not being installed.  
 - This left me a set that could theoretically place me in 100% compliance.  
 - I re-registered.
 - I opened the compliance assistant.
 - I checked all the boxes and one by one subscribed to products to become in compliance.

After the last one I expected the list of non-compliant products to either be blank, or the compliance assistant to close.  This did not happen.

- What happened then was the entire list of all my products repopulated itself (see first following screenshot)
- I was able to subscribe to some of these again and it was marked as a future subscription (see second screenshot)
- It returned subscriptions that I was not able to subscribe to at all (see third screenshot)

Comment 7 J.C. Molet 2011-02-18 15:38:26 UTC
Created attachment 479544 [details]
in compliance?

This is what happens after all products are in compliance.

Comment 8 J.C. Molet 2011-02-18 15:39:26 UTC
Created attachment 479545 [details]
in compliance? 2

Some subscriptions are able to be subscribed to as "future entitlements"

Comment 9 J.C. Molet 2011-02-18 15:40:20 UTC
Created attachment 479546 [details]
in compliance? 3

Some subscriptions you already are subscribed to.

Comment 10 Devan Goodwin 2011-03-04 15:05:56 UTC
Screenshots 1 and 2 look right, the compliance assistant is re-calculating the default date based on when you'll next be non-compliant as soon as you open it. In a sense you can never be compliant forever so the assistant should always be openable, it's just a matter of what date it tries to start getting you compliant.

Screenshot 3 looks bad, I believe this is related to the fix above though, what happens is you hit Subscribe, but now that we keep the assistant open there is no graphical indication that it worked, everything just looks the same. This is very easy to mistake, you think you must have failed to hit the button and press it again, and now you get an error because your original attempt was successful, and now you're trying to bind to the same pool again.

In the original fix, after we subscribe a call was added to check for date change, which would trigger a refresh of the screen if the date has changed. In our case however the date has not changed, but we still need to refresh the screen as our compliance state has changed on the date in question, and we no longer want to see the subscription we just bound to.

Proposed fix is to just call refresh_screen after bind. Will check in with Chris and make sure this is ok.

Comment 11 Devan Goodwin 2011-03-04 16:15:35 UTC
Fixed in master: 70d7ce00e32f94674e8ce6c14bb16b30d63341d1 (should appear in subscription-manager-0.96.2)

Ported to RHEL6: 4ec14b7619b913d30c9442610445ceae1333d201 (should appear in subscription-manager-0.95.4)

Comment 13 J.C. Molet 2011-03-08 21:33:10 UTC
This works now in:


Subscription manager stays open and displays valid products and subscriptions until the candlepin server no longer has anything new to show me.  Marking VERIFIED.

Comment 14 errata-xmlrpc 2011-05-19 13:39:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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