Bug 692899 - ccs --help traceback when appended to some commands
Summary: ccs --help traceback when appended to some commands
Keywords:
Status: CLOSED DUPLICATE of bug 614647
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ricci
Version: 6.1
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-01 14:46 UTC by Brian Brock
Modified: 2011-04-05 23:46 UTC (History)
1 user (show)

Fixed In Version: ricci-0.16.2-34.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-05 23:46:29 UTC
Target Upstream Version:


Attachments (Terms of Use)

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 ***


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