RHUI entitlement creation fails with traceback
Environment
- Red Hat Update Infrastructure
Issue
- Going through the following rhui-manager menu options:
rhui (home) => e
rhui (client) => e
Select the CDS cluster that clients using this entitlement certificate will use to download content
- However I am getting the following python traceback in /root/.rhui/rhui.log when trying to generate an entitlement certificate:
Unexpected error caught at the shell level
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 86, in safe_listen
self.listen(clear=first_run)
File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 112, in listen
Shell.listen(self)
File "/usr/lib/python2.6/site-packages/rhui/common/shell.py", line 186, in listen
item.func(*args, **item.kwargs)
File "/usr/lib/python2.6/site-packages/rhui/tools/screens/client.py", line 81, in generate
ent_repo_mappings = self.pulp.custom_repo_entitlements()
File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 881, in custom_repo_entitlements
repo_path = repo['notes'][ENTITLEMENT_PATH]
KeyError: 'entitlement-path'
Resolution
The traceback was triggered because the 'entitlement-path' key-value pair was not set. After creating the repo, run the following command to add a note and the entitlement-path:
# pulp-admin repo add_note --id <repo-note> --key entitlement-path --value <repo-entitlement-path>
Root Cause
- During prompts to create a custom repository, it is important to ensure proper selection of values when choosing to either provide the repository via an entitlement or not.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments