]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
iscsi: Fix crashes during rolling update
authorMike Christie <mchristi@redhat.com>
Tue, 28 Jan 2020 22:31:55 +0000 (16:31 -0600)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 31 Jan 2020 16:15:36 +0000 (11:15 -0500)
commit77f3b5d51b84a6338847c5f6a93f22a3a6a683d2
tree7c4e0a4fed416167db57add8434d22544f8360e8
parent9b40a959b9c42abb8b98ec0a0e458203b6331314
iscsi: Fix crashes during rolling update

During a rolling update we will run the ceph iscsigw tasks that start
the daemons then run the configure_iscsi.yml tasks which can create
iscsi objects like targets, disks, clients, etc. The problem is that
once the daemons are started they will accept confifguration requests,
or may want to update the system themself. Those operations can then
conflict with the configure_iscsi.yml tasks that setup objects and we
can end up in crashes due to the kernel being in a unsupported state.

This could also happen during creation, but is less likely due to no
objects being setup yet, so there are no watchers or users accessing the
gws yet. The fix in this patch works for both update and initial setup.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1795806

Signed-off-by: Mike Christie <mchristi@redhat.com>
roles/ceph-iscsi-gw/tasks/main.yml
roles/ceph-iscsi-gw/tasks/non-container/postrequisites.yml [new file with mode: 0644]
roles/ceph-iscsi-gw/tasks/non-container/prerequisites.yml