Bug 842785 - Client entitlement cert generation fails due to "associated repo's not found " using valid and expired entitlements
Summary: Client entitlement cert generation fails due to "associated repo's not found ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: RHUA
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: mkovacik
QA Contact: mkovacik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-24 15:29 UTC by wes hayutin
Modified: 2012-08-24 13:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
For creating client configuration RPMs, the list of unprotected repositories were not filtered, so when there are both valid and expired entitlements, client entitlement certificate generation will fail with "associated repo's not found " error. ISO 2.1 has been updated so the error no longer appears.
Clone Of:
Environment:
Last Closed: 2012-08-24 11:55:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
wrkflow (15.30 KB, text/plain)
2012-07-24 15:29 UTC, wes hayutin
no flags Details
entitlement_recreate.txt (26.47 KB, text/plain)
2012-07-30 15:30 UTC, wes hayutin
no flags Details
Reproducer screen log 1 (38.23 KB, text/plain)
2012-08-09 17:23 UTC, mkovacik
no flags Details
Reproducer screen log 2 (172.98 KB, text/plain)
2012-08-10 08:58 UTC, mkovacik
no flags Details
Client entitlement repos discrepancy (26.81 KB, text/plain)
2012-08-10 10:22 UTC, mkovacik
no flags Details
Screen log retrying steps from comment 6 (44.59 KB, text/plain)
2012-08-10 16:00 UTC, mkovacik
no flags Details
exact milan recreate (31.91 KB, text/plain)
2012-08-10 17:38 UTC, wes hayutin
no flags Details
Reproducer screen log -- comment 11 (25.18 KB, text/plain)
2012-08-14 13:25 UTC, mkovacik
no flags Details
Verifying screen log (20.05 KB, text/plain)
2012-08-14 17:00 UTC, mkovacik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:1205 0 normal SHIPPED_LIVE RHUI 2.1 Enhancement Update 2012-08-24 15:52:31 UTC

Description wes hayutin 2012-07-24 15:29:26 UTC
Created attachment 600056 [details]
wrkflow

Description of problem:

I believe the root cause of this issue is that this particular RHUI has both expired and valid entitlements.  For what ever reason the cert_manager.valid_entitlements() call is not picking up the valid entitlements..

See the attached wrkflow..

Comment 1 wes hayutin 2012-07-24 15:30:41 UTC
problem is discovered on screens/client.py line 61... not sure what the root cause is yet

Comment 2 wes hayutin 2012-07-30 15:30:54 UTC
Created attachment 601301 [details]
entitlement_recreate.txt

not able to recreate atm.

Comment 3 wes hayutin 2012-07-30 16:11:47 UTC
moving to on_qa to see if qa can repro. If an expired cert is required please contact me.

Comment 4 mkovacik 2012-08-09 17:23:47 UTC
Created attachment 603312 [details]
Reproducer screen log 1

Reproducing screen log. The workflow here was:

1. with valid RHN entitlement, add few RHEL repos
2. associate some with clusters
3. remove the RHN entitlements from /etc/pki/rhui/redhat
4. upload an expired RHN entitlement
6. unassociate a repo from a cluster at will
7. creating client entitlement for any cluster fails with: no associate repos or entitlement expired
8. upload valid RHN certificate
9. retry generating client certificates
10. discrepancy between associated repos and repos available for client entitlement creation emerges

Will try again on a different deployment to confirm

Comment 5 mkovacik 2012-08-09 17:25:28 UTC
(In reply to comment #4)
> Created attachment 603312 [details]
> Reproducer screen log 1
> 
> Reproducing screen log. The workflow here was:
> 
> 1. with valid RHN entitlement, add few RHEL repos
> 2. associate some with clusters
> 3. remove the RHN entitlements from /etc/pki/rhui/redhat
> 4. upload an expired RHN entitlement
> 6. unassociate a repo from a cluster at will
> 7. creating client entitlement for any cluster fails with: no associate
> repos or entitlement expired
> 8. upload valid RHN certificate
> 9. retry generating client certificates
> 10. discrepancy between associated repos and repos available for client
> entitlement creation emerges
> 
> Will try again on a different deployment to confirm

Build: RHEL-6.3-RHUI-2.1-20120801.0-Server-x86_64-DVD1.iso

Comment 6 mkovacik 2012-08-10 08:58:17 UTC
Created attachment 603449 [details]
Reproducer screen log 2

There is even a discrepancy adding all entitled repositories; besides the fact that they are assigned at will to all the clusters (the first cluster gets all the repos, the other just some custom subset), creating client entitlement shows a discrepancy from what is assigned to the cluster-1 and what is available for the client to entitle. However, I wasn't able to reproduce the comment 4 steps here. I'll retry once more with fewer repos added.

Comment 7 mkovacik 2012-08-10 10:22:49 UTC
Created attachment 603461 [details]
Client entitlement repos discrepancy

I've just observed an issue similar to comment 6 on yet another 2.1 deployment; even though the RHN entitlement certificates were not tampered with. See the screen log attached. Build:  RHEL-6.3-RHUI-2.1-20120801.0-Server-x86_64-DVD1.iso

Could these be related to Bug 840005 ?

Comment 8 wes hayutin 2012-08-10 13:05:37 UTC
(In reply to comment #7)
> Created attachment 603461 [details]
> Client entitlement repos discrepancy
> 
> I've just observed an issue similar to comment 6 on yet another 2.1
> deployment; even though the RHN entitlement certificates were not tampered
> with. See the screen log attached. Build: 
> RHEL-6.3-RHUI-2.1-20120801.0-Server-x86_64-DVD1.iso
> 
> Could these be related to Bug 840005 ?

Its not clear to me that anything bad happened in this log

Comment 9 mkovacik 2012-08-10 16:00:17 UTC
Created attachment 603579 [details]
Screen log retrying steps from comment 6

This shows adding all RHN entitled repos at once causes issues both with spontaneous assignment of repos to all the clusters as well as the client entitlement discrepancy in available repos (esp. with cluster-1)...

Comment 10 wes hayutin 2012-08-10 17:38:14 UTC
Created attachment 603592 [details]
exact milan recreate

The fix for Bug 840005 was not in your build.. that is why you are hitting that issue..

See my recreate.. The issue in 840005 is unrelated to this bug

Comment 11 James Slagle 2012-08-10 18:28:22 UTC
i do see one issue with this, looks like we're not filtering the list of unprotected repositories we let you choose during client config rpm creation to only those repos associated with the cluster you're working with.

Comment 12 James Slagle 2012-08-10 18:40:03 UTC
fixed the issue from comment 11 in commit b087c1fa5cb7486d1060c815ad1614f62f7d0bef

Comment 14 mkovacik 2012-08-14 13:25:09 UTC
Created attachment 604296 [details]
Reproducer screen log -- comment 11

Reproduced comment 11 issue in RHEL-6.3-RHUI-2.1-20120810.1-Server-x86_64-DVD1.iso

Comment 15 James Slagle 2012-08-14 13:49:58 UTC
This should be fixed in rh-rhui-tools-2.1.9, please use this iso to test:
http://download.devel.redhat.com/devel/candidates/RHEL-6.3-RHUI-2.1-20120813.1/2.1/Server/x86_64/iso/

Comment 16 mkovacik 2012-08-14 17:00:03 UTC
Created attachment 604369 [details]
Verifying screen log

And indeed has it been fixed in rh-rhui-tools-2.1.9, build RHEL-6.3-RHUI-2.1-20120813.1-Server-x86_64-DVD1.iso. See the screen log attached.

Comment 17 Julie 2012-08-15 04:53:07 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:
For creating client configuration RPMs, the list of unprotected repositories were not filtered, so when there are both valid and expired entitlements, client entitlement certificate generation will fail with "associated repo's not found " error. ISO 2.1 has been updated so the error no longer appears.

Comment 19 errata-xmlrpc 2012-08-24 11:55:34 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/RHEA-2012-1205.html


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