Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pre/post Ceph servicesOverride in uni05epsilon HCI #358

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/dt/uni05epsilon/dataplane-post-ceph.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,12 @@ Wait for post-Ceph dataplane deployment to finish.
```bash
oc wait osdpd edpm-deployment-post-ceph --for condition=Ready --timeout=40m
```

## Final OpenStackDataPlaneNodeSet services list

The `OpenStackDataPlaneNodeSet` must contain the full `services` list
so that during updates all required services are updated. Thus, the
pre-ceph and post-ceph deployments used a `servicesOverride` so that
only a subset of the services would be configured either before or
after Ceph was deployed. Any subsequent deployments should not pass a
`servicesOverride` unless necessary.
13 changes: 13 additions & 0 deletions examples/dt/uni05epsilon/deployment/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ components:

resources:
- values.yaml

replacements:
- source:
kind: ConfigMap
name: edpm-deployment-values-post-ceph
fieldPath: data.servicesOverride
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- spec.servicesOverride
options:
create: true
7 changes: 7 additions & 0 deletions examples/dt/uni05epsilon/deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ metadata:
data:
deployment:
name: edpm-deployment-post-ceph
servicesOverride:
- install-certs
- ceph-client
- ovn
- neutron-metadata
- libvirt
- nova-custom
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ components:

resources:
- values.yaml

replacements:
- source:
kind: ConfigMap
name: edpm-deployment-values
fieldPath: data.servicesOverride
targets:
- select:
kind: OpenStackDataPlaneDeployment
fieldPaths:
- spec.servicesOverride
options:
create: true
11 changes: 11 additions & 0 deletions examples/dt/uni05epsilon/edpm-pre-ceph/deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ metadata:
data:
deployment:
name: edpm-deployment-pre-ceph
servicesOverride:
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
- ceph-hci-pre
- configure-os
- ssh-known-hosts
- run-os
- reboot-os
9 changes: 8 additions & 1 deletion examples/dt/uni05epsilon/edpm-pre-ceph/nodeset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ data:
subnetName: subnet1
- name: tenant
subnetName: subnet1

# The nova-custom service is omitted since it is not yet
# defined. It will be defined and set after Ceph is deployed.
# See deployment servicesOverride for effective services list.
services:
- bootstrap
- download-cache
Expand All @@ -163,3 +165,8 @@ data:
- ssh-known-hosts
- run-os
- reboot-os
- install-certs
- ceph-client
- ovn
- neutron-metadata
- libvirt
10 changes: 10 additions & 0 deletions examples/dt/uni05epsilon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ data:

nodeset:
services:
- bootstrap
- download-cache
- configure-network
- validate-network
- install-os
- ceph-hci-pre
- configure-os
- ssh-known-hosts
- run-os
- reboot-os
- install-certs
- ceph-client
- ovn
Expand Down