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

Removing TripleO service before adoption #470

Merged
merged 1 commit into from
Jun 3, 2024
Merged
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
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
Loading