[ovs-discuss] [ovn][clustered] Confusing to create ovsdb-server clustered databases

Numan Siddique nusiddiq at redhat.com
Wed Aug 28 11:05:43 UTC 2019


On Wed, Aug 28, 2019 at 4:04 PM Zufar Dhiyaulhaq <zufar at onf-ambassador.org>
wrote:

> [ovn][clustered] Confusing to create ovsdb-server clustered databases
>
> Hi Everyone, I have successfully created OpenStack with OVN enabled. But
> the problem comes when I try to cluster the ovsdb-server. My scenario is
> trying to cluster the ovsdb-server databases but only using single
> ovn-northd.
>
> My cluster:
> - controller0 : 10.100.100.100 / 10.101.101.100 (ovn-northd, ovsdb-server,
> neutron server)
> - controller1 : 10.100.100.101 / 10.101.101.101 (ovsdb-server)
> - controller2 : 10.100.100.102 / 10.101.101.102 (ovsdb-server)
> - compute1 : 10.100.100.103 / 10.101.101.103
> - compute2 : 10.100.100.104 / 10.101.101.104
> - compute3 : 10.100.100.105 / 10.101.101.105
>
> 10.100.100.0/24 : Management Network
> 10.101.101.0/24 : Data Network
>
> I have installed the OpenStack using the manual method. Below is the step
> to create ovsdb-server and neutron services.
> - step 1: bootstrapping ovsdb-server cluster :
> http://paste.openstack.org/show/766463/
> - step 2: creating neutron service in controller :
> http://paste.openstack.org/show/766464/
> - step 3: creating neutron service in compute :
> http://paste.openstack.org/show/766465/
>
> But when I try to create neutron resource, Its always hang (only neutron
> resource).
>
> This is the full logs of all nodes, contain:
> http://paste.openstack.org/show/766461/
> - all openvswitch logs
> - port (via netstat)
> - step bootstraping ovsdb-server
>
> Neutron logs in controller0: paste.openstack.org/show/766462/
>
> Anyone know why stuck? Are my step is wrong?
>
>
Hi Zufar,

Have you tried connecting to the clustered dbs using ovn-nbctl ?
Does it work fine when you pass the remotes i.e
$ovn-nbctl --db=tcp:10.101.101.100:6641,tcp:10.101.101.101:6641,tcp:
10.101.101.102:6641 show

If so, then it seems to me you have configured the clustered db properly.

Also please take a look at - "man ovn-ctl" and grep for "Creating a
clustered db on 3 nodes".

May be the python IDL code or the ovsdbapp which networking-ovn uses
doesn't support connecting
with multiple remotes ?

I remember adding the support in the python IDL to accept multiple remotes
[1], but not sure
what's the status now.

@Daniel - Do you have any comments/pointers ?

[1] -
https://github.com/openvswitch/ovs/commit/31e434fc985c682708f5d92bde2ceae452bdaa4f

https://github.com/openvswitch/ovs/commit/257edb1ae07c150023575dfb38ea8e539ad713de

Thanks
Numan

Thank you.
>
> Best Regards,
> Zufar Dhiyaulhaq
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190828/03bec361/attachment.html>


More information about the discuss mailing list