Crm configure commit fails with python stack trace

Bug #497314 reported by David Henningsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pacemaker (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pacemaker

I'm trying to setup a cluster with Ubuntu Karmic and pacemaker-openais. Perhaps I'm missing some essential component or configuration, but then I would expect a more helpful error message.

$ sudo crm configure
crm(live)configure# property no-quorum-policy= ignore
crm(live)configure# property stonith-enabled= false
crm(live)configure# commit
Traceback (most recent call last):
  File "/usr/sbin/crm", line 7754, in <module>
    try: parse_line(levels,shlex.split(inp))
  File "/usr/sbin/crm", line 7642, in parse_line
    rv = d() # execute the command
  File "/usr/sbin/crm", line 7641, in <lambda>
    d = lambda: cmd[0](*args)
  File "/usr/sbin/crm", line 3482, in commit
    if not self.verify("verify"):
  File "/usr/sbin/crm", line 3388, in verify
    rc1 = set_obj.verify()
  File "/usr/sbin/crm", line 5594, in verify
    rc = pipe_string(cib_verify,self.repr())
  File "/usr/sbin/crm", line 5548, in repr
    s = doc.toprettyxml(user_prefs.xmlindent)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 57, in toprettyxml
    self.writexml(writer, "", indent, newl, encoding)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1749, in writexml
    node.writexml(writer, indent, addindent, newl)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 817, in writexml
    node.writexml(writer,indent+addindent,addindent,newl)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 817, in writexml
    node.writexml(writer,indent+addindent,addindent,newl)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 817, in writexml
    node.writexml(writer,indent+addindent,addindent,newl)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 817, in writexml
    node.writexml(writer,indent+addindent,addindent,newl)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 812, in writexml
    _write_data(writer, attrs[a_name].value)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 301, in _write_data
    data = data.replace("&", "&amp;").replace("<", "&lt;")
AttributeError: 'NoneType' object has no attribute 'replace'

Revision history for this message
David Henningsson (diwic) wrote :

Found it! It is a real gotcha. There can't be a space between "property stonith-enabled=" and "false". However, if you use tab completion, it automatically inserts one for you!

Revision history for this message
Ante Karamatić (ivoks) wrote :

This is fixed in Lucid. No space is added during tab cmpletion.

Changed in pacemaker (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.