daa803b8ee
The LVM driver assumes that all connecting hosts will have the iSCSI initiator installed and configured. If they don't, then there won't be an "initiator" key in the connector properties dictionary and the call to terminate connection will always fail with a KeyError exception on the 'initiator' key. This is the case if we don't have iSCSI configured on the computes because we are only using NVMe-oF volumes with the nvmet target. This patch starts using the dictionary ``get`` method so there is no failure even when the keys don't exist, and it also differentiates by target type so they target the identifier they care about, which is the ``initiator`` for iSCSI and ``nqn`` for NVMe-oF. Closes-Bug: #1966513 Related-Bug: #1786327 Change-Id: Ie967a42188bd020178cb7af527e3dd3ab8975a3d
Release notes
The release notes for a patch should be included in the patch. The intended audience for release notes include deployers, administrators and end-users.
A release note is required if the patch has upgrade or API impact. It is also required if the patch adds a feature or fixes a long-standing or security bug.
Please see https://docs.openstack.org/cinder/latest/contributor/releasenotes.html for more details.