From 887fb54013feff6e063001fb4d879666b38fdbbd Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 13 Aug 2014 14:30:28 +1000 Subject: [PATCH] Fix preparation of aki/ari/ami images on Ubuntu The boto tests currently don't run because euca-bundle-image fails on Ubuntu; e.g. --- ++ euca-bundle-image -r x86_64 \ -i /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz \ --kernel true \ -d /opt/stack/new/devstack/files/images/s3-materials/cirros-0.3.2 euca-bundle-image: error: No such file or directory: /opt/stack/new/devstack/files/images/s3-materials/cirros-0.3.2 --- I noticed this in debugging why Fedora tests are running slower. I think that the version of euca-bundle-image in Fedora must create the directory if it doesn't exist, while the Ubuntu one fails. I also think this doesn't get caught by errexit because it's running in a special sub-shell to use other credentials. Change-Id: I79125e956088353aa76a3f7d6d81af1e4f6a27d4 --- lib/tempest | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tempest b/lib/tempest index 933c0595cc..0c793049e8 100644 --- a/lib/tempest +++ b/lib/tempest @@ -446,6 +446,7 @@ function init_tempest { if [ -f "$kernel" -a -f "$ramdisk" -a -f "$disk_image" -a "$VIRT_DRIVER" != "openvz" \ -a \( "$LIBVIRT_TYPE" != "lxc" -o "$VIRT_DRIVER" != "libvirt" \) ]; then echo "Prepare aki/ari/ami Images" + mkdir -p $BOTO_MATERIALS_PATH ( #new namespace # tenant:demo ; user: demo source $TOP_DIR/accrc/demo/demo