Red Hat Bugzilla – Bug 857866
Index out of range creating entitlement certificate for a custom repository
Last modified: 2012-09-28 10:38:26 EDT
Created attachment 613620 [details]
Description of problem:
An "Index out of range" exception is risen while creating entitlement certificate for a custom repository
Version-Release number of selected component (if applicable):
RHUI 2.1; RHEL-6.3-RHUI-2.1-20120815.0-Server-x86_64-DVD1.iso
2 of 2
Steps to Reproduce:
0. deploy rhui 2.1 with a cds cluster: cluster-1
1. create several custom protected repositories
2. associate them with a cluster-1
3. generate entitlement certificate for a (last-one) custom repository
4. the exception happens
An "index out of range" exception prevents creating custom protected repository entitlement certificate
Creating entitlements for custom protected repositories works OK
See the screen log attached for more details
Created attachment 613646 [details]
Screen log 1
It seems first few custom protected repositories are handled OK; see in Screen log 1...
The bug is triggered when you have multiple custom repos that share the same entitlement path.
The fix as pointed out by Ian Pilcher is relatively straightforward:
/home/jslagle/code/cloude/rhui-2.0/tools $ git diff
diff --git a/rhui-2.0/tools/src/rhui/tools/screens/client.py b/rhui-2.0/tools/sr
index 448188d..ad52f25 100644
@@ -93,7 +93,7 @@ class ClientScreen(Screen):
menu_item += ' %s\n' % repo['name']
if not (redhat_ent_names or custom_ent_names):
self.prompt.write('Cluster is not associated with any '
I've committed this to the cloude repo:
make sure you've updated to rh-rhui-tools-2.1.11. Follow the RHUI update procedure as outlined in the RHUI Administration guide to get the updated package, however, sync your RHUI repos from cdn.rcm-qa.redhat.com instead of cdn.redhat.com in order to get this updated package.
Once the package has been updated, here are sample verification steps (you may like to add more):
1. restart rhui-manager if it was already running before the update
2. create multiple custom repos, at least 2 need to share the same entitlement path
3. create entitlement certs for the custom repos. ensure all custom repos can be used to create entitlement certs. Probably a good idea to test selecting one custom repo at a time, then all custom repos at a time, then various cherry picked ones, etc.
built into rh-rhui-tools-2.1.13-1.el6_3, make sure you have this version when testing the update instead of the previously mentioned rh-rhui-tools-2.1.11 in comment 3
Created attachment 617920 [details]
RHUI update log
Update to rh-rhui-tools-2.1.13-1.el6_3 successful
Created attachment 617921 [details]
Verifying screen log
The up-to-date package rh-rhui-tools-2.1.13-1.el6_3 solves the issue. See the screen log attached.
- rh-rhui-tools-2.1.13-1.el6_3.noarch.rpm is not yet signed
- test performed in EC2 staging env
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.