![Jean-Philippe Evrard](/assets/img/avatar_default.png)
virtualenv-tools has a bug which gets triggered in gates: it can't change the shebang of a virtualenv python bin/ files if they were generated with a virtualenv script whose shebang ends with python2 instead of python. Because we can't modify virtualenv-tools, we use shell scripts instead. Change-Id: I6cc40b4fc473df29c6e3d7844fde6340694d43bb Partial-Bug: #1741634
348 lines
13 KiB
YAML
348 lines
13 KiB
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Set the package install state for distribution and pip packages
|
|
# Options are 'present' and 'latest'
|
|
cinder_package_state: "latest"
|
|
cinder_pip_package_state: "latest"
|
|
|
|
cinder_git_repo: https://git.openstack.org/openstack/cinder
|
|
cinder_git_install_branch: "stable/queens"
|
|
cinder_developer_mode: false
|
|
cinder_developer_constraints:
|
|
- "git+{{ cinder_git_repo }}@{{ cinder_git_install_branch }}#egg=cinder"
|
|
|
|
# Name of the virtual env to deploy into
|
|
cinder_venv_tag: untagged
|
|
cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
|
|
|
|
# venv_download, even when true, will use the fallback method of building the
|
|
# venv from scratch if the venv download fails.
|
|
cinder_venv_download: "{{ not cinder_developer_mode | bool }}"
|
|
cinder_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/cinder.tgz
|
|
|
|
# Enable/Disable Barbican
|
|
cinder_barbican_enabled: False
|
|
|
|
# Enable/Disable Ceilometer
|
|
cinder_ceilometer_enabled: False
|
|
|
|
cinder_storage_availability_zone: nova
|
|
cinder_default_availability_zone: "{{ cinder_storage_availability_zone }}"
|
|
|
|
cinder_storage_address: 127.0.0.1
|
|
cinder_management_address: 127.0.0.1
|
|
cinder_uwsgi_bind_address: 0.0.0.0
|
|
|
|
cinder_nova_catalog_info: compute:nova:internalURL
|
|
cinder_nova_catalog_admin_info: compute:nova:adminURL
|
|
|
|
cinder_fatal_deprecations: False
|
|
|
|
## Database info
|
|
cinder_galera_user: cinder
|
|
cinder_galera_database: cinder
|
|
cinder_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
|
|
cinder_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('/etc/ssl/certs/galera-ca.pem') }}"
|
|
|
|
## RabbitMQ info
|
|
|
|
## Configuration for RPC communications
|
|
cinder_rabbitmq_userid: cinder
|
|
cinder_rabbitmq_vhost: /cinder
|
|
cinder_rabbitmq_port: 5672
|
|
cinder_rabbitmq_servers: 127.0.0.1
|
|
cinder_rabbitmq_use_ssl: False
|
|
|
|
## Configuration for notifications communication, i.e. [oslo_messaging_notifications]
|
|
cinder_rabbitmq_telemetry_userid: "{{ cinder_rabbitmq_userid }}"
|
|
cinder_rabbitmq_telemetry_password: "{{ cinder_rabbitmq_password }}"
|
|
cinder_rabbitmq_telemetry_vhost: "{{ cinder_rabbitmq_vhost }}"
|
|
cinder_rabbitmq_telemetry_port: "{{ cinder_rabbitmq_port }}"
|
|
cinder_rabbitmq_telemetry_servers: "{{ cinder_rabbitmq_servers }}"
|
|
cinder_rabbitmq_telemetry_use_ssl: "{{ cinder_rabbitmq_use_ssl }}"
|
|
|
|
## Cinder User / Group
|
|
cinder_system_user_name: cinder
|
|
cinder_system_group_name: cinder
|
|
cinder_system_comment: cinder system user
|
|
cinder_system_shell: /bin/false
|
|
cinder_system_home_folder: "/var/lib/{{ cinder_system_user_name }}"
|
|
|
|
## Manually specified cinder UID/GID
|
|
# Deployers can specify a UID for the cinder user as well as the GID for the
|
|
# cinder group if needed. This is commonly used in environments where shared
|
|
# storage is used, such as NFS or GlusterFS, and cinder UID/GID values must be
|
|
# in sync between multiple servers.
|
|
#
|
|
# WARNING: Changing these values on an existing deployment can lead to
|
|
# failures, errors, and instability.
|
|
#
|
|
# cinder_system_user_uid = <UID>
|
|
# cinder_system_group_gid = <GID>
|
|
|
|
cinder_lock_path: /var/lock/cinder
|
|
|
|
## Cinder Auth
|
|
cinder_service_admin_tenant_name: "service"
|
|
cinder_service_admin_username: "cinder"
|
|
|
|
## Cinder API's enabled
|
|
cinder_enable_v1_api: true
|
|
cinder_enable_v2_api: true
|
|
cinder_enable_v3_api: true
|
|
|
|
## Cinder API check cert validation
|
|
cinder_service_internaluri_insecure: false
|
|
|
|
## Cinder api service type and data
|
|
cinder_service_name: cinder
|
|
cinder_service_project_domain_id: default
|
|
cinder_service_user_domain_id: default
|
|
cinder_service_user_name: cinder
|
|
cinder_service_project_name: service
|
|
cinder_service_role_name: admin
|
|
cinder_service_region: RegionOne
|
|
cinder_service_description: "Cinder Volume Service"
|
|
cinder_service_port: 8776
|
|
cinder_service_proto: http
|
|
cinder_service_publicuri_proto: "{{ openstack_service_publicuri_proto | default(cinder_service_proto) }}"
|
|
cinder_service_adminuri_proto: "{{ openstack_service_adminuri_proto | default(cinder_service_proto) }}"
|
|
cinder_service_internaluri_proto: "{{ openstack_service_internaluri_proto | default(cinder_service_proto) }}"
|
|
cinder_service_type: volume
|
|
cinder_service_publicuri: "{{ cinder_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_publicurl: "{{ cinder_service_publicuri }}/v1/%(tenant_id)s"
|
|
cinder_service_adminuri: "{{ cinder_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_adminurl: "{{ cinder_service_adminuri }}/v1/%(tenant_id)s"
|
|
cinder_service_internaluri: "{{ cinder_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_internalurl: "{{ cinder_service_internaluri }}/v1/%(tenant_id)s"
|
|
|
|
cinder_service_v2_name: cinderv2
|
|
cinder_service_v2_port: 8776
|
|
cinder_service_v2_proto: http
|
|
cinder_service_v2_type: volumev2
|
|
cinder_service_v2_description: "Cinder Volume Service V2"
|
|
cinder_service_v2_publicuri: "{{ cinder_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_publicurl: "{{ cinder_service_publicuri }}/v2/%(tenant_id)s"
|
|
cinder_service_v2_adminuri: "{{ cinder_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_adminurl: "{{ cinder_service_adminuri }}/v2/%(tenant_id)s"
|
|
cinder_service_v2_internaluri: "{{ cinder_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v2_internalurl: "{{ cinder_service_internaluri }}/v2/%(tenant_id)s"
|
|
|
|
cinder_service_v3_name: cinderv3
|
|
cinder_service_v3_port: 8776
|
|
cinder_service_v3_proto: http
|
|
cinder_service_v3_type: volumev3
|
|
cinder_service_v3_description: "Cinder Volume Service V3"
|
|
cinder_service_v3_publicuri: "{{ cinder_service_publicuri_proto }}://{{ external_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v3_publicurl: "{{ cinder_service_publicuri }}/v3/%(tenant_id)s"
|
|
cinder_service_v3_adminuri: "{{ cinder_service_adminuri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v3_adminurl: "{{ cinder_service_adminuri }}/v3/%(tenant_id)s"
|
|
cinder_service_v3_internaluri: "{{ cinder_service_internaluri_proto }}://{{ internal_lb_vip_address }}:{{ cinder_service_port }}"
|
|
cinder_service_v3_internalurl: "{{ cinder_service_internaluri }}/v3/%(tenant_id)s"
|
|
|
|
cinder_auth_strategy: keystone
|
|
|
|
## Keystone authentication middleware
|
|
cinder_keystone_auth_plugin: "{{ cinder_keystone_auth_type }}"
|
|
cinder_keystone_auth_type: password
|
|
|
|
## In order to enable the cinder backup you MUST set ``cinder_service_backup_program_enabled`` to "true"
|
|
cinder_service_backup_program_enabled: false
|
|
# cinder_service_backup_driver: Options include 'cinder.backup.drivers.swift' or
|
|
# 'cinder.backup.drivers.ceph'
|
|
cinder_service_backup_driver: cinder.backup.drivers.swift
|
|
# cinder_service_backup_swift_auth: Options include 'per_user' or 'single_user', we default to
|
|
# 'per_user' so that backups are saved to a user's swift account.
|
|
cinder_service_backup_swift_auth: per_user
|
|
# cinder_service_backup_swift_url: This is your swift storage url when using 'per_user', or keystone
|
|
# endpoint when using 'single_user'. When using 'per_user', you
|
|
# can leave this as empty or as None to allow cinder-backup to
|
|
# obtain storage url from environment.
|
|
cinder_service_backup_swift_url:
|
|
cinder_service_backup_swift_auth_version: 2
|
|
cinder_service_backup_swift_user:
|
|
cinder_service_backup_swift_tenant:
|
|
cinder_service_backup_swift_key:
|
|
cinder_service_backup_swift_container: volumebackups
|
|
cinder_service_backup_swift_object_size: 52428800
|
|
cinder_service_backup_swift_retry_attempts: 3
|
|
cinder_service_backup_swift_retry_backoff: 2
|
|
cinder_service_backup_ceph_user: cinder-backup
|
|
cinder_service_backup_ceph_pool: backups
|
|
cinder_service_backup_compression_algorithm: zlib
|
|
cinder_service_backup_metadata_version: 2
|
|
|
|
cinder_swift_catalog_info: "object-store:swift:internalURL"
|
|
|
|
## Cap the maximun number of threads / workers when a user value is unspecified.
|
|
cinder_osapi_volume_workers_max: 16
|
|
cinder_osapi_volume_workers: "{{ [[ansible_processor_vcpus|default(2) // 2, 1] | max, cinder_osapi_volume_workers_max] | min }}"
|
|
|
|
## Cinder iscsi
|
|
cinder_iscsi_helper: tgtadm
|
|
cinder_iscsi_iotype: fileio
|
|
cinder_iscsi_num_targets: 100
|
|
cinder_iscsi_port: 3260
|
|
|
|
## Cinder RPC
|
|
cinder_rpc_executor_thread_pool_size: 64
|
|
cinder_rpc_response_timeout: 60
|
|
|
|
# (StrOpt) Method used to wipe old volumes (valid options are: none, zero)
|
|
cinder_volume_clear: zero
|
|
# (StrOpt) The flag to pass to ionice to alter the i/o priority of the process
|
|
# used to zero a volume after deletion, for example "-c3" for idle only
|
|
# priority.
|
|
cinder_volume_clear_ionice: -c3
|
|
|
|
# (IntOpt) Size in MiB to wipe at start of old volumes. 0 => all
|
|
cinder_volume_clear_size: 0
|
|
|
|
cinder_volume_name_template: volume-%s
|
|
|
|
# osprofiler
|
|
cinder_profiler_enabled: false
|
|
# cinder_profiler_hmac_key is set in user_secrets.yml
|
|
cinder_profiler_trace_sqlalchemy: false
|
|
|
|
cinder_client_socket_timeout: 900
|
|
|
|
## Cinder quota
|
|
cinder_quota_volumes: 10
|
|
cinder_quota_snapshots: 10
|
|
cinder_quota_consistencygroups: 10
|
|
cinder_quota_gigabytes: 1000
|
|
cinder_quota_backups: 10
|
|
cinder_quota_backup_gigabytes: 1000
|
|
|
|
## General configuration
|
|
# cinder_backends:
|
|
# lvm:
|
|
# volume_group: cinder-volumes
|
|
# volume_driver: cinder.volume.drivers.lvm.LVMVolumeDriver
|
|
# volume_backend_name: LVM_iSCSI
|
|
# extra_volume_types:
|
|
# - lvm_high_iops
|
|
# - lvm_low_iops
|
|
|
|
# cinder_backend_lvm_inuse: True if current host has an lvm backend
|
|
cinder_backend_lvm_inuse: '{{ (cinder_backends|default("")|to_json).find("lvm") != -1 }}'
|
|
# cinder_backend_rbd_inuse: True if the current host has an rbd backend
|
|
cinder_backend_rbd_inuse: '{{ (cinder_backends|default("")|to_json).find("cinder.volume.drivers.rbd.RBDDriver") != -1 }}'
|
|
|
|
## Policy vars
|
|
# Provide a list of access controls to update the default policy.json with. These changes will be merged
|
|
# with the access controls in the default policy.json. E.g.
|
|
#cinder_policy_overrides:
|
|
# "volume:create": ""
|
|
# "volume:delete": ""
|
|
|
|
# Comma separated list of Glance API servers
|
|
# cinder_glance_api_servers:
|
|
|
|
cinder_service_in_ldap: false
|
|
|
|
# Cinder packages that must be installed before anything else
|
|
cinder_requires_pip_packages:
|
|
- virtualenv
|
|
- python-keystoneclient # Keystoneclient needed by the keystone Ansible module
|
|
- httplib2
|
|
|
|
# Common pip packages
|
|
cinder_pip_packages:
|
|
- cinder
|
|
- cryptography
|
|
- ecdsa
|
|
- httplib2
|
|
- keystonemiddleware
|
|
- PyMySQL
|
|
- python-cinderclient
|
|
- python-keystoneclient
|
|
- python-memcached
|
|
- uwsgi
|
|
|
|
cinder_api_init_overrides: {}
|
|
cinder_scheduler_init_overrides: {}
|
|
cinder_volume_init_overrides: {}
|
|
cinder_backup_init_overrides: {}
|
|
|
|
## Service Name-Group Mapping
|
|
cinder_services:
|
|
cinder-scheduler:
|
|
group: cinder_scheduler
|
|
service_name: cinder-scheduler
|
|
init_config_overrides: "{{ cinder_scheduler_init_overrides }}"
|
|
start_order: 1
|
|
cinder-volume:
|
|
group: cinder_volume
|
|
service_name: cinder-volume
|
|
init_config_overrides: "{{ cinder_volume_init_overrides }}"
|
|
start_order: 2
|
|
cinder-backup:
|
|
group: cinder_backup
|
|
service_name: cinder-backup
|
|
condition: "{{ cinder_service_backup_program_enabled | bool }}"
|
|
init_config_overrides: "{{ cinder_backup_init_overrides }}"
|
|
start_order: 3
|
|
cinder-api:
|
|
group: cinder_api
|
|
service_name: cinder-api
|
|
init_config_overrides: "{{ cinder_api_init_overrides }}"
|
|
wsgi_overrides: "{{ cinder_api_uwsgi_ini_overrides }}"
|
|
wsgi_app: True
|
|
log_string: "--logto "
|
|
wsgi_name: cinder-wsgi
|
|
uwsgi_port: "{{ cinder_service_port }}"
|
|
uwsgi_bind_address: "{{ cinder_uwsgi_bind_address }}"
|
|
program_override: "{{ cinder_bin }}/uwsgi --ini /etc/uwsgi/cinder-api.ini"
|
|
start_order: 4
|
|
|
|
# Cinder uWSGI settings
|
|
cinder_wsgi_processes_max: 16
|
|
cinder_wsgi_processes: "{{ [[ansible_processor_vcpus|default(1), 1] | max * 2, cinder_wsgi_processes_max] | min }}"
|
|
cinder_wsgi_threads: 1
|
|
cinder_wsgi_buffer_size: 65535
|
|
|
|
# This variable is used by the repo_build process to determine
|
|
# which host group to check for members of before building the
|
|
# pip packages required by this role. The value is picked up
|
|
# by the py_pkgs lookup.
|
|
cinder_role_project_group: cinder_all
|
|
|
|
# Define the following dictionary variable to enable qos settings on volumes.
|
|
# cinder_qos_specs
|
|
# - name: high-iops
|
|
# options:
|
|
# consumer: front-end
|
|
# read_iops_sec: 2000
|
|
# write_iops_sec: 2000
|
|
# cinder_volume_types:
|
|
# - volumes-1
|
|
# - volumes-2
|
|
# - name: low-iops
|
|
# options:
|
|
# consumer: front-end
|
|
# write_iops_sec: 100
|
|
|
|
## Tunable overrides
|
|
cinder_policy_overrides: {}
|
|
cinder_rootwrap_conf_overrides: {}
|
|
cinder_api_paste_ini_overrides: {}
|
|
cinder_cinder_conf_overrides: {}
|
|
cinder_api_uwsgi_ini_overrides: {}
|
|
|
|
_UUID_regex: "[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}"
|