Cinder microversion 3.69 adds an additional value to shared_targets
beyond true and false. Now null/None is also a valid value that can be
used to force locking.
So we now have 3 possible values:
- True ==> Lock if iSCSI initiator doesn't support manual scans
- False ==> Never lock.
- None ==> Always lock.
This patch updates the guard_connection context manager to support the
3 possible values.
With this Cinder can now force locking for NVMe-oF drivers that share
subsystems.
Reviewed: https:/ /review. opendev. org/c/openstack /os-brick/ +/836063 /opendev. org/openstack/ os-brick/ commit/ 1cb6d3e1f16d9bd 63186fe1e7fcf70 6d084fa992
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1cb6d3e1f16d9bd 63186fe1e7fcf70 6d084fa992
Author: Gorka Eguileor <email address hidden>
Date: Wed May 11 12:15:27 2022 +0200
Support shared_targets tristate value
Cinder microversion 3.69 adds an additional value to shared_targets
beyond true and false. Now null/None is also a valid value that can be
used to force locking.
So we now have 3 possible values:
- True ==> Lock if iSCSI initiator doesn't support manual scans
- False ==> Never lock.
- None ==> Always lock.
This patch updates the guard_connection context manager to support the
3 possible values.
With this Cinder can now force locking for NVMe-oF drivers that share
subsystems.
Closes-Bug: #1961102 27ac700b1d8796f e0489fd7c0a 4cefbbbdaff6ddc 61e3828b1f1
Depends-On: I8cda6d9830f39e
Change-Id: Id872543ce08c93