[Pacemaker] clone
Cédric Castanet
cedriccastanet at free.fr
Wed Oct 6 09:55:53 UTC 2010
, *Michael Schwartzkopff* a écrit :
> Try to configure the resource-stickiness within the resource and not within the
> clone.
>
>
Sorry not answering directly to the thread, but i've done a mistake in
the mailing list configuration. hope this is ok now.
I tried but it doesn't change anything:
root at node2:~# crm resource stop SecIP
root at node2:~# crm configure delete SecIP
root at node2:~# crm configure primitive SecIP ocf:heartbeat:IPaddr2 params
ip="192.168.2.20" cidr_netmask="24" clusterip_hash="sourceip"
resource-stickiness="0" op monitor interval="30s"
ERROR: SecIP: parameter resource-stickiness does not exist
Do you still want to commit? n
root at node2:~# crm configure primitive SecIP ocf:heartbeat:IPaddr2 params
ip="192.168.2.20" cidr_netmask="24" clusterip_hash="sourceip" op monitor
interval="30s" meta resource-stickiness="0"
root at node2:~# crm configure clone CloneSecIP SecIP meta
globally-unique=”true” clone-max=”2” clone-node-max="2" Traceback (most
recent call last):
File "/usr/sbin/crm", line 41, in <module>
crm.main.run()
File "/usr/lib/python2.6/dist-packages/crm/main.py", line 246, in run
if parse_line(levels,shlex.split(' '.join(args))):
File "/usr/lib/python2.6/dist-packages/crm/main.py", line 144, in
parse_line
rv = d() # execute the command
File "/usr/lib/python2.6/dist-packages/crm/main.py", line 143, in
<lambda>
d = lambda: cmd[0](*args)
File "/usr/lib/python2.6/dist-packages/crm/ui.py", line 1436, in
conf_clone
return self.__conf_object(cmd,*args)
File "/usr/lib/python2.6/dist-packages/crm/ui.py", line 1415, in
__conf_object
return f()
File "/usr/lib/python2.6/dist-packages/crm/ui.py", line 1414, in <lambda>
f = lambda: cib_factory.create_object(cmd,*args)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 1954,
in create_object
return self.create_from_cli(CliParser().parse(list(args))) != None
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 2019,
in create_from_cli
return self.add_element(obj, node)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 2153,
in add_element
if not obj.cli_use_validate():
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 802,
in cli_use_validate
cli_text = self.repr_cli(format = -1)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 694,
in repr_cli
return self.cli_format(l,format)
File "/usr/lib/python2.6/dist-packages/crm/cibconfig.py", line 718,
in cli_format
s = cli_format(l,format)
File "/usr/lib/python2.6/dist-packages/crm/cliformat.py", line 31, in
cli_format
return ' '.join(pl)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 22:
ordinal not in range(128)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101006/90ba6b94/attachment-0002.htm>
More information about the Pacemaker
mailing list