Merge "Add cinder volume support"

This commit is contained in:
Zuul 2019-09-20 08:37:54 +00:00 committed by Gerrit Code Review
commit ae5edf5593
3 changed files with 39 additions and 0 deletions

View File

@ -63,6 +63,9 @@ octavia_clients_endpoint: internalURL
octavia_auth_strategy: keystone
## Cinder Volume
octavia_cinder_enabled: False
## Database info
octavia_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
octavia_galera_address: "{{ galera_address | default('127.0.0.1') }}"

View File

@ -0,0 +1,14 @@
---
features:
- |
Now you can use cinder-volume with Octavia. To enable the feature set
``octavia_cinder_enabled`` to ``True``. Also you may need to override
the default settings:
.. code-block:: yaml
octavia_octavia_conf_overrides:
cinder:
volume_type: 'my-volume-type'
volume_size: 32

View File

@ -220,6 +220,15 @@ compute_driver = {{ octavia_compute_driver }}
#
network_driver = {{ octavia_network_driver }}
#
# Cinder Volume driver options are volume_noop_driver
# volume_cinder_driver
#
{% if octavia_cinder_enabled %}
volume_driver = volume_cinder_driver
{% else %}
volume_driver = volume_noop_driver
{% endif %}
#
# Certificate Generator options are local_cert_generator
# barbican_cert_generator
# anchor_cert_generator
@ -354,6 +363,19 @@ enable_anti_affinity = {{ octavia_enable_anti_affinity }}
{% if octavia_amp_availability_zone is defined %}availability_zone={{ octavia_amp_availability_zone }}{%endif%}
{% if octavia_cinder_enabled %}
[cinder]
service_name = {{ cinder_service_v3_name | default('cinderv3') }}
region_name = {{ keystone_service_region }}
endpoint_type = {{ octavia_clients_endpoint }}
availability_zone = nova
volume_size = 16
volume_type = "volumes-hdd"
volume_create_retry_interval = 5
volume_create_timeout = 50
volume_create_max_retries = 2
{% endif %}
[glance]
# The name of the glance service in the keystone catalog
# service_name =