oslo_log should be used instead of oslo-incubator.
This fixes an error "oslo_config.cfg.DuplicateOptError:
duplicate option: default_log_levels" when os-brick is imported
to projects using oslo_config and oslo_log.
Change-Id: Ic38c548bd39bc8ce68bd70d2b0693f6d0c0c5399
Closes-Bug: #1443681
In order for os-brick to be able to be updated to
use the oslo.log library this updated needs to be made
to update loopingcall to no longer use the old incubator
version of oslo log.
Current HEAD in OSLO:
---------------------
commit: 9117130d7e73a18f0720ecb264a0a85aa26d3816
Date: Fri Apr 10 11:39:29 2015 +0200
Test loopingcall and threadgroup on Python 3
Changes merged with this patch:
--------------------------------
2fbf5065 - Remove oslo.log code and clean up versionutils API
Change-Id: I2a26dd6464f9bcb95898b29a1a2e45aee250899f
The _run_multipath command is wrong, it should be 'multipath -r'
not 'multipath - r'.
Change-Id: I2b642de057c11be71b4724c0c22f8bdc3ca86191
Closes-bug: 1438956
This currently returns an invalid path of `/dev/mapper/${WWID}`
when UFN is enabled leading to failures later on when we attempt to
use the device.
The output of `multipath -l ${path}` or `multipath -l ${wwid}`
should always list the correct device identifier to use with this
path as the first word on the first line.
The same change has been suggested for both Cinder [1] and Nova [2]
as they are also susceptible to this issue.
[1] https://review.openstack.org/#/c/170157/
[2] https://review.openstack.org/#/c/169873/
Change-Id: I4a2d0e6ba4522ebfa0c50be49f7039f6e4617ae8
Closes-Bug: 1401799
unicode type renamed in Python 3.x. We need to use
six.text_type to get code works with both Python 2.7 and 3.x
Related-Bug: #1380806
Change-Id: Ia26a29fab377b61ce4abf81f3eb778988eb8b893
This fixes an issue in _get_multipath_device_name() that fails to
parse the output from 'multipath -ll <device>' command when the
stdout contains error messages in addition to the expected output.
Change-Id: I59bf37a932acd97cf915d086b4072b71e8214936
Related-Bug: #1380742
Partial-Bug: #1433204
Currently, unit tests for initiator overrides the original functions
and never cleans up, that may confuse the following tests.
This change refines them to clean up mocks after each test.
Change-Id: I3d50da087be66876de8d8ebd8b6ceb0387d10446
Closes-Bug: #1433363
Project name variable in .gitreview is set to an old value
("openstack/brick.git") which causes it impossible to configure git
review by user. This commit fixes the problem changing the variable
to "openstack/os-brick.git".
Change-Id: Icff5ba943c1c4f52705fbfd1f4047eacbbac690f
Closes-Bug: 1433558
There are some platform specific changes needed to allow os-brick to
support FCP on System z: the System z specific format of the device
file paths, adding and removing devices explicitly, and ignoring vHBAs
which are offline.
Based on Cinder: https://review.openstack.org/#/c/149256/
Partial-Implements blueprint linux-systemz
Change-Id: Ie75454da974939e03dfc77e760ba5215324b7fdc
This makes brick to use target_portals, target_iqns, target_luns
to get alternative iSCSI targets list on fail-over.
Change-Id: I672497e819c3bffd71a0b7c6074c7a946eb74c91
Implements: blueprint iscsi-alternative-portal
According to the PEP8(E265) there should be at least
one space before block comment.
Change-Id: I1c714c03c162446b00f1df279df6962ddd95c507
Partial-Bug: #1407162
This patch intends to update the base documenation that is built
for the os-brick library. It includes the API documentation,
changelog, tutorial.
You can generate the documentation by running:
tox -edocs
DocImpact
Change-Id: Ia0fe0118207bbdc3cf698dfe09c0b71ebddd57f3
Some Cinder iSCSI backend drivers may return alternative
portals/tragets/luns information in the response from
initialize_connection API, for the case the main portal
is unreachable by network failure. This patch enables
brick to fail-over to alternative portals when it fails
to establish a session to the main portal.
Change-Id: Ic08d018d3b5f282ece823971576043f76bad1b2d
Implements: blueprint iscsi-alternative-portal
This patch removes some unused exceptions that came along
with the export from Cinder. Since os-brick doesn't include
target side code, we remove the target associated exceptions.
Change-Id: I0096e76f958e04829b98d5c4c47f49c82b58d8aa