From: Nathan Cutler Date: Fri, 2 Jun 2017 12:21:22 +0000 (+0200) Subject: openstack: only consider private images X-Git-Tag: 1.1.0~211^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afdb050622bcca70d2f43af403adb52575e80c1a;p=teuthology.git openstack: only consider private images OVH only returns the first 25 images, and the public ones (which we don't use at all) eat up all the spots. Fixes: https://github.com/SUSE/teuthology/issues/82 Signed-off-by: Nathan Cutler --- diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index 56a6373a1..76aa35a0c 100644 --- a/teuthology/openstack/__init__.py +++ b/teuthology/openstack/__init__.py @@ -340,7 +340,7 @@ class OpenStack(object): """ Return true if the image exists in OpenStack. """ - found = self.run("image list -f json --property name='" + + found = self.run("image list -f json --private --property name='" + self.image_name(image) + "'") return len(json.loads(found)) > 0