Add cinder volume support
Since I8181ed696b9ab556e7741c08839d79167aff8350 were merged we need to add support for the Cinder Volume here. By default this functionality is disabled. To enable it change the option 'octavia_cinder_enabled' to True. To override default settings use 'octavia_octavia_conf_overrides'. Change-Id: Ib9015383d36fe47272e0a27408db89df83a4b38c Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
parent
7a8e052276
commit
aa45cb8310
@ -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') }}"
|
||||
|
14
releasenotes/notes/volume-based-10a2c22c7f180cc2.yaml
Normal file
14
releasenotes/notes/volume-based-10a2c22c7f180cc2.yaml
Normal 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
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user