Entitlement verify script "entitlement-check.py" for Satellite 5.8 upgrade fails with "UnboundLocalError: local variable 'cert' referenced before assignment"

Solution Verified - Updated -


  • Entitlements check script entitlement-check.py provided in preparations.txt for upgrade Satellite 5.7 to 5.8 failed with following error.
[root@satellite scripts]# ./entitlement-check.py --manifest=/home/user/manifest.zip
Traceback (most recent call last):
  File "./entitlement-check.py", line 355, in <module>
  File "./entitlement-check.py", line 90, in main
    cert = parse_manifest(options.manifest)
  File "./entitlement-check.py", line 279, in parse_manifest
    cert = parse_cert_from_string(cert)
UnboundLocalError: local variable 'cert' referenced before assignment


  • Red Hat Satellite 5.7

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