Skip to content

Commit

Permalink
Adapt to having separate DB for cell1 by default
Browse files Browse the repository at this point in the history
The nova-operator will switch to cell1 having a separate MariaDB
instance. This PR prepares for it by pre-creating the openstack-cell1
MariaDB or Galera instance.

The collapsed_cell sample is the only one that kept back to use a single
DB and single RabbitMQ for the whole nova deployment.
  • Loading branch information
gibizer committed Apr 5, 2023
1 parent c208610 commit 9af7f35
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 130 deletions.
9 changes: 9 additions & 0 deletions config/samples/core_v1beta1_openstackcontrolplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
openstack:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
openstack-cell1:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
galera:
enabled: false
templates:
Expand All @@ -24,6 +27,12 @@ spec:
storageRequest: 500M
secret: osp-secret
replicas: 1
openstack-cell1:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageClass: local-storage
storageRequest: 500M
secret: osp-secret
replicas: 1
rabbitmq:
templates:
rabbitmq:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ spec:
hasAPIAccess: true
cell1:
cellDatabaseUser: nova_cell1
cellDatabaseInstance: openstack
cellMessageBusInstance: rabbitmq
conductorServiceTemplate:
replicas: 1
hasAPIAccess: true
Expand Down
9 changes: 9 additions & 0 deletions config/samples/core_v1beta1_openstackcontrolplane_galera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
openstack:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
openstack-cell1:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
galera:
enabled: true
templates:
Expand All @@ -25,6 +28,12 @@ spec:
storageRequest: 500M
secret: osp-secret
replicas: 1
openstack-cell1:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageClass: local-storage
storageRequest: 500M
secret: osp-secret
replicas: 1
rabbitmq:
templates:
rabbitmq:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spec:
openstack:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
openstack-cell1:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
memcached:
enabled: true
templates:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ spec:
openstack:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
openstack-cell1:
containerImage: quay.io/tripleozedcentos9/openstack-mariadb:current-tripleo
storageRequest: 500M
memcached:
enabled: true
templates:
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
resources:
- core_v1beta1_openstackcontrolplane.yaml
- core_v1beta1_openstackcontrolplane_collapsed_cell.yaml
- core_v1beta1_openstackcontrolplane_separate_cell_db.yaml
- core_v1beta1_openstackcontrolplane_network_isolation.yaml
#+kubebuilder:scaffold:manifestskustomizesamples

0 comments on commit 9af7f35

Please sign in to comment.