Fix the virtual-ironic job's export list

The job was trying to export ENV vars to devstack, but these aren't
passed all the way down. This patch depends on a patch to devstack-gate
which sets the right vars there:
  https://review.openstack.org/#/c/80653/

This patch also adds a few comments explaining the peculiar test setup,
and a work-around for libvirt bug
  https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1248025

Change-Id: Ibf2b2b0d2ae491793f291562d63299562bd83ebe
This commit is contained in:
Devananda van der Veen 2014-03-14 11:21:03 -07:00
parent 90623d9dc5
commit 16de7111e3

View File

@ -431,27 +431,30 @@
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_IRONIC=1
export DEVSTACK_GATE_VIRT_DRIVER=ironic
export DEVSTACK_GATE_SMOKE_SERIAL=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export BM_BUILD_DEPLOY_RAMDISK=True
export BM_DEPLOY_FLAVOR="-a amd64 ubuntu deploy-ironic"
export IRONIC_VM_COUNT=1
export IRONIC_VM_SPECS_RAM=512
export IRONIC_VM_SPECS_DISK=10
export IRONIC_BAREMETAL_BASIC_OPS=True
export VIRT_DRIVER=ironic
# pull in ovs support from ubuntu cloud-archive.
sudo add-apt-repository cloud-archive:havana
sudo apt-get update
# work around bug in libvirt-bin on rax nodes, pending fixes to bug:
# https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1248025
sudo service nova-agent stop || echo ''
sudo service xe-linux-distribution stop || echo ''
if [ -e /proc/xen ] ; then
sudo umount /proc/xen
fi
# prevent sshd from jumping to the ovs bridge on Precise instances.
IP=$(ip addr show eth0 | grep 'inet ' | sed 's/inet \([0-9\.]*\)\/.*/\1/' | tr -d ' ')
sudo sed -i "s/#ListenAddress 0.0.0.0/ListenAddress $IP/" /etc/ssh/sshd_config
sudo service ssh restart
sudo add-apt-repository cloud-archive:havana
sudo apt-get update
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh