Use transport_url for Ocata or later

Switch to using [DEFAULT]transport_url for configuration of
oslo.messaging connectivity to RabbitMQ.

Use section-oslo-messaging-rabbit to set [oslo_messaging_rabbit]
sectional configuration options for HA and SSL.

Update amulet test to only run ceilometer upgrade in deployments
with Gnocchi (>= Xenial/Queens).

Change-Id: If0ee7a09bac3bb4c5e6823adb1994ad3a120f9d5
Closes-Bug: 1817672
This commit is contained in:
James Page 2019-02-26 10:51:05 +01:00
parent afb54b422d
commit 9049b903f5
2 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,43 @@
[DEFAULT]
debug = {{ options.debug }}
{% include "parts/section-transport-url" %}
[api]
port = {{ options.service_listen_info.aodh_api.port }}
workers = {{ options.workers }}
gnocchi_external_project_owner = services
{% if identity_service.service_domain -%}
gnocchi_external_domain_name = {{ identity_service.service_domain }}
{% endif %}
[database]
{% if shared_db.uri -%}
connection = {{ shared_db.uri }}
{% elif mongodb -%}
connection = mongodb://{{ mongodb.hostname }}:{{ mongodb.port }}/aodh
{%- endif %}
{% include "parts/section-keystone-authtoken" %}
[service_credentials]
{% if identity_service.auth_host -%}
auth_type = password
region_name = {{ options.region }}
auth_url = {{ identity_service.auth_protocol }}://{{ identity_service.auth_host }}:{{ identity_service.auth_port }}
{% if identity_service.service_domain -%}
project_domain_name = {{ identity_service.service_domain }}
user_domain_name = {{ identity_service.service_domain }}
{% endif -%}
project_name = {{ identity_service.service_tenant }}
username = {{ identity_service.service_username }}
password = {{ identity_service.service_password }}
{%- endif %}
{% if options.use_internal_endpoints -%}
interface = internalURL
{%- endif %}
{% include "parts/section-oslo-messaging-rabbit" %}
{% include "parts/section-oslo-middleware" %}

View File

@ -43,7 +43,7 @@ class AodhBasicDeployment(OpenStackAmuletDeployment):
self.d.sentry.wait()
self._initialize_tests()
if self._get_openstack_release() >= self.xenial_pike:
if self._get_openstack_release() >= self.xenial_queens:
self.run_ceilometer_upgrade_action()
def _add_services(self):