Skip to content
Snippets Groups Projects
Commit 07dfc202 authored by Joshua Harlow's avatar Joshua Harlow Committed by Adam Harwell
Browse files

Allow externally managed swift as glance backend


It is possible to have an accessible swift API that is not managed by
kolla-ansible -- for example, ceph exposes a swift API, and using that
requires setting swift as the glance backend.

So, we should loosen the requirement that using the swift backend for
glance requires swift be enabled in kolla-ansible.

Co-Authored-By: default avatarAdam Harwell <flux.adam@gmail.com>

Change-Id: I17076d5412d2b1e1f13bb0badceaca85a5cee108
parent 003a6a12
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ glance_backends: ...@@ -93,7 +93,7 @@ glance_backends:
- name: cinder - name: cinder
enabled: "{{ enable_cinder | bool }}" enabled: "{{ enable_cinder | bool }}"
- name: "swift" - name: "swift"
enabled: "{{ enable_swift | bool and glance_backend_swift | bool }}" enabled: "{{ glance_backend_swift | bool }}"
glance_store_backends: "{{ glance_backends|selectattr('enabled', 'equalto', true)|list }}" glance_store_backends: "{{ glance_backends|selectattr('enabled', 'equalto', true)|list }}"
......
...@@ -45,7 +45,7 @@ flavor = keystone ...@@ -45,7 +45,7 @@ flavor = keystone
default_store = vsphere default_store = vsphere
{% elif glance_backend_ceph | bool %} {% elif glance_backend_ceph | bool %}
default_store = rbd default_store = rbd
{% elif enable_swift | bool and glance_backend_swift | bool %} {% elif glance_backend_swift | bool %}
default_store = swift+http default_store = swift+http
{% else %} {% else %}
default_store = file default_store = file
...@@ -62,7 +62,7 @@ rbd_store_pool = {{ ceph_glance_pool_name }} ...@@ -62,7 +62,7 @@ rbd_store_pool = {{ ceph_glance_pool_name }}
rbd_store_chunk_size = 8 rbd_store_chunk_size = 8
{% endif %} {% endif %}
{% if enable_swift | bool and glance_backend_swift | bool %} {% if glance_backend_swift | bool %}
swift_store_container = glance swift_store_container = glance
swift_store_multiple_containers_seed = 0 swift_store_multiple_containers_seed = 0
swift_store_multi_tenant = False swift_store_multi_tenant = False
......
---
features:
- |
Allow overriding the variable `glance_backend_swift` to enable the swift
backend for glance, without requiring swift to be enabled in kolla-ansible.
This allows operators to enable an external swift endpoint as the glance
backend.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment