[ClusterLabs] Pacemaker cannot update configuration from XML file
Nguyen Xuan Hai
hai.nguyenxuan at toshiba-tsdv.com
Fri May 29 07:20:00 UTC 2015
Hi,
I have a pacemaker + corosync cluster running on Debian 6.
My system is running normally. But it cannot update configuration from
xml file.
I run command: crm configure load xml update <xml_file>
And error messages:
Traceback (most recent call last):
File "/usr/sbin/crm", line 45, in <module>
main.run()
File "/usr/lib/python2.6/dist-packages/crm/main.py", line 268, in run
if parse_line(levels,shlex.split(' '.join(args))):
File "/usr/lib/python2.6/dist-packages/crm/main.py", line 148, in
parse_line
rv = d() # execute the command
File "/usr/lib/python2.6/dist-packages/crm/main.py", line 147, in
<lambda>
d = lambda: cmd[0](*args)
File "/usr/lib/python2.6/dist-packages/crm/ui.py", line 1477, in load
return set_obj.import_file(method,url)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 218,
in import_file
return self.save(s, method == "update")
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 456,
in save
if not self.process(node,update):
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 434,
in process
rc = cib_factory.update_from_node(obj,node)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 2091,
in update_from_node
return self.update_element(obj,node)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 2100,
in update_element
if xml_cmp(oldnode,newnode):
File "/usr/lib/python2.6/dist-packages/crm/xmlutil.py", line 760, in
xml_cmp
rc = hash(n.toxml()) == hash(m.toxml())
File "/usr/lib/python2.6/xml/dom/minidom.py", line 45, in toxml
return self.toprettyxml("", "", encoding)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 59, in toprettyxml
self.writexml(writer, "", indent, 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 807, in writexml
a_names = attrs.keys()
File "/usr/lib/python2.6/xml/dom/minidom.py", line 506, in keys
return self._attrs.keys()
AttributeError: 'NoneType' object has no attribute 'keys'
How can I update configuration from XML file?
Thanks and Best regards,
HaiNX
--
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com
More information about the Users
mailing list