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)
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