File tree Expand file tree Collapse file tree
tests/roles/cinder_adoption/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 retries : 60
1515 delay : 2
1616
17+ - name : Get cinder-api pod name
18+ ansible.builtin.shell : |
19+ {{ shell_header }}
20+ {{ oc_header }}
21+ oc get pods -l component=cinder-api -o custom-columns="NAME:.metadata.name" --no-headers | head -1
22+ register : cinder_api_pod
23+
1724- name : check that Cinder is reachable and its endpoints are defined
1825 ansible.builtin.shell : |
1926 {{ shell_header }}
3744 ansible.builtin.shell : |
3845 {{ shell_header }}
3946 {{ oc_header }}
40- oc exec -t cinder-api-0 -c cinder-api -- cinder-manage service remove cinder-backup "{{ item }}"
47+ oc exec -t "{{ cinder_api_pod.stdout }}" -c cinder-api -- cinder-manage service remove cinder-backup "{{ item }}"
4148 loop : " {{ backup_down_services.stdout_lines }}"
4249
4350- name : Get cinder-scheduler down services
5158 ansible.builtin.shell : |
5259 {{ shell_header }}
5360 {{ oc_header }}
54- oc exec -t cinder-api-0 -c cinder-api -- cinder-manage service remove cinder-scheduler "{{ item }}"
61+ oc exec -t "{{ cinder_api_pod.stdout }}" -c cinder-api -- cinder-manage service remove cinder-scheduler "{{ item }}"
5562 loop : " {{ scheduler_down_services.stdout_lines }}"
5663
5764- name : deploy podified Cinder scheduler
137144 ansible.builtin.shell : |
138145 {{ shell_header }}
139146 {{ oc_header }}
140- oc exec -t cinder-api-0 -c cinder-api -- cinder-manage db online_data_migrations
147+ oc exec -t "{{ cinder_api_pod.stdout }}" -c cinder-api -- cinder-manage db online_data_migrations
You can’t perform that action at this time.
0 commit comments