mirror of https://github.com/ceph/ceph-ansible.git
rolling_update: restart all ceph-iscsi services
Currently only rbd-target-gw service is restarted during an update.
We also need to restart tcmu-runner and rbd-target-api services
during the ceph iscsi upgrade.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1659611
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit f1048627ea
)
pull/3917/merge
parent
e29a8a1f31
commit
92340d049c
|
@ -765,15 +765,18 @@
|
||||||
# failed_when: false is here so that if we upgrade
|
# failed_when: false is here so that if we upgrade
|
||||||
# from a version of ceph that does not have iscsi gws
|
# from a version of ceph that does not have iscsi gws
|
||||||
# then this task will not fail
|
# then this task will not fail
|
||||||
- name: stop rbd-target-gw
|
- name: stop ceph iscsi services
|
||||||
systemd:
|
systemd:
|
||||||
name: rbd-target-gw
|
name: '{{ item }}'
|
||||||
state: stopped
|
state: stopped
|
||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
failed_when: false
|
failed_when: false
|
||||||
when:
|
with_items:
|
||||||
- not containerized_deployment
|
- tcmu-runner
|
||||||
|
- rbd-target-api
|
||||||
|
- rbd-target-gw
|
||||||
|
when: not containerized_deployment
|
||||||
|
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-defaults
|
name: ceph-defaults
|
||||||
|
@ -792,14 +795,17 @@
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-iscsi-gw
|
name: ceph-iscsi-gw
|
||||||
|
|
||||||
- name: start rbd-target-gw
|
- name: start ceph iscsi services
|
||||||
systemd:
|
systemd:
|
||||||
name: rbd-target-gw
|
name: '{{ item }}'
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
masked: no
|
masked: no
|
||||||
when:
|
with_items:
|
||||||
- not containerized_deployment
|
- tcmu-runner
|
||||||
|
- rbd-target-api
|
||||||
|
- rbd-target-gw
|
||||||
|
when: not containerized_deployment
|
||||||
|
|
||||||
|
|
||||||
- name: upgrade ceph client node
|
- name: upgrade ceph client node
|
||||||
|
|
Loading…
Reference in New Issue