Armada: Use single rabbitmq deployment

This moves to use a single rabbitmq deployment for the openstack
services in the armada gate to reduce the resources required for
this check to run.

Change-Id: I81bba3c9a4d9cdaad6ddcaa066441a70f1908415
This commit is contained in:
Steve Wilkerson 2018-08-15 11:25:27 -05:00
parent 8ae990e622
commit 821256da3a
2 changed files with 38 additions and 399 deletions

View File

@ -17,24 +17,20 @@
set -xe set -xe
passwords="BARBICAN_DB_PASSWORD \ passwords="BARBICAN_DB_PASSWORD \
BARBICAN_RABBITMQ_ADMIN_PASSWORD \
BARBICAN_RABBITMQ_USER_PASSWORD \ BARBICAN_RABBITMQ_USER_PASSWORD \
BARBICAN_USER_PASSWORD \ BARBICAN_USER_PASSWORD \
CINDER_DB_PASSWORD \ CINDER_DB_PASSWORD \
CINDER_RABBITMQ_ADMIN_PASSWORD \
CINDER_RABBITMQ_USER_PASSWORD \ CINDER_RABBITMQ_USER_PASSWORD \
CINDER_USER_PASSWORD \ CINDER_USER_PASSWORD \
DB_ADMIN_PASSWORD \ DB_ADMIN_PASSWORD \
ELASTICSEARCH_ADMIN_PASSWORD \ ELASTICSEARCH_ADMIN_PASSWORD \
GLANCE_DB_PASSWORD \ GLANCE_DB_PASSWORD \
GLANCE_RABBITMQ_ADMIN_PASSWORD \
GLANCE_RABBITMQ_USER_PASSWORD \ GLANCE_RABBITMQ_USER_PASSWORD \
GLANCE_USER_PASSWORD \ GLANCE_USER_PASSWORD \
GRAFANA_ADMIN_PASSWORD \ GRAFANA_ADMIN_PASSWORD \
GRAFANA_DB_PASSWORD \ GRAFANA_DB_PASSWORD \
GRAFANA_SESSION_DB_PASSWORD \ GRAFANA_SESSION_DB_PASSWORD \
HEAT_DB_PASSWORD \ HEAT_DB_PASSWORD \
HEAT_RABBITMQ_ADMIN_PASSWORD \
HEAT_RABBITMQ_USER_PASSWORD \ HEAT_RABBITMQ_USER_PASSWORD \
HEAT_STACK_PASSWORD \ HEAT_STACK_PASSWORD \
HEAT_TRUSTEE_PASSWORD \ HEAT_TRUSTEE_PASSWORD \
@ -42,20 +38,18 @@ passwords="BARBICAN_DB_PASSWORD \
KEYSTONE_ADMIN_PASSWORD \ KEYSTONE_ADMIN_PASSWORD \
KEYSTONE_AUTHTOKEN_MEMCACHED_SECRET_KEY \ KEYSTONE_AUTHTOKEN_MEMCACHED_SECRET_KEY \
KEYSTONE_DB_PASSWORD \ KEYSTONE_DB_PASSWORD \
KEYSTONE_RABBITMQ_ADMIN_PASSWORD \
KEYSTONE_RABBITMQ_USER_PASSWORD \ KEYSTONE_RABBITMQ_USER_PASSWORD \
KIBANA_ADMIN_PASSWORD \ KIBANA_ADMIN_PASSWORD \
NEUTRON_DB_PASSWORD \ NEUTRON_DB_PASSWORD \
NEUTRON_RABBITMQ_ADMIN_PASSWORD \
NEUTRON_RABBITMQ_USER_PASSWORD \ NEUTRON_RABBITMQ_USER_PASSWORD \
NEUTRON_USER_PASSWORD \ NEUTRON_USER_PASSWORD \
NOVA_DB_PASSWORD \ NOVA_DB_PASSWORD \
NOVA_PLACEMENT_USER_PASSWORD \ NOVA_PLACEMENT_USER_PASSWORD \
NOVA_RABBITMQ_ADMIN_PASSWORD \
NOVA_RABBITMQ_USER_PASSWORD \ NOVA_RABBITMQ_USER_PASSWORD \
NOVA_USER_PASSWORD \ NOVA_USER_PASSWORD \
OPENSTACK_EXPORTER_USER_PASSWORD \ OPENSTACK_EXPORTER_USER_PASSWORD \
PROMETHEUS_ADMIN_PASSWORD \ PROMETHEUS_ADMIN_PASSWORD \
RABBITMQ_ADMIN_PASSWORD \
SWIFT_USER_PASSWORD" SWIFT_USER_PASSWORD"
for password in $passwords for password in $passwords

View File

@ -200,15 +200,15 @@ data:
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: keystone-rabbitmq name: rabbitmq
data: data:
chart_name: keystone-rabbitmq chart_name: rabbitmq
release: keystone-rabbitmq release: rabbitmq
namespace: openstack namespace: openstack
wait: wait:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-keystone-rabbitmq release_group: osh-rabbitmq
test: test:
enabled: true enabled: true
install: install:
@ -219,23 +219,18 @@ data:
delete: delete:
- type: job - type: job
labels: labels:
release_group: osh-keystone-rabbitmq release_group: osh-rabbitmq
- type: pod - type: pod
labels: labels:
release_group: osh-keystone-rabbitmq release_group: osh-rabbitmq
component: test component: test
values: values:
endpoints: endpoints:
oslo_messaging: oslo_messaging:
auth: auth:
user: user:
username: keystone-rabbitmq-admin username: rabbitmq-admin
password: ${KEYSTONE_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
hosts:
default: keystone-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: keystone-rabbitmq-exporter
monitoring: monitoring:
prometheus: prometheus:
enabled: True enabled: True
@ -301,13 +296,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: keystone-rabbitmq-admin username: rabbitmq-admin
password: ${KEYSTONE_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
keystone: keystone:
username: keystone-rabbitmq-user username: keystone-rabbitmq-user
password: ${KEYSTONE_RABBITMQ_USER_PASSWORD} password: ${KEYSTONE_RABBITMQ_USER_PASSWORD}
hosts:
default: keystone-rabbitmq
labels: labels:
api: api:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
@ -392,63 +385,6 @@ data:
- helm-toolkit - helm-toolkit
--- ---
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: glance-rabbitmq
data:
chart_name: glance-rabbitmq
release: glance-rabbitmq
namespace: openstack
wait:
timeout: 1800
labels:
release_group: osh-glance-rabbitmq
test:
enabled: true
install:
no_hooks: False
upgrade:
no_hooks: False
pre:
delete:
- type: job
labels:
release_group: osh-glance-rabbitmq
- type: pod
labels:
release_group: osh-glance-rabbitmq
component: test
values:
endpoints:
oslo_messaging:
auth:
user:
username: glance-rabbitmq-admin
password: ${GLANCE_RABBITMQ_ADMIN_PASSWORD}
hosts:
default: glance-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: glance-rabbitmq-exporter
monitoring:
prometheus:
enabled: True
labels:
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
prometheus_rabbitmq_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
source:
type: local
location: ${OSH_INFRA_PATH}
subpath: rabbitmq
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: glance name: glance
@ -495,13 +431,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: glance-rabbitmq-admin username: rabbitmq-admin
password: ${GLANCE_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
glance: glance:
username: glance-rabbitmq-user username: glance-rabbitmq-user
password: ${GLANCE_RABBITMQ_USER_PASSWORD} password: ${GLANCE_RABBITMQ_USER_PASSWORD}
hosts:
default: glance-rabbitmq
labels: labels:
api: api:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
@ -537,63 +471,6 @@ data:
- helm-toolkit - helm-toolkit
--- ---
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: cinder-rabbitmq
data:
chart_name: cinder-rabbitmq
release: cinder-rabbitmq
namespace: openstack
wait:
timeout: 1800
labels:
release_group: osh-cinder-rabbitmq
test:
enabled: true
install:
no_hooks: False
upgrade:
no_hooks: False
pre:
delete:
- type: job
labels:
release_group: osh-cinder-rabbitmq
- type: pod
labels:
release_group: osh-cinder-rabbitmq
component: test
values:
endpoints:
oslo_messaging:
auth:
user:
username: cinder-rabbitmq-admin
password: ${CINDER_RABBITMQ_ADMIN_PASSWORD}
hosts:
default: cinder-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: cinder-rabbitmq-exporter
monitoring:
prometheus:
enabled: True
labels:
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
prometheus_rabbitmq_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
source:
type: local
location: ${OSH_INFRA_PATH}
subpath: rabbitmq
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: cinder name: cinder
@ -640,13 +517,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: cinder-rabbitmq-admin username: rabbitmq-admin
password: ${CINDER_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
cinder: cinder:
username: cinder-rabbitmq-user username: cinder-rabbitmq-user
password: ${CINDER_RABBITMQ_USER_PASSWORD} password: ${CINDER_RABBITMQ_USER_PASSWORD}
hosts:
default: cinder-rabbitmq
labels: labels:
api: api:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
@ -745,63 +620,6 @@ data:
- helm-toolkit - helm-toolkit
--- ---
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: nova-rabbitmq
data:
chart_name: nova-rabbitmq
release: nova-rabbitmq
namespace: openstack
wait:
timeout: 1800
labels:
release_group: osh-nova-rabbitmq
test:
enabled: true
install:
no_hooks: False
upgrade:
no_hooks: False
pre:
delete:
- type: job
labels:
release_group: osh-nova-rabbitmq
- type: pod
labels:
release_group: osh-nova-rabbitmq
component: test
values:
endpoints:
oslo_messaging:
auth:
user:
username: nova-rabbitmq-admin
password: ${NOVA_RABBITMQ_ADMIN_PASSWORD}
hosts:
default: nova-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: nova-rabbitmq-exporter
monitoring:
prometheus:
enabled: True
labels:
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
prometheus_rabbitmq_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
source:
type: local
location: ${OSH_INFRA_PATH}
subpath: rabbitmq
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: nova name: nova
@ -812,6 +630,8 @@ data:
wait: wait:
labels: labels:
release_group: osh-nova release_group: osh-nova
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -891,13 +711,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: nova-rabbitmq-admin username: rabbitmq-admin
password: ${NOVA_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
nova: nova:
username: nova-rabbitmq-user username: nova-rabbitmq-user
password: ${NOVA_RABBITMQ_USER_PASSWORD} password: ${NOVA_RABBITMQ_USER_PASSWORD}
hosts:
default: nova-rabbitmq
labels: labels:
agent: agent:
compute: compute:
@ -959,63 +777,6 @@ data:
- helm-toolkit - helm-toolkit
--- ---
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: neutron-rabbitmq
data:
chart_name: neutron-rabbitmq
release: neutron-rabbitmq
namespace: openstack
wait:
timeout: 1800
labels:
release_group: osh-neutron-rabbitmq
test:
enabled: true
install:
no_hooks: False
upgrade:
no_hooks: False
pre:
delete:
- type: job
labels:
release_group: osh-neutron-rabbitmq
- type: pod
labels:
release_group: osh-neutron-rabbitmq
component: test
values:
endpoints:
oslo_messaging:
auth:
user:
username: neutron-rabbitmq-admin
password: ${NEUTRON_RABBITMQ_ADMIN_PASSWORD}
hosts:
default: neutron-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: neutron-rabbitmq-exporter
monitoring:
prometheus:
enabled: True
labels:
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
prometheus_rabbitmq_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
source:
type: local
location: ${OSH_INFRA_PATH}
subpath: rabbitmq
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: neutron name: neutron
@ -1026,6 +787,8 @@ data:
wait: wait:
labels: labels:
release_group: osh-neutron release_group: osh-neutron
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -1074,13 +837,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: neutron-rabbitmq-admin username: rabbitmq-admin
password: ${NEUTRON_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
neutron: neutron:
username: neutron-rabbitmq-user username: neutron-rabbitmq-user
password: ${NEUTRON_RABBITMQ_USER_PASSWORD} password: ${NEUTRON_RABBITMQ_USER_PASSWORD}
hosts:
default: neutron-rabbitmq
pod: pod:
replicas: replicas:
server: 2 server: 2
@ -1143,63 +904,6 @@ data:
- helm-toolkit - helm-toolkit
--- ---
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: heat-rabbitmq
data:
chart_name: heat-rabbitmq
release: heat-rabbitmq
namespace: openstack
wait:
timeout: 1800
labels:
release_group: osh-heat-rabbitmq
test:
enabled: true
install:
no_hooks: False
upgrade:
no_hooks: False
pre:
delete:
- type: job
labels:
release_group: osh-heat-rabbitmq
- type: pod
labels:
release_group: osh-heat-rabbitmq
component: test
values:
endpoints:
oslo_messaging:
auth:
user:
username: heat-rabbitmq-admin
password: ${HEAT_RABBITMQ_ADMIN_PASSWORD}
hosts:
default: heat-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: heat-rabbitmq-exporter
monitoring:
prometheus:
enabled: True
labels:
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
prometheus_rabbitmq_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
source:
type: local
location: ${OSH_INFRA_PATH}
subpath: rabbitmq
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: heat name: heat
@ -1250,13 +954,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: heat-rabbitmq-admin username: rabbitmq-admin
password: ${HEAT_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
heat: heat:
username: heat-rabbitmq-user username: heat-rabbitmq-user
password: ${HEAT_RABBITMQ_USER_PASSWORD} password: ${HEAT_RABBITMQ_USER_PASSWORD}
hosts:
default: heat-rabbitmq
labels: labels:
api: api:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
@ -1288,63 +990,6 @@ data:
- helm-toolkit - helm-toolkit
--- ---
schema: armada/Chart/v1 schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: barbican-rabbitmq
data:
chart_name: barbican-rabbitmq
release: barbican-rabbitmq
namespace: openstack
wait:
timeout: 1800
labels:
release_group: osh-barbican-rabbitmq
test:
enabled: true
install:
no_hooks: False
upgrade:
no_hooks: False
pre:
delete:
- type: job
labels:
release_group: osh-barbican-rabbitmq
- type: pod
labels:
release_group: osh-barbican-rabbitmq
component: test
values:
endpoints:
oslo_messaging:
auth:
user:
username: barbican-rabbitmq-admin
password: ${BARBICAN_RABBITMQ_ADMIN_PASSWORD}
hosts:
default: barbican-rabbitmq
prometheus_rabbitmq_exporter:
hosts:
default: barbican-rabbitmq-exporter
monitoring:
prometheus:
enabled: True
labels:
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
prometheus_rabbitmq_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
source:
type: local
location: ${OSH_INFRA_PATH}
subpath: rabbitmq
reference: master
dependencies:
- helm-toolkit
---
schema: armada/Chart/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: barbican name: barbican
@ -1356,8 +1001,6 @@ data:
timeout: 1800 timeout: 1800
labels: labels:
release_group: osh-barbican release_group: osh-barbican
test:
enabled: true
install: install:
no_hooks: False no_hooks: False
upgrade: upgrade:
@ -1391,13 +1034,11 @@ data:
oslo_messaging: oslo_messaging:
auth: auth:
admin: admin:
username: barbican-rabbitmq-admin username: rabbitmq-admin
password: ${BARBICAN_RABBITMQ_ADMIN_PASSWORD} password: ${RABBITMQ_ADMIN_PASSWORD}
barbican: barbican:
username: barbican-rabbitmq-user username: barbican-rabbitmq-user
password: ${BARBICAN_RABBITMQ_USER_PASSWORD} password: ${BARBICAN_RABBITMQ_USER_PASSWORD}
hosts:
default: barbican-rabbitmq
labels: labels:
api: api:
node_selector_key: openstack-control-plane node_selector_key: openstack-control-plane
@ -1497,6 +1138,16 @@ data:
- memcached - memcached
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
metadata:
schema: metadata/Document/v1
name: deploy-rabbitmq
data:
description: "Rabbitmq"
sequenced: True
chart_group:
- rabbitmq
---
schema: armada/ChartGroup/v1
metadata: metadata:
schema: metadata/Document/v1 schema: metadata/Document/v1
name: openstack-keystone name: openstack-keystone
@ -1504,7 +1155,6 @@ data:
description: "Deploy keystone" description: "Deploy keystone"
sequenced: True sequenced: True
chart_group: chart_group:
- keystone-rabbitmq
- keystone - keystone
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
@ -1515,7 +1165,6 @@ data:
description: "Deploy glance" description: "Deploy glance"
sequenced: True sequenced: True
chart_group: chart_group:
- glance-rabbitmq
- glance - glance
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
@ -1536,7 +1185,6 @@ data:
description: "Deploy cinder" description: "Deploy cinder"
sequenced: True sequenced: True
chart_group: chart_group:
- cinder-rabbitmq
- cinder - cinder
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
@ -1549,9 +1197,7 @@ data:
chart_group: chart_group:
- libvirt - libvirt
- openvswitch - openvswitch
- nova-rabbitmq
- nova - nova
- neutron-rabbitmq
- neutron - neutron
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
@ -1562,7 +1208,6 @@ data:
description: "Deploy heat" description: "Deploy heat"
sequenced: True sequenced: True
chart_group: chart_group:
- heat-rabbitmq
- heat - heat
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
@ -1573,7 +1218,6 @@ data:
description: "Deploy barbican" description: "Deploy barbican"
sequenced: True sequenced: True
chart_group: chart_group:
- barbican-rabbitmq
- barbican - barbican
--- ---
schema: armada/ChartGroup/v1 schema: armada/ChartGroup/v1
@ -1597,6 +1241,7 @@ data:
- openstack-ceph-config - openstack-ceph-config
- deploy-mariadb - deploy-mariadb
- deploy-memcached - deploy-memcached
- deploy-rabbitmq
- openstack-keystone - openstack-keystone
- openstack-radosgw - openstack-radosgw
- openstack-glance - openstack-glance