<HTML><BODY><div>Hi Klaus! Thank you for your attention, but isn’t work. I have added Type=simple and there is no changes. I think problem not in service. As we can see from logs, the service is starting (Jul 21 15:53:42 node2.local dummy[9330]: hello world 1) but for the some reason pacemaker isn’t see it (Jul 21 15:53:42 node2.local pacemaker-controld[1813]: error: Result of stop operation for dummy.service on node2.local: Timed Out ) and he draws his conclusions for 2 seconds (from 15:53:41 to 15:53:42) and i have no idea what to do :(<br><br> <blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Среда, 22 июля 2020, 13:15 +05:00 от Klaus Wenninger <kwenning@redhat.com>:<br> <div id=""><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_15954057282077030239_BODY"><div class="cl_434425"><div class="moz-cite-prefix_mr_css_attr">On 7/22/20 9:59 AM, Хиль Эдуард wrote:</div><blockquote type="cite"><div>Hi there! I have 2 nodes with Pacemaker 2.0.3, corosync 3.0.3 on ubuntu 20 + 1 qdevice. I want to define new resource as systemd unit <strong>dummy.service </strong>:</div><div> </div><div><div>[Unit]<br>Description=Dummy</div><div>[Service]</div></div></blockquote>Type=simple<br><br>That could do the trick. Actually I thought simple would be<br>the default but ...<br><br>Klaus<blockquote type="cite"><div><div>Restart=on-failure<br>StartLimitInterval=20<br>StartLimitBurst=5<br>TimeoutStartSec=0<br>RestartSec=5<br>Environment="HOME=/root"<br>SyslogIdentifier=dummy<br>ExecStart=/usr/local/sbin/dummy.sh</div><div>[Install]<br>WantedBy=multi-user.target</div><div> </div><div>and /usr/local/sbin/dummy.sh :</div><div> </div><div><div>#!/bin/bash</div><div>CNT=0<br>while true; do<br> let CNT++<br> echo "hello world $CNT"<br> sleep 5<br>done</div><div> </div><div>and then i try to define it with: pcs resource create dummy.service systemd:dummy op monitor interval="10s" timeout="15s"</div><div>after 2 seconds node2 reboot. In logs i see pacemaker in 2 seconds tried to start this unit, and it started, but pacemaker somehow think he is «Timed Out» . What i am doing wrong? Logs below.</div><div> </div><div> </div><div>Jul 21 15:53:41 node2.local pacemaker-controld[1813]: notice: Result of probe operation for dummy.service on node2.local: 7 (not running) <br>Jul 21 15:53:41 node2.local systemd[1]: Reloading.<br>Jul 21 15:53:42 node2.local systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.<br>Jul 21 15:53:42 node2.local systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.<br>Jul 21 15:53:42 node2.local pacemaker-execd[1808]: notice: Giving up on dummy.service start (rc=0): timeout (elapsed=259719ms, remaining=-159719ms)<br>Jul 21 15:53:42 node2.local pacemaker-controld[1813]: error: Result of start operation for dummy.service on node2.local: Timed Out <br>Jul 21 15:53:42 node2.local systemd[1]: Started Cluster Controlled dummy.<br>Jul 21 15:53:42 node2.local dummy[9330]: hello world 1<br>Jul 21 15:53:42 node2.local systemd-udevd[922]: Network interface NamePolicy= disabled on kernel command line, ignoring.<br>Jul 21 15:53:42 node2.local pacemaker-attrd[1809]: notice: Setting fail-count-dummy.service#start_0[node2.local]: (unset) -> INFINITY <br>Jul 21 15:53:42 node2.local pacemaker-attrd[1809]: notice: Setting last-failure-dummy.service#start_0[node2.local]: (unset) -> 1595336022 <br>Jul 21 15:53:42 node2.local systemd[1]: Reloading.<br>Jul 21 15:53:42 node2.local systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.<br>Jul 21 15:53:42 node2.local systemd[1]: /lib/systemd/system/docker.socket:6: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.<br>Jul 21 15:53:42 node2.local pacemaker-execd[1808]: notice: Giving up on dummy.service stop (rc=0): timeout (elapsed=317181ms, remaining=-217181ms)<br>Jul 21 15:53:42 node2.local pacemaker-controld[1813]: error: Result of stop operation for dummy.service on node2.local: Timed Out <br>Jul 21 15:53:42 node2.local systemd[1]: Stopping Daemon for dummy...<br>Jul 21 15:53:42 node2.local pacemaker-attrd[1809]: notice: Setting fail-count-dummy.service#stop_0[node2.local]: (unset) -> INFINITY <br>Jul 21 15:53:42 node2.local pacemaker-attrd[1809]: notice: Setting last-failure-dummy.service#stop_0[node2.local]: (unset) -> 1595336022 <br>Jul 21 15:53:42 node2.local systemd[1]: dummy.service: Succeeded.<br>Jul 21 15:53:42 node2.local systemd[1]: Stopped Daemon for dummy.<br>... lost connection (node rebooting)</div></div></div><div> </div><div> </div> <fieldset class="mimeAttachmentHeader_mr_css_attr"> </fieldset><pre class="moz-quote-pre_mr_css_attr" wrap="">_______________________________________________
Manage your subscription:
<a class="moz-txt-link-freetext_mr_css_attr" href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noopener noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a>
ClusterLabs home: <a class="moz-txt-link-freetext_mr_css_attr" href="https://www.clusterlabs.org/" rel="noopener noreferrer" target="_blank">https://www.clusterlabs.org/</a>
</pre></blockquote></div></div></div></div></div></blockquote> <div> </div> <div> </div></div></BODY></HTML>