While doing some preliminary testing using a prototype AIO, the following issues where observed and fixed. The trove CLI is expecting the service name to be 'database' in keystone. Update from 'dbaas' to 'database'. Add the tenant id to the trove service URLs, they are needed. Ignore failures when restarting services since all trove services are attempted to be restarted in all trove containers, which produces invalid combinations. When calling the trove-manage CLI to create the DB, provide the trove conductor conf file so the CLI has the DB connection information. Add a blank line after the transport_url specification, otherwise the following line is added to the URL and forms an invalid value. Add Nova and Keystone configuration values to the trove api conf file since they are needed by the trove api service. Add Nova configuration values for the trove task manager service. Default to using the internal URL to for nova client. Change-Id: If70077ea5d66151999b8965c218e4cb853e6f81a
158 lines
4.4 KiB
Django/Jinja
158 lines
4.4 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
{% set _api_threads = ansible_processor_vcpus|default(2) // 2 %}
|
|
{% set api_threads = _api_threads if _api_threads > 0 else 1 %}
|
|
[DEFAULT]
|
|
debug = {{ debug }}
|
|
bind_host = {{ trove_service_host }}
|
|
bind_port = {{ trove_service_port }}
|
|
trove_api_workers={{ trove_api_workers | default(api_threads) }}
|
|
rpc_backend={{ trove_rpc_backend }}
|
|
transport_url = rabbit://{% for host in trove_rabbitmq_servers.split(',') %}{{ trove_rabbitmq_userid }}:{{ trove_rabbitmq_password }}@{{ host }}:{{ trove_rabbitmq_port }}{% if not loop.last %},{% else %}/{{ trove_rabbitmq_vhost }}{% endif %}{% endfor %}
|
|
|
|
{# There must be a blank line above or the following line will be appended to the previous. #}
|
|
control_exchange = {{ trove_control_exchange }}
|
|
db_api_implementation = "trove.db.sqlalchemy.api"
|
|
trove_auth_url = {{ trove_auth_url }}
|
|
os_region_name = {{ trove_service_region }}
|
|
network_label_regex = .*
|
|
#network_label_regex = .* //with neutron enabled
|
|
#ip_regex = ^(15.|123.)
|
|
#black_list_regex = ^10.0.0.
|
|
trove_volume_support = True
|
|
block_device_mapping = vdb
|
|
device_path = /dev/vdb
|
|
max_accepted_volume_size = 10
|
|
max_instances_per_tenant = 5
|
|
max_volumes_per_tenant = 100
|
|
max_backups_per_tenant = 5
|
|
volume_time_out=30
|
|
|
|
# Config options for rate limits
|
|
http_get_rate = 200
|
|
http_post_rate = 200
|
|
http_put_rate = 200
|
|
http_delete_rate = 200
|
|
http_mgmt_post_rate = 200
|
|
|
|
# Trove DNS
|
|
trove_dns_support = False
|
|
dns_account_id = 123456
|
|
dns_auth_url = http://127.0.0.1:5000/v2.0
|
|
dns_username = user
|
|
dns_passkey = password
|
|
dns_ttl = 3600
|
|
dns_domain_name = 'trove.com.'
|
|
dns_domain_id = 11111111-1111-1111-1111-111111111111
|
|
dns_driver = trove.dns.designate.driver.DesignateDriver
|
|
dns_instance_entry_factory = trove.dns.designate.driver.DesignateInstanceEntryFactory
|
|
dns_endpoint_url = http://127.0.0.1/v1/
|
|
dns_service_type = dns
|
|
|
|
# Nova
|
|
nova_compute_url = {{ trove_nova_compute_url }}
|
|
nova_proxy_admin_user = {{ trove_service_user_name }}
|
|
nova_proxy_admin_pass = {{ trove_service_password }}
|
|
nova_proxy_admin_tenant_name = {{ trove_service_project_name }}
|
|
|
|
# Neutron
|
|
network_driver = trove.network.nova.NovaNetwork
|
|
default_neutron_networks =
|
|
|
|
# Taskmanager queue name
|
|
taskmanager_queue = taskmanager
|
|
|
|
# Auth
|
|
admin_roles = admin
|
|
auth_strategy = keystone
|
|
|
|
# Guest related conf
|
|
agent_heartbeat_time = 10
|
|
agent_call_low_timeout = 5
|
|
agent_call_high_timeout = 150
|
|
|
|
# Reboot time out for instances
|
|
reboot_time_out = 60
|
|
|
|
# Trove api-paste file name
|
|
api_paste_config = api-paste.ini
|
|
|
|
[keystone_authtoken]
|
|
insecure = {{ keystone_service_internaluri_insecure | bool }}
|
|
auth_plugin = {{ trove_keystone_auth_plugin }}
|
|
auth_url = {{ keystone_service_adminuri }}
|
|
auth_uri = {{ keystone_service_internaluri }}
|
|
project_domain_id = {{ trove_service_project_domain_id }}
|
|
user_domain_id = {{ trove_service_user_domain_id }}
|
|
project_name = {{ trove_service_project_name }}
|
|
username = {{ trove_service_user_name }}
|
|
password = {{ trove_service_password }}
|
|
region_name = {{ keystone_service_region }}
|
|
|
|
memcached_servers = {{ memcached_servers }}
|
|
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_encryption_key }}
|
|
|
|
[database]
|
|
connection = "{{ trove_galera_connection_string }}"
|
|
idle_timeout = 3600
|
|
|
|
[profiler]
|
|
enabled = {{ trove_profiler_enabled }}
|
|
#trace_sqlalchemy = True
|
|
|
|
[ssl]
|
|
|
|
#cert_file = /path/to/server.crt
|
|
#key_file = /path/to/server.key
|
|
#optional:
|
|
#ca_file = /path/to/ca_file
|
|
|
|
[oslo_messaging_rabbit]
|
|
rabbit_use_ssl={{ trove_rabbitmq_use_ssl }}
|
|
|
|
[mysql]
|
|
root_on_create = False
|
|
tcp_ports = 3306
|
|
volume_support = True
|
|
device_path = /dev/vdb
|
|
|
|
# Users to ignore for user create/list/delete operations
|
|
ignore_users = os_admin, root
|
|
ignore_dbs = mysql, information_schema, performance_schema
|
|
|
|
[redis]
|
|
tcp_ports = 6379
|
|
#redis uses local storage
|
|
volume_support = False
|
|
# default device_path = None
|
|
|
|
[cassandra]
|
|
tcp_ports = 7000, 7001, 9042, 9160
|
|
volume_support = True
|
|
device_path = /dev/vdb
|
|
|
|
[couchbase]
|
|
tcp_ports = 8091, 8092, 4369, 11209-11211, 21100-21199
|
|
volume_support = True
|
|
device_path = /dev/vdb
|
|
|
|
[mongodb]
|
|
tcp_ports = 2500, 27017
|
|
volume_support = True
|
|
device_path = /dev/vdb
|
|
num_config_servers_per_cluster = 1
|
|
num_query_routers_per_cluster = 1
|
|
|
|
[vertica]
|
|
tcp_ports = 5433, 5434, 22, 5444, 5450, 4803
|
|
udp_ports = 5433, 4803, 4804, 6453
|
|
volume_support = True
|
|
device_path = /dev/vdb
|
|
cluster_support = True
|
|
cluster_member_count = 3
|
|
api_strategy = trove.common.strategies.cluster.experimental.vertica.api.VerticaAPIStrategy
|