|
33 | 33 | when:
|
34 | 34 | - cifmw_update_control_plane_check | bool
|
35 | 35 | - not cifmw_update_run_dryrun | bool
|
36 |
| - ansible.builtin.shell: | |
37 |
| - {{ cifmw_update_artifacts_basedir }}/control_plane_test_start.sh |
| 36 | + |
| 37 | + block: |
| 38 | + - name: Prevent updating openstackclient during openstack update |
| 39 | + ansible.builtin.include_tasks: prevent_openstack_client_update.yml |
| 40 | + |
| 41 | + - name: Start the continuous control plane test |
| 42 | + ansible.builtin.shell: | |
| 43 | + {{ cifmw_update_artifacts_basedir }}/control_plane_test_start.sh |
38 | 44 |
|
39 | 45 |
|
40 | 46 | - name: Set openstack_update_run Makefile environment variables
|
|
72 | 78 | when:
|
73 | 79 | - cifmw_update_control_plane_check | bool
|
74 | 80 | - not cifmw_update_run_dryrun | bool
|
75 |
| - ansible.builtin.command: | |
76 |
| - {{ cifmw_update_artifacts_basedir }}/control_plane_test_stop.sh |
| 81 | + |
| 82 | + block: |
| 83 | + - name: Stop the continuous control plane test |
| 84 | + ansible.builtin.command: | |
| 85 | + {{ cifmw_update_artifacts_basedir }}/control_plane_test_stop.sh |
| 86 | +
|
| 87 | + - name: Patch openstackversion to trigger update of openstackclient |
| 88 | + environment: |
| 89 | + KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}" |
| 90 | + PATH: "{{ cifmw_path }}" |
| 91 | + ansible.builtin.shell: > |
| 92 | + oc patch -n {{ cifmw_update_namespace }} |
| 93 | + openstackversion/controlplane --type=json |
| 94 | + --patch '[{ "op": "remove", "path": "/spec/customContainerImages/openstackClientImage" }]' |
77 | 95 |
|
78 | 96 | - name: Reboot the compute nodes
|
79 | 97 | ansible.builtin.include_tasks: reboot_computes.yml
|
|
0 commit comments