diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-02-28 11:37:52 +0000 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-02-28 18:50:48 +0000 |
commit | f7e288dec1de77be635c5024729fb97de02641ba (patch) | |
tree | 8ecd9716516090ee2982f2338f40d883828fa50a /xci/playbooks/roles/run-functest/templates | |
parent | faf5144aa6c87642d627b63a8464a8e96949e9fe (diff) |
functest: Move run-functest.sh execution out of ansible
Ansible throws out the log at the end of task execution which
makes it hard to read. This change renames the role to prepare-functest
and then takes the script execution out which will be executed by
releng/jjb/xci/xci-run-functest.sh.
Change-Id: Icf399ce4f04357814ed7109cd11113a9decddc50
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'xci/playbooks/roles/run-functest/templates')
-rw-r--r-- | xci/playbooks/roles/run-functest/templates/env.j2 | 7 | ||||
-rw-r--r-- | xci/playbooks/roles/run-functest/templates/run-functest.sh.j2 | 21 |
2 files changed, 0 insertions, 28 deletions
diff --git a/xci/playbooks/roles/run-functest/templates/env.j2 b/xci/playbooks/roles/run-functest/templates/env.j2 deleted file mode 100644 index 43a581bd..00000000 --- a/xci/playbooks/roles/run-functest/templates/env.j2 +++ /dev/null @@ -1,7 +0,0 @@ -INSTALLER_TYPE=osa -INSTALLER_IP=192.168.122.2 -EXTERNAL_NETWORK={{ external_network }} -DEPLOY_SCENARIO="os-nosdn-nofeature-noha" -CI_LOOP=daily -TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results -ENERGY_RECORDER_API_URL=http://energy.opnfv.fr/resources diff --git a/xci/playbooks/roles/run-functest/templates/run-functest.sh.j2 b/xci/playbooks/roles/run-functest/templates/run-functest.sh.j2 deleted file mode 100644 index 016df8ef..00000000 --- a/xci/playbooks/roles/run-functest/templates/run-functest.sh.j2 +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -source /root/openrc - -openstack --insecure network create --external \ - --provider-physical-network flat \ - --provider-network-type flat {{ external_network }} - -openstack --insecure subnet create --network {{ external_network }} \ - --allocation-pool {{ allocation_pool }} \ - --subnet-range {{ subnet_cidr }} --gateway {{ gateway_ip }} \ - --no-dhcp {{ subnet_name }} - -mkdir ~/results/ -mkdir ~/images && cd ~/images && wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img && cd ~ - -sudo docker run --env-file env \ - -v $(pwd)/openrc:/home/opnfv/functest/conf/env_file \ - -v $(pwd)/images:/home/opnfv/functest/images \ - -v $(pwd)/results:/home/opnfv/functest/results \ - opnfv/functest-healthcheck |