|
20 | 20 | tags: |
21 | 21 | - setup |
22 | 22 |
|
23 | | - - name: Patch the openstackversions to use the master containers for aodh and heat |
24 | | - ansible.builtin.shell: |
25 | | - cmd: | |
26 | | - oc patch openstackversions controlplane --type merge --patch-file ci/patch-openstack-versions.yaml |
27 | | - chdir: "{{ fvt_dir }}" |
28 | | - when: "{{ patch_openstackversions | bool }}" |
29 | | - tags: |
30 | | - - setup |
31 | | - |
32 | | - - name: Redeploy the dataplane |
33 | | - ansible.builtin.shell: |
34 | | - cmd: | |
35 | | - oc get osdpd edpm-deployment -oyaml > /tmp/osdpd.yaml |
36 | | - oc delete osdpd edpm-deployment |
37 | | - sleep 10 |
38 | | - oc apply -f /tmp/osdpd.yaml |
39 | | - when: "{{ patch_openstackversions | bool }}" |
40 | | - tags: |
41 | | - - setup |
42 | | - |
43 | 23 | - name: Patch observabilityclient into openstackclient |
44 | 24 | ansible.builtin.shell: |
45 | 25 | cmd: | |
|
50 | 30 | tags: |
51 | 31 | - setup |
52 | 32 |
|
53 | | - - name: Wait until the oscp is resolved the changes to continue |
54 | | - ansible.builtin.shell: |
55 | | - cmd: | |
56 | | - oc get oscp | grep "Setup complete" |
57 | | - retries: 24 |
58 | | - timeout: 5 |
59 | | - until: output.stdout_lines | length == 1 |
60 | | - register: output |
61 | | - when: "{{ patch_openstackversions | bool }}" |
62 | | - tags: |
63 | | - - setup |
64 | | - |
65 | | - - name: Wait until the osdpd is redeployed to continue |
66 | | - ansible.builtin.shell: |
67 | | - cmd: | |
68 | | - oc get osdpd | grep "Setup complete" |
69 | | - retries: 60 |
70 | | - delay: 45 |
71 | | - until: output.stdout_lines | length == 1 |
72 | | - register: output |
73 | | - when: "{{ patch_openstackversions | bool }}" |
74 | | - tags: |
75 | | - - setup |
76 | | - |
77 | 33 | - name: "Run Telemetry Autoscaling tests" |
78 | 34 | ansible.builtin.import_role: |
79 | 35 | name: telemetry_autoscaling |
80 | 36 | ignore_errors: true |
81 | | - |
82 | | - always: |
83 | | - - name: Revert the version update |
84 | | - ansible.builtin.shell: |
85 | | - cmd: | |
86 | | - oc patch openstackversions controlplane --type json -p='[{"op": "replace", "path": "/spec/customContainerImages", "value": {} }]' |
87 | | - when: "{{ patch_openstackversions | bool }}" |
88 | | - |
89 | | - - name: Redeploy the dataplane |
90 | | - ansible.builtin.shell: |
91 | | - cmd: | |
92 | | - oc get osdpd edpm-deployment -oyaml > /tmp/osdpd.yaml |
93 | | - oc delete osdpd edpm-deployment |
94 | | - sleep 10 |
95 | | - oc apply -f /tmp/osdpd.yaml |
96 | | - when: "{{ patch_openstackversions | bool }}" |
97 | | - tags: |
98 | | - - setup |
99 | | - |
0 commit comments