Files
openstack-ansible/rpc_deployment/roles/cinder_common/templates/cinder.conf
Kevin Carter a311a5e38b Adds the my_ip value to the cinder.conf
This adds the my_ip value which is defaulting to the container address
which causes the iscsi mount problems. This is an issue in Juno +.

Change-Id: Ie1e3d4dbecad97e43a43bcd4ca404a3c30740bd0
Closes-Bug: 1398924
2014-12-03 12:47:15 -06:00

88 lines
3.0 KiB
Plaintext

[DEFAULT]
verbose = {{ verbose }}
debug = {{ debug }}
my_ip = {{ storage_address | default(container_address) }}
rpc_backend = {{ rpc_backend }}
rabbit_hosts = {{ rabbit_hosts }}
rabbit_userid = {{ rabbit_userid }}
rabbit_password = {{ rabbit_password }}
lock_path = /var/lock/cinder
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
auth_strategy = keystone
volume_clear = {{ cinder_volume_clear }}
{% if cinder_volume_clear_ionice is defined %}
volume_clear_ionice = {{ cinder_volume_clear_ionice }}
{% endif %}
volume_clear_size = {{ cinder_volume_clear_size }}
nova_catalog_info=compute:nova:internalURL
nova_catalog_admin_info=compute:nova:adminURL
glance_host={{ internal_vip_address }}
glance_port={{ glance_port|default('9292') }}
glance_num_retries=0
glance_api_servers={% for host in groups['glance_api'] %}{{ hostvars[host]['container_address'] }}:{{ glance_port|default('9292') }}{% if not loop.last %},{% endif %}{% endfor %}
storage_availability_zone = {{ cinder_storage_availability_zone|default('nova') }}
{% if cinder_default_availability_zone is defined %}
cinder_default_availability_zone = {{ cinder_default_availability_zone }}
{% endif %}
{% if cinder_default_volume_type is defined %}
default_volume_type = {{ cinder_default_volume_type }}
{% endif %}
iscsi_helper = {{ cinder_iscsi_helper | default('tgtadm') }}
iscsi_iotype = {{ cinder_iscsi_iotype | default('fileio') }}
iscsi_ip_address = $my_ip
iscsi_num_targets = {{ cinder_iscsi_num_targets | default('100') }}
iscsi_port = {{ cinder_iscsi_port | default('3260') }}
volume_name_template = volume-%s
{% if cinder_backends is defined %}
enabled_backends={% for backend in cinder_backends|dictsort %}{{ backend.0 }}{% if not loop.last %},{% endif %}{% endfor %}
{% for backend_section in cinder_backends|dictsort %}
[{{ backend_section.0 }}]
{% for key, value in backend_section.1.items() %}
{{ key }}={{ value }}
{% endfor %}
{% if nfs_client is defined %}
nfs_shares_config={{ nfs_client.nfs_shares_config }}
{% endif %}
{% endfor %}
{% endif %}
[database]
connection = mysql://{{ container_mysql_user }}:{{ container_mysql_password }}@{{ mysql_address }}/{{ container_database }}?charset=utf8
[keystone_authtoken]
identity_uri = {{ auth_protocol }}://{{ auth_host }}:{{ auth_port }}
auth_uri = {{ auth_identity_uri }}
signing_dir = /var/cache/cinder
admin_tenant_name = {{ service_admin_tenant_name }}
admin_user = {{ service_admin_username }}
admin_password = {{ service_admin_password }}
memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['container_address'] }}:{{ memcached_port|default('11211') }}{% if not loop.last %},{% endif %}{% endfor %}
token_cache_time = 300
revocation_cache_time = 60
# if your memcached server is shared, use these settings to avoid cache poisoning
memcache_security_strategy = ENCRYPT
memcache_secret_key = {{ memcached_secret_key }}
# if your keystone deployment uses PKI, and you value security over performance:
check_revocations_for_cached = {{ hostvars[groups['keystone_all'][0]]['keystone_use_pki'] }}