From afdb050622bcca70d2f43af403adb52575e80c1a Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 2 Jun 2017 14:21:22 +0200 Subject: [PATCH] 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 --- teuthology/openstack/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index 56a6373a18..76aa35a0c1 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 -- 2.39.5