Skip to content

Commit

Permalink
roles/ci_dcn_site: Add multicell to DCN DT
Browse files Browse the repository at this point in the history
One dedicated cell per site is being deployed with dedicated
rabbitmw, Galera and nova services. The nova service and
neutron-metadata service are pointed to their dedicated cell
per DCN site.
  • Loading branch information
krcmarik authored and openshift-merge-bot[bot] committed Nov 13, 2024
1 parent 8b6ac8a commit 484b633
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 12 deletions.
14 changes: 7 additions & 7 deletions roles/ci_dcn_site/tasks/post-ceph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Render the post-ceph values.yaml
ansible.builtin.template:
mode: "0644"
backup: true
src: "templates/values.yaml.j2"
dest: "{{ ci_dcn_site_arch_path }}/values.yaml"

- name: Find all ceph variable files
register: _ceph_vars_files
ansible.builtin.find:
Expand Down Expand Up @@ -54,6 +47,13 @@
ansible.builtin.set_fact:
ci_dcn_site_glance_map: "{{ ci_dcn_site_glance_map | combine( { item: ['az0', item ] } ) }}"

- name: Render the post-ceph values.yaml
ansible.builtin.template:
mode: "0644"
backup: true
src: "templates/values.yaml.j2"
dest: "{{ ci_dcn_site_arch_path }}/values.yaml"

- name: Render ceph secret for this _az
when: _az != "az0"
vars:
Expand Down
2 changes: 1 addition & 1 deletion roles/ci_dcn_site/templates/deployment/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ data:
- install-certs
- ceph-client
- ovn
- neutron-metadata
- neutron-metadata-cell{{ _all_azs | length }}
- libvirt
- nova-custom-ceph-{{ _az }}
63 changes: 63 additions & 0 deletions roles/ci_dcn_site/templates/service-values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ data:
rbd_secret_uuid = {{ _ceph.cifmw_ceph_client_fsid }}
rbd_cluster_name = {{ _ceph.cifmw_ceph_client_cluster }}
backend_availability_zone = {{ _ceph.cifmw_ceph_client_cluster }}
{% endfor %}
galera:
templates:
openstack:
replicas: 1
secret: osp-secret
storageRequest: 5G
{% for index in range(1, _all_azs | length + 1) %}
openstack-cell{{ index }}:
replicas: 1
secret: osp-secret
storageRequest: 5G
{% endfor %}
glance:
keystoneEndpoint: az0
Expand Down Expand Up @@ -112,6 +124,57 @@ data:
customServiceConfig: |
[DEFAULT]
default_schedule_zone=az0
metadataServiceTemplate:
enabled: false
cellTemplates:
cell0:
cellDatabaseAccount: nova-cell0
hasAPIAccess: true
{% for index in range(1, _all_azs | length + 1) %}
cell{{ index }}:
cellDatabaseInstance: openstack-cell{{ index }}
cellDatabaseAccount: nova-cell{{ index }}
cellMessageBusInstance: rabbitmq-cell{{ index }}
conductorServiceTemplate:
replicas: 1
hasAPIAccess: true
metadataServiceTemplate:
enabled: true
override:
service:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/allow-shared-ip: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.8{{ index }}
spec:
type: LoadBalancer
replicas: 3
{% endfor %}
rabbitmq:
templates:
rabbitmq:
override:
service:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.85
spec:
type: LoadBalancer
replicas: 3
{% for index in range(1, _all_azs | length + 1) %}
rabbitmq-cell{{ index }}:
override:
service:
metadata:
annotations:
metallb.universe.tf/address-pool: internalapi
metallb.universe.tf/loadBalancerIPs: 172.17.0.8{{ 5 + index }}
spec:
type: LoadBalancer
replicas: 3
{% endfor %}
extraMounts:
- name: v1
region: r1
Expand Down
16 changes: 12 additions & 4 deletions roles/ci_dcn_site/templates/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# source: dcn/values.yaml.j2
apiVersion: v1
data:
customDataplanService:
name: nova-custom-ceph-{{ _az }}
nodeset_name: {{ _group_name }}-edpm
ceph_conf:
{% for _file in _ceph_files %}
Expand All @@ -23,10 +21,12 @@ data:
- install-certs
- ceph-client
- ovn
- neutron-metadata
- neutron-metadata-cell{{ _all_azs | length }}
- libvirt
- nova-custom-ceph-{{ _az }}
nova:
customDataplaneService:
name: nova-custom-ceph-{{ _az }}
ceph:
conf: |
[libvirt]
Expand All @@ -49,9 +49,17 @@ data:
- configMapRef:
name: ceph-nova-{{ _az }}
- secretRef:
name: nova-cell1-compute-config
name: nova-cell{{ _all_azs | length }}-compute-config
- secretRef:
name: nova-migration-ssh-key
neutron-metadata:
customDataplaneService:
name: neutron-metadata-cell{{ _all_azs | length }}
dataSources:
- secretRef:
name: neutron-ovn-metadata-agent-neutron-config
- secretRef:
name: nova-cell{{ _all_azs | length }}-metadata-neutron-config
kind: ConfigMap
metadata:
annotations:
Expand Down

0 comments on commit 484b633

Please sign in to comment.