Skip to content
Snippets Groups Projects
Commit 9aa0acb6 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Consistent external Ceph configuration for Glance"

parents d3c7c080 a66f0076
No related branches found
No related tags found
No related merge requests found
...@@ -225,8 +225,6 @@ nova_keystone_user: "nova" ...@@ -225,8 +225,6 @@ nova_keystone_user: "nova"
enable_nova_fake: "no" enable_nova_fake: "no"
num_nova_fake_per_node: 5 num_nova_fake_per_node: 5
# Control usage of ceph per service
glance_enable_ceph: "{{ enable_ceph }}"
#################### ####################
# RabbitMQ options # RabbitMQ options
...@@ -249,6 +247,13 @@ kolla_external_fqdn_cert: "{{ node_config_directory }}/certificates/haproxy.pem" ...@@ -249,6 +247,13 @@ kolla_external_fqdn_cert: "{{ node_config_directory }}/certificates/haproxy.pem"
kibana_user: "kibana" kibana_user: "kibana"
#######################
# Glance options
#######################
glance_backend_file: "{{ not enable_ceph | bool }}"
glance_backend_ceph: "{{ enable_ceph }}"
################################# #################################
# Cinder options # Cinder options
################################# #################################
......
--- ---
- include: ceph.yml - include: ceph.yml
when: when:
- (enable_ceph | bool) and (glance_enable_ceph | bool) - (enable_ceph | bool) and (glance_backend_ceph | bool)
- inventory_hostname in groups['ceph-mon'] or - inventory_hostname in groups['ceph-mon'] or
inventory_hostname in groups['glance-api'] or inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry'] inventory_hostname in groups['glance-registry']
- include: external_ceph.yml - include: external_ceph.yml
when: when:
- (enable_ceph | bool == False) and (glance_enable_ceph | bool) - (enable_ceph | bool == False) and (glance_backend_ceph | bool)
- inventory_hostname in groups['glance-api'] or - inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry'] inventory_hostname in groups['glance-registry']
......
...@@ -41,7 +41,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi ...@@ -41,7 +41,7 @@ memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansi
flavor = keystone flavor = keystone
[glance_store] [glance_store]
{% if enable_ceph | bool and glance_enable_ceph | bool %} {% if enable_ceph | bool and glance_backend_ceph | bool %}
default_store = rbd default_store = rbd
stores = rbd stores = rbd
rbd_store_user = glance rbd_store_user = glance
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"dest": "/etc/glance/glance-api.conf", "dest": "/etc/glance/glance-api.conf",
"owner": "glance", "owner": "glance",
"perm": "0600" "perm": "0600"
}{% if glance_enable_ceph | bool %}, }{% if glance_backend_ceph | bool %},
{ {
"source": "{{ container_config_directory }}/ceph.*", "source": "{{ container_config_directory }}/ceph.*",
"dest": "/etc/ceph/", "dest": "/etc/ceph/",
......
...@@ -33,10 +33,10 @@ service in ``/etc/kolla/global.yml``: ...@@ -33,10 +33,10 @@ service in ``/etc/kolla/global.yml``:
:: ::
glance_enable_ceph: "yes" glance_backend_ceph: "yes"
cinder_backend_ceph: "yes" cinder_backend_ceph: "yes"
The combination of ``enable_ceph: "no"`` and ``<service>_enable_ceph: "yes"`` The combination of ``enable_ceph: "no"`` and ``<service>_backend_ceph: "yes"``
triggers the activation of external ceph mechanism in Kolla. triggers the activation of external ceph mechanism in Kolla.
Configuring External Ceph Configuring External Ceph
......
...@@ -126,10 +126,6 @@ neutron_external_interface: "eth1" ...@@ -126,10 +126,6 @@ neutron_external_interface: "eth1"
#enable_swift: "no" #enable_swift: "no"
#enable_tempest: "no" #enable_tempest: "no"
# Control usage of ceph per service. This allows to configure external ceph
# when ceph is not deployed by Kolla.
#glance_enable_ceph: "{{ enable_ceph }}"
################### ###################
# Ceph options # Ceph options
...@@ -144,6 +140,13 @@ neutron_external_interface: "eth1" ...@@ -144,6 +140,13 @@ neutron_external_interface: "eth1"
# Valid options are [ erasure, replicated ] # Valid options are [ erasure, replicated ]
#ceph_pool_type: "replicated" #ceph_pool_type: "replicated"
#######################
# Glance options
#######################
# Configure image backend.
glance_backend_file: "yes"
#glance_backend_ceph: "no"
####################### #######################
# Cinder options # Cinder options
......
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