<div dir="ltr">David,<div><br></div><div>Thank you, this is it! Option name is not that self-explaining... </div><div><br></div><div>Best regards,</div><div>Alexandr A. Alexandrov</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-15 20:46 GMT+04:00 David Vossel <span dir="ltr">&lt;<a href="mailto:dvossel@redhat.com" target="_blank">dvossel@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
&gt; Hi!<br>
&gt;<br>
&gt; I guess it would be better to start a separate thread on this.<br>
&gt;<br>
&gt; I have a VM with pacemaker-remote installed.<br>
&gt;<br>
&gt; Stack: cman<br>
&gt; Current DC: wings1 - partition with quorum<br>
&gt; Version: 1.1.10-14.el6-368c726<br>
&gt; 3 Nodes configured<br>
&gt; 2 Resources configured<br>
&gt;<br>
&gt;<br>
&gt; Online: [ oracle-test:vm-oracle-test wings1 wings2 ]<br>
<br>
</span>The remote-node in this case is named &#39;oracle-test&#39;. The remote-node&#39;s container resource<br>
is &#39;vm-oracle-test&#39;.  Internally pacemaker makes a connection resource named after the<br>
remote-node. That resource represents the pacemaker_remote connection.<br>
<br>
Kind of confusing I know. Here&#39;s the point.  The connection resource &#39;oracle-test&#39; is what is<br>
timing out here, not the vm itself. By default the connection resource has a 60 second<br>
timeout. If you want to increase that timeout use the remote-connect-timeout resource<br>
metadata option.  You don&#39;t have to fully understand how all this works, just know that the<br>
remote-connection-timeout option needs to be greater than the time it takes for the virtual<br>
machine to fully initialize.<br>
<br>
<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#s-resource-options" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/index.html#s-resource-options</a><br>
<br>
Hope that helps!<br>
<br>
-- Vossel<br>
<div><div class="h5"><br>
&gt;<br>
&gt; vm-oracle-test (ocf::heartbeat:VirtualDomain): Started wings2<br>
&gt;<br>
&gt; 2 resources configured...<br>
&gt;<br>
&gt; However,<br>
&gt;<br>
&gt; # pcs resource show<br>
&gt; vm-oracle-test (ocf::heartbeat:VirtualDomain): Started<br>
&gt;<br>
&gt; As I understand, pacemaker considered pacemaker-remote on the VM as some sort<br>
&gt; of &#39;virtual resource&#39; (called &#39;oracle-test&#39; in my case), since I have only<br>
&gt; one &#39;primitive&#39; section (VirtualDomain) in my CIB.<br>
&gt;<br>
&gt; Well, the problem is here:<br>
&gt;<br>
&gt; Sep 15 12:28:13 wings1 crmd[13553]: error: process_lrm_event: LRM operation<br>
&gt; oracle-test_start_0 (8397) Timed Out (timeout=60000ms)<br>
&gt; Sep 15 12:28:13 wings1 crmd[13553]: warning: status_from_rc: Action 7<br>
&gt; (oracle-test_start_0) on wings1 failed (target: 0 vs. rc: 1): Error<br>
&gt; Sep 15 12:28:13 wings1 crmd[13553]: warning: update_failcount: Updating<br>
&gt; failcount for oracle-test on wings1 after failed start: rc=1<br>
&gt; (update=INFINITY, time=1<br>
&gt; 410769693)<br>
&gt;<br>
&gt; Timeout is 60 seconds! Even though I have:<br>
&gt;<br>
&gt; &lt;primitive class=&quot;ocf&quot; id=&quot;vm-oracle-test&quot; provider=&quot;heartbeat&quot;<br>
&gt; type=&quot;VirtualDomain&quot;&gt;<br>
&gt; &lt;instance_attributes id=&quot;vm-oracle-test-instance_attributes&quot;&gt;<br>
&gt; &lt;nvpair id=&quot;vm-oracle-test-instance_attributes-hypervisor&quot; name=&quot;hypervisor&quot;<br>
&gt; value=&quot;qemu:///system&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;vm-oracle-test-instance_attributes-config&quot; name=&quot;config&quot;<br>
&gt; value=&quot;/etc/libvirt/qemu/oracle-test.xml&quot;/&gt;<br>
&gt; &lt;/instance_attributes&gt;<br>
&gt; &lt;operations&gt;<br>
&gt; &lt;op id=&quot;vm-oracle-test-monitor-interval-60s&quot; interval=&quot;60s&quot; name=&quot;monitor&quot;/&gt;<br>
&gt; &lt;op id=&quot;vm-oracle-test-start-timeout-300s-interval-0s-on-fail-restart&quot;<br>
&gt; interval=&quot;0s&quot; name=&quot;start&quot; on-fail=&quot;restart&quot; timeout=&quot;300s&quot;/&gt;<br>
&gt; &lt;op id=&quot;vm-oracle-test-stop-timeout-60s-interval-0s-on-fail-block&quot;<br>
&gt; interval=&quot;0s&quot; name=&quot;stop&quot; on-fail=&quot;block&quot; timeout=&quot;60s&quot;/&gt;<br>
&gt; &lt;/operations&gt;<br>
&gt;<br>
&gt; Moreover, VirtualDomain RA has this:<br>
&gt;<br>
&gt; &lt;actions&gt;<br>
&gt; &lt;action name=&quot;start&quot; timeout=&quot;90&quot; /&gt;<br>
&gt; &lt;action name=&quot;stop&quot; timeout=&quot;90&quot; /&gt;<br>
&gt; &lt;action name=&quot;status&quot; depth=&quot;0&quot; timeout=&quot;30&quot; interval=&quot;10&quot; /&gt;<br>
&gt; &lt;action name=&quot;monitor&quot; depth=&quot;0&quot; timeout=&quot;30&quot; interval=&quot;10&quot; /&gt;<br>
&gt; &lt;action name=&quot;migrate_from&quot; timeout=&quot;60&quot; /&gt;<br>
&gt; &lt;action name=&quot;migrate_to&quot; timeout=&quot;120&quot; /&gt;<br>
&gt;<br>
&gt;<br>
&gt; My VM is unable to start in 60 seconds. What could be done here?<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Alexandr A. Alexandrov<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; 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>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>С уважением, ААА.
</div>