Bug 692899

Summary: ccs --help traceback when appended to some commands
Product: Red Hat Enterprise Linux 6 Reporter: Brian Brock <bbrock>
Component: ricciAssignee: Chris Feist <cfeist>
Status: CLOSED DUPLICATE QA Contact: Cluster QE <mspqa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: cluster-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ricci-0.16.2-34.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-05 23:46:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Brian Brock 2011-04-01 14:46:01 UTC
Adding --help after ccs commands expecting more arguments can cause a traceback.

ccs-0.16.2-33.el6

reliably reproducible for some commands

north-14 is a member of a cluster in this example:

-(~:$)-> ccs -h north-14 --addresource --help
Traceback (most recent call last):
  File "/usr/sbin/ccs", line 1932, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/ccs", line 260, in main
    if (addresource): add_resource(name, options)
  File "/usr/sbin/ccs", line 1349, in add_resource
    set_cluster_conf(dom.toxml())
  File "/usr/sbin/ccs", line 1738, in set_cluster_conf
    dom = minidom.parseString(xml)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/minidom.py", line 1925, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 942, in parseString
    return builder.parseString(string)
  File "/usr/lib64/python2.6/site-packages/_xmlplus/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 13, column 12


Expected results:
Error message or usage text

Comment 2 RHEL Program Management 2011-04-04 02:15:49 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Chris Feist 2011-04-05 23:42:40 UTC
Usage text is now output instead of a traceback.

Comment 4 Chris Feist 2011-04-05 23:46:29 UTC
Rolling into main CLI bz.

*** This bug has been marked as a duplicate of bug 614647 ***