Bug 838583
Summary: | ERROR: if repo['repo_id'] not in cluster['repo_ids']: KeyError: 'repo_id', while creating entitlement certificate | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | wes hayutin <whayutin> | ||||
Component: | RHUA | Assignee: | mkovacik | ||||
Status: | CLOSED ERRATA | QA Contact: | Martin Kočí <mkoci> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 2.1 | CC: | kbidarka, mkoci, mkovacik, sachua, sghai, tsanders | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Two separate repository lists were used by rhui-manager to display and track what repositories were selected during the creation of client entitlement certificate which led to a conflict. A repository list that is synchronised with what is displayed to the user has now been created to remove this error.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-08-24 11:55:09 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: | |||||||
Attachments: |
|
Description
wes hayutin
2012-07-09 14:21:30 UTC
To recreate this issue, I believe a custom repo needs to be created. I'm not sure yet, but I think the key for custom repos needs to be changed from "id" to "repo_id" I believe this is a possible fix.. --- a/rhui-2.0/tools/src/rhui/tools/screens/client.py +++ b/rhui-2.0/tools/src/rhui/tools/screens/client.py @@ -85,7 +85,7 @@ class ClientScreen(Screen): # List each repo for that path underneath it, indented to match # the menu for repo in ent.repos: - if repo['repo_id'] not in cluster['repo_ids']: + if repo['id'] not in cluster['repo_ids']: continue menu_item += ' %s\n' % repo['name'] diff --git a/rhui-2.0/tools/test/data/ca1.srl b/rhui-2.0/tools/test/data/ca1.srl index adb9de8..86397e5 100644 --- a/rhui-2.0/tools/test/data/ca1.srl +++ b/rhui-2.0/tools/test/data/ca1.srl @@ -1 +1 @@ -08 +09 cloude ae1789aaabf07247f2d5f72e93dd426a72b0a86b *** Bug 840532 has been marked as a duplicate of this bug. *** Created attachment 601962 [details] Verifying screen log Verified according to steps in Bug 840532. See the screen log attached. Build: RHEL-6.3-RHUI-2.1-20120801.0-Server-x86_64-DVD1.iso 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: Two separate repository lists were used by rhui-manager to display and track what repositories were selected during the creation of client entitlement certificate which led to a conflict. A repository list that is synchronised with what is displayed to the user has now been created to remove this error. 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 |