Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 1 | #!/bin/bash |
Sergey Galkin | 2b0cea6 | 2019-11-07 18:45:15 +0400 | [diff] [blame] | 2 | |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 3 | variables=( |
| 4 | OS_USERNAME |
| 5 | OS_PASSWORD |
| 6 | OS_TENANT_NAME |
| 7 | OS_AUTH_URL |
| 8 | ) |
| 9 | |
| 10 | check_variables () { |
| 11 | for i in $(seq 0 $(( ${#variables[@]} - 1 )) ); do |
| 12 | if [ -z "${!variables[$i]}" ]; then |
| 13 | echo "Variable \"${variables[$i]}\" is not defined" |
| 14 | exit 1 |
| 15 | fi |
| 16 | done |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 17 | ip=$(echo ${OS_AUTH_URL} | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/') |
| 18 | export no_proxy=$ip |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | rally_configuration () { |
Oleksii Zhurba | c7d0784 | 2019-05-23 19:32:14 -0500 | [diff] [blame] | 22 | if [ "$PROXY" != "offline" ]; then |
| 23 | if [ -n "${PROXY}" ]; then |
| 24 | export http_proxy=$PROXY |
| 25 | export https_proxy=$PROXY |
| 26 | fi |
| 27 | pip install --force-reinstall python-glanceclient==2.11 |
| 28 | apt-get update; apt-get install -y iputils-ping curl wget |
| 29 | unset http_proxy |
| 30 | unset https_proxy |
| 31 | fi |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 32 | sub_name=`date "+%H_%M_%S"` |
Oleksii Zhurba | 12ff95b | 2019-05-30 17:03:54 -0500 | [diff] [blame] | 33 | # remove dashes from rally user passwords to fit into 32 char limit |
| 34 | sed -i 's/uuid4())/uuid4()).replace("-","")/g' /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/keystone/utils.py |
| 35 | sed -i 's/uuid4())/uuid4()).replace("-","")/g' /usr/local/lib/python2.7/dist-packages/rally/plugins/openstack/context/keystone/users.py |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 36 | rally deployment create --fromenv --name=tempest_$sub_name |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 37 | echo "[openstack]" >> /etc/rally/rally.conf |
| 38 | echo "pre_newton_neutron=True" >> /etc/rally/rally.conf |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 39 | } |
| 40 | |
Alex Savatieiev | 719c761 | 2019-07-24 13:33:47 -0500 | [diff] [blame] | 41 | update_cacerts () { |
Oleksii Zhurba | 88375f3 | 2019-07-26 16:04:44 -0500 | [diff] [blame] | 42 | # configuring certificates file |
| 43 | if [ -z ${OS_CACERT+x} ]; then |
Alex Savatieiev | c13c8dd | 2019-10-25 13:34:13 -0500 | [diff] [blame] | 44 | echo "# No OS_CACERT is set, update of crt file skipped" |
Oleksii Zhurba | 88375f3 | 2019-07-26 16:04:44 -0500 | [diff] [blame] | 45 | else |
Alex Savatieiev | c13c8dd | 2019-10-25 13:34:13 -0500 | [diff] [blame] | 46 | echo "# Adding custom certificates" |
Oleksii Zhurba | 88375f3 | 2019-07-26 16:04:44 -0500 | [diff] [blame] | 47 | ca=( $(find ${1} -name cacert.pem) ) |
| 48 | for crt in ${ca[@]}; do |
| 49 | cat ${OS_CACERT} >>${crt} |
Alex Savatieiev | c13c8dd | 2019-10-25 13:34:13 -0500 | [diff] [blame] | 50 | echo "-> ${crt}" |
Oleksii Zhurba | 88375f3 | 2019-07-26 16:04:44 -0500 | [diff] [blame] | 51 | done |
| 52 | fi |
Alex Savatieiev | 719c761 | 2019-07-24 13:33:47 -0500 | [diff] [blame] | 53 | } |
| 54 | |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 55 | tempest_configuration () { |
| 56 | sub_name=`date "+%H_%M_%S"` |
Oleksii Zhurba | 33671b6 | 2019-02-21 17:55:22 -0600 | [diff] [blame] | 57 | # default tempest version is 18.0.0 now, unless |
Oleksii Zhurba | d85b002 | 2018-09-11 15:43:43 -0500 | [diff] [blame] | 58 | # it is explicitly defined in pipelines |
| 59 | if [ "$tempest_version" == "" ]; then |
Alex | 83075ac | 2022-02-16 13:39:50 -0600 | [diff] [blame] | 60 | tempest_version='master' |
Oleksii Zhurba | d85b002 | 2018-09-11 15:43:43 -0500 | [diff] [blame] | 61 | fi |
Oleksii Zhurba | 991dbc6 | 2018-07-25 16:03:51 -0500 | [diff] [blame] | 62 | if [ "$PROXY" == "offline" ]; then |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 63 | rally verify create-verifier --name tempest_verifier_$sub_name --type tempest --source $TEMPEST_REPO --system-wide --version $tempest_version |
Oleksii Zhurba | 33671b6 | 2019-02-21 17:55:22 -0600 | [diff] [blame] | 64 | #rally verify add-verifier-ext --source /var/lib/telemetry-tempest-plugin |
Oleksii Zhurba | 991dbc6 | 2018-07-25 16:03:51 -0500 | [diff] [blame] | 65 | rally verify add-verifier-ext --source /var/lib/heat-tempest-plugin |
Alex Savatieiev | 719c761 | 2019-07-24 13:33:47 -0500 | [diff] [blame] | 66 | update_cacerts "/usr/local/lib" |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 67 | else |
| 68 | if [ -n "${PROXY}" ]; then |
| 69 | export https_proxy=$PROXY |
| 70 | fi |
| 71 | rally verify create-verifier --name tempest_verifier_$sub_name --type tempest --source $TEMPEST_REPO --version $tempest_version |
Oleksii Zhurba | 33671b6 | 2019-02-21 17:55:22 -0600 | [diff] [blame] | 72 | #rally verify add-verifier-ext --version 7a4bff728fbd8629ec211669264ab645aa921e2b --source https://github.com/openstack/telemetry-tempest-plugin |
| 73 | rally verify add-verifier-ext --version 0.2.0 --source https://github.com/openstack/heat-tempest-plugin |
Oleksii Zhurba | 8b76f3d | 2018-08-07 12:38:26 -0500 | [diff] [blame] | 74 | pip install --force-reinstall python-cinderclient==3.2.0 |
Ievgeniia Zadorozhna | 73546da | 2022-02-19 01:44:32 +0300 | [diff] [blame] | 75 | /home/rally/.rally/verification/*/.venv/bin/pip install --force-reinstall 'paramiko==2.7.2' |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 76 | unset https_proxy |
Alex Savatieiev | 719c761 | 2019-07-24 13:33:47 -0500 | [diff] [blame] | 77 | update_cacerts "/home/rally/.rally/verification" |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 78 | fi |
Oleksii Zhurba | 12ff95b | 2019-05-30 17:03:54 -0500 | [diff] [blame] | 79 | # set password length to 32 |
| 80 | data_utils_path=`find /home/rally/.rally/verification/ -name data_utils.py` |
| 81 | sed -i 's/length=15/length=32/g' $data_utils_path |
Alex Savatieiev | 719c761 | 2019-07-24 13:33:47 -0500 | [diff] [blame] | 82 | |
Oleksii Zhurba | 991dbc6 | 2018-07-25 16:03:51 -0500 | [diff] [blame] | 83 | # supress tempest.conf display in console |
| 84 | #rally verify configure-verifier --show |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 85 | } |
| 86 | |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 87 | glance_image() { |
| 88 | current_path=$(pwd) |
| 89 | # fetch image with exact name: testvm |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 90 | IMAGE_NAME=cvp.cirros.51 |
| 91 | IMAGE_NAME2=cvp.cirros.52 |
Alex | 83075ac | 2022-02-16 13:39:50 -0600 | [diff] [blame] | 92 | IMAGE_REF=$(glance image-list | grep "\b${IMAGE_NAME}\b" | awk '{print $2}') |
Oleksii Zhurba | 88375f3 | 2019-07-26 16:04:44 -0500 | [diff] [blame] | 93 | IMAGE_REF2=$(glance image-list | grep "\b${IMAGE_NAME2}\b" | awk '{print $2}') |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 94 | if [ "${IMAGE_REF2}" == "" ]; then |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 95 | imagefile51=cirros-0.5.1-x86_64-disk.img |
| 96 | imagefile52=cirros-0.5.2-x86_64-disk.img |
| 97 | imageurl51=https://download.cirros-cloud.net/0.5.1/${imagefile51} |
| 98 | imageurl52=https://download.cirros-cloud.net/0.5.2/${imagefile52} |
| 99 | imagepath51=$current_path/cvp-configuration/${imagefile51} |
| 100 | imagepath52=$current_path/cvp-configuration/${imagefile52} |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 101 | if [ "$PROXY" != "offline" ]; then |
| 102 | if [ -n "${PROXY}" ]; then |
| 103 | export http_proxy=$PROXY |
| 104 | export https_proxy=$PROXY |
| 105 | fi |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 106 | ls ${imagepath51} || wget ${imageurl51} -O ${imagepath51} |
| 107 | ls ${imagepath52} || wget ${imageurl52} -O ${imagepath52} |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 108 | unset http_proxy |
| 109 | unset https_proxy |
| 110 | fi |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 111 | # v5.1 |
| 112 | if [ -e $current_path/cvp-configuration/${imagefile51} ]; then |
| 113 | echo "MD5 for the file is:" |
| 114 | md5sum ${imagepath51} |
| 115 | glance image-create --name=${IMAGE_NAME} --visibility=public --container-format=bare --disk-format=qcow2 < ${imagepath51} |
| 116 | IMAGE_REF=$(glance image-list | grep "\b${IMAGE_NAME}\b" | awk '{print $2}') |
| 117 | else |
| 118 | echo "Cirros image v5.1 was not downloaded! Some tests may fail" |
| 119 | IMAGE_REF="" |
| 120 | fi |
| 121 | # v5.2 |
| 122 | if [ -e $current_path/cvp-configuration/${imagefile52} ]; then |
| 123 | echo "MD5 for the file is:" |
| 124 | md5sum ${imagepath52} |
| 125 | glance image-create --name=${IMAGE_NAME2} --visibility=public --container-format=bare --disk-format=qcow2 < ${imagepath52} |
Oleksii Zhurba | 88375f3 | 2019-07-26 16:04:44 -0500 | [diff] [blame] | 126 | IMAGE_REF2=$(glance image-list | grep "\b${IMAGE_NAME2}\b" | awk '{print $2}') |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 127 | else |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 128 | echo "Cirros image v5.2 was not downloaded! Some tests may fail" |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 129 | IMAGE_REF2="" |
| 130 | fi |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 131 | |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 132 | fi |
Alex | 83075ac | 2022-02-16 13:39:50 -0600 | [diff] [blame] | 133 | |
| 134 | sed -i 's/${IMAGE_REF}/'$IMAGE_REF'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 135 | sed -i 's/${IMAGE_REF2}/'$IMAGE_REF2'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Alex | 83075ac | 2022-02-16 13:39:50 -0600 | [diff] [blame] | 136 | sed -i 's/${IMAGE_NAME}/'$IMAGE_NAME'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Alex Savatieiev | 719c761 | 2019-07-24 13:33:47 -0500 | [diff] [blame] | 137 | sed -i 's/${IMAGE_NAME2}/'$IMAGE_NAME2'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 138 | } |
| 139 | |
Oleksii Zhurba | b9133f7 | 2017-11-15 17:53:02 -0600 | [diff] [blame] | 140 | quick_configuration () { |
| 141 | current_path=$(pwd) |
| 142 | #image |
Oleksii Zhurba | 24cdf08 | 2019-07-17 14:55:05 -0500 | [diff] [blame] | 143 | glance_image |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 144 | |
| 145 | #flavors for rally |
| 146 | nova flavor-list | grep cvp.tiny 2>&1 >/dev/null || { |
| 147 | echo "Let's create cvp.tiny flavor" |
| 148 | #nova flavor-create --is-public true m1.tiny auto 128 1 1 |
| 149 | openstack flavor create --id 1 --ram 64 --disk 1 --vcpus 1 cvp.tiny |
Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame] | 150 | } |
Alex | db7786b | 2022-02-21 17:58:29 -0600 | [diff] [blame] | 151 | nova flavor-list | grep cvp.small 2>&1 >/dev/null || { |
| 152 | echo "Let's create cvp.small flavor" |
| 153 | openstack flavor create --id 2 --ram 256 --disk 2 --vcpus 1 cvp.small |
| 154 | } |
| 155 | |
| 156 | |
Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame] | 157 | #shared fixed network |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 158 | shared_count=`neutron net-list -c name -c shared | grep True | grep "fixed-net" | wc -l` |
Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame] | 159 | if [ $shared_count -eq 0 ]; then |
| 160 | echo "Let's create shared fixed net" |
Oleksii Zhurba | a277000 | 2018-08-07 11:25:56 -0500 | [diff] [blame] | 161 | neutron net-create --shared fixed-net |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 162 | FIXED_NET_ID=$(neutron net-list -c id -c name -c shared | grep "fixed-net" | grep True | awk '{print $2}' | tail -n 1) |
| 163 | neutron subnet-create --name fixed-subnet --gateway 192.168.0.1 --allocation-pool start=192.168.0.2,end=192.168.0.254 --ip-version 4 $FIXED_NET_ID 192.168.0.0/24 |
Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame] | 164 | fi |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 165 | fixed_count=`neutron net-list | grep "fixed-net" | wc -l` |
| 166 | if [ $fixed_count -gt 1 ]; then |
| 167 | echo "TOO MANY NETWORKS WITH fixed-net NAME! This may affect tests. Please review your network list." |
| 168 | fi |
| 169 | # public/floating net |
| 170 | PUBLIC_NET=$(neutron net-list -c name -c router:external | grep True | awk '{print $2}' | tail -n 1) |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 171 | FIXED_NET=$(neutron net-list -c name -c shared | grep "fixed-net" | grep True | awk '{print $2}' | tail -n 1) |
| 172 | FIXED_NET_ID=$(neutron net-list -c id -c name -c shared | grep "fixed-net" | grep True | awk '{print $2}' | tail -n 1) |
| 173 | FIXED_SUBNET_ID=$(neutron net-show $FIXED_NET_ID -c subnets | grep subnets | awk '{print $4}') |
| 174 | FIXED_SUBNET_NAME=$(neutron subnet-show -c name $FIXED_SUBNET_ID | grep name | awk '{print $4}') |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 175 | echo "Public net name is $PUBLIC_NET" |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 176 | echo "Fixed net name is $FIXED_NET, id is $FIXED_NET_ID" |
| 177 | echo "Fixed subnet is: $FIXED_SUBNET_ID, name: $FIXED_SUBNET_NAME" |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 178 | sed -i 's/${FIXED_NET}/'$FIXED_NET_ID'/g' $current_path/cvp-configuration/rally/rally_scenarios.json |
| 179 | sed -i 's/${FIXED_NET}/'$FIXED_NET_ID'/g' $current_path/cvp-configuration/rally/rally_scenarios_100.json |
| 180 | sed -i 's/${FIXED_NET}/'$FIXED_NET_ID'/g' $current_path/cvp-configuration/rally/rally_scenarios_fip_and_ubuntu.json |
| 181 | sed -i 's/${FIXED_NET}/'$FIXED_NET_ID'/g' $current_path/cvp-configuration/rally/rally_scenarios_fip_and_ubuntu_100.json |
Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame] | 182 | sed -i 's/${FIXED_NET}/'$FIXED_NET'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 183 | sed -i 's/${FIXED_SUBNET_NAME}/'$FIXED_SUBNET_NAME'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | 080efa2 | 2018-11-12 13:05:44 -0600 | [diff] [blame] | 184 | sed -i 's/${OS_USERNAME}/'$OS_USERNAME'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
| 185 | sed -i 's/${OS_TENANT_NAME}/'$OS_TENANT_NAME'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
| 186 | sed -i 's/${OS_REGION_NAME}/'$OS_REGION_NAME'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
| 187 | sed -i 's|${OS_AUTH_URL}|'"${OS_AUTH_URL}"'|g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
| 188 | sed -i 's|${OS_PASSWORD}|'"${OS_PASSWORD}"'|g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 189 | sed -i 's|${PUBLIC_NET}|'"${PUBLIC_NET}"'|g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | b9133f7 | 2017-11-15 17:53:02 -0600 | [diff] [blame] | 190 | sed -i 's/publicURL/'$TEMPEST_ENDPOINT_TYPE'/g' $current_path/cvp-configuration/tempest/tempest_ext.conf |
Oleksii Zhurba | 991dbc6 | 2018-07-25 16:03:51 -0500 | [diff] [blame] | 191 | #supress tempest.conf display in console |
| 192 | #cat $current_path/cvp-configuration/tempest/tempest_ext.conf |
| 193 | cp $current_path/cvp-configuration/tempest/boot_config_none_env.yaml /home/rally/boot_config_none_env.yaml |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 194 | cp $current_path/cvp-configuration/rally/default.yaml.template /home/rally/default.yaml.template |
| 195 | cp $current_path/cvp-configuration/rally/instance_test.sh /home/rally/instance_test.sh |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 196 | cp $current_path/cvp-configuration/cleanup.sh /home/rally/cleanup.sh |
Oleksii Zhurba | c7d0784 | 2019-05-23 19:32:14 -0500 | [diff] [blame] | 197 | chmod 755 /home/rally/cleanup.sh |
Oleksii Zhurba | b9133f7 | 2017-11-15 17:53:02 -0600 | [diff] [blame] | 198 | } |
| 199 | |
Oleksii Zhurba | ba5883f | 2018-01-18 09:52:08 -0600 | [diff] [blame] | 200 | if [ "$1" == "reconfigure" ]; then |
| 201 | echo "This is reconfiguration" |
| 202 | rally verify configure-verifier --reconfigure |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 203 | rally verify configure-verifier --extend $current_path/cvp-configuration/tempest/tempest_ext.conf |
Sergey Galkin | 2b0cea6 | 2019-11-07 18:45:15 +0400 | [diff] [blame] | 204 | rally verify configure-verifier |
Oleksii Zhurba | ba5883f | 2018-01-18 09:52:08 -0600 | [diff] [blame] | 205 | exit 0 |
| 206 | fi |
| 207 | |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 208 | check_variables |
| 209 | rally_configuration |
Oleksii Zhurba | 4be2832 | 2019-04-18 18:07:35 -0500 | [diff] [blame] | 210 | quick_configuration |
Oleksii Zhurba | 0aa4670 | 2018-02-07 16:17:39 -0600 | [diff] [blame] | 211 | if [ -n "${TEMPEST_REPO}" ]; then |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 212 | tempest_configuration |
Oleksii Zhurba | 33671b6 | 2019-02-21 17:55:22 -0600 | [diff] [blame] | 213 | # If you do not have fip network, use this command |
| 214 | #cat $current_path/cvp-configuration/tempest/skip-list-fip-only.yaml >> $current_path/cvp-configuration/tempest/skip-list-queens.yaml |
Oleksii Zhurba | ca05017 | 2018-07-30 11:53:32 -0500 | [diff] [blame] | 215 | # If Opencontrail is deployed, use this command |
Oleksii Zhurba | 687e895 | 2019-05-31 14:54:26 -0500 | [diff] [blame] | 216 | #cat $current_path/cvp-configuration/tempest/skip-list-oc4.yaml >> $current_path/cvp-configuration/tempest/skip-list-queens.yaml |
| 217 | #cat $current_path/cvp-configuration/tempest/skip-list-heat.yaml >> $current_path/cvp-configuration/tempest/skip-list-queens.yaml |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 218 | rally verify configure-verifier --extend $current_path/cvp-configuration/tempest/tempest_ext.conf |
Sergey Galkin | 2b0cea6 | 2019-11-07 18:45:15 +0400 | [diff] [blame] | 219 | rally verify configure-verifier |
Oleksii Zhurba | ca05017 | 2018-07-30 11:53:32 -0500 | [diff] [blame] | 220 | # If Barbican tempest plugin is installed, use this |
Oleksii Zhurba | 33671b6 | 2019-02-21 17:55:22 -0600 | [diff] [blame] | 221 | #mkdir /etc/tempest |
| 222 | #rally verify configure-verifier --show | grep -v "rally.api" > /etc/tempest/tempest.conf |
Oleksii Zhurba | 7f3941b | 2018-03-27 14:38:42 -0500 | [diff] [blame] | 223 | # Add 2 additional tempest tests (live migration to all nodes + ssh to all nodes) |
| 224 | # TBD |
| 225 | #cat tempest/test_extension.py >> repo/tempest/scenario/test_server_multinode.py |
Oleksii Zhurba | 1580fc5 | 2017-11-14 15:20:44 -0600 | [diff] [blame] | 226 | fi |
| 227 | set -e |
| 228 | |
Oleksii Zhurba | c8058d6 | 2018-06-21 17:46:11 -0500 | [diff] [blame] | 229 | echo "Configuration is done!" |