[ovs-dev] Creation of network using ovs in Docker

Guru Shetty guru at ovn.org
Mon Jul 9 18:22:20 UTC 2018


Run "/usr/share/openvswitch/scripts/ovn-ctl restart_northd" and see if that
helps.

On 9 July 2018 at 11:19, Sandeep Adapala <sandeepadapala11 at gmail.com> wrote:

> I think I am doing something wrong Guru.
>
> I got this after running the command
>
> ubuntu at tbserver14:~$ sudo ovn-nbctl --timeout=5 --db=tcp:192.168.14.33:6642 lswitch-add 6caabc22601b17134a4c54cc33be18
> ovn-nbctl: tcp:192.168.14.33:6642: database connection failed (Connection refused)
> ubuntu at tbserver14:~$
>
>
> you think the database is not up yet?
>
>
> I have run this to start the DB
>
> ovs-vsctl set Open_vSwitch . \
>     external_ids:ovn-remote="tcp:192.168.14.33:6642" \
>     external_ids:ovn-nb="tcp:192.168.14.33:6641" \
>     external_ids:ovn-encap-ip=192.168.14.33 \
>     external_ids:ovn-encap-type=geneve
> I don't have a remote server so I have used the same for remote and local
>
>
> On Mon, Jul 9, 2018 at 2:12 PM, Guru Shetty <guru at ovn.org> wrote:
>
>> What happens when you run the following command on that box:
>>
>> ovn-nbctl --timeout=5 --db=tcp:192.168.14.33:6642 ls-add
>> 6caabc22601b17134a4c54cc33be18
>>
>>
>>
>>
>>
>> On 9 July 2018 at 11:08, Sandeep Adapala <sandeepadapala11 at gmail.com>
>> wrote:
>>
>>> Hello Guru,
>>>
>>> below are the versions
>>>
>>> ubuntu at tbserver14:~$ ovs-vsctl --version; ovn-nbctl --version
>>> ovs-vsctl (Open vSwitch) 2.5.4
>>> Compiled Oct 30 2017 10:38:01
>>> DB Schema 7.12.1
>>> ovn-nbctl (Open vSwitch) 2.5.4
>>> Compiled Oct 30 2017 10:38:01
>>> DB Schema 2.0.1
>>>
>>> OVN plugin is also the same version.
>>>
>>>
>>> Regards,
>>>
>>> Sandeep
>>>
>>>
>>> On Mon, Jul 9, 2018 at 2:05 PM, Guru Shetty <guru at ovn.org> wrote:
>>>
>>>>
>>>>
>>>> On 9 July 2018 at 09:33, Sandeep Adapala <sandeepadapala11 at gmail.com>
>>>> wrote:
>>>>
>>>>> Hello All,
>>>>>
>>>>> I am planning to have 2 containers talk to each other using ovs-dpdk
>>>>> interface on a same host. this is how I started installing OVN on
>>>>> Docker.
>>>>>
>>>>> http://docs.openvswitch.org/en/latest/howto/docker/#the-overlay-mode
>>>>>
>>>>> I was trying to create a network using docker but I get the same error
>>>>> every time not sure what I am doing wrong can you please help me out.
>>>>>
>>>>>
>>>>> NID=`sudo docker network create -d openvswitch --subnet=192.168.1.0/24
>>>>> foo`
>>>>> Error response from daemon: remote: create_network: lswitch-add Fatal
>>>>> error
>>>>> executing ['ovn-nbctl', '--timeout=5', '-vconsole:off', '--db=tcp:
>>>>> 192.168.14.33:6642', 'lswitch-add', u'6caabc22601b17134a4c54cc33be18
>>>>> fcf3653377be99609969cc971c5f749db7', '--', 'set', 'Logical_Switch', u'
>>>>> 6caabc22601b17134a4c54cc33be18fcf3653377be99609969cc971c5f749db7',
>>>>> u'external_ids:subnet=192.168.1.0/24', u'external_ids:gateway_ip=192.
>>>>> 168.1.1']
>>>>>
>>>>
>>>> What version of OVS/OVN (ovs-vsctl --version; ovn-nbctl --version) are
>>>> you using?
>>>>
>>>> Is the OVN docker plugin version different?
>>>>
>>>>
>>>>
>>>>
>>>>>
>>>>> Regards,
>>>>> Sandeep
>>>>> _______________________________________________
>>>>> dev mailing list
>>>>> dev at openvswitch.org
>>>>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>>>>>
>>>>
>>>>
>>>
>>
>


More information about the dev mailing list