From 3dd035bbf897519473b767fa6b4ab2b7c15b1701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Steinm=C3=BCller?= Date: Tue, 22 Jan 2019 17:28:01 +0000 Subject: [PATCH] Ensure create a volume from image This patch aims to add this extra config based on the openstack docs[1] that allows an user to create a volume from an image [1] https://docs.openstack.org/cinder/latest/admin/blockstorage-volume-backed-image.html Change-Id: Iefdaf569dfdab4e28a8fe41a0846d103b5a7ce23 Closes-Bug: 1812185 --- templates/cinder.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/cinder.conf.j2 b/templates/cinder.conf.j2 index 71d5149e..a8ff8791 100644 --- a/templates/cinder.conf.j2 +++ b/templates/cinder.conf.j2 @@ -89,6 +89,9 @@ default_volume_type = {{ cinder_default_volume_type }} {% if cinder_backends is defined %} enabled_backends={% for backend in cinder_backends|dictsort %}{{ backend.0 }}{% if not loop.last %},{% endif %}{% endfor %} +# Ensure that user can create a new volume by cloning image-volume +allowed_direct_url_schemes = cinder + # All given backend(s) {% for backend_section in cinder_backends|dictsort %} [{{ backend_section.0 }}]