Skip to content

Commit

Permalink
Removing TripleO service before adoption
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Podivin <[email protected]>
  • Loading branch information
jpodivin committed May 28, 2024
1 parent ec0f395 commit d2a7f5a
Showing 1 changed file with 59 additions and 59 deletions.
118 changes: 59 additions & 59 deletions tests/roles/dataplane_adoption/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,65 +502,6 @@
echo "Run out of retries"
exit 2
- name: deploy the dataplane deployment
no_log: "{{ use_no_log }}"
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
oc apply -f - <<EOF
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: openstack
spec:
nodeSets:
- openstack
EOF
- name: wait for dataplane node set to be ready
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
DEPLOYMENT_NAME=openstack
TRIES=360
DELAY=30
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 openstackdataplanedeployment=$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
register: osdpd_running_result

- name: Complete Nova services Wallaby->Antelope FFU
ansible.builtin.include_tasks:
file: nova_ffu.yaml

- name: Adopted Nova FFU post-checks
ansible.builtin.include_tasks:
file: nova_verify.yaml

- name: Adopted Neutron and OVN agents post-checks
ansible.builtin.include_tasks:
file: neutron_verify.yaml

- name: Remove leftover OOO services
block:
- name: Create OpenStackDataPlaneService/tripleo-cleanup
Expand Down Expand Up @@ -623,3 +564,62 @@
echo "Run out of retries"
exit 2
- name: deploy the dataplane deployment
no_log: "{{ use_no_log }}"
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
oc apply -f - <<EOF
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
metadata:
name: openstack
spec:
nodeSets:
- openstack
EOF
- name: wait for dataplane node set to be ready
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
DEPLOYMENT_NAME=openstack
TRIES=360
DELAY=30
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 openstackdataplanedeployment=$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
register: osdpd_running_result

- name: Complete Nova services Wallaby->Antelope FFU
ansible.builtin.include_tasks:
file: nova_ffu.yaml

- name: Adopted Nova FFU post-checks
ansible.builtin.include_tasks:
file: nova_verify.yaml

- name: Adopted Neutron and OVN agents post-checks
ansible.builtin.include_tasks:
file: neutron_verify.yaml

0 comments on commit d2a7f5a

Please sign in to comment.