[Pacemaker] crm shell and corosync2 node id
Vladislav Bogdanov
bubble at hoster-ok.com
Thu Sep 13 20:14:07 CEST 2012
13.09.2012 15:42, Dejan Muhamedagic wrote:
> Hi again,
>
> On Thu, Sep 13, 2012 at 02:57:54PM +0300, Vladislav Bogdanov wrote:
>> Hi Dejan, all,
>>
>> current crm shell (b58a3398bf11) can not parse node 'id' attribute when
>> running on corosync 2:
>>
>> # crm configure show |grep xml
>> INFO: object 1074005258 cannot be represented in the CLI notation
>> INFO: object 1090782474 cannot be represented in the CLI notation
>> INFO: object 1107559690 cannot be represented in the CLI notation
>> INFO: object 1124336906 cannot be represented in the CLI notation
>> xml <node id="1074005258" uname="vd01-a"> \
>> xml <node id="1090782474" uname="vd01-b"> \
>> xml <node id="1107559690" uname="vd01-c"> \
>> xml <node id="1124336906" uname="vd01-d"> \
>
> Can you please try the attached patch.
Now it works ok without type attribute specified, but if I add
type="normal", it cries again :)
One more issue is that when I do crm configure edit xml, when I save
file in editor, I see:
ERROR: syntax in clone: target-role=Started clone-max=4
ERROR: syntax in clone: target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: interleave=true target-role=Started clone-max=4
ERROR: syntax in clone: target-role=Started clone-max=4
Do you want to edit again? y
<exit from editor again>
Traceback (most recent call last):
File "/usr/sbin/crm", line 44, in <module>
main.run()
File "/usr/lib64/python2.6/site-packages/crmsh/main.py", line 390, in run
File "/usr/lib64/python2.6/site-packages/crmsh/main.py", line 304, in
do_work
File "/usr/lib64/python2.6/site-packages/crmsh/main.py", line 149, in
parse_line
File "/usr/lib64/python2.6/site-packages/crmsh/main.py", line 148, in
<lambda>
File "/usr/lib64/python2.6/site-packages/crmsh/ui.py", line 1449, in edit
File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line
158, in edit
File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line
143, in edit_save
File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line
463, in save
File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line
441, in process
File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line
2332, in update_from_node
File "/usr/lib64/python2.6/site-packages/crmsh/idmgmt.py", line 82, in
replace_xml
File "/usr/lib64/python2.6/site-packages/crmsh/idmgmt.py", line 80, in
remove_xml
File "/usr/lib64/python2.6/site-packages/crmsh/xmlutil.py", line 302,
in xmltraverse_thin
File "/usr/lib64/python2.6/site-packages/crmsh/idmgmt.py", line 69, in
_drop_node
File "/usr/lib64/python2.6/xml/dom/minidom.py", line 682, in getAttribute
TypeError: 'NoneType' object is unsubscriptable
Vladislav
More information about the Pacemaker
mailing list