2015-08-04 07:39:22 +00:00
|
|
|
[DEFAULT]
|
2016-01-20 15:44:27 +08:00
|
|
|
debug = {{ cinder_logging_debug }}
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2016-02-12 14:17:48 +01:00
|
|
|
log_dir = /var/log/kolla/cinder
|
2016-02-24 09:00:09 -05:00
|
|
|
use_forwarded_for = true
|
2016-02-12 14:17:48 +01:00
|
|
|
|
|
|
|
# Set use_stderr to False or the logs will also be sent to stderr
|
|
|
|
# and collected by Docker
|
|
|
|
use_stderr = False
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2015-08-04 07:39:22 +00:00
|
|
|
enable_v1_api=false
|
2016-08-01 10:01:53 +08:00
|
|
|
osapi_volume_workers = {{ openstack_service_workers }}
|
2016-05-09 11:13:12 -04:00
|
|
|
volume_name_template = volume-%s
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2016-09-11 15:03:30 -04:00
|
|
|
glance_api_servers = {% for host in groups['glance-api'] %}{{ internal_protocol }}://{% if orchestration_engine == 'KUBERNETES' %}glance-api{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ glance_api_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
2016-04-15 16:42:36 -07:00
|
|
|
|
|
|
|
glance_num_retries = {{ groups['glance-api'] | length }}
|
2015-09-21 16:33:46 +00:00
|
|
|
glance_api_version = 2
|
|
|
|
|
2015-08-04 07:39:22 +00:00
|
|
|
os_region_name = {{ openstack_region_name }}
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2016-07-23 22:48:54 +08:00
|
|
|
{% if cinder_enabled_backends %}
|
|
|
|
enabled_backends = {{ cinder_enabled_backends|map(attribute='name')|join(',') }}
|
2015-08-04 07:39:22 +00:00
|
|
|
{% endif %}
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2016-07-18 10:39:09 +00:00
|
|
|
{% if service_name == "cinder-backup" and enable_ceph | bool and cinder_backend_ceph | bool %}
|
2015-09-21 16:33:46 +00:00
|
|
|
backup_driver = cinder.backup.drivers.ceph
|
|
|
|
backup_ceph_conf = /etc/ceph/ceph.conf
|
|
|
|
backup_ceph_user = cinder-backup
|
|
|
|
backup_ceph_chunk_size = 134217728
|
2015-10-18 19:46:16 +00:00
|
|
|
backup_ceph_pool = {{ ceph_cinder_backup_pool_name }}
|
2015-09-21 16:33:46 +00:00
|
|
|
backup_ceph_stripe_unit = 0
|
|
|
|
backup_ceph_stripe_count = 0
|
|
|
|
restore_discard_excess_bytes = true
|
|
|
|
{% endif %}
|
|
|
|
|
2016-09-11 15:03:30 -04:00
|
|
|
osapi_volume_listen = {{ api_interface_address }}
|
2015-08-04 07:39:22 +00:00
|
|
|
osapi_volume_listen_port = {{ cinder_api_port }}
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2015-08-04 07:39:22 +00:00
|
|
|
api_paste_config = /etc/cinder/api-paste.ini
|
|
|
|
nova_catalog_info = compute:nova:internalURL
|
2015-09-21 16:33:46 +00:00
|
|
|
|
2015-09-04 14:44:41 +03:00
|
|
|
auth_strategy = keystone
|
2015-08-04 07:39:22 +00:00
|
|
|
|
2016-09-11 15:03:30 -04:00
|
|
|
transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{% if orchestration_engine == 'KUBERNETES' %}rabbitmq{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
2016-08-17 18:30:46 +08:00
|
|
|
|
2016-07-11 17:33:32 +08:00
|
|
|
[oslo_messaging_notifications]
|
|
|
|
{% if enable_ceilometer | bool %}
|
|
|
|
driver = messagingv2
|
|
|
|
{% endif %}
|
|
|
|
|
2015-08-04 07:39:22 +00:00
|
|
|
[database]
|
2016-09-11 15:03:30 -04:00
|
|
|
connection = mysql+pymysql://{{ cinder_database_user }}:{{ cinder_database_password }}@{% if orchestration_engine == 'KUBERNETES' %}{{ cinder_database_address }}{% else %}{{ cinder_database_address }}{% endif %}/{{ cinder_database_name }}
|
2016-04-06 20:45:17 +00:00
|
|
|
max_retries = -1
|
2015-08-04 07:39:22 +00:00
|
|
|
|
|
|
|
[keystone_authtoken]
|
2016-09-11 15:03:30 -04:00
|
|
|
{% if orchestration_engine == 'KUBERNETES' %}
|
|
|
|
auth_uri = {{ keystone_internal_url }}
|
|
|
|
auth_url = {{ keystone_admin_url }}
|
|
|
|
{% else %}
|
2016-02-26 01:02:25 +00:00
|
|
|
auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }}
|
|
|
|
auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}
|
2016-09-11 15:03:30 -04:00
|
|
|
{% endif %}
|
2016-01-16 07:37:55 +08:00
|
|
|
auth_type = password
|
2015-08-04 07:39:22 +00:00
|
|
|
project_domain_id = default
|
|
|
|
user_domain_id = default
|
|
|
|
project_name = service
|
|
|
|
username = {{ cinder_keystone_user }}
|
|
|
|
password = {{ cinder_keystone_password }}
|
|
|
|
|
2016-03-19 16:42:26 +00:00
|
|
|
memcache_security_strategy = ENCRYPT
|
|
|
|
memcache_secret_key = {{ memcache_secret_key }}
|
2016-09-11 15:03:30 -04:00
|
|
|
memcached_servers = {% for host in groups['memcached'] %}{% if orchestration_engine == 'KUBERNETES' %}memcached{% else %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}{% endif %}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
2016-03-19 16:42:26 +00:00
|
|
|
|
|
|
|
|
2015-08-04 07:39:22 +00:00
|
|
|
[oslo_concurrency]
|
|
|
|
lock_path = /var/lib/cinder/tmp
|
|
|
|
|
|
|
|
|
2016-07-23 22:48:54 +08:00
|
|
|
{% if enable_cinder_backend_lvm | bool %}
|
|
|
|
[lvm-1]
|
2016-08-11 15:18:01 +00:00
|
|
|
volume_group = {{ cinder_volume_group }}
|
2015-08-04 07:39:22 +00:00
|
|
|
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
|
2016-07-23 22:48:54 +08:00
|
|
|
volume_backend_name = lvm-1
|
|
|
|
iscsi_helper = tgtadm
|
|
|
|
iscsi_protocol = iscsi
|
2016-07-18 10:39:09 +00:00
|
|
|
|
|
|
|
{% elif enable_ceph | bool and cinder_backend_ceph | bool %}
|
2015-08-04 07:39:22 +00:00
|
|
|
[rbd-1]
|
|
|
|
volume_driver = cinder.volume.drivers.rbd.RBDDriver
|
2015-10-18 19:46:16 +00:00
|
|
|
rbd_pool = {{ ceph_cinder_pool_name }}
|
2015-09-21 16:33:46 +00:00
|
|
|
rbd_ceph_conf = /etc/ceph/ceph.conf
|
|
|
|
rbd_flatten_volume_from_snapshot = false
|
|
|
|
rbd_max_clone_depth = 5
|
|
|
|
rbd_store_chunk_size = 4
|
|
|
|
rados_connect_timeout = -1
|
2015-08-04 07:39:22 +00:00
|
|
|
rbd_user = cinder
|
2015-09-21 16:33:46 +00:00
|
|
|
rbd_secret_uuid = {{ rbd_secret_uuid }}
|
2016-03-18 02:48:04 +00:00
|
|
|
report_discard_supported = True
|
2015-08-04 07:39:22 +00:00
|
|
|
{% endif %}
|
2016-06-25 18:04:11 +08:00
|
|
|
|
|
|
|
[privsep_entrypoint]
|
|
|
|
helper_command=sudo cinder-rootwrap /etc/cinder/rootwrap.conf privsep-helper --config-file /etc/cinder/cinder.conf
|