Test Environment ================ CSIT VPP functional tests are executed in FD.io VIRL testbeds. The physical VIRL testbed infrastructure consists of three VIRL servers: - tb4-virl1: - Status: Production - OS: Ubuntu 16.04.2 - VIRL STD server version: 0.10.32.16 - VIRL UWM server version: 0.10.32.16 - tb4-virl2: - Status: Production - OS: Ubuntu 16.04.2 - VIRL STD server version: 0.10.32.16 - VIRL UWM server version: 0.10.32.16 - tb4-virl3: - Status: Production - OS: Ubuntu 16.04.2 - VIRL STD server version: 0.10.32.19 - VIRL UWM server version: 0.10.32.19 - VIRL hosts: Cisco UCS C240-M4, each with 2x Intel Xeon E5-2699 v3 (2.30 GHz, 18c), 512GB RAM. Whenever a patch is submitted to gerrit for review, parallel VIRL simulations are started to reduce the time of execution of all functional tests. The number of parallel VIRL simulations is equal to a number of test groups defined by TEST_GROUPS variable in :file:`csit/bootstrap.sh` file. VIRL host to run VIRL simulation is selected based on least load algorithm per VIRL simulation. Every VIRL simulation uses the same three-node logical ring topology - Traffic Generator (TG node) and two Systems Under Test (SUT1 and SUT2). The appropriate pre-built VPP packages built by Jenkins for the patch under review are then installed on the two SUTs, along with their :file:`/etc/vpp/startup.conf` file, in all VIRL simulations. SUT Settings - VIRL Guest VM ---------------------------- SUT VMs' settings are defined in `VIRL topologies directory`_ - List of SUT VM interfaces: - Number of 2MB hugepages: 1024. - Maximum number of memory map areas: 20000. - Kernel Shared Memory Max: 2147483648 (vm.nr_hugepages * 2 * 1024 * 1024). SUT Settings - VIRL Guest OS Linux ---------------------------------- In CSIT terminology, the VM operating system for both SUTs that |vpp-release| has been tested with, is the following: #. Ubuntu VIRL image This image implies Ubuntu 16.04.1 LTS, current as of yyyy-mm-dd (that is, package versions are those that would have been installed by a :command:`apt-get update`, :command:`apt-get upgrade` on that day), produced by CSIT disk image build scripts. The exact list of installed packages and their versions (including the Linux kernel package version) are included in `VIRL ubuntu images lists`_. A replica of this VM image can be built by running the :command:`build.sh` script in CSIT repository. #. CentOS VIRL image This image implies Centos 7.4-1711, current as of yyyy-mm-dd (that is, package versions are those that would have been installed by a :command:`yum update`, :command:`yum upgrade` on that day), produced by CSIT disk image build scripts. The exact list of installed packages and their versions (including the Linux kernel package version) are included in `VIRL centos images lists`_. A replica of this VM image can be built by running the :command:`build.sh` script in CSIT repository. #. Nested VM image In addition to the "main" VM image, tests which require VPP to communicate to a VM over a vhost-user interface, utilize a "nested" VM image. This "nested" VM is dynamically created and destroyed as part of a test case, and therefore the "nested" VM image is optimized to be small, lightweight and have a short boot time. The "nested" VM image is not built around any established Linux distribution, but is based on `BuildRoot `_, a tool for building embedded Linux systems. Just as for the "main" image, scripts to produce an identical replica of the "nested" image are included in CSIT GIT repository, and the image can be rebuilt using the "build.sh" script at `VIRL nested`_. DUT Settings - VPP ------------------ Every System Under Test runs VPP SW application in Linux user-mode as a Device Under Test (DUT) node. DUT Port Configuration ~~~~~~~~~~~~~~~~~~~~~~ Port configuration of DUTs is defined in topology file that is generated per VIRL simulation based on the definition stored in `VIRL topologies directory`_. Example of DUT nodes configuration: :: DUT1: type: DUT host: "10.30.51.157" arch: x86_64 port: 22 username: cisco honeycomb: user: admin passwd: admin port: 8183 netconf_port: 2831 priv_key: | -----BEGIN RSA PRIVATE KEY----- MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd vuBfTvIluljfQ2vAlnYrDwn+ClxJk81m0pDgvrLEX4qVVh2sGh7UEkYy5r82DNa2 4VjzPB1J/c8a9zP8FoZUhYIzF4FLvRMjUADpbMXgJMsGpaZLmz95ap0Eot7vb1Cc 1LvF97iyBCrtIOSKRKA50ZhLGjMKmOwnYU+cP5718tbproDVi6VJOo7zeuXyetMs 8YBl9kWblWG9BqP9jctFvsmi5G7hXgq1Y8u+DwIDAQABAoIBAQC/W4E0DHjLMny7 0bvw2YKzD0Zw3fttdB94tkm4PdZv5MybooP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ipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN -----END RSA PRIVATE KEY----- interfaces: port1: mac_address: "fa:16:3e:9b:89:52" pci_address: "0000:00:04.0" link: link1 port2: mac_address: "fa:16:3e:7a:33:60" pci_address: "0000:00:05.0" link: link4 port3: mac_address: "fa:16:3e:29:b7:ae" pci_address: "0000:00:06.0" link: link3 port4: mac_address: "fa:16:3e:76:8d:ff" pci_address: "0000:00:07.0" link: link6 DUT2: type: DUT host: "10.30.51.156" arch: x86_64 port: 22 username: cisco honeycomb: user: admin passwd: admin port: 8183 netconf_port: 2831 priv_key: | -----BEGIN RSA PRIVATE KEY----- MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd vuBfTvIluljfQ2vAlnYrDwn+ClxJk81m0pDgvrLEX4qVVh2sGh7UEkYy5r82DNa2 4VjzPB1J/c8a9zP8FoZUhYIzF4FLvRMjUADpbMXgJMsGpaZLmz95ap0Eot7vb1Cc 1LvF97iyBCrtIOSKRKA50ZhLGjMKmOwnYU+cP5718tbproDVi6VJOo7zeuXyetMs 8YBl9kWblWG9BqP9jctFvsmi5G7hXgq1Y8u+DwIDAQABAoIBAQC/W4E0DHjLMny7 0bvw2YKzD0Zw3fttdB94tkm4PdZv5MybooPnsAvLaXVV0hEdfVi5kzSWNl/LY/tN EP1BgGphc2QgB59/PPxGwFIjDCvUzlsZpynBHe+B/qh5ExNQcVvsIOqWI7DXlXaN 0i/khOzmJ6HncRRah1spKimYRsaUUDskyg7q3QqMWVaqBbbMvLs/w7ZWd/zoDqCU MY/pCI6hkB3QbRo0OdiZLohphBl2ShABTwjvVyyKL5UA4jAEneJrhH5gWVLXnfgD p62W5CollKEYblC8mUkPxpP7Qo277zw3xaq+oktIZhc5SUEUd7nJZtNqVAHqkItW 79VmpKyxAoGBAPfU+kqNPaTSvp+x1n5sn2SgipzDtgi9QqNmC4cjtrQQaaqI57SG OHw1jX8i7L2G1WvVtkHg060nlEVo5n65ffFOqeVBezLVJ7ghWI8U+oBiJJyQ4boD GJVNsoOSUQ0rtuGd9eVwfDk3ol9aCN0KK53oPfIYli29pyu4l095kg11AoGBAMef bPEMBI/2XmCPshLSwhGFl+dW8d+Klluj3CUQ/0vUlvma3dfBOYNsIwAgTP0iIUTg 8DYE6KBCdPtxAUEI0YAEAKB9ry1tKR2NQEIPfslYytKErtwjAiqSi0heM6+zwEzu f54Z4oBhsMSL0jXoOMnu+NZzEc6EUdQeY4O+jhjzAoGBAIogC3dtjMPGKTP7+93u UE/XIioI8fWg9fj3sMka4IMu+pVvRCRbAjRH7JrFLkjbUyuMqs3Arnk9K+gbdQt/ +m95Njtt6WoFXuPCwgbM3GidSmZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/ sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN -----END RSA PRIVATE KEY----- interfaces: port1: mac_address: "fa:16:3e:ad:6c:7d" pci_address: "0000:00:04.0" link: link2 port2: mac_address: "fa:16:3e:94:a4:99" pci_address: "0000:00:05.0" link: link5 port3: mac_address: "fa:16:3e:75:92:da" pci_address: "0000:00:06.0" link: link3 port4: mac_address: "fa:16:3e:2c:b1:2a" pci_address: "0000:00:07.0" link: link6 VPP Version ~~~~~~~~~~~ |vpp-release| VPP Installed Packages - Ubuntu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: $ dpkg -l | grep vpp ii libvppinfra 19.08-release amd64 Vector Packet Processing--runtime libraries ii libvppinfra-dev 19.08-release amd64 Vector Packet Processing--runtime libraries ii python3-vpp-api 19.08-release amd64 VPP Python3 API bindings ii vpp 19.08-release amd64 Vector Packet Processing--executables ii vpp-api-python 19.08-release amd64 VPP Python API bindings ii vpp-dbg 19.08-release amd64 Vector Packet Processing--debug symbols ii vpp-dev 19.08-release amd64 Vector Packet Processing--development support ii vpp-plugin-core 19.08-release amd64 Vector Packet Processing--runtime core plugins ii vpp-plugin-dpdk 19.08-release amd64 Vector Packet Processing--runtime dpdk plugin VPP Installed Packages - Centos ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: $ rpm -qai *vpp* vpp-api-python Version : 19.08 Release : release Architecture: x86_64 Install Date: Wed 28 Aug 2019 01:35:57 AM EDT Group : Development/Libraries Size : 195318 License : ASL 2.0 Signature : (none) Source RPM : vpp-19.08-release.src.rpm Build Date : Wed 21 Aug 2019 02:30:08 PM EDT Build Host : 05ab23f629ba Relocations : (not relocatable) Summary : VPP api python bindings Description : This package contains the python bindings for the vpp api Name : vpp Version : 19.08 Release : release Architecture: x86_64 Install Date: Wed 28 Aug 2019 01:35:57 AM EDT Group : Unspecified Size : 2681317 License : ASL 2.0 Signature : (none) Source RPM : vpp-19.08-release.src.rpm Build Date : Wed 21 Aug 2019 02:30:08 PM EDT Build Host : 05ab23f629ba Relocations : (not relocatable) Summary : Vector Packet Processing Description : This package provides VPP executables: vpp, vpp_api_test, vpp_json_test vpp - the vector packet engine vpp_api_test - vector packet engine API test tool vpp_json_test - vector packet engine JSON test tool Name : vpp-lib Version : 19.08 Release : release Architecture: x86_64 Install Date: Wed 28 Aug 2019 01:35:57 AM EDT Group : System Environment/Libraries Size : 43222411 License : ASL 2.0 Signature : (none) Source RPM : vpp-19.08-release.src.rpm Build Date : Wed 21 Aug 2019 02:30:08 PM EDT Build Host : 05ab23f629ba Relocations : (not relocatable) Summary : VPP libraries Description : This package contains the VPP shared libraries, including: vppinfra - foundation library supporting vectors, hashes, bitmaps, pools, and string formatting. svm - vm library vlib - vector processing library vlib-api - binary API library vnet - network stack library Name : vpp-devel Version : 19.08 Release : release Architecture: x86_64 Install Date: Wed 28 Aug 2019 01:35:59 AM EDT Group : Development/Libraries Size : 13906969 License : ASL 2.0 Signature : (none) Source RPM : vpp-19.08-release.src.rpm Build Date : Wed 21 Aug 2019 02:30:08 PM EDT Build Host : 05ab23f629ba Relocations : (not relocatable) Summary : VPP header files, static libraries Description : This package contains the header files for VPP. Install this package if you want to write a program for compilation and linking with vpp lib. vlib vlibmemory vnet - devices, classify, dhcp, ethernet flow, gre, ip, etc. vpp-api vppinfra Name : vpp-selinux-policy Version : 19.08 Release : release Architecture: x86_64 Install Date: Wed 28 Aug 2019 01:35:56 AM EDT Group : System Environment/Base Size : 102929 License : ASL 2.0 Signature : (none) Source RPM : vpp-19.08-release.src.rpm Build Date : Wed 21 Aug 2019 02:30:08 PM EDT Build Host : 05ab23f629ba Relocations : (not relocatable) Summary : VPP Security-Enhanced Linux (SELinux) policy Description : This package contains a tailored VPP SELinux policy Name : vpp-plugins Version : 19.08 Release : release Architecture: x86_64 Install Date: Wed 28 Aug 2019 01:35:59 AM EDT Group : System Environment/Libraries Size : 34150451 License : ASL 2.0 Signature : (none) Source RPM : vpp-19.08-release.src.rpm Build Date : Wed 21 Aug 2019 02:30:08 PM EDT Build Host : 05ab23f629ba Relocations : (not relocatable) Summary : Vector Packet Processing--runtime plugins Description : This package contains VPP plugins VPP Startup Configuration ~~~~~~~~~~~~~~~~~~~~~~~~~ VPP startup configuration is common for all test cases. **Common Configuration** There is used the default startup configuration as defined in `VPP startup.conf`_ TG Settings - Scapy ------------------- Traffic Generator node is VM running the same OS Linux as SUTs. Ports of this VM are used as source (Tx) and destination (Rx) ports for the traffic. Traffic scripts of test cases are executed on this VM. TG VM Configuration ~~~~~~~~~~~~~~~~~~~ Configuration of the TG VMs is defined in `VIRL topologies directory`_. /csit/resources/tools/virl/topologies/double-ring-nested.xenial.virl - List of TG VM interfaces::: TG Port Configuration ~~~~~~~~~~~~~~~~~~~~~ Port configuration of TG is defined in topology file that is generated per VIRL simulation based on the definition stored in `VIRL topologies directory`_. Example of TG node configuration::: TG: type: TG host: "10.30.51.155" arch: x86_64 port: 22 username: cisco priv_key: | -----BEGIN RSA PRIVATE KEY----- MIIEpgIBAAKCAQEAwUDlTpzSHpwLQotZOFS4AgcPNEWCnP1AB2hWFmvI+8Kah/gb v8ruZU9RqhPs56tyKzxbhvNkY4VbH5F1GilHZu3mLqzM4KfghMmaeMEjO1T7BYYd vuBfTvIluljfQ2vAlnYrDwn+ClxJk81m0pDgvrLEX4qVVh2sGh7UEkYy5r82DNa2 4VjzPB1J/c8a9zP8FoZUhYIzF4FLvRMjUADpbMXgJMsGpaZLmz95ap0Eot7vb1Cc 1LvF97iyBCrtIOSKRKA50ZhLGjMKmOwnYU+cP5718tbproDVi6VJOo7zeuXyetMs 8YBl9kWblWG9BqP9jctFvsmi5G7hXgq1Y8u+DwIDAQABAoIBAQC/W4E0DHjLMny7 0bvw2YKzD0Zw3fttdB94tkm4PdZv5MybooPnsAvLaXVV0hEdfVi5kzSWNl/LY/tN EP1BgGphc2QgB59/PPxGwFIjDCvUzlsZpynBHe+B/qh5ExNQcVvsIOqWI7DXlXaN 0i/khOzmJ6HncRRah1spKimYRsaUUDskyg7q3QqMWVaqBbbMvLs/w7ZWd/zoDqCU MY/pCI6hkB3QbRo0OdiZLohphBl2ShABTwjvVyyKL5UA4jAEneJrhH5gWVLXnfgD p62W5CollKEYblC8mUkPxpP7Qo277zw3xaq+oktIZhc5SUEUd7nJZtNqVAHqkItW 79VmpKyxAoGBAPfU+kqNPaTSvp+x1n5sn2SgipzDtgi9QqNmC4cjtrQQaaqI57SG OHw1jX8i7L2G1WvVtkHg060nlEVo5n65ffFOqeVBezLVJ7ghWI8U+oBiJJyQ4boD GJVNsoOSUQ0rtuGd9eVwfDk3ol9aCN0KK53oPfIYli29pyu4l095kg11AoGBAMef bPEMBI/2XmCPshLSwhGFl+dW8d+Klluj3CUQ/0vUlvma3dfBOYNsIwAgTP0iIUTg 8DYE6KBCdPtxAUEI0YAEAKB9ry1tKR2NQEIPfslYytKErtwjAiqSi0heM6+zwEzu f54Z4oBhsMSL0jXoOMnu+NZzEc6EUdQeY4O+jhjzAoGBAIogC3dtjMPGKTP7+93u UE/XIioI8fWg9fj3sMka4IMu+pVvRCRbAjRH7JrFLkjbUyuMqs3Arnk9K+gbdQt/ +m95Njtt6WoFXuPCwgbM3GidSmZwYT4454SfDzVBYScEDCNm1FuR+8ov9bFLDtGT D4gsngnGJj1MDFXTxZEn4nzZAoGBAKCg4WmpUPaCuXibyB+rZavxwsTNSn2lJ83/ sYJGBhf/raiV/FLDUcM1vYg5dZnu37RsB/5/vqxOLZGyYd7x+Jo5HkQGPnKgNwhn g8BkdZIRF8uEJqxOo0ycdOU7n/2O93swIpKWo5LIiRPuqqzj+uZKnAL7vuVdxfaY qVz2daMPAoGBALgaaKa3voU/HO1PYLWIhFrBThyJ+BQSQ8OqrEzC8AnegWFxRAM8 EqrzZXl7ACUuo1dH0Eipm41j2+BZWlQjiUgq5uj8+yzy+EU1ZRRyJcOKzbDACeuD BpWWSXGBI5G4CppeYLjMUHZpJYeX1USULJQd2c4crLJKb76E8gz3Z9kN -----END RSA PRIVATE KEY----- interfaces: port3: mac_address: "fa:16:3e:b9:e1:27" pci_address: "0000:00:06.0" link: link1 driver: virtio-pci port4: mac_address: "fa:16:3e:e9:c8:68" pci_address: "0000:00:07.0" link: link4 driver: virtio-pci port5: mac_address: "fa:16:3e:e8:d3:47" pci_address: "0000:00:08.0" link: link2 driver: virtio-pci port6: mac_address: "fa:16:3e:cf:ca:58" pci_address: "0000:00:09.0" link: link5 driver: virtio-pci Traffic Generator ~~~~~~~~~~~~~~~~~ Functional tests utilize Scapy as a traffic generator. Scapy v2.3.1 is used for |vpp-release| tests.