This repo was created by accident, use deb-python-os-brick
instead.
Needed-By: I1ac1a06931c8b6dd7c2e73620a0302c29e605f03
Change-Id: I81894aea69b9d09b0977039623c26781093a397a
This patch changes the RemoteFsClient object to be a child
of the Executor. This enables it to have the same usage of
putils vs. privsep as the rest of os-brick
Change-Id: I89ed43dd87e137b939e141ea6c6c10129763d97a
This patch adds a Windows Fibre Channel connector.
The patch using Windows os-brick connectors in the Hyper-V
Nova driver: https://review.openstack.org/#/c/273504/
Change-Id: Iec263e5d5803fcceb315e17d16d2b154e0214584
Partial-Implements: blueprint os-brick-windows-support
This patch adds a Windows SMBFS connector. Also, a Windows
RemoteFS class is added, being used by this connector, having
a similar interface with the Linux RemoteFS client class.
The patch using Windows os-brick connectors in the Hyper-V
Nova driver: https://review.openstack.org/#/c/273504/
The Windows connector factory function has been removed as it's not
needed anymore.
Change-Id: I0c753a667d58391da7a903d11ab1f4729e68461a
Implements: blueprint os-brick-windows-support
Our tests' mocking is a little messy, we have tests that start a mocking
but don't stop it, others try to stop it but use a mock object instead
of a patcher object, so they don't stop it, and we keep using stopall to
stop the patchings instead of individual stops, and we've seen in Cinder
that this can be problematic.
This patch fixes these issue, most of them just by using base TestCase
mock_object method, and some calling the right stop method (ie:
VolumeEncryptorTestCase).
Change-Id: I545abfa8749e778e923c37e0b908efc578f70619
Fiber Chanel multipath rescan uses wildcards for the host rescan, which
can end up recreating devices that had just been removed if there's a
race condition between the removal of a SCSI device and the connection
of a volume.
The race condition happens if a rescan done when attaching happens right
between us removing the path and removing the lun, because the rescan
will add not only the new path we are attaching, but the old path we are
removing, since the lun still hasn't been removed.
This would leave orphaned devices that pollute our environment and will
be recognized as down paths when the storage controller reuses the same
WWID.
This patch narrows the rescan to only rescan for the specific lun
number, and if possible it also filters the rescan by HBA channel and
SCSI target ID.
We only filter by HBA channel and SCSI target ID when we can find this
information, and that is when the FC storage servers implement a single
WWNN for all ports.
Change-Id: Id6ed98d3fb8b4b980de86256dec8eeda84562c98
Closes-Bug: #1608614
This is a larger refactor of the connector.py file. The goal is to
simplfy the file by moving the vendor connector classes to their own
files, and keep only the InitiatorConnector in the connector.py file.
The vendor specific connector tests are also split out into their own
files.
Change-Id: I020e75ca8cd8bec2ad1b38f3ade5cc1f63a4fee5
Implements: bp connector-refactor
Currently it's possible for extend_volume in lvm to return
from the deactivate_lv call and try to extend the volume before
the lv has actually been deactivated. This patch adds logic to
make sure that the lv is deactivated before returning from
deactivate_lv.
Change-Id: I5c3671043df6e7474acdfcce342d655ac215a461
Closes-bug: #1495560
In the method 'check_valid_device' of class BaseLinuxConnector(),the
actual return value of 'info' from the try block is not captured as a
ProcessExecutionError exception but is simply logged with the initial
assignment 'None'. It is not necessary to have 'info' logged as 'None'.
Change-Id: Ia67727c5741695130e487d4532b85b6206bc05b7
Currently ScaleIO is doing a HTTP request to find out what is the
volume id. This change will take it from the connection properties.
It is more accurate and saves time.
Change-Id: Id5d9445c7028141c37ce514476e501502cb8a25b
Several projects have set the minimum tox version to 2.0.
This patch updates tox.ini to set the minimum required tox version
to 2.0
Change-Id: Id88e63d953d99aeebfd909ce3fae6295ddb461e1
This patch adds the utils.trace decorator that also exists in Cinder.
This allows for generic tracing of method calls for the common
connect_volume and disconnect_volume methods for connectors.
Change-Id: Ic82950e15a5edfeb95d6e4c80847cfba01e2bf2d
String interpolation should be delayed to be handled by the logging
code, rather than being done at the point of the logging call.
See the oslo i18n guideline.
* http://docs.openstack.org/developer/oslo.i18n/guidelines.html
Change-Id: I410acf693d8b7b1677a7f5b1749d9c1a48aaf177
Closes-Bug: #1596829
Replace assertEqual(None, *) with assertIsNone in tests to have more
clear messages in case of failure.
Change-Id: I3699fca674c9d97b09308155fbc92aaed929d87f
Closes-Bug:#1280522
When iSCSI multipath device path was not found via LUN wwn,
os-brick would use device path like below:
/dev/disk/by-path/ip-192.168.3.52:3260-iscsi-iqn.1992-04.com.emc:cx.apm00153906536.b5-lun-155
to detch multipath id via 'multipath -l'.
This causes error: "can't get udev device"
This fix will use path like '/dev/sda' to discover mpath id.
Change-Id: I1177d846a9f6f28b2276aae2ff91af9d4ea5849e
Closes-bug: #1585940
This is to copy fix of bug 1439869 from Nova to os-brick.
Currently iSCSI volume attachment fails if iscsi_use_multipath is
set to True. This is because the encryptor requests cryptsetup
to create the symlink to the LUKS device with the same name of
the device-mapper multipath device. To avoid the name collision,
this patch adds the 'crypt-' prefix to the symlink.
Change-Id: Ia001204df9b14f635ab998590e8add119c1aec23
Closes-Bug: #1439869
This patch adds a Windows iSCSI connector while the following
changes will add SMBFS and Fibre Channel connectors as well.
os-win is added as a requirement, as well as ddt. Note that
both are in the global requirements list. os-win is under OpenStack
governance and already being used by multiple OpenStack projects
such as Nova and Cinder.
The patch using Windows os-brick connectors in the Hyper-V
Nova driver: https://review.openstack.org/#/c/273504/
Change-Id: I19dfc8dd2e9e8a1b17675b55c63de903804480e4
Partial-Implements: blueprint os-brick-windows-support