]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
iscsi: Fix crashes during rolling update v3.2.39
authorMike Christie <mchristi@redhat.com>
Tue, 28 Jan 2020 22:31:55 +0000 (16:31 -0600)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Feb 2020 14:15:53 +0000 (15:15 +0100)
commitc2a93974742c24ab0fcdcd1651a3b2dde63ddf1c
tree3f4511ac6f6c7a1fb4c3a393d790d51eb0d0baf9
parentb7a21d94d365c4920716757e481f9fa790bc0273
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>
(cherry picked from commit 77f3b5d51b84a6338847c5f6a93f22a3a6a683d2)
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