summaryrefslogtreecommitdiffstats
path: root/ansible
AgeCommit message (Collapse)AuthorFilesLines
2018-06-21DPDK site changeRodolfo Alonso Hernandez2-12/+16
DPDK site changed and the download URL must be changed. New site: http://core.dpdk.org/download/ JIRA: YARDSTICK-1248 Change-Id: I87359a4417f09c86717f598c76dc67c422bd39f7 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-06-14Merge "Install dependencies: bare-metal, standalone"Emma Foley5-31/+97
2018-06-14Install dependencies: bare-metal, standaloneStepan Andrushko5-31/+97
This will install all dependencies needed on the bare-metal and standalone physical nodes. JIRA: YARDSTICK-1177 Change-Id: I719ca64d4da098d6dd60597e5fc4ad6f4715f79e Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com> Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2018-05-24Use TRex release v2.41 to support both x86 and aarch64trevortao2-2/+3
Currently Yardstick uses Cisco's TRex release v2.28 which can only support x86, for the consideration of multi-arch support of Yardstick, the trex release v2.41 is now available and it can support multi-arch(both x86 and aarch64) now. For the external lib of v2.41, for x86_64, it looks like: external_libs/pyzmq-14.5.0/python2/intel/ucs4/64bit/zmq for arm64, it looks like: external_libs/pyzmq-14.5.0/python2/arm/ucs4/64bit/zmq So replace the trex release v2.28 with v2.41. JIRA: YARDSTICK-1191 Change-Id: I22dc3499283d48a89da1145cc480fd7d2a93a1cc Signed-off-by: trevortao <trevor.tao@arm.com>
2018-05-15Start nginx and uwsgi servicies only in not container modeStepan Andrushko1-0/+2
No need to execute nginx and uwsgi when running in container mode. JIRA: YARDSTICK-1179 Change-Id: I253f3adab388a14886b70e6589936f6eb27ac4c0 Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
2018-05-10Merge "nsb_setup: parametrize docker image"Emma Foley1-1/+1
2018-05-08Merge "Add IxNetwork API Python Binding package"Rodolfo Alonso Hernandez6-8/+2
2018-05-04Merge changes from topics 'YARDSTICK-1147', 'YARDSTICK-1144'Rodolfo Alonso Hernandez1-2/+1
* changes: Fix ansible scripts for running in container Correctly set PYTHONPATH in Dockerfile
2018-05-04Add IxNetwork API Python Binding packageRodolfo Alonso Hernandez6-8/+2
Add IxNetwork python package to the requirements list. This module is needed for the "NSPerf" scenarios using IXIA as traffic generator, when IxNetwork is the program used to handle the IXIA generator. The latest version of this module is 8.40.1124.9 [1]. The license type is MIT. [1] https://pypi.python.org/pypi/ixnetwork JIRA: YARDSTICK-1106 Change-Id: I279933c95994f5120930256a104c4192a0b9900d Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-03Fix ansible scripts for running in containerJohn O Loughlin1-2/+1
JIRA: YARDSTICK-1147 Change-Id: I52dae85a2d97192bc8a48c5aeea3173b3d4de003 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-05-02Fix nsb_setup.sh scriptJohn O Loughlin2-20/+1
Ansible role install_dependencies was renamed to install_dependencies_jumphost in previous patch. JIRA: YARDSTICK-1146 Change-Id: Idf7c191151961c1c0e63ad2f75aa0aab8ed2b2fa Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-04-26Migrate install.sh script to ansibleJohn O Loughlin18-23/+538
Ansible scripts to install yardstick. These scripts will take a few options: INSTALLATION_MODE : Container or Baremetal YARDSTICK_DIR: Location of Yardstick directory VIRTUAL_ENVIRONMENT: Should a virtual environment be used NSB_DIR: Location of NSB directory JIRA: YARDSTICK-1126 Change-Id: I4a13e07e96650ffd971dfb18472f2563cfd51aa9 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-04-26OpenStack deployment using kollaStepan Andrushko17-14/+854
OpenStack deployment using Kolla installer for all-in-one mode and multinode inside VMs which are already created. Two types of OpenStack nodes are supported as input in sample files, like infra_deploy_two.yaml.sample: controller and compute. JIRA: YARDSTICK-1078 Change-Id: I51616a7a17ac565a01ec6da57b589290237d18ee Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
2018-04-26nsb_setup: parametrize docker imageRoss Brattain1-1/+1
The user may need to pull a different image stable or a tagged release version. Since we can't pull a tagged image before it is tagged just give up and make it an argument JIRA: YARDSTICK-1137 Change-Id: I0caf0f8915c191786c7db6d929be2fa350a545af Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-04-25Merge "OpenStack deployment: delete RS or all VMs"Rodolfo Alonso Hernandez4-22/+54
2018-04-25Merge "Add docker support for Ubuntu 17.10 with Yardstick"Rodolfo Alonso Hernandez2-14/+2
2018-04-20Merge "extra loopback cleanup"Ross Brattain1-5/+4
2018-04-20Merge "DPDK: detect dpdk_make_arch based on image arch"Abhijit Sinha2-2/+8
2018-04-19extra loopback cleanupRoss Brattain1-5/+4
try to cleanup in the shell script in case ansible errors maybe it is hopeless because of docker JIRA: YARDSTICK-1096 JIRA: YARDSTICK-1054 Change-Id: I759ded4731a7710a194a81530cfb35376eb7800d Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-04-18Merge "add verbose to debug losetup delete"Ross Brattain1-1/+1
2018-04-18DPDK: detect dpdk_make_arch based on image archRoss Brattain2-2/+8
JIRA: YARDSTICK-1124 Change-Id: I26e5854f5117a3b45ac7fa4d4b06f325dcd4d97a Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-04-17OpenStack deployment: delete RS or all VMsStepan Andrushko4-22/+54
New parameter is added to shell script to delete data for VMs either from input file or all. Added disk images removal as per new input parameter. JIRA: YARDSTICK-1123 Change-Id: I8d2cee4a3a7ad7147f4d59303bab656d80370221 Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
2018-04-13Merge "Bugfix: to list all used loop device"Rodolfo Alonso Hernandez1-1/+2
2018-04-12Bugfix: to list all used loop deviceting wu1-1/+2
Bug fix in script "build_yardstick_image.yml", to - Use option "-a" to list all used loop devices, to be more compatible. - Ignore the error and continue, if the debug command failed. JIRA: YARDSTICK-1121 Change-Id: I24aaebb2ffe3107ca5c619401725aa8c8e1af295 Signed-off-by: ting wu <ting.wu@enea.com>
2018-04-11Add docker support for Ubuntu 17.10 with YardstickJohn O Loughlin2-14/+2
JIRA: YARDSTICK-1119 Change-Id: I6d9b21667605f1c0a157c2a72e708c36b90e8c3a Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-04-11Upgrade collectd to version 5.8John O Loughlin1-1/+1
Update collectd version to 5.8 as it's the latest stable and supports GCC 7 JIRA: YARDSTICK-1114 Change-Id: I9147b7277d87047eda729664d5ee3e8ab2c145af Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-04-11Add support for dpdk 17.05John O Loughlin7-21/+23
Add support for dpdk 17.05. Add option to dpdk scripts to download dpdk 17.08 17.11 and 18.02. These are currently unsupported due to prox build issues. JIRA: YARDSTICK-1113 Change-Id: I585566364a4d1f04a696439af96c50c0e9d38033 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-03-29add verbose to debug losetup deleteRoss Brattain1-1/+1
JIRA: YARDSTICK-1096 JIRA: YARDSTICK-1054 Change-Id: I5a11dbd2638782c5e499cb94dd5882b8bf696e8d Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-03-24Merge "ansible: disable Extra cloud image kernel stub"Ross Brattain1-4/+3
2018-03-24Merge "use basename to delete yardstick image loop devices"Ross Brattain1-9/+9
2018-03-23Merge "TC042 bug fix"Ross Brattain5-0/+74
2018-03-23use basename to delete yardstick image loop devicesRoss Brattain1-9/+9
the full path probably isn't matching, so just grep for the basename JIRA: YARDSTICK-1096 JIRA: YARDSTICK-1054 Change-Id: I403a7f51310c0856fae0f79d115ba0786b7c417c Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-03-22dump CI failures with kpartx and no /dev/loop devicesRoss Brattain1-2/+16
CI is failing due to unable to find loop device for kpartx "cmd": [ "kpartx", "-l", "/tmp/workspace/yardstick/yardstick-xenial-server.raw" ] "stderr": "mount: could not find any device /dev/loop#Bad address\ncan't set up loop", This error occurs when kpartx can't find any loop devices to use https://build.opnfv.org/ci/job/yardstick-compass-virtual-daily-master/3261/console JIRA: YARDSTICK-1054 JIRA: YARDSTICK-1096 Change-Id: Ib6131ce29c4f9e81386eb5471dd6107825798620 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-03-21TC042 bug fixliyin5-0/+74
JIRA:YARDSTICK-786 yardstick DPDK image have problems to build. We will fix this by using nsb image the pktgen DPDK testcase will use sampleVNF image Change-Id: I24b7b6a9acfe21ec956fa9c4ee7ebe7ae1787dbb Signed-off-by: liyin <liyin11@huawei.com>
2018-03-19yardstick image: use growpart instead of partedRoss Brattain1-1/+7
parted doesn't handle growing GPT partition correctly, so switch to growpart see https://github.com/opnfv/fuel/blob/master/mcp/scripts/lib.sh#L133 for example If the yardstick image uses GPT then parted complains about the GPT table The warning is "Warning: Not all of the space available to DEVICE appears to be used, you can fix the GPT to use all of the space (an extra 500 blocks) or continue with the current setting?" The backup GPT table is not at the end of the disk, as it should be. This might mean that another operating system believes the disk is smaller. Fix, by moving the backup to the end (and removing the old backup)? echo 'f' to fix the GPT table Instead use growpart JIRA: YARDSTICK-1058 Change-Id: Ib0e90feef1e3766408b4f742036f2a48af942f32 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-03-14Improve ansible code for network xml creationJohn O Loughlin1-42/+7
JIRA: YARDSTICK-1018 Change-Id: Ia94fb1ceb9cb55bd54e512f356f85a263c32d1cf Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-03-12Add support for VNC to VMs created by ansibleJohn O Loughlin1-0/+14
JIRA: YARDSTICK-1017 Change-Id: I76ca53c12a6791ecbf7f546f9074b16c5f6d215a Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-03-08Merge "Allow VMs to access internet"Rodolfo Alonso Hernandez6-4/+56
2018-03-07Merge "ansible: fix urlsplit('hostname') in convert_openrc"Emma Foley1-1/+1
2018-03-07Merge "Add l2fwd module in Tgen mode"Jack Chan3-0/+33
2018-03-06Allow VMs to access internetJohn O Loughlin6-4/+56
Add option to the config file for default network. Check to see if 1 default network is defined. Enable nat on all defined networks. Add default gateway to VM JIRA: YARDSTICK-1016 Change-Id: Ie943a7c7b4f1a9673774cf8fedaba0af352cd7f4 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-03-05ansible: disable Extra cloud image kernel stubRoss Brattain1-4/+3
JIRA: YARDSTICK-900 Change-Id: Icd3e5333fa30c77fec462dd26b70f0f28b8ca67f Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-03-05Bug fix ansible scriptsJohn O Loughlin1-1/+1
For 'qemu-img version 2.10.1' unit 'MB' is not acceptable Changing to 'M' JIRA: YARDSTICK-1019 Change-Id: Ic9153e9e9c85d949d15b1d15cc8cddfad986b4a3 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-03-01remove releng from Dockerfile and elsewhereRoss Brattain5-22/+0
Current CI does openrc fetching before starting the Docker container and then passes openrc via Docker mount JIRA: YARDSTICK-691 Change-Id: Id0649130f48db5a5586149b237c5252b953e57be Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-02-28ansible: fix urlsplit('hostname') in convert_openrcRoss Brattain1-1/+1
can't use urlsplit|attr('hostname') since urlsplit is a dict should instead use urlsplit('hostname') Change-Id: I272cac785c2336891b43b81ecf10370af8be228b Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2018-02-28Deprecate authentication variable OS_TENANT_NAMERodolfo Alonso Hernandez3-20/+3
OS_TENANT_NAME was deprecated as authentication variable in Keystone when moved from v2 to v3, in Icehouse (2014). Because this project doesn't support oldest versions, by default the only identification API version supported is v3. JIRA: YARDSTICK-902 Change-Id: I273fb0151ba583f7c8a5a809e5e8864e92c27d31 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-02-28Add l2fwd module in Tgen modeAce Lee3-0/+33
JIRA: YARDSTICK-796 Add l2fwd testcase in Tgen mode(Moongen) fix offiline problem in Tgen mode. Change-Id: I2ee224157a4f1d78e85fcae192a65afd33a1a515 Signed-off-by: Ace Lee <liyin11@huawei.com>
2018-02-13Bug fix for Ansible destroy VM scriptJohn O Loughlin2-11/+33
Modified the destroy script to ignore errors as 2 possible problems can cause a play to fail. 1. A VM can be running but undefined. 2. A VM can be destroyed but still running. JIRA: YARDSTICK-1006 Change-Id: Ib66f48401bfefb598f553cfef31bfa2682f5a584 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-02-12Create host VMs configurationJohn O Loughlin4-0/+436
Using xml files deploy the VM's using the virt plugin. This code generates the user-data network-config meta-data and the vm's xml. It also deploys the vm JIRA: YARDSTICK-963 Change-Id: I97f2d20d0ab75a4444b8b8e6fb65e9e463870af7 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-02-12Create host networking configurationJohn O Loughlin3-0/+129
Create host networking configuration based on the input configuration file. To define the networks using libvirt, a temporary XML file is generated for each network. JIRA: YARDSTICK-962 Change-Id: I24d1c4d2f2e62884675599deb7db255862283ea4 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>