contrail-vrouter-dpdk binary implements the data-plane functionality when contrail vrouter is run in dpdk mode which runs on compute node in a contrail cluster.
Currently contrail-vrouter-dpdk runs on compute host and needs to run inisde a docker container for ease of deployment.
On compute host: 1.edit /etc/sysctl.conf and add below paramteres a.vm.nr_hugepages = 48341 b.vm.max_map_count = 96682 c.kernel.core_pattern = /var/crashes/core.%e.%p.%h.%t 2.mkdir -p /hugepages 3.echo “hugetlbfs /hugepages hugetlbfs defaults 0 0 “ >> /etc/fstab 4.sudo mount -t hugetlbfs hugetlbfs /hugepages
On container:
- Install pciutils
- Install below packages in the container a> contrail-vrouter-dpdk-init b> contrail-vrouter-dpdk c> contrail-vrouter-utils d> python-opencontrail-vrouter-netns e> python-contrail-vrouter-api 3./opt/contrail/bin/dpdk_nic_bind.py -b ixgbe 0000:02:00.0 4./opt/contrail/bin/dpdk_nic_bind.py -s 5.taskset 0xf /usr/bin/contrail-vrouter-dpdk --no-daemon
None
Not Applicable
contrail-vrouter-dpdk will run in container.
None
None
-
Add docker file for centos and ubuntu to install required packages for dpdk docker image, set path for coredump also start contrail-vrouter-dpdk process with config knobs
-
Add entrypoint.sh script to build contrail-vrouter-dpdk.ini with config knobs and use it as a configuration file for contrail-vrouter-dpdk binary, Find the fabric interfaces and bind it to DPDK using dpdk_nic_bind.py, Run contrail-compute-setup script to do host configuration.
-
Earlier agent config file was on host and was used by vrouter-functions.sh for physical interface configuration now build it in entrypoint.sh .
None
None
None
None
None
None
- Check that relevant configuration options are parsed
- Check provisioning updates the configuration files
- Check fabric interfaces binding to dpdk
- Check hugepage configuration
- Check for running status of contrail-vrouter-dpdk binary
- Check compute node works well with dpdk running in container.
Dpdk configuration options need to be passed in common.env .