Skip to content

Commit

Permalink
Fix nova ffu svc
Browse files Browse the repository at this point in the history
Signed-off-by: Bohdan Dobrelia <[email protected]>
  • Loading branch information
bogdando committed Nov 13, 2023
1 parent b90772e commit 96cb19c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 86 deletions.
47 changes: 4 additions & 43 deletions docs/openstack/edpm_adoption.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,46 +334,6 @@ later on.
> **NOTE**: Additional orchestration happening around the FFU workarounds
> configuration for Nova compute EDPM service is a subject of future changes.
* Configure pre-FFU workarounds for Nova compute EDPM services to update its version records:
```yaml
oc apply -f - <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: nova-compute-workarounds
namespace: openstack
data:
19-nova-compute-cell1-workarounds.conf: |
[workarounds]
disable_compute_service_check_for_ffu=true
EOF
oc apply -f - <<EOF
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
name: nova-compute-workarounds
namespace: openstack
spec:
label: nova.compute.workarounds
configMaps:
- nova-compute-workarounds
playbook: osp.edpm.nova
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: openstack-nova-compute-workarounds
namespace: openstack
spec:
nodeSets:
- openstack
servicesOverride:
- nova-compute-workarounds
EOF
```
* Wait for cell1 Nova compute EDPM services version updated (it may take some time):
```bash
Expand Down Expand Up @@ -455,9 +415,7 @@ later on.
20-nova-compute-cell1-ffu-cleanup.conf: |
[workarounds]
disable_compute_service_check_for_ffu=false
EOF
oc apply -f - <<EOF
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
Expand All @@ -467,6 +425,9 @@ later on.
label: nova.compute.ffu
configMaps:
- nova-compute-ffu
configSecrets:
- nova-cell1-compute-config
- nova-migration-ssh-key
playbook: osp.edpm.nova
---
apiVersion: dataplane.openstack.org/v1beta1
Expand Down
47 changes: 4 additions & 43 deletions tests/roles/dataplane_adoption/tasks/nova_ffu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,6 @@
name: mariadb_copy
tasks_from: env_vars_dst.yaml

- name: configure pre-FFU workarounds for Nova compute EDPM services to update its version records
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
oc apply -f - <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: nova-compute-workarounds
namespace: openstack
data:
19-nova-compute-cell1-workarounds.conf: |
[workarounds]
disable_compute_service_check_for_ffu=true
EOF
oc apply -f - <<EOF
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
name: nova-compute-workarounds
namespace: openstack
spec:
label: nova.compute.workarounds
configMaps:
- nova-compute-workarounds
playbook: osp.edpm.nova
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: openstack-nova-compute-workarounds
namespace: openstack
spec:
nodeSets:
- openstack
servicesOverride:
- nova-compute-workarounds
EOF
- name: wait for cell1 Nova compute EDPM services version updated
ansible.builtin.shell: |
{{ shell_header }}
Expand Down Expand Up @@ -111,9 +71,7 @@
20-nova-compute-cell1-ffu-cleanup.conf: |
[workarounds]
disable_compute_service_check_for_ffu=false
EOF
oc apply -f - <<EOF
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
Expand All @@ -123,6 +81,9 @@
label: nova.compute.ffu
configMaps:
- nova-compute-ffu
configSecrets:
- nova-cell1-compute-config
- nova-migration-ssh-key
playbook: osp.edpm.nova
---
apiVersion: dataplane.openstack.org/v1beta1
Expand Down

0 comments on commit 96cb19c

Please sign in to comment.