os-brick/os_brick
Gorka Eguileor 4ee404466d Fixing FC scanning
Current FC tries to limit the scanning range by detecting the target and
channel, unfortunately this code has a good number of implementation
issues:

- Matching uses local WWNN instead of target's WWPN.
- Not using a shell to run the command, so the * glob won't expand.
- Not using -l on grep command to list file names instead of contents.
- Not making the search case insensitive.

This patch fixes all these issues by using the target's WWPNs instead
-taking into account FC Zone/Access control information if present- and
supporting both possible connection information formats for the WWPNs
(single value or list of values).

Rescan tests have been modified to adhere to unit tests best practices,
where each test case only tests the specific code in the method under
test and mocks everything else.

Closes-Bug: #1664653
Closes-Bug: #1684996
Closes-Bug: #1687607
Change-Id: Ib539f6a3652bab4399c30cd90f326829e839ec02
2017-11-15 12:32:07 +01:00
..
encryptors Merge "encryptors: Delay removal of legacy provider names" 2017-05-28 23:06:02 +00:00
initiator Fixing FC scanning 2017-11-15 12:32:07 +01:00
local_dev Revert "Don't use ignoreskipactivation for thin LVM" 2017-07-05 13:16:38 +00:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Stop ignoring H405 hacking rule in tox 2017-05-24 00:44:57 +02:00
tests Fixing FC scanning 2017-11-15 12:32:07 +01:00
__init__.py doc: Remove cruft from conf.py 2017-08-08 15:44:29 +01:00
exception.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
i18n.py Update and replace http with https for doc links 2017-07-26 02:18:44 +00:00
utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00