[ClusterLabs] ovndb-servers resource agent doesn't work on pcs 0.9.164
Popoi Zen
alterriu at gmail.com
Thu Sep 3 12:10:25 EDT 2020
Hi, I try to create ovn cluster using ovndb-servers resource agent from
Pacemaker but it get error and failed.
```
instructor at ag-controller0:~$ sudo pcs status
Cluster name: os-ha
Stack: corosync
Current DC: ag-controller2 (version 1.1.18-2b07d5c5a9) - partition with
quorum
Last updated: Thu Sep 3 23:01:03 2020
Last change: Thu Sep 3 22:58:13 2020 by root via cibadmin on ag-controller0
3 nodes configured
8 resources configured
Online: [ ag-controller0 ag-controller1 ag-controller2 ]
Full list of resources:
internal_vip (ocf::heartbeat:IPaddr2): Started ag-controller0
public_vip (ocf::heartbeat:IPaddr2): Started ag-controller0
Clone Set: lb-haproxy-clone [lb-haproxy]
Started: [ ag-controller0 ]
Stopped: [ ag-controller1 ag-controller2 ]
Clone Set: wsgi-keystone-clone [wsgi-keystone]
Started: [ ag-controller0 ag-controller1 ag-controller2 ]
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
```
I am using this guide
https://docs.openvswitch.org/en/latest/topics/integration/.
1. Modify it resource agent symlink to the right path.
instructor at ag-controller0:~$ ll /usr/lib/ocf/resource.d/ovn/ovndb-servers
lrwxrwxrwx 1 root root 40 Sep 3 22:26
/usr/lib/ocf/resource.d/ovn/ovndb-servers ->
/usr/share/ovn/scripts/ovndb-servers.ocf*
2. Create ovndb_servers resource
instructor at ag-controller0:~$ sudo pcs resource create ovndb_servers
ocf:ovn:ovndb-servers master_ip=10.50.50.100
ovn_ctl=/usr/share/ovn/scripts/ovn-ctl op monitor interval="10s" op monitor
role=Master interval="15s"
instructor at ag-controller0:~$ sudo pcs resource master ovndb_servers-master
ovndb_servers meta notify="true"
3. Create contraint
sudo pcs constraint order promote ovndb_servers-master then internal_vip
4. Check status, ovndb still on stopped status
```
Online: [ ag-controller0 ag-controller1 ag-controller2 ]
Full list of resources:
internal_vip (ocf::heartbeat:IPaddr2): Started ag-controller0
public_vip (ocf::heartbeat:IPaddr2): Started ag-controller0
Clone Set: lb-haproxy-clone [lb-haproxy]
Started: [ ag-controller0 ]
Stopped: [ ag-controller1 ag-controller2 ]
Clone Set: wsgi-keystone-clone [wsgi-keystone]
Started: [ ag-controller0 ag-controller1 ag-controller2 ]
Master/Slave Set: ovndb_servers-master [ovndb_servers]
Stopped: [ ag-controller0 ag-controller1 ag-controller2 ]
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
```
5. Create collocation
sudo pcs constraint colocation add internal_vip with master
ovndb_servers-master score=INFINITY
6. Check my pacemaker status again, my VIP resource and ovndb_servers
stopped.
```
Online: [ ag-controller0 ag-controller1 ag-controller2 ]
Full list of resources:
internal_vip (ocf::heartbeat:IPaddr2): Stopped
public_vip (ocf::heartbeat:IPaddr2): Stopped
Clone Set: lb-haproxy-clone [lb-haproxy]
Stopped: [ ag-controller0 ag-controller1 ag-controller2 ]
Clone Set: wsgi-keystone-clone [wsgi-keystone]
Started: [ ag-controller0 ag-controller1 ag-controller2 ]
Master/Slave Set: ovndb_servers-master [ovndb_servers]
Stopped: [ ag-controller0 ag-controller1 ag-controller2 ]
```
Is there any working guide that works? Or I miss something on my
configuration?
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20200903/f3b9bb77/attachment.htm>
More information about the Users
mailing list