aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles
AgeCommit message (Collapse)AuthorFilesLines
2018-04-26OpenStack deployment using kollaStepan Andrushko16-14/+829
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-25Merge "OpenStack deployment: delete RS or all VMs"Rodolfo Alonso Hernandez3-21/+50
2018-04-25Merge "Add docker support for Ubuntu 17.10 with Yardstick"Rodolfo Alonso Hernandez2-14/+2
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 Andrushko3-21/+50
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-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-21TC042 bug fixliyin4-0/+72
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-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 Chan2-0/+32
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-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 Brattain2-4/+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 Lee2-0/+32
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 Loughlin3-0/+435
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 Loughlin2-0/+128
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>
2018-02-11Merge "Remove references to "dpdk_nic_bind" utility"Emma Foley2-11/+0
2018-02-09Merge "Change nsb_setup.sh to use NSB image instead of raw"Emma Foley1-1/+1
2018-02-09Delete any previous configurationJohn O Loughlin2-0/+95
Delete any previous configuration using the virsh module in ansible: Networks, VMs and local IPs. JIRA: YARDSTICK-950 Change-Id: Ie4963ab8210ce50ba2e9fa22642ec27a3b2031e1 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-02-08Change nsb_setup.sh to use NSB image instead of rawMytnyk, Volodymyr1-1/+1
The `ansible/roles/create_samplevnfs_image/tasks/main.yml` ansible role uses raw NSB image (yardstick-xenial-server.raw) to upload it to OpenStack instead QCOW2 NSB converted image (yardstick-nsb-image.img which is converted from the raw). Changed the create_samplevnfs_image role to to use NSB image. JIRA: YARDSTICK-1000 Change-Id: Ieda9f14e6882ca854331b4eccc9a4cb390b6a475 Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
2018-02-05Remove references to "dpdk_nic_bind" utilityRodolfo Alonso Hernandez2-11/+0
In DPDK 16.07 [1], "dpdk_nic_bind" utility was renamed to "dpdk-devbind". This patch removes all references to this previous naming to avoid confusions. [1] https://dpdk-guide.gitlab.io/dpdk-guide/setup/binding.html JIRA: YARDSTICK-995 Change-Id: I827c4c11c9e9e519f33f21b80459e7d65e51545e Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-02-02Fix i40vf driver download URLRodolfo Alonso Hernandez1-1/+1
Fix the download URL of i40vf driver introduced in 15e122a770d6349c84801dd05891e21661cbad2c. In order to avoid the redirection, the URL should be: https://netix.dl.sourceforge.net/project/e1000/ i40evf%20stable/{{ i40evf_version }}/{{ i40evf_gzfile }} JIRA: YARDSTICK-993 Change-Id: Ie19d11d36417914e823b81867046123204111d76 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-01-29Merge "Add Intel Fortville 40G VF driver to sample VNF image"Rodolfo Alonso Hernandez7-0/+163
2018-01-29Merge "Change CivetWeb download URL"Ross Brattain1-2/+2
2018-01-29Add Intel Fortville 40G VF driver to sample VNF imageMytnyk, Volodymyr7-0/+163
1) Add common YAML config file to add kernel drivers to sample VNF image. 2) Add Intel Fortville 40G VF driverto sample VNF image using common YAML config file for drivers. 3) Configure i40evf driver to load on boot JIRA: YARDSTICK-968 Change-Id: I223c8a10d77352baf4f41a481f465970655ba251 Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
2018-01-24Merge "Check RS for virtualized OpenStack/Yardstick"Ross Brattain2-0/+60
2018-01-24Check RS for virtualized OpenStack/YardstickStepan Andrushko2-0/+60
Draft for env requirements reading and validation Script can be run from tools/virt_ci_rampup.sh. First requirement file is parsed/stored. This file must be created in ahead and named as 'infra_deploy.yaml'. Then separate ansible role is used to validate resources. Ansible-role fails if there is not enough resources on the host for cpu, ram, disk space. JIRA: YARDSTICK-945 Change-Id: I86cd4bdc963de3aa51392fc73a239cbd426bc64a Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
2018-01-22Enable iommu support in grubJan Malanik3-0/+123
JIRA: YARDSTICK-895 It's required for sriov standalone yardstick tests. This part of commit message will be deleted: This code will be enabled when https://gerrit.opnfv.org/gerrit/#/c/47957/ will be merged, because it requires host reboot. Change-Id: I0ec9cbf90a9d83d54e545fcf421b8baf206601a4 Signed-off-by: Jan Malanik <janx.malanik@intel.com> Signed-off-by: Malanik Jan <janx.malanik@intel.com>
2018-01-12Change CivetWeb download URLRodolfo Alonso Hernandez1-2/+2
Changed CivetWeb download URL to [1]. [1] https://iweb.dl.sourceforge.net/project/civetweb/1.9.1/CivetWeb_V1.9.1.zip JIRA: YARDSTICK-920 Change-Id: Ida014a57bd5b87d26c6cb8f5d36d43060f08026d Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2017-12-22Merge changes from topics 'YARDSTICK-875', 'YARDSTICK-874'Ross Brattain2-1/+11
* changes: Check if multiverse repository is available in Ubuntu Specify supported architectures for Ubuntu backports repository
2017-12-22Merge "Bugfix in role enable_hugepages_on_boot"Ross Brattain3-35/+39
2017-12-22Merge "Bugfix:proxy env, ansible multinode support"Ross Brattain2-0/+47
2017-12-22Check if multiverse repository is available in UbuntuRodolfo Alonso Hernandez2-0/+10
In Ubuntu, multiverse repository is needed to install the image dependencies [1]. If this repository is not enabled, it should be added as part of the role "add_custom_repos". [1] https://github.com/opnfv/yardstick/tree/master/ansible/roles/install_image_dependencies JIRA: YARDSTICK-875 Change-Id: Ie37ebf87bf245185447f2b675568af9bd38219c0 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2017-12-22Specify supported architectures for Ubuntu backports repositoryRodolfo Alonso Hernandez1-1/+1
Currently Trusty (Ubuntu 14.04 LTS) and Xenial (Ubuntu 16.04 LTS) doesn't have support for arch=ARM64 in backports repository: - http://archive.ubuntu.com/ubuntu/dists/xenial-backports/ - http://archive.ubuntu.com/ubuntu/dists/trusty-backports/ During the Yardstick image building process, the repository is added to the APT repository list. In order to avoid errors during the repository retrival, the available architectures must be specified [1]. [1]https://github.com/opnfv/yardstick/blob/stable/euphrates/ansible/roles/add_custom_repos/templates/sources.list.j2#L4 JIRA: YARDSTICK-874 Change-Id: I7774189fbdd7d74ff5df29526ba0da2693b3b53a Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2017-12-22Bugfix in role enable_hugepages_on_bootJan Malanik3-35/+39
Make role idempotent. Current regex doesn't match for: linux /boot/vmlinuz-4.10.0-30-generic root=/dev/nvme0n1p1 ro vga=788 text Change-Id: If5eb20fce4ddc35bb109c00eb7565853b3763950 Signed-off-by: Jan Malanik <janx.malanik@intel.com> Signed-off-by: Malanik Jan <janx.malanik@intel.com>
2017-12-16Merge "bugfix: tc078 fails in some situations"Ross Brattain5-13/+6
2017-12-14Bugfix:proxy env, ansible multinode supportMalanik Jan2-0/+47
JIRA: YARDSTICK-893 - hosts and plays in ansible/nsb_setup.yml refactored Fixed proxy configuration from env or /etc/environment in nsb_setup.sh Fixed ansible parameter 'environment: "{{ proxy_env }}"' in: - roles for components download. - roles for components dependencies install. Now, you can use ansible to modify all yardstick-standalone hosts at once. 1) Configure http[s]_proxy in - /etc/environment or - env variables 2) Modify ansible/yardstick-install-inventory.ini: [jumphost] localhost ansible_connection=local [yardstick-standalone] yardstick-standalone-node ansible_host=192.168.1.2 yardstick-standalone-node-2 ansible_host=192.168.1.3 [all:vars] ansible_user=root ansible_pass=root 3) start: ./nsb_setup.sh # for baremetal/sriov ./nsb_setup.sh <path to admin-openrc.sh> #for openstack heat Change-Id: I167db8bae8303210f21e8ae6f3870ef054bbedce Signed-off-by: Malanik Jan <janx.malanik@intel.com>
2017-12-13bugfix: tc078 fails in some situationsrexlee87765-13/+6
1. make "SPECint_benchmark, runspec_iterations, runspec_tune, runspec_size, runspec_rate" parameterized and change the default value "int^429" to "int" 2. remove "become: true" in some roles since it does not need root privilege JIRA: YARDSTICK-852 Change-Id: Icb384bddc12911e2681a981d0504e0e142d1a8ec Signed-off-by: rexlee8776 <limingjiang@huawei.com>
2017-11-20Merge "update docker version to 16.04"Ross Brattain1-0/+3
2017-11-17update docker version to 16.04Ace Lee1-0/+3
JIRA: YARDSTICK-690 This patch is for Yardstick Docker base image upgrade to 16.04 This patch will enable ansible build image in yardstick env prepare. Add qemu-img convert to ansible build image. Change-Id: I43127b6020bd20bd9f4aac4fca0df75353b24346 Signed-off-by: Ace Lee <liyin11@huawei.com>
2017-11-10Merge "pmu: remove event_download_local workaround script"Ross Brattain2-220/+0
2017-11-08pmu: remove event_download_local workaround scriptRoss Brattain2-220/+0
intel_pmu needs to download a config file based on the CPU model. When generating VNF images we don't have access to the actual vCPU that will be used, so we can't predownload. This code was meant to be a fix for that by downloading all the configs and then selecting one that matched the vCPU. However we have license issues with intel_pmu enven GPLv2 code, so remove it for now. Change-Id: I5257ff7c4ddc1d40537dadb29efa40d1d68cb852 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-11-07NSB Prox LW_AFTR TestDanielMartinBuckley1-2/+2
JIRA: YARDSTICK-802 Addition of PROX LW_AFTR basked on PROX/DATS v037 test_104_lw_aftr.py - This support BM and Openstack Heat - This supports 4 Ports ONLY - Grafana Dashboards included - Code Coverage / Unit testing Change-Id: If2170ab458bf687256d5f1a1e840a3b9d2788ef7 Signed-off-by: Daniel MArtin Buckley <daniel.m.buckley@intel.com> Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>