[ovs-discuss] How to create OVN HA active-active?

Popoi Zen alterriu at gmail.com
Tue Oct 20 03:59:09 UTC 2020


Hi,  Numan. So,  I have do the same step as ovn-ctl manpage+some additional
step in
https://github.com/ovn-org/ovn-fake-multinode/blob/master/ovn_cluster.sh#L337

But when I try to shutdwon 1 node(the first node) , all cluster goes down.
Below is the step i used to create cluster:
```

server1: 10.40.40.10
server2: 10.40.40.11
server2: 10.40.40.12

/usr/share/ovn/scripts/ovn-ctl --db-nb-addr=10.40.40.10 \
--db-sb-addr=10.40.40.10 \
--db-nb-cluster-local-addr=10.40.40.10 --db-nb-cluster-local-proto=tcp \
--db-sb-cluster-local-addr=10.40.40.10 --db-sb-cluster-local-proto=tcp \
restart_ovsdb


sudo /usr/share/ovn/scripts/ovn-ctl --db-nb-addr=10.40.40.11  \
    --db-sb-addr=10.40.40.11 \
    --db-nb-cluster-local-addr=10.40.40.11
--db-nb-cluster-remote-addr=10.40.40.10 \
    --db-sb-cluster-local-addr=10.40.40.11
--db-sb-cluster-remote-addr=10.40.40.10 \
    --db-nb-cluster-local-proto=tcp --db-sb-cluster-local-proto=tcp \
    --db-nb-cluster-remote-proto=tcp --db-sb-cluster-remote-proto=tcp \
restart_ovsdb


sudo /usr/share/ovn/scripts/ovn-ctl --db-nb-addr=10.40.40.12 \
    --db-sb-addr=10.40.40.12  \
    --db-nb-cluster-local-addr=10.40.40.12
--db-nb-cluster-remote-addr=10.40.40.10 \
    --db-sb-cluster-local-addr=10.40.40.12
--db-sb-cluster-remote-addr=10.40.40.10 \
    --db-nb-cluster-local-proto=tcp --db-sb-cluster-local-proto=tcp} \
    --db-nb-cluster-remote-proto=tcp --db-sb-cluster-remote-proto=tcp \
    restart_ovsdb

sudo /usr/share/ovn/scripts/ovn-ctl --db-nb-addr=10.40.40.10
--db-nb-create-insecure-remote=yes --db-sb-addr=10.40.40.10
 --db-sb-create-insecure-remote=yes  --db-nb-cluster-local-addr=10.40.40.10
--db-sb-cluster-local-addr=10.40.40.10 --ovn-northd-nb-db=tcp:
10.40.40.10:6641,tcp:10.40.40.11:6641,tcp:10.40.40.12:6641
--ovn-northd-sb-db=tcp:10.40.40.10:6642,tcp:10.40.40.11:6642,tcp:
10.40.40.12:6642 start_northd
sudo /usr/share/ovn/scripts/ovn-ctl --db-nb-addr=10.40.40.11
--db-nb-create-insecure-remote=yes --db-sb-addr=10.40.40.11
 --db-sb-create-insecure-remote=yes  --db-nb-cluster-local-addr=10.40.40.11
--db-sb-cluster-local-addr=10.40.40.11
--db-nb-cluster-remote-addr=10.40.40.10
--db-sb-cluster-remote-addr=10.40.40.10 --ovn-northd-nb-db=tcp:
10.40.40.10:6641,tcp:10.40.40.11:6641,tcp:10.40.40.12:6641
--ovn-northd-sb-db=tcp:10.40.40.10:6642,tcp:10.40.40.11:6642,tcp:
10.40.40.12:6642 start_northd
sudo /usr/share/ovn/scripts/ovn-ctl --db-nb-addr=10.40.40.12
--db-nb-create-insecure-remote=yes --db-nb-cluster-local-addr=10.40.40.12
--db-sb-addr=10.40.40.12 --db-sb-create-insecure-remote=yes
--db-sb-cluster-local-addr=10.40.40.12
--db-nb-cluster-remote-addr=10.40.40.10
--db-sb-cluster-remote-addr=10.40.40.10 --ovn-northd-nb-db=tcp:
10.40.40.10:6641,tcp:10.40.40.11:6641,tcp:10.40.40.12:6641
--ovn-northd-sb-db=tcp:10.40.40.10:6642,tcp:10.40.40.11:6642,tcp:
10.40.40.12:6642 start_northd
```

On Mon, Oct 12, 2020, 11:20 Popoi Zen <alterriu at gmail.com> wrote:

> Thanks Numan, I will try that.
>
>
>
> On Thu, Oct 8, 2020 at 11:43 PM Numan Siddique <numans at ovn.org> wrote:
>
>> On Thu, Oct 8, 2020 at 9:00 PM Popoi Zen <alterriu at gmail.com> wrote:
>> >
>> > Hi,  is there any reference to create clustered OVN on active-active
>> mode?  Because there is no active-active HA guide found on documentation.
>>
>> Hi,
>>
>> For active-active, you need to deploy OVN ovsdb-servers in the raft
>> cluster. Please see the man page ovn-ctl [1]for
>> more details.
>>
>> There is one example here -
>>
>> https://github.com/ovn-org/ovn-fake-multinode/blob/master/ovn_cluster.sh#L337
>>
>> [1] - https://www.ovn.org/support/dist-docs/ovn-ctl.8.html
>>
>> Thanks
>> Numan
>>
>> > ____
>>
>> > _______________________________________________
>> > 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/20201020/8e9f2196/attachment-0001.html>


More information about the discuss mailing list