Bug fix: Path to inventory wrong 71/63371/2
authorManuel Buil <mbuil@suse.com>
Wed, 10 Oct 2018 07:09:27 +0000 (09:09 +0200)
committerManuel Buil <mbuil@suse.com>
Wed, 10 Oct 2018 07:16:15 +0000 (09:16 +0200)
The path to reach the inventory was wrong and thus the error message in
CI:

Unable to parse /root/releng-xci/.cache/repos/openstack-
ansible/inventory/dynamic_inventory.py as an inventory source

Change-Id: Ic9e01e0895f3df2f6f27d782b8375dbcceb036e6
Signed-off-by: Manuel Buil <mbuil@suse.com>
jjb/xci/xci-daily-jobs.yaml
jjb/xci/xci-run-functest.sh

index 120c57e..6f1ce39 100644 (file)
               echo $var
           done < ${XCI_PATH}/.cache/xci.env && cd ${XCI_PATH}/xci && \
           ansible-playbook -i playbooks/dynamic_inventory.py \
-          -i /root/releng-xci/.cache/repos/openstack-ansible/inventory/dynamic_inventory.py \
+          -i ${XCI_PATH}/.cache/repos/openstack-ansible/inventory/dynamic_inventory.py \
           playbooks/prepare-tests.yml
           ssh root@192.168.122.2 "/root/prepare-tests.sh"
           echo "---------------------------------------------------------------------------------"
index 5d3f3ce..610268c 100755 (executable)
@@ -50,7 +50,7 @@ export XCI_VENV=${XCI_PATH}/venv
 ssh -F $HOME/.ssh/${DISTRO}-xci-vm-config ${DISTRO}_xci_vm "source $XCI_VENV/bin/activate; \
     while read var; do declare -x \"\${var}\" 2>/dev/null; done < ${XCI_PATH}/.cache/xci.env && \
     cd releng-xci/xci && ansible-playbook -i playbooks/dynamic_inventory.py \
-    -i /root/releng-xci/.cache/repos/openstack-ansible/inventory/dynamic_inventory.py \
+    -i ${XCI_PATH}/.cache/repos/openstack-ansible/inventory/dynamic_inventory.py \
     playbooks/prepare-tests.yml"
 echo "Prepare OPNFV VM for Tests"
 ssh -F $HOME/.ssh/${DISTRO}-xci-vm-config ${DISTRO}_xci_vm_opnfv "/root/prepare-tests.sh"