Bug 1403778 - entitlement-check.py does not work for manifest but is mentioned in rhn-upgrade's README
Summary: entitlement-check.py does not work for manifest but is mentioned in rhn-upgra...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jiří Dostál
QA Contact: Ales Dujicek
URL:
Whiteboard:
Depends On:
Blocks: sat580-beta
TreeView+ depends on / blocked
 
Reported: 2016-12-12 11:09 UTC by Lukáš Hellebrandt
Modified: 2017-06-21 12:12 UTC (History)
4 users (show)

Fixed In Version: rhn-upgrade-5.8.0.12-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:12:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Hellebrandt 2016-12-12 11:09:23 UTC
Description of problem:
entitlement-check.py does not work for manifest but is mentioned in rhn-upgrade's README

# grep entitlement-check doc/preparations.txt 
    ./entitlement-check.py --rhn-cert=~/new.cert
re-run entitlement-check.py in order to re-test the new certificate.

# ./entitlement-check.py --rhn-cert=~/$MANIFEST_FILE 
Traceback (most recent call last):
  File "./entitlement-check.py", line 323, in <module>
    main()
  File "./entitlement-check.py", line 80, in main
    cert = parse_cert(options.rhn_cert)
  File "./entitlement-check.py", line 261, in parse_cert
    xmldoc = minidom.parse(os.path.expanduser(filename))
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/minidom.py", line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 926, in parse
    result = builder.parseFile(fp)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 2


Actual results:
When user follows the instructions, they hit the following traceback

Expected results:
Make the script work for manifest or do not tell user to use it


Note You need to log in before you can comment on or make changes to this bug.