RETIRED, further work has moved to Debian project infrastructure
Go to file
Tomoki Sekiyama 06b5167f4f optimize multipath call to identify IQN
When detaching a multipath volume in an environment where there
are many attached volumes, excessive multipath calls are
generated and it takes too much time. This issue is due to the
fact that a multipath -ll call against many multipath devices
takes a few seconds.

When detaching a volume, _disconnect_volume_multipath_iscsi()
calls 'multipath -ll <each iscsi device>' against every iscsi
devices. This behavior is to identify the IQNs used by multipath
device, however the IQNs are extracted from one 'multipath -ll'
call without massive 'multipath -ll <each iscsi device>' calls.

This patch changes the behavior of identifying IQNs used by
multipath device:
 1. add an utility to identify IQNs by using multipath device map
    (/dev/sdX => /dev/mapper/XXX) generated by 'multipath -ll'.
 2. replace the current nested for loop to identify the IQNs with
    the utility.

(Ported from I77e6eda950726d7ee9a0d92882d4501e70a0d8f8)

Change-Id: I1e5e9eba58a349509e80654ab3058c4ff5d00c0d
Co-Authored-By: Keiichi KII <k-keiichi@bx.jp.nec.com>
Closes-Bug: #1456480
2015-06-11 18:37:48 -04:00
doc/source Preparing for the 0.1.1 release 2015-05-19 12:19:10 -07:00
os_brick optimize multipath call to identify IQN 2015-06-11 18:37:48 -04:00
.coveragerc Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
.gitignore Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
.gitreview Correct project name in .gitreview 2015-03-18 13:00:51 +01:00
.mailmap Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
.testr.conf Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
CONTRIBUTING.rst Update the documentation for os-brick 2015-02-19 14:37:13 -08:00
HACKING.rst Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
LICENSE Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
MANIFEST.in Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
README.rst Update README to work with release tools 2015-04-21 08:28:50 -07:00
babel.cfg Created the Brick library from Cinder 2015-01-22 19:09:30 +00:00
openstack-common.conf Use oslo_log instead of openstack.common.log 2015-04-15 14:09:55 -05:00
requirements.txt Updated from global requirements 2015-06-03 17:38:07 +00:00
setup.cfg renamed the project to os-brick 2015-02-05 23:58:37 +00:00
setup.py Updated from global requirements 2015-05-13 15:58:23 +00:00
test-requirements.txt Updated from global requirements 2015-05-13 15:58:23 +00:00
tox.ini renamed the project to os-brick 2015-02-05 23:58:37 +00:00

README.rst

brick

OpenStack Cinder brick library for managing local volume attaches

Features

  • Discovery of volumes being attached to a host for many transport protocols.
  • Removal of volumes from a host.
For any other imformation, refer to the parent project, Cinder:

https://github.com/openstack/cinder