"rhui-manger" を使用して RHUA にエンタイトルメント証明書をアップロードすると、"IndexError: list index out of range" で失敗する
Issue
rhui-managerを使用してエンタイトルメントの証明書をアップロードすると、以下のエラーで失敗します。
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/entitlements.py",
line 104, in new_certificate
self.cert_manager.add_certificate(cert_filename)
File "/usr/lib/python2.6/site-packages/rhui/tools/cert_manager.py",
line 273, in add_certificate
entitlements = cert_utils.entitlements_in_cert(cert_filename)
File "/usr/lib/python2.6/site-packages/rhui/common/cert_utils.py",
line 66, in entitlements_in_cert
product_number = e.part[9]
IndexError: list index out of range
- RHUA に新しいエンタイトルメント証明書をアップロードすると、以下のエラーで失敗します。
-= Red Hat Update Infrastructure Management Tool =-
-= Entitlements Manager =-
l list Red Hat content certificate entitlements
c list custom repository entitlements
u upload a new or updated Red Hat content certificate
Connected: rhua.example.com
------------------------------------------------------------------------------
rhui (entitlements) => u
Full path to the new content certificate:
/root/certs/rh-content.pem
The RHUI will be updated with the following certificate:
/root/certs/rh-content.pem
Proceed?(y/n) y
An unexpected error has occurred during the last operation.
More information can be found in /root/.rhui/rhui.log.
Environment
- Red Hat Update Infrastructure (RHUI) 2.1.1
- Red Hat Subscription Manager (RHSM)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
