Skip to content

Commit

Permalink
Merge pull request #376 from SeanMooney/remove-extra-nova-ffu-service
Browse files Browse the repository at this point in the history
do not create a seperate nova service for post ffu
  • Loading branch information
fao89 authored Mar 25, 2024
2 parents 757faba + 50e8b72 commit 3532ee4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 39 deletions.
20 changes: 3 additions & 17 deletions docs_user/modules/openstack-edpm_adoption.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -584,28 +584,14 @@ oc apply -f - <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: nova-compute-ffu
name: nova-compute-extraconfig
namespace: openstack
data:
20-nova-compute-cell1-ffu-cleanup.conf: |
20-nova-compute-cell1-workarounds.conf: |
[workarounds]
disable_compute_service_check_for_ffu=false
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
name: nova-compute-ffu
namespace: openstack
spec:
label: nova.compute.ffu
configMaps:
- nova-compute-ffu
secrets:
- nova-cell1-compute-config
- nova-migration-ssh-key
playbook: osp.edpm.nova
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: openstack-nova-compute-ffu
Expand All @@ -614,7 +600,7 @@ spec:
nodeSets:
- openstack
servicesOverride:
- nova-compute-ffu
- nova-compute-extraconfig
EOF
----

Expand Down
50 changes: 28 additions & 22 deletions tests/roles/dataplane_adoption/tasks/nova_ffu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nova-compute-ffu
name: nova-compute-extraconfig
namespace: openstack
data:
20-nova-compute-cell1-ffu-cleanup.conf: |
20-nova-compute-cell1-workarounds.conf: |
[workarounds]
disable_compute_service_check_for_ffu=false
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
name: nova-compute-ffu
namespace: openstack
spec:
label: nova.compute.ffu
configMaps:
- nova-compute-ffu
secrets:
- nova-cell1-compute-config
- nova-migration-ssh-key
playbook: osp.edpm.nova
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: openstack-nova-compute-ffu
Expand All @@ -95,18 +81,38 @@
nodeSets:
- openstack
servicesOverride:
- nova-compute-ffu
- nova-compute-extraconfig
EOF
- name: wait for Nova compute EDPM services to become ready
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
oc wait --for condition=Ready osdpd/openstack-nova-compute-ffu --timeout=5m
register: nova_ffu_edpm_result
until: nova_ffu_edpm_result is success
retries: 10
delay: 6
DEPLOYMENT_NAME=openstack-nova-compute-ffu
TRIES=180
DELAY=10
ALLOWED_JOB_RETRIES=3
for i in $(seq $TRIES)
do
ready=$(oc get osdpd/$DEPLOYMENT_NAME -o jsonpath='{.status.conditions[0].status}')
if [ "$ready" == "True" ]; then
echo "Deployment is Ready"
exit 0
else
failed=$(oc get jobs -l osdpd=$DEPLOYMENT_NAME -o jsonpath="{.items[?(@.status.failed > $ALLOWED_JOB_RETRIES)].metadata.name}")
if [ ! -z "${failed}" ]; then
echo "There are failed AnsibleEE jobs: $failed"
exit 1
fi
fi
sleep $DELAY
done
echo "Run out of retries"
exit 2
- name: run Nova DB migrations to complete Wallaby->antelope FFU
ansible.builtin.shell: |
Expand Down

0 comments on commit 3532ee4

Please sign in to comment.