os-brick/os_brick/initiator
Gorka Eguileor f821a87ef0 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
(cherry picked from commit 4ee404466d)
2018-12-04 15:06:03 +00:00
..
connectors Fixing FC scanning 2018-12-04 15:06:03 +00:00
windows Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
__init__.py Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
connector.py Merge "Refactor iSCSI disconnect" 2017-06-15 23:12:38 +00:00
host_driver.py Fix race in check and access of /dev/disk/by-path/ 2015-07-28 18:30:06 +02:00
initiator_connector.py Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
linuxfc.py Fixing FC scanning 2018-12-04 15:06:03 +00:00
linuxrbd.py Remove log translations 2017-03-22 09:19:01 +08:00
linuxscsi.py Fix multipath disconnect with path failure 2018-08-21 21:46:25 -05:00
linuxsheepdog.py Remove unused LOG to keep code clean 2016-07-09 10:17:48 +08:00