From a0354a2863f4a55523e3f506884898bb2cc5fc3c Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 13 Jun 2013 14:40:37 -0400 Subject: [PATCH] override tempest http_image variable in the gate one of the tempest tests is to ensure glance can download something over http, defaulting to the upstream cirros image. In the gate that url ends up unstable on the network. To get around this, feed devstack a tempest variable which sets this to the horizon url. That's a valid http url. Because we don't test for content, this is good enough for the test. Rev 2: hardcode horizon to 127.0.0.1, the previous variable wasn't set. Partial fix for bug #1190623 once the devstack change lands. Change-Id: Ifd94ace4b07a5ab9d20af7088e38420e9f3aab88 --- devstack-vm-gate.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack-vm-gate.sh b/devstack-vm-gate.sh index c971db7b..40238d4a 100755 --- a/devstack-vm-gate.sh +++ b/devstack-vm-gate.sh @@ -147,6 +147,11 @@ EOF # not cleaning up correctly, and this is a temp measure # to prevent it from blocking unrelated changes echo "VOLUME_BACKING_FILE_SIZE=10G" >> localrc + + # in order to ensure glance http tests don't time out, we + # specify the TEMPEST_HTTP_IMAGE address to be horrizon's + # front page. Kind of hacky, but it works. + echo "TEMPEST_HTTP_IMAGE=http://127.0.0.1/" >> localrc fi if [ "$DEVSTACK_GATE_GRENADE" -eq "1" ]; then