<div dir="auto">Hi Sean<div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I did not prefer the vendor distro. I installed the native ocata release from scrath which i configured on myself. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I downloaded dpdk relase from source and compiled it and also binded the interface with dpdk through ovs. </div><div dir="auto"><br></div><div dir="auto">While i was installing the neutron-ovs-agent, i couldnt start ovs db with neutron-ovs. Neutron ovs config files is not working with compiled ovs. How can i do that? </div><div dir="auto"><br></div><div dir="auto">Thank you for helping</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 9 Feb 2020, 19:56 Sean Mooney, <<a href="mailto:smooney@redhat.com">smooney@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 2020-02-09 at 01:09 +0300, mesut aygün wrote:<br>
> Hey,<br>
> <br>
> I am working over dpdk installation with openstack ocata release.<br>
> How can I use the neutron-openvswitch-agent-dpdk or anything else  instead<br>
> of  neutron-openvswitch-agent?<br>
in octa you can use the standared neutorn openvswitch agent with ovs-dpdk<br>
the only config option you need to set is [ovs]/datapath_type=netdev in the ml2_conf.ini on each of the compute nodes.<br>
<br>
<br>
<a href="https://github.com/openstack/neutron/blob/9aa9a097e6c9f765a59eb572a5a816169d83f2cd/neutron/conf/plugins/ml2/drivers/ovs_conf.py#L107-L112" rel="noreferrer noreferrer" target="_blank">https://github.com/openstack/neutron/blob/9aa9a097e6c9f765a59eb572a5a816169d83f2cd/neutron/conf/plugins/ml2/drivers/ovs_conf.py#L107-L112</a><br>
<br>
addtionally when installing ovs you need to configure it for dpdk.<br>
most distros now compile in support for dpdk into ovs so all you have to do to use it is configure it rahter then<br>
recompile ovs or install an addtional package.<br>
<br>
there is some upstream docs on how to do that here<br>
<a href="http://docs.openvswitch.org/en/latest/intro/install/dpdk/" rel="noreferrer noreferrer" target="_blank">http://docs.openvswitch.org/en/latest/intro/install/dpdk/</a><br>
<br>
the clip note version is you need to allcoated hugepages on the host for ovs-dpdk to use and addtional hugepages for<br>
your vms. then you need to bind the nic you intend to use with dpdk to the vfio-pci driver.<br>
next you need to define some config options to test ovs about that and what cores dpdk should use.<br>
<br>
        sudo ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask=$OVS_PMD_CORE_MASK other_config:dpdk-<br>
init=True other_config:dpdk-lcore-mask=$OVS_CORE_MASK \<br>
        other_config:dpdk-mem-channels=4 other_config:dpdk-socket-mem=$OVS_SOCKET_MEM other_config:dpdk-hugepage-<br>
dir=$OVS_HUGEPAGE_MOUNT  \<br>
        other_config:dpdk-extra=" --proc-type primary $pciAddressWhitelist "<br>
        [ -n "$OVS_VHOST_USER_SOCKET_DIR" ] && sudo ovs-vsctl --no-wait set Open_vSwitch . other_config:vhost-sock-<br>
dir=$OVS_VHOST_USER_SOCKET_DIR<br>
<br>
finally when you create the ovs bridges you need to set them to ues the netdev datapath although neutron will also do<br>
this its just a good habit to do it when first creating them once done you can add the physical nics to the br-ex or<br>
your provider bridge as type dpdk.<br>
<br>
ovs-vsctl --may-exist add-port $bridge $nic -- set Interface $nic type=dpdk options:dpdk-devargs=$addr<br>
<br>
with all that said that is how you install this manually if you are compiling form source.<br>
i would recomend looking at your openstack installer of choice to see if they have support or your disto vendors<br>
documentation as many installers have native support for ovs-dpdk and will automate it for you.<br>
<br>
> <br>
> Which can I choose the correct packages with os dpdk versions?<br>
> <br>
> <br>
> <br>
> I couldn't use the devstack versions!!<br>
> <br>
> Best regards<br>
<br>
</blockquote></div>