While uploading entitlement certificate on RHUA using "rhui-manager," it fails with "IndexError: list index out of range"

Solution Verified - Updated -

Issue

  • While uploading entitlement certificate using rhui-manager it fails with the error below:
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
  • While trying to upload new entitlement certificates to the RHUA, it fails with :
             -= 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content