<div dir="ltr">With force option, resource gets deleted. But the question is, why should the stop fail.<div>Setup has two systems and there is only one resource (multi state type). Things work</div><div>fine with crm commands. With pcs command, delete command tries to stop but fails.</div>
<div><br></div><div>Looked at pcs resource.py script and after adding some prints, looks like multistate resource has :0 or :1</div><div>appended by pacemaker and that doesnt match with name of the resource that is to be stopped.</div>
<div><br></div><div><br></div><div>Will send configuration file in some time</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 4:57 PM, Frank Brendel <span dir="ltr"><<a href="mailto:frank.brendel@eurolog.com" target="_blank">frank.brendel@eurolog.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
An overview of your setup/configuration would be nice.<br>
What was the cluster status before you tried to delete the resource?<br>
And did you try the --force option?<br>
<br>
<br>
<div>Am <a href="tel:26.02.2014%2011" value="+12602201411" target="_blank">26.02.2014 11</a>:46, schrieb K Mehta:<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Here is the log
<div><br>
</div>
<div>
<div>[root@sys11 ~]# pcs resource delete
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5072]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//master[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5073]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//group[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5074]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//clone[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5075]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//group/primitive[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]/..</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5076]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//master/primitive[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]/..</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5077]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//clone/primitive[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]/..</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5078]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//resources/descendant::primitive[@id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"]</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5079]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -l -Q</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5080]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -l -Q</div>
<div>Removing Constraint -
location-ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys11-200</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5081]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//constraints</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5082]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -c -R --xml-text
<constraints>#012 <rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys11-200"
node="sys11" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200"/>#012 <rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200"
node="sys12" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200"/>#012 #012 <rsc_location
id="location-ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200"
node="sys12" rsc=</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: --- 0.10093.35</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: +++ 0.10094.1 27f25363baeeec4878c2cea5e6222e23</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: --
<rsc_location
id="location-ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys11-200"
node="sys11" rsc="ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200" /></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: ++
<cib epoch="10094" num_updates="1" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.7"
update-origin="sys11" update-client="cibadmin"
cib-last-written="Wed Feb 26 02:27:31 2014" have-quorum="1"
dc-uuid="sys11" /></div>
<div>Feb 26 02:28:16 sys11 crmd[4127]: notice:
do_state_transition: State transition S_IDLE ->
S_POLICY_ENGINE [ input=I_PE_CALC cause=C_FSA_INTERNAL
origin=abort_transition_graph ]</div>
<div>Feb 26 02:28:16 sys11 crmd[4127]: notice:
do_state_transition: State transition S_ELECTION ->
S_INTEGRATION [ input=I_ELECTION_DC cause=C_FSA_INTERNAL
origin=do_election_check ]</div>
<div>Removing Constraint -
location-ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5083]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//constraints</div>
<div>
Feb 26 02:28:16 sys11 cibadmin[5085]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -c -R --xml-text
<constraints>#012 <rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys11-200"
node="sys11" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200"/>#012 <rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200"
node="sys12" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200"/>#012 #012</constraints></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: --- 0.10094.14</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: +++ 0.10095.1 c48d530998d1a3e4621d73567df7def4</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: --
<rsc_location
id="location-ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200"
node="sys12" rsc="ms-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200" /></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: ++
<cib epoch="10095" num_updates="1" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.7"
update-origin="sys11" update-client="cibadmin"
cib-last-written="Wed Feb 26 02:28:16 2014" have-quorum="1"
dc-uuid="sys11" /></div>
<div>Removing Constraint -
location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys11-200</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5090]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//constraints</div>
<div>
Feb 26 02:28:16 sys11 cibadmin[5091]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -c -R --xml-text
<constraints>#012 #012 <rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200"
node="sys12" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200"/>#012</constraints></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: --- 0.10095.4</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: +++ 0.10096.1 f2dda1c76e257f9f5049a4fea144aef3</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: --
<rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys11-200"
node="sys11" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200" /></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: ++
<cib epoch="10096" num_updates="1" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.7"
update-origin="sys11" update-client="cibadmin"
cib-last-written="Wed Feb 26 02:28:16 2014" have-quorum="1"
dc-uuid="sys11" /></div>
<div>Removing Constraint -
location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200</div>
<div>Feb 26 02:28:16 sys11 cibadmin[5092]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -Q --xpath
//constraints</div>
<div>
Feb 26 02:28:16 sys11 cibadmin[5093]: notice:
crm_log_args: Invoked: /usr/sbin/cibadmin -c -R --xml-text
<constraints>#012 #012</constraints></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: --- 0.10096.3</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff:
Diff: +++ 0.10097.1 fe7ac58f6c73ebda83d723bfc2d31241</div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: --
<rsc_location
id="location-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-sys12-200"
node="sys12" rsc="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8"
score="200" /></div>
<div>Feb 26 02:28:16 sys11 cib[4122]: notice: cib:diff: ++
<cib epoch="10097" num_updates="1" admin_epoch="0"
validate-with="pacemaker-1.2" crm_feature_set="3.0.7"
update-origin="sys11" update-client="cibadmin"
cib-last-written="Wed Feb 26 02:28:16 2014" have-quorum="1"
dc-uuid="sys11" /></div>
<div>Feb 26 02:28:17 sys11 crmd[4127]: notice:
do_state_transition: State transition S_ELECTION ->
S_INTEGRATION [ input=I_ELECTION_DC cause=C_FSA_INTERNAL
origin=do_election_check ]</div>
<div>Feb 26 02:28:17 sys11 attrd[4125]: notice:
attrd_local_callback: Sending full refresh (origin=crmd)</div>
<div>Feb 26 02:28:17 sys11 attrd[4125]: notice:
attrd_trigger_update: Sending flush op to all hosts for:
probe_complete (true)</div>
<div>Feb 26 02:28:17 sys11 attrd[4125]: notice:
attrd_trigger_update: Sending flush op to all hosts for:
master-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8 (4)</div>
<div>Feb 26 02:28:17 sys11 corosync[3908]: [TOTEM ]
Retransmit List: 48b</div>
<div>Attempting to stop:
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8...Feb 26 02:28:17
sys11 cib[4122]: notice: cib:diff: Diff: --- 0.10097.30</div>
<div>Feb 26 02:28:17 sys11 cib[4122]: notice: cib:diff:
Diff: +++ 0.10098.1 f59db8d942683a1cdfed469909aadd3e</div>
<div>Feb 26 02:28:17 sys11 cib[4122]: notice: cib:diff: --
<cib admin_epoch="0" epoch="10097" num_updates="30" /></div>
<div>Feb 26 02:28:17 sys11 cib[4122]: notice: cib:diff: ++
<meta_attributes
id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-meta_attributes"
></div>
<div>Feb 26 02:28:17 sys11 cib[4122]: notice: cib:diff: ++
<nvpair
id="vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8-meta_attributes-target-role"
name="target-role" value="Stopped" /></div>
<div>Feb 26 02:28:17 sys11 cib[4122]: notice: cib:diff: ++
</meta_attributes></div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
unpack_config: On loss of CCM Quorum: Ignore</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: error:
clone_color: vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:0 is
running on sys12 which isn't allowed</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: error:
clone_color: vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:1 is
running on sys11 which isn't allowed</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
LogActions: Demote
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:0#011(Master ->
Stopped sys12)</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
LogActions: Stop
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:1#011(sys11)</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
process_pe_message: Calculated Transition 13:
/var/lib/pacemaker/pengine/pe-input-2207.bz2</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
unpack_config: On loss of CCM Quorum: Ignore</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: error:
clone_color: vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:0 is
running on sys12 which isn't allowed</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: error:
clone_color: vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:1 is
running on sys11 which isn't allowed</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
LogActions: Demote
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:0#011(Master ->
Stopped sys12)</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
LogActions: Stop
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8:1#011(sys11)</div>
<div>Feb 26 02:28:18 sys11 pengine[4126]: notice:
process_pe_message: Calculated Transition 14: (null)</div>
<div>Feb 26 02:28:18 sys11 kernel: VGC: [0000006711341b03:I]
Stopped vHA/vShare instance /dev/vgca0_VHA</div>
<div>Feb 26 02:28:19 sys11 attrd[4125]: notice:
attrd_trigger_update: Sending flush op to all hosts for:
master-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8
(<null>)</div>
<div>Feb 26 02:28:19 sys11 attrd[4125]: notice:
attrd_perform_update: Sent delete 184: node=sys11,
attr=master-vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8,
id=<n/a>, set=(null), section=status</div>
<div>Feb 26 02:28:19 sys11 crmd[4127]: notice:
process_lrm_event: LRM operation
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8_stop_0 (call=27,
rc=0, cib-update=303, confirmed=true) ok</div>
<div>Feb 26 02:28:19 sys11 crmd[4127]: notice: run_graph:
Transition 14 (Complete=7, Pending=0, Fired=0, Skipped=1,
Incomplete=0, Source=unknown): Stopped</div>
<div>Feb 26 02:28:19 sys11 pengine[4126]: notice:
unpack_config: On loss of CCM Quorum: Ignore</div>
<div>Feb 26 02:28:19 sys11 pengine[4126]: notice:
process_pe_message: Calculated Transition 15:
/var/lib/pacemaker/pengine/pe-input-2208.bz2</div>
<div>Feb 26 02:28:19 sys11 crmd[4127]: notice: run_graph:
Transition 15 (Complete=0, Pending=0, Fired=0, Skipped=0,
Incomplete=0,
Source=/var/lib/pacemaker/pengine/pe-input-2208.bz2):
Complete</div>
<div>Feb 26 02:28:19 sys11 crmd[4127]: notice:
do_state_transition: State transition S_TRANSITION_ENGINE
-> S_IDLE [ input=I_TE_SUCCESS cause=C_FSA_INTERNAL
origin=notify_crmd ]</div>
<div>Error: Unable to stop:
vha-de5566b1-c2a3-4dc6-9712-c82bb43f19d8 before deleting
(re-run with --force to force deletion)</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Feb 26, 2014 at 1:10 PM, Frank
Brendel <span dir="ltr"><<a href="mailto:frank.brendel@eurolog.com" target="_blank">frank.brendel@eurolog.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> No erros in syslog?<br>
<br>
<br>
<div>Am <a href="tel:25.02.2014%2015" value="+12502201415" target="_blank">25.02.2014 15</a>:45, schrieb K Mehta:<br>
</div>
<div>
<blockquote type="cite">
<div dir="ltr">Frank,
<div> Creation/Disabling/Deletion of non multi state
resource worked fine.<br>
<div> When I try to delete a multi state resource,
the resource goes into stopped state and the
following error is thrown</div>
<div><br>
</div>
<div> Error: unable to stop: .....</div>
<div><br>
</div>
<div>Regards,</div>
<div> kiran</div>
<br>
</div>
</div>
</blockquote>
<br>
</div>
</div>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
<br>
</div></div></div>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>