Messaging: use htk function to directly hit RabbitMQ servers

This PS updates the charts to use the htk function recently introduced
to allow oslo.messaging clients ans servers to directly hit their
backends rather than using either DNS or K8S svc based routing.

Depends-On: I5150a64bd29fa062e30496c1f2127de138322863

Change-Id: I458b4313c57fc50c8181cedeca9919670487926a
Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
Pete Birley 2019-06-17 08:56:59 -05:00 committed by Pete Birley
parent cd460f12c2
commit 9bcf0df94c
30 changed files with 60 additions and 19 deletions

View File

@ -62,7 +62,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.aodh.DEFAULT.transport_url -}} {{- if empty .Values.conf.aodh.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "aodh" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.aodh.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "aodh" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.aodh.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.aodh.service_credentials.auth_url -}} {{- if empty .Values.conf.aodh.service_credentials.auth_url -}}

View File

@ -652,6 +652,9 @@ endpoints:
aodh: aodh:
username: aodh username: aodh
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -56,7 +56,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.barbican.DEFAULT.transport_url -}} {{- if empty .Values.conf.barbican.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "barbican" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.barbican.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "barbican" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.barbican.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- $barbicanPath := index .Values "endpoints" "key_manager" "path" "default" }} {{- $barbicanPath := index .Values "endpoints" "key_manager" "path" "default" }}

View File

@ -630,6 +630,9 @@ endpoints:
barbican: barbican:
username: barbican username: barbican
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -49,15 +49,15 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.ceilometer.DEFAULT.transport_url -}} {{- if empty .Values.conf.ceilometer.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "ceilometer" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.ceilometer.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "ceilometer" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.ceilometer.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.ceilometer.oslo_messaging_notifications.transport_url -}} {{- if empty .Values.conf.ceilometer.oslo_messaging_notifications.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "ceilometer" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.ceilometer.oslo_messaging_notifications "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "ceilometer" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.ceilometer.oslo_messaging_notifications "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.ceilometer.notification.messaging_urls -}} {{- if empty .Values.conf.ceilometer.notification.messaging_urls -}}
{{- $_ := tuple "oslo_messaging" "internal" "ceilometer" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.ceilometer.notification "messaging_urls" -}} {{- $_ := tuple "oslo_messaging" "internal" "ceilometer" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.ceilometer.notification "messaging_urls" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.ceilometer.keystone_authtoken.region_name -}} {{- if empty .Values.conf.ceilometer.keystone_authtoken.region_name -}}

View File

@ -1899,6 +1899,9 @@ endpoints:
ceilometer: ceilometer:
username: ceilometer username: ceilometer
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -56,7 +56,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.cinder.DEFAULT.transport_url -}} {{- if empty .Values.conf.cinder.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "cinder" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.cinder.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "cinder" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.cinder.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.cinder.DEFAULT.glance_api_servers -}} {{- if empty .Values.conf.cinder.DEFAULT.glance_api_servers -}}

View File

@ -1312,6 +1312,9 @@ endpoints:
cinder: cinder:
username: cinder username: cinder
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -18,7 +18,7 @@ limitations under the License.
{{- $envAll := . }} {{- $envAll := . }}
{{- if empty .Values.conf.congress.DEFAULT.transport_url -}} {{- if empty .Values.conf.congress.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "congress" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.congress.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "congress" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.congress.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.congress.database.connection -}} {{- if empty .Values.conf.congress.database.connection -}}

View File

@ -306,6 +306,9 @@ endpoints:
congress: congress:
username: congress username: congress
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -90,10 +90,10 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.glance.DEFAULT.transport_url -}} {{- if empty .Values.conf.glance.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "glance" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.glance.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "glance" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.glance.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.glance_registry.DEFAULT.transport_url -}} {{- if empty .Values.conf.glance_registry.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "glance" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.glance_registry.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "glance" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.glance_registry.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.glance.DEFAULT.registry_host -}} {{- if empty .Values.conf.glance.DEFAULT.registry_host -}}

View File

@ -727,6 +727,9 @@ endpoints:
glance: glance:
username: glance username: glance
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -79,7 +79,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.heat.DEFAULT.transport_url -}} {{- if empty .Values.conf.heat.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "heat" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.heat.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "heat" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.heat.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.heat.DEFAULT.heat_metadata_server_url -}} {{- if empty .Values.conf.heat.DEFAULT.heat_metadata_server_url -}}

View File

@ -965,6 +965,9 @@ endpoints:
heat: heat:
username: heat username: heat
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -54,7 +54,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.ironic.DEFAULT.transport_url -}} {{- if empty .Values.conf.ironic.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "ironic" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.ironic.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "ironic" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.ironic.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.ironic.glance.glance_host -}} {{- if empty .Values.conf.ironic.glance.glance_host -}}

View File

@ -497,6 +497,9 @@ endpoints:
ironic: ironic:
username: ironic username: ironic
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -22,7 +22,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.keystone.DEFAULT.transport_url -}} {{- if empty .Values.conf.keystone.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "keystone" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.keystone.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "keystone" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.keystone.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.keystone.cache.memcache_servers -}} {{- if empty .Values.conf.keystone.cache.memcache_servers -}}

View File

@ -1206,6 +1206,9 @@ endpoints:
keystone: keystone:
username: keystone username: keystone
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -56,7 +56,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.magnum.DEFAULT.transport_url -}} {{- if empty .Values.conf.magnum.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "magnum" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.magnum.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "magnum" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.magnum.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.magnum.api.port -}} {{- if empty .Values.conf.magnum.api.port -}}

View File

@ -451,6 +451,9 @@ endpoints:
magnum: magnum:
username: magnum username: magnum
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -56,7 +56,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.mistral.DEFAULT.transport_url -}} {{- if empty .Values.conf.mistral.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "mistral" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.mistral.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "mistral" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.mistral.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.mistral.api.port -}} {{- if empty .Values.conf.mistral.api.port -}}

View File

@ -288,6 +288,9 @@ endpoints:
mistral: mistral:
username: mistral username: mistral
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -58,7 +58,7 @@ limitations under the License.
{{- end }} {{- end }}
{{- if empty $envAll.Values.conf.neutron.DEFAULT.transport_url -}} {{- if empty $envAll.Values.conf.neutron.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "neutron" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set $envAll.Values.conf.neutron.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "neutron" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set $envAll.Values.conf.neutron.DEFAULT "transport_url" -}}
{{- end }} {{- end }}
{{- if empty $envAll.Values.conf.neutron.nova.auth_url -}} {{- if empty $envAll.Values.conf.neutron.nova.auth_url -}}

View File

@ -1761,6 +1761,9 @@ endpoints:
neutron: neutron:
username: neutron username: neutron
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -125,7 +125,7 @@ def configured_port_in_conf():
with open(sys.argv[2]) as conf_file: with open(sys.argv[2]) as conf_file:
for line in conf_file: for line in conf_file:
if "transport_url" in line: if "transport_url" in line:
rabbitmq_port = int(line.split(':', 3)[3].split('/')[0]) rabbitmq_port = int(line.split(':', 3)[3].split(',')[0].split('/')[0])
elif "connection =" in line: elif "connection =" in line:
service = line.split(':', 3)[3].split('/')[1].rstrip('\n') service = line.split(':', 3)[3].split('/')[1].rstrip('\n')
if service == "nova": if service == "nova":

View File

@ -65,7 +65,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.nova.DEFAULT.transport_url -}} {{- if empty .Values.conf.nova.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "nova" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.nova.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "nova" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.nova.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.nova.glance.api_servers -}} {{- if empty .Values.conf.nova.glance.api_servers -}}

View File

@ -1865,6 +1865,9 @@ endpoints:
nova: nova:
username: nova username: nova
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -57,7 +57,7 @@ limitations under the License.
{{- end -}} {{- end -}}
{{- if empty .Values.conf.senlin.DEFAULT.transport_url -}} {{- if empty .Values.conf.senlin.DEFAULT.transport_url -}}
{{- $_ := tuple "oslo_messaging" "internal" "senlin" "amqp" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup" | set .Values.conf.senlin.DEFAULT "transport_url" -}} {{- $_ := tuple "oslo_messaging" "internal" "senlin" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.senlin.DEFAULT "transport_url" -}}
{{- end -}} {{- end -}}
{{- if empty .Values.conf.senlin.senlin_api.bind_port -}} {{- if empty .Values.conf.senlin.senlin_api.bind_port -}}

View File

@ -470,6 +470,9 @@ endpoints:
senlin: senlin:
username: senlin username: senlin
password: password password: password
statefulset:
replicas: 2
name: rabbitmq-rabbitmq
hosts: hosts:
default: rabbitmq default: rabbitmq
host_fqdn_override: host_fqdn_override:

View File

@ -24,7 +24,6 @@ make -C ${OSH_INFRA_PATH} rabbitmq
: ${OSH_EXTRA_HELM_ARGS:=""} : ${OSH_EXTRA_HELM_ARGS:=""}
helm upgrade --install rabbitmq ${OSH_INFRA_PATH}/rabbitmq \ helm upgrade --install rabbitmq ${OSH_INFRA_PATH}/rabbitmq \
--namespace=openstack \ --namespace=openstack \
--set pod.replicas.server=1 \
${OSH_EXTRA_HELM_ARGS} \ ${OSH_EXTRA_HELM_ARGS} \
${OSH_EXTRA_HELM_ARGS_RABBITMQ} ${OSH_EXTRA_HELM_ARGS_RABBITMQ}