Hi Kristoffer,

Thank you for comments.

By crmsh-7f620e736895.tar.gz, I did "make install"  well.

I seem to be able to set the sequential attribute definitely.
The sequential attribute does become true.

-------------------------------
(snip)
colocation rsc_colocation-master INFINITY: [ vip-master vip-rep sequential=true 
] [ msPostgresql:Master sequential=true ]
(snip)
        <resource_set id="rsc_colocation-master-0" require-all="false" 
sequential="true">
          <resource_ref id="vip-master"/>
          <resource_ref id="vip-rep"/>
        </resource_set>
        <resource_set id="rsc_colocation-master-1" require-all="false" 
sequential="true" role="Master">
          <resource_ref id="msPostgresql"/>
        </resource_set>
(snip)
-------------------------------

But the next information appeared when I put crm.
Does this last message not have any problem?

-------------------------------
[root@srv01 ~]# crm configure load update db2-resource_set_0207.crm             
 
WARNING: pgsql: action monitor not advertised in meta-data, it may not be 
supported by the RA
WARNING: pgsql: action notify not advertised in meta-data, it may not be 
supported by the RA
WARNING: pgsql: action demote not advertised in meta-data, it may not be 
supported by the RA
WARNING: pgsql: action promote not advertised in meta-data, it may not be 
supported by the RA
INFO: object rsc_colocation-master cannot be represented in the CLI notation
-------------------------------

In addition, colocation becomes xml when I confirm it by "crm configure show" 
command, and sequential disappears.
Do you not have a problem with this result either?

-------------------------------
 crm configure show
(snip)
xml <rsc_colocation id="rsc_colocation-master" score="INFINITY"> \
  <resource_set id="rsc_colocation-master-0" require-all="false"> \
    <resource_ref id="vip-master"/> \
    <resource_ref id="vip-rep"/> \
  </resource_set> \
  <resource_set id="rsc_colocation-master-1" require-all="false" role="Master"> 
\
    <resource_ref id="msPostgresql"/> \
  </resource_set> \
</rsc_colocation>
(snip)
-------------------------------

In addition, it becomes the error when I appoint false in symmetrical attribute 
of order.

-------------------------------
(snip)
### Resource Order ###
order rsc_order-clnPingd-msPostgresql-1 0: clnPingd msPostgresql 
symmetrical=false
order test-order-1 0: ( vip-master vip-rep ) symmetrical=false
order test-order-2 INFINITY: msPostgresql:promote vip-master:start 
symmetrical=false
order test-order-3 INFINITY: msPostgresql:promote vip-rep:start 
symmetrical=false
order test-order-4 0: msPostgresql:demote vip-master:stop symmetrical=false
order test-order-5 0: msPostgresql:demote vip-rep:stop symmetrical=false
(snip)
[root@srv01 ~]# crm configure load update db2-resource_set_0207.crm 
Traceback (most recent call last):
  File "/usr/sbin/crm", line 56, in <module>
    rc = main.run()
  File "/usr/lib64/python2.6/site-packages/crmsh/main.py", line 433, in run
    return do_work(context, user_args)
  File "/usr/lib64/python2.6/site-packages/crmsh/main.py", line 272, in do_work
    if context.run(' '.join(l)):
  File "/usr/lib64/python2.6/site-packages/crmsh/ui_context.py", line 87, in run
    rv = self.execute_command() is not False
  File "/usr/lib64/python2.6/site-packages/crmsh/ui_context.py", line 244, in 
execute_command
    rv = self.command_info.function(*arglist)
  File "/usr/lib64/python2.6/site-packages/crmsh/ui_configure.py", line 432, in 
do_load
    return set_obj.import_file(method, url)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 314, in 
import_file
    return self.save(s, no_remove=True, method=method)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 529, in 
save
    upd_type="cli", method=method)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 3178, in 
set_update
    if not self._set_update(edit_d, mk_set, upd_set, del_set, upd_type, method):
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 3170, in 
_set_update
    return self._cli_set_update(edit_d, mk_set, upd_set, del_set, method)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 3118, in 
_cli_set_update
    obj = self.create_from_cli(cli)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 3045, in 
create_from_cli
    node = obj.cli2node(cli_list)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 1014, in 
cli2node
    node = self._cli_list2node(cli_list, oldnode)
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 1832, in 
_cli_list2node
    headnode = mkxmlsimple(head, oldnode, '')
  File "/usr/lib64/python2.6/site-packages/crmsh/cibconfig.py", line 662, in 
mkxmlsimple
    node.set(n, v)
  File "lxml.etree.pyx", line 634, in lxml.etree._Element.set 
(src/lxml/lxml.etree.c:31548)
  File "apihelpers.pxi", line 487, in lxml.etree._setAttributeValue 
(src/lxml/lxml.etree.c:13896)
  File "apihelpers.pxi", line 1240, in lxml.etree._utf8 
(src/lxml/lxml.etree.c:19826)
TypeError: Argument must be string or unicode.
-------------------------------

This error seems to be broken off if I apply the patch which next Mr Inoue 
contributed somehow or other

 * http://www.gossamer-threads.com/lists/linuxha/dev/88660

-----
v = v.lower() 
if n.startswith('$'): 
n = n.lstrip('$') 
+ if isinstance(v, bool): 
+ v = "true" if v else "false" 
if (type(v) != type('') and type(v) != type(u'')) \ 
or v: # skip empty strings 
node.set(n, v) 
-----


Best Regards,
Hideo Yamauchi.

--- On Thu, 2014/2/13, Kristoffer Grönlund <kgronl...@suse.com> wrote:

> On Wed, 12 Feb 2014 17:29:20 +0900 (JST)
> renayama19661...@ybb.ne.jp wrote:
> 
> > Hi Kristoffer,
> > 
> > Thank you for comments.
> > 
> > > Could you try with the latest changeset 337654e0cdc4?
> > 
> > However, the problem seems to still occur.
> > 
> 
> Hello,
> 
> I have now verified that the fix in changeset 7f620e736895 works in
> CentOS 6.5, sorry for the false fixes previously. Please test again with
> this updated version.
> 
> Thank you,
> 
> -- 
> // Kristoffer Grönlund
> // kgronl...@suse.com
> 

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to