3c4f4127b4
This introduces oslo.messaging variables that define the RPC and Notify transports for the OpenStack services. These parameters replace the rabbitmq values and are used to generate the messaging transport_url for the service. The association of the messaging backend server to the oslo.messaging services will then be transparent to the trove service. This patch: * Add oslo.messaging variables for RPC and Notify to defaults * Update transport_url generation (add for notification) * Add oslo.messaging to tests inventory * Update tests * Update docs * Update extras * Add release note Change-Id: Ia01317343ae6fbc790d64b5ba282c8c069750d45
109 lines
3.6 KiB
Django/Jinja
109 lines
3.6 KiB
Django/Jinja
#{{ ansible_managed }}
|
|
# Do not edit this file manually, your changes will be overwritten.
|
|
[DEFAULT]
|
|
debug = {{ debug }}
|
|
update_status_on_fail = True
|
|
transport_url = {{ trove_oslomsg_rpc_transport }}://{% for host in trove_oslomsg_rpc_servers.split(',') %}{{ trove_oslomsg_rpc_userid }}:{{ trove_oslomsg_rpc_password }}@{{ host }}:{{ trove_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ trove_oslomsg_rpc_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 }}
|
|
enable_secure_rpc_messaging = {{ trove_enable_secure_rpc_messaging }}
|
|
taskmanager_rpc_encr_key = {{ trove_taskmanager_rpc_encr_key }}
|
|
inst_rpc_key_encr_key = {{ trove_inst_rpc_key_encr_key }}
|
|
|
|
db_api_implementation = trove.db.sqlalchemy.api
|
|
trove_volume_support = True
|
|
block_device_mapping = vdb
|
|
device_path = /dev/vdb
|
|
mount_point = /var/lib/mysql
|
|
volume_time_out=30
|
|
server_delete_time_out=480
|
|
use_nova_server_config_drive = True
|
|
taskmanager_manager=trove.taskmanager.manager.Manager
|
|
|
|
# Keystone
|
|
trove_auth_url = {{ trove_auth_url }}
|
|
os_region_name = {{ trove_service_region }}
|
|
|
|
# Nova
|
|
nova_compute_url = {{ trove_nova_compute_url }}
|
|
nova_compute_service_type = compute
|
|
nova_proxy_admin_user = {{ trove_service_user_name }}
|
|
nova_proxy_admin_pass = {{ trove_service_password }}
|
|
nova_proxy_admin_tenant_name = {{ trove_service_project_name }}
|
|
|
|
# Cinder
|
|
cinder_url = {{ trove_cinder_url }}
|
|
cinder_service_type = volumev2
|
|
|
|
#Swift
|
|
swift_url = {{ trove_swift_url }}
|
|
swift_service_type = object-store
|
|
|
|
# Neutron
|
|
neutron_url = {{ trove_neutron_url }}
|
|
neutron_service_type = network
|
|
network_driver = trove.network.neutron.NeutronDriver
|
|
default_neutron_networks = {{ trove_service_net_id }}
|
|
|
|
# Notifications
|
|
notification_service_id = mysql:2f3ff068-2bfb-4f70-9a9d-a6bb65bc084b
|
|
|
|
# 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
|
|
|
|
# Trove Security Groups for Instances
|
|
trove_security_groups_support = True
|
|
trove_security_group_rule_cidr = 0.0.0.0/0
|
|
|
|
# Guest related conf
|
|
agent_heartbeat_time = 10
|
|
agent_call_low_timeout = 5
|
|
agent_call_high_timeout = 150
|
|
agent_replication_snapshot_timeout = 36000
|
|
|
|
# Whether to use nova's contrib api for create server with volume
|
|
use_nova_server_volume = False
|
|
|
|
network_label_regex = .*
|
|
#ip_regex = ^(15.|123.)
|
|
#black_list_regex = ^(10.0.0.)
|
|
|
|
# Datastore templates
|
|
template_path = /etc/trove/templates/
|
|
pydev_debug = disabled
|
|
|
|
# ================= Guestagent related ========================
|
|
guest_config = /etc/trove/trove-guestagent.conf
|
|
guest_info = guest_info.conf
|
|
injected_config_location = /etc/trove/conf.d
|
|
#cloudinit_location = /etc/trove/cloudinit
|
|
|
|
[database]
|
|
connection = "{{ trove_galera_connection_string }}"
|
|
idle_timeout = 3600
|
|
|
|
[profiler]
|
|
enabled = {{ trove_profiler_enabled }}
|
|
# If False doesn't trace SQL requests.
|
|
#trace_sqlalchemy = True
|
|
|
|
[oslo_messaging_rabbit]
|
|
ssl={{ trove_oslomsg_rpc_use_ssl }}
|
|
|
|
[oslo_messaging_notifications]
|
|
transport_url = {{ trove_oslomsg_notify_transport }}://{% for host in trove_oslomsg_notify_servers.split(',') %}{{ trove_oslomsg_notify_userid }}:{{ trove_oslomsg_notify_password }}@{{ host }}:{{ trove_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ trove_oslomsg_notify_vhost }}{% endif %}{% endfor %}
|
|
|
|
{% include 'include_db.j2' %}
|