<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"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>></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>
> Hi,<br>
><br>
><br>
> I am creating a redis bundle resource (master - slave mode). It is<br>
> creating successfully, but I am noticing that "notify" action is not<br>
> called by pacemaker_remoted.<br>
><br>
><br>
> Below are the steps I used to create the redis bundle resource [1].<br>
> The sosreport can be found here - [2]<br>
><br>
><br>
><br>
> I am seeing the same behaviour when I create the "ovndb-servers" [3]<br>
> bundle resource (master/slave) as well.<br>
> In the case of ovndb-servers OCF resource, we rely on notify action to<br>
> change the mode of the OVN Db server to active or backup.<br>
><br>
> Can some one please help me on why notify action is not called ? Is<br>
> there something wrong in my setup ? Or bundle resources lack the<br>
> 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'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'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">
> [1] -<br>
><br>
><br>
> # pcs cluster cib tmp-cib.xml<br>
> # cp tmp-cib.xml tmp-cib.xml.deltasrc<br>
> # pcs -f tmp-cib.xml resource bundle create tredis-bundle \<br>
> container docker<br>
> 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>
> masters=1 network=host \<br>
> options="--user=root --log-driver=journald -e<br>
> KOLLA_CONFIG_STRATEGY=COPY_<wbr>ALWAYS" replicas=3<br>
> run-command="/bin/bash /usr/local/bin/kolla_start" \<br>
> network control-port=3124 \<br>
> storage-map id=t1<br>
> source-dir=/var/lib/kolla/<wbr>config_files/redis.json<br>
> target-dir=/var/lib/kolla/<wbr>config_files/config.json options=ro\<br>
> storage-map id=t2<br>
> source-dir=/var/lib/config-<wbr>data/puppet-generated/redis/<br>
> target-dir=/var/lib/kolla/<wbr>config_files/src options=ro\<br>
> storage-map id=t3 source-dir=/etc/hosts target-dir=/etc/hosts<br>
> options=ro\<br>
> storage-map id=t4 source-dir=/etc/localtime<br>
> target-dir=/etc/localtime options=ro\<br>
> storage-map id=t5 source-dir=/var/lib/redis<br>
> target-dir=/var/lib/redis options=rw\<br>
> storage-map id=t6 source-dir=/var/log/redis<br>
> target-dir=/var/log/redis options=rw\<br>
> storage-map id=t7 source-dir=/var/run/redis<br>
> target-dir=/var/run/redis options=rw \<br>
> storage-map id=t8 source-dir=/usr/lib/ocf/<br>
> target-dir=/usr/lib/ocf/ options=rw \<br>
> storage-map id=t9 source-dir=/etc/pki/ca-trust/<wbr>extracted<br>
> target-dir=/etc/pki/ca-trust/<wbr>extracted options=ro \<br>
> storage-map id=t10 source-dir=/etc/pki/tls/certs/<wbr>ca-bundle.crt<br>
> target-dir=/etc/pki/tls/certs/<wbr>ca-bundle.crt options=ro \<br>
> storage-map id=t11<br>
> source-dir=/etc/pki/tls/certs/<wbr>ca-bundle.trust.crt<br>
> target-dir=/etc/pki/tls/certs/<wbr>ca-bundle.trust.crt options=ro \<br>
> storage-map id=t12 source-dir=/etc/pki/tls/cert.<wbr>pem<br>
> target-dir=/etc/pki/tls/cert.<wbr>pem options=ro<br>
> storage-map id=t13 source-dir=/dev/log target-dir=/dev/log<br>
> options=rw<br>
> storage-map id=t14 source-dir=/etc/corosync<br>
> target-dir=/etc/corosync options=rw\<br>
><br>
><br>
> # pcs -f tmp-cib.xml resource create tredis ocf:heartbeat:redis<br>
> wait_last_known_master=true meta interleave=true notify=true<br>
> ordered=true \<br>
> bundle tredis-bundle<br>
><br>
><br>
> # pcs cluster cib-push tmp-cib.xml diff-against=tmp-cib.xml.<wbr>deltasrc<br>
><br>
><br>
> # pcs status<br>
> Cluster name: tripleo_cluster<br>
> Stack: corosync<br>
> Current DC: overcloud-controller-2 (version 1.1.16-10.el7-94ff4df) -<br>
> partition with quorum<br>
> Last updated: Fri Jul 28 14:46:10 2017<br>
> Last change: Fri Jul 28 13:22:53 2017 by root via cibadmin on<br>
> overcloud-controller-0<br>
><br>
><br>
> 9 nodes configured<br>
> 15 resources configured<br>
><br>
><br>
> Online: [ overcloud-controller-0 overcloud-controller-1<br>
> overcloud-controller-2 ]<br>
> RemoteOFFLINE: [ rabbitmq-bundle-0 rabbitmq-bundle-1 rabbitmq-bundle-2<br>
> ]<br>
> GuestOnline: [ tredis-bundle-0@overcloud-<wbr>controller-0<br>
> tredis-bundle-1@overcloud-<wbr>controller-1<br>
> tredis-bundle-2@overcloud-<wbr>controller-2 ]<br>
><br>
><br>
> Full list of resources:<br>
><br>
><br>
> ip-192.168.24.8 (ocf::heartbeat:IPaddr2): Started<br>
> overcloud-controller-0<br>
> ip-10.0.0.6 (ocf::heartbeat:IPaddr2): Started overcloud-controller-1<br>
> ip-172.16.2.8 (ocf::heartbeat:IPaddr2): Started<br>
> overcloud-controller-2<br>
> ip-172.16.2.13 (ocf::heartbeat:IPaddr2): Started<br>
> overcloud-controller-0<br>
> ip-172.16.1.11 (ocf::heartbeat:IPaddr2): Started<br>
> overcloud-controller-1<br>
> ip-172.16.3.8 (ocf::heartbeat:IPaddr2): Started<br>
> overcloud-controller-2<br>
> Docker container set: tredis-bundle<br>
> [<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>
> tredis-bundle-0 (ocf::heartbeat:redis): Master<br>
> overcloud-controller-0<br>
> tredis-bundle-1 (ocf::heartbeat:redis): Slave<br>
> overcloud-controller-1<br>
> tredis-bundle-2 (ocf::heartbeat:redis): Slave<br>
> overcloud-controller-2<br>
><br>
><br>
><br>
><br>
> contents of /var/lib/kolla/config_files/<wbr>redis.json<br>
> ------------------------------<wbr>------------------------------<br>
> {"config_files": [{"dest": "/etc/libqb/force-filesystem-<wbr>sockets",<br>
> "owner": "root", "perm": "0644", "source": "/dev/null"}, {"dest": "/",<br>
> "merge": true, "optional": true, "source":<br>
> "/var/lib/kolla/config_files/<wbr>src/*", "preserve_properties": true}],<br>
> "command": "/usr/sbin/pacemaker_remoted", "permissions": [{"owner":<br>
> "redis:redis", "path": "/var/run/redis", "recurse": true}, {"owner":<br>
> "redis:redis", "path": "/var/lib/redis", "recurse": true}, {"owner":<br>
> "redis:redis", "path": "/var/log/redis", "recurse": true}]}<br>
><br>
><br>
><br>
> Please note the docker image for redis can be pulled as<br>
> "docker pull tripleoupstream/centos-binary-<wbr>redis"<br>
><br>
><br>
><br>
><br>
> [2] - <a href="https://github.com/numansiddique/pcs_logs" rel="noreferrer" target="_blank">https://github.com/<wbr>numansiddique/pcs_logs</a><br>
><br>
><br>
> [3]<br>
> - <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>
><br>
><br>
><br>
><br>
><br>
><br>
> Thanks<br>
> Numan<br>
><br>
><br>
</div></div><span class="gmail-im gmail-HOEnZb">> ______________________________<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>
<br>
</span><span class="gmail-HOEnZb"><font color="#888888">--<br>
Ken Gaillot <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>><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>