Allow aodh services to use independent hostnames
This allows aodh service endpoints to use custom hostnames, and adds the following variables: * aodh_internal_fqdn * aodh_external_fqdn These default to the old values of kolla_internal_fqdn or kolla_external_fqdn. This also adds a aodh_api_listen_port option, which defaults to aodh_api_port for backward compatibility. This option allow the user to differentiate between the port the service listens on, and the port the service is reachable on. This is useful for external load balancers which live on the same host as the service itself. Change-Id: Iee08b725d066bfbe543d9319c47941d59c22212a Implements: blueprint service-hostnames
This commit is contained in:
parent
d0fc1ec278
commit
1ebb1ccee2
@ -184,7 +184,10 @@ neutron_ipam_driver: "internal"
|
||||
|
||||
# The default ports used by each service.
|
||||
# The list should be in alphabetical order
|
||||
aodh_internal_fqdn: "{{ kolla_internal_fqdn }}"
|
||||
aodh_external_fqdn: "{{ kolla_external_fqdn }}"
|
||||
aodh_api_port: "8042"
|
||||
aodh_api_listen_port: "{{ aodh_api_port }}"
|
||||
|
||||
barbican_internal_fqdn: "{{ kolla_internal_fqdn }}"
|
||||
barbican_external_fqdn: "{{ kolla_external_fqdn }}"
|
||||
|
@ -20,11 +20,13 @@ aodh_services:
|
||||
mode: "http"
|
||||
external: false
|
||||
port: "{{ aodh_api_port }}"
|
||||
listen_port: "{{ aodh_api_listen_port }}"
|
||||
aodh_api_external:
|
||||
enabled: "{{ enable_aodh }}"
|
||||
mode: "http"
|
||||
external: true
|
||||
port: "{{ aodh_api_port }}"
|
||||
listen_port: "{{ aodh_api_listen_port }}"
|
||||
aodh-evaluator:
|
||||
container_name: aodh_evaluator
|
||||
group: aodh-evaluator
|
||||
@ -116,9 +118,9 @@ aodh_notifier_dimensions: "{{ default_container_dimensions }}"
|
||||
####################
|
||||
# OpenStack
|
||||
####################
|
||||
aodh_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ aodh_api_port }}"
|
||||
aodh_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ aodh_api_port }}"
|
||||
aodh_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ aodh_api_port }}"
|
||||
aodh_admin_endpoint: "{{ admin_protocol }}://{{ aodh_internal_fqdn }}:{{ aodh_api_port }}"
|
||||
aodh_internal_endpoint: "{{ internal_protocol }}://{{ aodh_internal_fqdn }}:{{ aodh_api_port }}"
|
||||
aodh_public_endpoint: "{{ public_protocol }}://{{ aodh_external_fqdn }}:{{ aodh_api_port }}"
|
||||
|
||||
aodh_logging_debug: "{{ openstack_logging_debug }}"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
- name: Checking free port for Aodh API
|
||||
wait_for:
|
||||
host: "{{ api_interface_address }}"
|
||||
port: "{{ aodh_api_port }}"
|
||||
port: "{{ aodh_api_listen_port }}"
|
||||
connect_timeout: 1
|
||||
timeout: 1
|
||||
state: stopped
|
||||
|
@ -7,7 +7,7 @@ evaluation_interval = {{ aodh_evaluation_interval }}
|
||||
transport_url = {{ rpc_transport_url }}
|
||||
|
||||
[api]
|
||||
port = {{ aodh_api_port }}
|
||||
port = {{ aodh_api_listen_port }}
|
||||
host = {{ api_interface_address }}
|
||||
|
||||
[database]
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% set python_path = '/usr/lib/python2.7/site-packages' if aodh_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
|
||||
{% set binary_path = '/usr/bin' if aodh_install_type == 'binary' else '/var/lib/kolla/venv/bin' %}
|
||||
Listen {{ api_interface_address }}:{{ aodh_api_port }}
|
||||
Listen {{ api_interface_address }}:{{ aodh_api_listen_port }}
|
||||
|
||||
ServerSignature Off
|
||||
ServerTokens Prod
|
||||
@ -14,7 +14,7 @@ TraceEnable off
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
||||
<VirtualHost *:{{ aodh_api_port }}>
|
||||
<VirtualHost *:{{ aodh_api_listen_port }}>
|
||||
## Logging
|
||||
ErrorLog "/var/log/kolla/aodh/aodh_wsgi_error.log"
|
||||
ServerSignature Off
|
||||
|
Loading…
Reference in New Issue
Block a user