[ovs-discuss] Clustered OVSDB

Ben Pfaff blp at ovn.org
Tue May 18 18:34:40 UTC 2021


On Tue, May 18, 2021 at 04:36:15PM +0530, RUTUJA MADHURE wrote:
> Hi,
> 
> I was trying to create a clustered ovsdb with three ovsdb-servers.
> 
> 
>    - *Node 1*: sudo ovsdb-tool create-cluster /etc/trial/cluster.db
>    /etc/trial/cluster.ovsschema tcp:[ip_1]:6000
>    - *Node 2*: sudo ovsdb-tool join-cluster /etc/trial/cluster.db cluster
>    tcp:[ip_2]:6000 tcp:[ip_1]:6000
>    - *Node 3*: sudo ovsdb-tool join-cluster /etc/trial/cluster.db cluster
>    tcp:[ip_3]:6000 tcp:[ip_1]:6000
> 
> On all nodes,
> 
>    - sudo ovsdb-server --pidfile --detach --log-file --remote ptcp:6222
>    /etc/trial/cluster.db
> 
> When the ovsdb-client does a transaction on Node 1 using only Node1 IP, it
> works fine. However, on another Node, below error is shown:
> 
> 
>    - sudo ovsdb-client transact
>    tcp:[ip_3]:6222,tcp:[ip_2]:6222,tcp:[ip_3]:6222 '["cluster",{"op":"insert",
>    "table":"List", "row":{"name":"Item 1"} }]'
> 
> 
> *error: ovsdb-client: transaction returned error:** {"details":"transact
> request specifies database cluster which is not yet available because it
> has not completed joining its cluster","error":"database not available"}*

Seems pretty clear that nodes 2 and 3 didn't successfully connect to
node 1 and join the cluster.  I would first look in the server logs for
nodes 2 and 3.


More information about the discuss mailing list