cinder/cinder
Lee Yarwood d0b59152ed lvm: Avoid premature calls to terminate_connection for muiltiattach vols
Previously the LVM volume driver would always call termiante_connection
on the configured target driver regardless of of the associated volume
being attached to multiple instances on the same host. This isn't an
issue for the tgt target driver used by upstream CI as this call is a
noop but does cause the lioadm driver to prematurely remove specific
host ACLs for volumes that are still being used.

This change introduces a simple check to ensure that the target driver
is only called when a single attachment remains that is in turn using
the connector provided by the caller.

Finally as a result of this bugfix the changes introduced by
I84f607de13bc17b00609ad37121d8678f7f4a920 to disable the multiattach
feature when using the lioadm target driver are removed.

Closes-bug: #1786327
Change-Id: Ib5aa1b7578f7d3200185566ff5f8634dd519d020
2018-11-09 20:16:05 +00:00
..
api Merge "Forbidden to revert volume to a different size snapshot" 2018-10-26 17:44:51 +00:00
backup PY3: Ensure rados.Object.read/write use byte data 2018-10-23 10:36:56 -04:00
brick Remove udevadm from rootwrap 2018-09-18 11:36:08 -04:00
cmd Merge "Fix non iSCSI attach serialization" 2018-11-02 08:42:20 +00:00
common Enable split logging for cinder-glanceclient interaction 2018-07-11 14:38:04 +05:30
compute Add user messages for extend volume operation 2018-06-01 09:12:07 +08:00
db Merge "Add column only when it doesn't exist" 2018-10-26 17:20:37 +00:00
group Fix wrong uuid recognized when create group 2018-10-08 09:51:02 +08:00
hacking Fix pylint warning 2018-09-26 21:37:25 -04:00
image Handling unexpected python error "NoneType object is not iterable" 2018-10-17 20:04:14 +00:00
interface Make scheduler check online_extend_support capability 2018-06-26 14:42:34 -03:00
keymgr Handle migrating encryption key IDs in Backup table 2018-04-03 12:23:38 -04:00
locale Imported Translations from Zanata 2018-10-26 08:21:28 +00:00
message Set user message on volume create failure 2018-10-26 05:27:36 -04:00
objects Merge "Add tests for multiattach check in cinder.objects" 2018-10-10 03:42:51 +00:00
policies Merge "Add policy granularity to the encryption API" 2018-09-25 08:55:32 +00:00
privsep Remove touch command from volume.filters 2018-10-18 13:19:42 +00:00
scheduler Get rid of keys() usage 2018-09-21 11:07:07 -04:00
tests lvm: Avoid premature calls to terminate_connection for muiltiattach vols 2018-11-09 20:16:05 +00:00
transfer [Optimize] Use OVO when retrieve volume object 2018-09-19 11:43:32 +08:00
volume lvm: Avoid premature calls to terminate_connection for muiltiattach vols 2018-11-09 20:16:05 +00:00
wsgi Initialize osprofiler in WSGI application 2018-01-09 14:06:34 +01:00
zonemanager FC: refactor fczm utils decorators to functions 2018-04-16 16:23:59 -07:00
__init__.py
context.py Add Keystone v3 domain information to context 2018-04-25 09:29:33 -04:00
coordination.py Remove deprecated heartbeat options 2017-10-03 14:41:18 -05:00
exception.py Handling unexpected python error "NoneType object is not iterable" 2018-10-17 20:04:14 +00:00
flow_utils.py
i18n.py Replace http with https for doc links in cinder 2017-10-17 11:14:01 +08:00
manager.py Allow configuring tpool size 2018-03-08 15:59:29 +01:00
opts.py Restructure Huawei driver 2018-10-16 15:00:16 -05:00
policy.py Add policy granularity to the encryption API 2018-08-15 09:22:25 -05:00
quota_utils.py Enable split logging for cinder-keystoneclient interaction 2018-09-26 08:53:30 +00:00
quota.py Get rid of keys() usage 2018-09-21 11:07:07 -04:00
rpc.py Remove deprecated oslo_messaging.get_transport 2017-06-13 14:25:38 +07:00
service_auth.py Add service_token for cinder-nova interaction 2017-12-15 12:04:23 +05:30
service.py Use InvalidConfigurationValue instead of InvalidInput 2018-04-11 19:25:48 +08:00
ssh_utils.py Stop a connections leak when freeing an SSHPool 2018-02-14 18:16:55 -06:00
test.py Merge "Get rid of keys() usage" 2018-10-10 13:01:06 +00:00
utils.py Get rid of keys() usage 2018-09-21 11:07:07 -04:00
version.py