<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 9, 2017 at 9:18 PM, Ken Gaillot <span dir="ltr">&lt;<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, 2017-07-28 at 20:24 +0530, Numan Siddique wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt; I am creating a redis bundle resource (master - slave mode). It is<br>
&gt; creating successfully, but I am noticing that &quot;notify&quot; action is not<br>
&gt; called by pacemaker_remoted.<br>
&gt;<br>
&gt;<br>
&gt; Below are the steps I used to create the redis bundle resource [1].<br>
&gt; The sosreport can be found here - [2]<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I am seeing the same behaviour when I create the &quot;ovndb-servers&quot; [3]<br>
&gt; bundle resource (master/slave) as well.<br>
&gt; In the case of ovndb-servers OCF resource, we rely on notify action to<br>
&gt; change the mode of the OVN Db server to active or backup.<br>
&gt;<br>
&gt; Can some one please help me on why notify action is not called ? Is<br>
&gt; there something wrong in my setup ? Or bundle resources lack the<br>
&gt; support to call notify actions ?<br>
<br>
</span>Clone notification support for bundles was added in commit b632ef0a in<br>
the current upstream master branch. It hasn&#39;t made it into an upstream<br>
release yet, but is expected to be in the next one.<br>
<br>
It was backported to the RHEL 7.4 GA release, which is 1.1.16-12.el7.<br>
The pre-release shown in your logs (1.1.16-10.el7-94ff4df) doesn&#39;t have<br>
it.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br></div></div></blockquote><div><br></div><div>Thanks Ken. I will pickup 1.1.16-12 and test it out</div><div><br></div><div>Regards</div><div>Numan</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">
&gt; [1] -<br>
&gt;<br>
&gt;<br>
&gt; # pcs cluster cib tmp-cib.xml<br>
&gt; # cp tmp-cib.xml tmp-cib.xml.deltasrc<br>
&gt; # pcs -f tmp-cib.xml resource bundle create tredis-bundle \<br>
&gt;     container docker<br>
&gt; image=<a href="http://192.168.24.1:8787/tripleoupstream/centos-binary-redis:latest" rel="noreferrer" target="_blank">192.168.24.1:8787/<wbr>tripleoupstream/centos-binary-<wbr>redis:latest</a><br>
&gt; masters=1 network=host \<br>
&gt;     options=&quot;--user=root --log-driver=journald -e<br>
&gt; KOLLA_CONFIG_STRATEGY=COPY_<wbr>ALWAYS&quot; replicas=3<br>
&gt; run-command=&quot;/bin/bash /usr/local/bin/kolla_start&quot; \<br>
&gt;     network control-port=3124 \<br>
&gt;     storage-map id=t1<br>
&gt; source-dir=/var/lib/kolla/<wbr>config_files/redis.json<br>
&gt; target-dir=/var/lib/kolla/<wbr>config_files/config.json options=ro\<br>
&gt;     storage-map id=t2<br>
&gt; source-dir=/var/lib/config-<wbr>data/puppet-generated/redis/<br>
&gt; target-dir=/var/lib/kolla/<wbr>config_files/src options=ro\<br>
&gt;     storage-map id=t3 source-dir=/etc/hosts target-dir=/etc/hosts<br>
&gt; options=ro\<br>
&gt;     storage-map id=t4 source-dir=/etc/localtime<br>
&gt; target-dir=/etc/localtime options=ro\<br>
&gt;     storage-map id=t5 source-dir=/var/lib/redis<br>
&gt; target-dir=/var/lib/redis options=rw\<br>
&gt;     storage-map id=t6 source-dir=/var/log/redis<br>
&gt; target-dir=/var/log/redis options=rw\<br>
&gt;     storage-map id=t7 source-dir=/var/run/redis<br>
&gt; target-dir=/var/run/redis options=rw \<br>
&gt;     storage-map id=t8 source-dir=/usr/lib/ocf/<br>
&gt; target-dir=/usr/lib/ocf/ options=rw \<br>
&gt;     storage-map id=t9 source-dir=/etc/pki/ca-trust/<wbr>extracted<br>
&gt; target-dir=/etc/pki/ca-trust/<wbr>extracted options=ro \<br>
&gt;     storage-map id=t10 source-dir=/etc/pki/tls/certs/<wbr>ca-bundle.crt<br>
&gt; target-dir=/etc/pki/tls/certs/<wbr>ca-bundle.crt options=ro \<br>
&gt;     storage-map id=t11<br>
&gt; source-dir=/etc/pki/tls/certs/<wbr>ca-bundle.trust.crt<br>
&gt; target-dir=/etc/pki/tls/certs/<wbr>ca-bundle.trust.crt options=ro \<br>
&gt;     storage-map id=t12 source-dir=/etc/pki/tls/cert.<wbr>pem<br>
&gt; target-dir=/etc/pki/tls/cert.<wbr>pem options=ro<br>
&gt;     storage-map id=t13 source-dir=/dev/log target-dir=/dev/log<br>
&gt; options=rw<br>
&gt;     storage-map id=t14 source-dir=/etc/corosync<br>
&gt; target-dir=/etc/corosync options=rw\<br>
&gt;<br>
&gt;<br>
&gt; # pcs -f tmp-cib.xml resource create tredis ocf:heartbeat:redis<br>
&gt; wait_last_known_master=true meta interleave=true notify=true<br>
&gt; ordered=true \<br>
&gt;    bundle tredis-bundle<br>
&gt;<br>
&gt;<br>
&gt; # pcs cluster cib-push tmp-cib.xml diff-against=tmp-cib.xml.<wbr>deltasrc<br>
&gt;<br>
&gt;<br>
&gt; # pcs status<br>
&gt; Cluster name: tripleo_cluster<br>
&gt; Stack: corosync<br>
&gt; Current DC: overcloud-controller-2 (version 1.1.16-10.el7-94ff4df) -<br>
&gt; partition with quorum<br>
&gt; Last updated: Fri Jul 28 14:46:10 2017<br>
&gt; Last change: Fri Jul 28 13:22:53 2017 by root via cibadmin on<br>
&gt; overcloud-controller-0<br>
&gt;<br>
&gt;<br>
&gt; 9 nodes configured<br>
&gt; 15 resources configured<br>
&gt;<br>
&gt;<br>
&gt; Online: [ overcloud-controller-0 overcloud-controller-1<br>
&gt; overcloud-controller-2 ]<br>
&gt; RemoteOFFLINE: [ rabbitmq-bundle-0 rabbitmq-bundle-1 rabbitmq-bundle-2<br>
&gt; ]<br>
&gt; GuestOnline: [ tredis-bundle-0@overcloud-<wbr>controller-0<br>
&gt; tredis-bundle-1@overcloud-<wbr>controller-1<br>
&gt; tredis-bundle-2@overcloud-<wbr>controller-2 ]<br>
&gt;<br>
&gt;<br>
&gt; Full list of resources:<br>
&gt;<br>
&gt;<br>
&gt;  ip-192.168.24.8 (ocf::heartbeat:IPaddr2): Started<br>
&gt; overcloud-controller-0<br>
&gt;  ip-10.0.0.6 (ocf::heartbeat:IPaddr2): Started overcloud-controller-1<br>
&gt;  ip-172.16.2.8 (ocf::heartbeat:IPaddr2): Started<br>
&gt; overcloud-controller-2<br>
&gt;  ip-172.16.2.13 (ocf::heartbeat:IPaddr2): Started<br>
&gt; overcloud-controller-0<br>
&gt;  ip-172.16.1.11 (ocf::heartbeat:IPaddr2): Started<br>
&gt; overcloud-controller-1<br>
&gt;  ip-172.16.3.8 (ocf::heartbeat:IPaddr2): Started<br>
&gt; overcloud-controller-2<br>
&gt;  Docker container set: tredis-bundle<br>
&gt; [<a href="http://192.168.24.1:8787/tripleoupstream/centos-binary-redis:latest" rel="noreferrer" target="_blank">192.168.24.1:8787/<wbr>tripleoupstream/centos-binary-<wbr>redis:latest</a>]<br>
&gt;    tredis-bundle-0 (ocf::heartbeat:redis): Master<br>
&gt; overcloud-controller-0<br>
&gt;    tredis-bundle-1 (ocf::heartbeat:redis): Slave<br>
&gt; overcloud-controller-1<br>
&gt;    tredis-bundle-2 (ocf::heartbeat:redis): Slave<br>
&gt; overcloud-controller-2<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; contents of /var/lib/kolla/config_files/<wbr>redis.json<br>
&gt; ------------------------------<wbr>------------------------------<br>
&gt; {&quot;config_files&quot;: [{&quot;dest&quot;: &quot;/etc/libqb/force-filesystem-<wbr>sockets&quot;,<br>
&gt; &quot;owner&quot;: &quot;root&quot;, &quot;perm&quot;: &quot;0644&quot;, &quot;source&quot;: &quot;/dev/null&quot;}, {&quot;dest&quot;: &quot;/&quot;,<br>
&gt; &quot;merge&quot;: true, &quot;optional&quot;: true, &quot;source&quot;:<br>
&gt; &quot;/var/lib/kolla/config_files/<wbr>src/*&quot;, &quot;preserve_properties&quot;: true}],<br>
&gt; &quot;command&quot;: &quot;/usr/sbin/pacemaker_remoted&quot;, &quot;permissions&quot;: [{&quot;owner&quot;:<br>
&gt; &quot;redis:redis&quot;, &quot;path&quot;: &quot;/var/run/redis&quot;, &quot;recurse&quot;: true}, {&quot;owner&quot;:<br>
&gt; &quot;redis:redis&quot;, &quot;path&quot;: &quot;/var/lib/redis&quot;, &quot;recurse&quot;: true}, {&quot;owner&quot;:<br>
&gt; &quot;redis:redis&quot;, &quot;path&quot;: &quot;/var/log/redis&quot;, &quot;recurse&quot;: true}]}<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please note the docker image for redis can be pulled as<br>
&gt; &quot;docker pull tripleoupstream/centos-binary-<wbr>redis&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; [2] - <a href="https://github.com/numansiddique/pcs_logs" rel="noreferrer" target="_blank">https://github.com/<wbr>numansiddique/pcs_logs</a><br>
&gt;<br>
&gt;<br>
&gt; [3]<br>
&gt; - <a href="https://github.com/openvswitch/ovs/blob/master/ovn/utilities/ovndb-servers.ocf" rel="noreferrer" target="_blank">https://github.com/<wbr>openvswitch/ovs/blob/master/<wbr>ovn/utilities/ovndb-servers.<wbr>ocf</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt; Numan<br>
&gt;<br>
&gt;<br>
</div></div><span class="gmail-im gmail-HOEnZb">&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt; <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
</span><span class="gmail-HOEnZb"><font color="#888888">--<br>
Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div></div>