Cinder API supports os-force_detach, which once invoked can call the
driver finalize_connection passing a 'None' connector. When receiving
this, the driver should handle this call by terminating every
connection between the specified volume and any host it is mapped to.
This patch fixes this behavior for NetApp ONTAP iSCSI and FC drivers.
Closes-bug: #1783582
(cherry picked from commit I2a55961b62297f0fa4e678929f69cafc5aa17bd9)
Reviewed: https:/ /review. openstack. org/592769 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=93399a32bf9 94a3129a798be72 f27a9731cb2750
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 93399a32bf994a3 129a798be72f27a 9731cb2750
Author: Erlon R. Cruz <email address hidden>
Date: Mon Jul 23 16:34:47 2018 -0300
NetApp ONTAP: Fix driver force detach operations
Cinder API supports os-force_detach, which once invoked can call the
driver finalize_connection passing a 'None' connector. When receiving
this, the driver should handle this call by terminating every
connection between the specified volume and any host it is mapped to.
This patch fixes this behavior for NetApp ONTAP iSCSI and FC drivers.
Closes-bug: #1783582 0fa4e678929f69c afc5aa17bd9)
(cherry picked from commit I2a55961b62297f
Change-Id: Id3ad0fb4ea46d0 9033435641f39af 04cbffea77f