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

Solution In Progress - Updated -

Issue

  • 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>
    main()
  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

Environment

  • Red Hat Satellite 5.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In