[ovs-dev] The “overlay” mode issue while setting up OVS with DPDK

Sandeep Adapala sandeepadapala11 at gmail.com
Wed Jul 25 20:13:30 UTC 2018


Hello Guru,

I am using sudo apt install openvswitch-switch-dpdk as suggested by the
website. So it installed 2.5.4 by default. Do you want me to build and
install OVS?

https://software.intel.com/en-us/articles/using-docker-containers-with-open-vswitch-and-dpdk-on-ubuntu-1710

Regards,
Sandeep

On Wed, Jul 25, 2018 at 1:28 PM, Guru Shetty <guru at ovn.org> wrote:

> We had talked about using OVS 2.9, right? Are you using that?
>
> On 25 July 2018 at 08:51, Sandeep Adapala <sandeepadapala11 at gmail.com>
> wrote:
>
>> Hello Guru,
>>
>> I think OVS doesn't like me at all :) every step I am facing a issue.
>>
>> this time when I tried to create a docker network on OVS (*sudo docker
>> network create -d openvswitch --subnet=192.168.22.0/24
>> <http://192.168.22.0/24> ovs*) it failed and I got this error in Docker
>> log
>>
>> *ERRO[2717] Handler for POST /v1.27/networks/create returned error: remote: create_network: lswitch-add Fatal error executing ['ovn-nbctl', '--timeout=5', '-vconsole:off', '--db=tcp:192.168.14.33:6642 <http://192.168.14.33:6642>', 'lswitch-add', u'6eccad3be08421bb50e97a620c0ffa80e28e9676e8ad18881aeb1a640d7cdd55', '--', 'set', 'Logical_Switch', u'6eccad3be08421bb50e97a620c0ffa80e28e9676e8ad18881aeb1a640d7cdd55', u'external_ids:subnet=192.168.22.0/24 <http://192.168.22.0/24>', u'external_ids:gateway_ip=192.168.22.1'] *
>>
>>
>>
>> Regards,
>> Sandeep
>>
>> On Mon, Jul 23, 2018 at 5:01 PM, Guru Shetty <guru at ovn.org> wrote:
>>
>>> Yes.
>>>
>>> On 23 July 2018 at 13:43, Sandeep Adapala <sandeepadapala11 at gmail.com>
>>> wrote:
>>>
>>>> So you are saying just do the overlay part in this doc ?
>>>> http://docs.openvswitch.org/en/latest/howto/docker/#the-overlay-mode
>>>>
>>>> On Mon, Jul 23, 2018 at 4:35 PM, Guru Shetty <guru at ovn.org> wrote:
>>>>
>>>>> May I suggest that you get OVN working with containers without DPDK
>>>>> first? Once you are confident about what needs to be done for OVN, you can
>>>>> concentrate more on DPDK.
>>>>>
>>>>> On 23 July 2018 at 13:15, Sandeep Adapala <sandeepadapala11 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I have configured the grub as
>>>>>>
>>>>>> GRUB_CMDLINE_LINUX_DEFAULT="default_hugepagesz=1G hugepagesz=1G hugepages=16 hugepagesz=2M hugepages=2048 iommu=pt intel_iommu=on"
>>>>>>
>>>>>>
>>>>>> I didn't isolate any cores so if I want to use core 2 or 3 what will be the dpdk-lcore-mask and pod-cpu-mask?
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 23, 2018 at 4:11 PM, Sandeep Adapala <
>>>>>> sandeepadapala11 at gmail.com> wrote:
>>>>>>
>>>>>>> I have tried that already Guru but I got the same error always. Let
>>>>>>> me ask one more question.
>>>>>>>
>>>>>>> What do I need to configure here?
>>>>>>>
>>>>>>> sudo ovs-vsctl -no-wait set Open_vSwitch .
>>>>>>> other_config:dpdk-lcore-mask=0xfffffbffffe.
>>>>>>> sudo ovs-vsctl -no-wait set Open_vSwitch .
>>>>>>> other_config:dpdk-socket-mem="1024,1024"
>>>>>>> sudo ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=0x800002
>>>>>>>
>>>>>>>
>>>>>>> I am very new to ovs so I am still learning things. So can you
>>>>>>> explain me what I should configure in lcore-mask and cpu-mask
>>>>>>>
>>>>>>> I have a 28 core with 10G intel NIC's
>>>>>>>
>>>>>>> Regards
>>>>>>> Sandeep
>>>>>>>
>>>>>>> On Mon, Jul 23, 2018 at 3:49 PM, Guru Shetty <guru at ovn.org> wrote:
>>>>>>>
>>>>>>>> 1. Use the same IP address for both CENTRAL_IP and LOCAL_IP. And
>>>>>>>> this should be the IP of your host.
>>>>>>>> 2. ENCAP_TYPE="geneve".
>>>>>>>>
>>>>>>>> On 23 July 2018 at 12:41, Sandeep Adapala <
>>>>>>>> sandeepadapala11 at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello All,
>>>>>>>>>
>>>>>>>>> I am trying to use this doc to setup the containers using OVS-DPDK
>>>>>>>>> (
>>>>>>>>> https://software.intel.com/en-us/articles/using-docker-conta
>>>>>>>>> iners-with-open-vswitch-and-dpdk-on-ubuntu-1710)
>>>>>>>>> but when I try to configure the ovs on overlay mode I am little
>>>>>>>>> confused on
>>>>>>>>> this configuration. I don't have a remote server I want everything
>>>>>>>>> to be
>>>>>>>>> installed in same server. so can you please help me out what
>>>>>>>>> should I
>>>>>>>>> remove and replace in the below config
>>>>>>>>>
>>>>>>>>> ovs-vsctl set Open_vSwitch . \
>>>>>>>>>     external_ids:ovn-remote="tcp:$CENTRAL_IP:6642" \
>>>>>>>>>     external_ids:ovn-nb="tcp:$CENTRAL_IP:6641" \
>>>>>>>>>     external_ids:ovn-encap-ip=$LOCAL_IP \
>>>>>>>>>     external_ids:ovn-encap-type="$ENCAP_TYPE"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> like what is CENTRAL_IP? ENCAP_TYPE and all?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Sandeep
>>>>>>>>> _______________________________________________
>>>>>>>>> dev mailing list
>>>>>>>>> dev at openvswitch.org
>>>>>>>>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>


More information about the dev mailing list