enable_force_upload: true
availability_zone_fallback: True
image_conversion_dir: /var/tmp/cinder/conversion
+ concurrency:
+ lock_path: '/var/lock/cinder'
database:
engine: mysql
host: 127.0.0.1
enable_force_upload: true
my_ip: 192.168.0.254
image_conversion_dir: /var/tmp/cinder/conversion
+ concurrency:
+ lock_path: '/var/lock/cinder'
database:
engine: mysql
host: 127.0.0.1
- service: cinder_controller_services
- service: cinder_api_service
+{%- if controller.get('concurrency', {}).lock_path is defined %}
+cinder_controller_lock_path_{{ controller.concurrency.lock_path }}:
+ file.directory:
+ - name: {{ controller.concurrency.lock_path }}
+ - user: cinder
+ - group: cinder
+ - mode: 750
+ - makedirs: True
+ - require:
+ - pkg: cinder_controller_packages
+ - require_in:
+ - service: cinder_controller_services
+{%- endif %}
+
{% for service_name in cinder_log_services %}
{{ service_name }}_logging_conf:
file.managed:
use_syslog=false
verbose=True
-lock_path=/var/lock/cinder
{%- if controller.query_volume_filters is defined %}
query_volume_filters = {{ controller.query_volume_filters|join(",") }}
[oslo_concurrency]
-lock_path=/var/lock/cinder
+lock_path = {{ controller.get('concurrency', {}).get('lock_path', '/var/lock/cinder') }}
[oslo_middleware]
[oslo_concurrency]
-lock_path=/var/lock/cinder
+lock_path = {{ volume.get('concurrency', {}).get('lock_path', '/var/lock/cinder') }}
[oslo_middleware]
file.managed:
- source: salt://cinder/files/{{ _data.version }}/cinder.conf.{{ type }}.{{ grains.os_family }}
- template: jinja
+
+{%- if _data.get('concurrency', {}).lock_path is defined %}
+cinder_upgrade_{{ type }}_lock_path_{{ _data.concurrency.lock_path }}:
+ file.directory:
+ - name: {{ _data.concurrency.lock_path }}
+ - user: cinder
+ - group: cinder
+ - mode: 750
+ - makedirs: True
+{%- endif %}
- sls: cinder._ssl.volume_mysql
- sls: cinder._ssl.rabbitmq
-/var/lock/cinder:
+{%- if volume.get('concurrency', {}).lock_path is defined %}
+cinder_volumer_lock_path_{{ volume.concurrency.lock_path }}:
file.directory:
- - mode: 755
+ - name: {{ volume.concurrency.lock_path }}
- user: cinder
- group: cinder
+ - mode: 750
+ - makedirs: True
- require:
- pkg: cinder_volume_packages
- require_in:
- service: cinder_volume_services
+{%- endif %}
{%- if volume.message_queue.get('ssl',{}).get('enabled', False) %}
rabbitmq_ca_cinder_volume:
controller:
enabled: true
version: ${_param:cinder_version}
+ concurrency:
+ lock_path: '/var/lock/cinder'
osapi:
host: ${_param:cluster_local_address}
database:
controller:
enabled: true
version: ${_param:cinder_version}
+ concurrency:
+ lock_path: '/var/lock/cinder'
osapi:
host: ${_param:cluster_local_address}
database:
controller:
enabled: true
version: ${_param:cinder_version}
+ concurrency:
+ lock_path: '/var/lock/cinder'
osapi:
host: ${_param:single_address}
database:
volume:
enabled: true
version: ${_param:cinder_version}
+ concurrency:
+ lock_path: '/var/lock/cinder'
osapi:
host: ${_param:cluster_local_address}
database:
volume:
enabled: true
version: ${_param:cinder_version}
+ concurrency:
+ lock_path: '/var/lock/cinder'
osapi:
host: ${_param:cluster_local_address}
database: