]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: only consider private images
authorNathan Cutler <ncutler@suse.com>
Fri, 2 Jun 2017 12:21:22 +0000 (14:21 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Mon, 14 Oct 2019 22:11:40 +0000 (00:11 +0200)
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 <ncutler@suse.com>
teuthology/openstack/__init__.py

index 56a6373a18ca5de30d0da57367e0142ef4894e2b..76aa35a0c1d2a656f6131a9974208878faf97cde 100644 (file)
@@ -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