]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buildpackages: create the image if it does not exist
authorLoic Dachary <ldachary@redhat.com>
Mon, 30 Nov 2015 15:55:38 +0000 (16:55 +0100)
committerLoic Dachary <ldachary@redhat.com>
Mon, 30 Nov 2015 16:38:27 +0000 (17:38 +0100)
Since buildpackages runs before target provisioning, it is possible that
the desired image does not yet exist on a newly provisionned tenant (or
region).

http://tracker.ceph.com/issues/13910 Fixes: #13910

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit ab9a3d5a88c321a4e3dfd71e0263bc984d4dd6db)

tasks/buildpackages.py

index 28c696e70503c018dd131833f10eaf432462f9eb..0bdaa29803340d656b64741c11e6f1764f7f61fd 100644 (file)
@@ -163,6 +163,7 @@ def task(ctx, config):
             select = '^(vps|eg)-'
         else:
             select = ''
+        openstack.image(os_type, os_version) # create if it does not exist
         build_flavor = openstack.flavor(config['machine'], select)
         http_flavor = openstack.flavor({
             'disk': 40, # GB