177 Commits

Author SHA1 Message Date
Doug Hellmann
97c5768e9a remove python 2.6 trove classifier
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.

Change-Id: I9047beded251de0083bf6b6d48688e40872437d1
2015-12-23 01:31:13 +00:00
Jenkins
a1d690bde2 Merge "ScaleIO could connect wrong volume to VM" 2015-12-18 22:59:30 +00:00
Jenkins
a16791856d Merge "Updated from global requirements" 2015-12-18 18:46:33 +00:00
Jenkins
7ca487a668 Merge "DRBD connector class" 2015-12-18 15:04:40 +00:00
Philipp Reisner
ebce3c376c DRBD connector class
Our DRBD block storage driver for Cinder can be used to make
Nova directly connect to the DRBD 9 storage servers, instead
of needing an iSCSI hop.

Blueprint: https://blueprints.launchpad.net/cinder/+spec/drbd-transport

Please see
  http://drbd.linbit.com/users-guide-9.0/s-openstack-transport-protocol.html
for more details

Change-Id: I7c02850ba1e9626b99a295c72175815b3dd1bdf3
2015-12-16 11:58:44 +01:00
OpenStack Proposal Bot
7e767fdb26 Updated from global requirements
Change-Id: I4e74a179f1c99834be37dace24d054cce23ae508
2015-12-15 18:58:46 +00:00
Jenkins
71054f5016 Merge "Allow RBDClient to be used from a with-statement" 2015-12-15 07:09:24 +00:00
Ondřej Nový
f5c74cdc9e Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I827a7c2b9955cd84d96cba2f4b860f0977d541b1
2015-12-11 21:23:05 +01:00
Xing Yang
e6d94fe0b0 ScaleIO could connect wrong volume to VM
When running multiple attach volume operations with multiple
volumes and multiple VMs, a wrong volume could end up being
attached to a VM. To fix this, connect_volume and disconnect_volume
should be locked.

Change-Id: I47e94a945938123a913aee9d52d36f8ee088955a
Closes-Bug: #1524989
2015-12-10 16:47:00 -05:00
Jon Bernard
27cc6c9a5c Allow RBDClient to be used from a with-statement
This allows users of the RBD client to use a 'with' statement and bound
the scope of a client connection to a python block, which makes for
lovely looking code under the right conditions.

Change-Id: I455e8b6063dff36794d8aec7922ee1f26b3cf298
2015-12-10 15:40:38 -05:00
Jenkins
390170198a Merge "Updated from global requirements" 2015-12-10 20:11:32 +00:00
Jenkins
a51c727c97 Merge "Remove brackets from portal" 2015-12-10 16:32:53 +00:00
OpenStack Proposal Bot
319acb31a2 Updated from global requirements
Change-Id: I524708cf20eb90c05c41f7360fe1963c40c45491
2015-12-08 21:35:39 +00:00
Lukas Bezdicka
10924909cd Remove brackets from portal
In case IPv6 address is present in location os_brick would fail to
get correct path as brackets are forbidden chars in udev and are removed.

Closes-Bug: #1449492
Change-Id: I965ce7bb9bc2b2c3fdd240d998441f8b06b36934
2015-12-03 14:11:24 +00:00
Peter Penchev
26caabfc9d Minor documentation fixes for the method parameters
Change-Id: Ic9cb27c63e12948039bda201e33b8e3b8008d10f
2015-12-03 12:26:52 +02:00
Jenkins
e5ccc19a4b Merge "Add requests to project requirements" 2015-12-03 05:00:52 +00:00
Jenkins
f4a9e15b18 Merge "Add quobyte protocol for remotefs connections" 2015-12-02 20:10:18 +00:00
Jenkins
250a2dcada Merge "Brick add param documentation to connectors" 2015-12-02 20:10:15 +00:00
Jenkins
8e845f2cee Merge "Multipath Device Action Being Parsed as Name" 2015-12-02 20:07:33 +00:00
Jenkins
d16aca5c27 Merge "Fix iopsLimit parameter in ScaleIO connector" 2015-12-02 20:07:12 +00:00
Sean McGinnis
55c9386886 Add requests to project requirements
The requests package is being used inside os-brick. While pretty much
every consumer of the os-brick library also uses requests, so we are fairly
safe, we should still list it in the requirements to make absolutely sure.

Closes-bug: #1507477
Change-Id: Id1a1d1faf057231e6358f902f35aa66f2e9e681a
2015-12-02 12:50:38 -06:00
Silvan Kaiser
915aa5c8d6 Add quobyte protocol for remotefs connections
Adds the quobyte protocol alongside nfs, glusterfs, etc. .

Closes-Bug: #1520207

Change-Id: Ieaf37640b0f4cc21c22cfd836c87f03e91da1564
2015-12-02 08:11:57 +01:00
zhangsong
4ca9840f91 Correct a log message
If multipath device name is found, we should print log message
like "Find multipath device name for ..."

Change-Id: I1a2143848d16c505cf9af84a417014311048a20a
2015-12-01 11:31:14 +08:00
Walter A. Boring IV
f51683eba1 Brick add param documentation to connectors
This patch adds parameter documentation to the
brick connectors.

Change-Id: I254a99176451bff4141c5d5d510f4631bda386af
Closes-Bug: #1516794
2015-11-23 12:42:10 -08:00
Jenkins
ebec620bb5 Merge "Parse FCoE sysfs device paths" 2015-11-20 18:56:43 +00:00
OpenStack Proposal Bot
b9d52250b9 Updated from global requirements
Change-Id: Ie8c946f7e27c5851f6a36b03925ee1f5b2dded25
2015-11-19 15:51:16 +00:00
Kendall Nelson
7900cf38c2 Multipath Device Action Being Parsed as Name
Whenever find_multipath_device() was being called on an action
it would include the action as part of the device name. This patch
creates a list of actions and checks that they aren't preceding
the device name before parsing the rest of the device information
in find_multipath_device().

This patch is based on the approach that was taken in Nova until
it was abandoned in favor of the change being made in os-brick
instead. The Change-Id for the Nova change:
I8f1f769bb15ec10054e2fd73c4cf621389014cf1

Change-Id: I12a10ba189e4987cdf07bebdadbac0d4587c01d1
Closes-Bug: 1466444
2015-11-18 19:31:29 +00:00
Xing Yang
665ffea730 Fix iopsLimit parameter in ScaleIO connector
The parameter 'iops_limit' in the ScaleIO connector
is wrong. The correct parameter should be 'iopsLimit'.
Because of this error, the iops of the volume will stay
unlimited even if the user sets a limit on the iops.
This patch fixes this error.

Change-Id: I6b9212e9046bf3e2c9bbbde6354c298b359de3a6
Closes-Bug: #1521396
2015-11-17 00:29:25 -05:00
Lee Yarwood
23e40d20ad Parse FCoE sysfs device paths
FCoE devices have slightly different sysfs device paths to FC devices :

/sys/devices/pci0000:20/0000:20:03.0/0000:21:00.2/net/ens2f2/ctlr_2/
host3/fc_host/host3

As with FC devices we want the domain🚌device.function of the device.
For FCoE devices this is listed prior to `net`.

Change-Id: I2e46af1679982964c0d90289bcf1a1fc702fcb15
2015-11-14 11:14:57 +00:00
Jenkins
aa15e6abbc Merge "Add new Connector APIs for path validation" 2015-11-13 20:56:37 +00:00
Walter A. Boring IV
58ddd2100d Add new Connector APIs for path validation
The purpose of this patch is to add new APIs to os-brick Connector objects
to see how we can help validate the discovered volumes.  By adding a few
new APIs into the Connectors, we can ask the Connector objects to give us
a list of paths on the system that are associated with a volume.
Then after doing a disconnect, which happens during nova live migration
as well as normal volume detaches, we can fetch the list of all volumes, and
make sure the original volume paths don't exist in the list of all
volumes for that type.  Therefore verifying that when a volume
is removed, it doesn't leave any paths on the system behind.

This patch adds the following new APIs to the Connector objects:
 * get_volume_paths() - fetch a list of paths on the system for a volume.
 * get_search_path() - get the path on the host where the Connector looks for
                       volumes.
 * get_all_available_volumes() - Get the entire list of volumes in the search
                                 path for the given protocol type (iSCSI, FC)

Cinder Spec:
  https://review.openstack.org/#/c/204180/

Implements: blueprint brick-fetch-paths
Change-Id: Ibf73545d81797ffeedd7d4bf10c6d11c63fce923
2015-11-12 11:12:32 -08:00
OpenStack Proposal Bot
06042d4620 Updated from global requirements
Change-Id: I39146aedee7dd2a50740490d8ddfb7102e183193
2015-11-11 17:23:07 +00:00
Jenkins
b7f088f891 Merge "Fix test_connect_volume when skip is bypassed" 2015-11-11 16:14:09 +00:00
Walter A. Boring IV
62b01e9b81 Fix test_connect_volume when skip is bypassed
If you run the unit tests with a live /dev/disk/by-path
on the system, the tests fall through the skipUnless
decorators.  This exposed some failures in the expected
commands, which were incorrect.   The expected commands
in _test_connect_volume had assumed the multipath set of
commands which included a rescan.

This patch removes the rescan expected tests, as those
are only run for multipath related attaches.

Closes-Bug: #1514611
Change-Id: If2e77af2a63c33df2f190f77b6ba4cea0bc31b31
2015-11-10 23:47:25 +00:00
Walter A. Boring IV
62450a866f Fetch and return SCSI WWN
This patch adds the SCSI WWN for iSCSI and FC based volumes
in the return for connect_volume calls.   This WWN can be used
to uniquely identify the volume.

Change-Id: Ic98cdd700bc9fa3467e8c7f3cdaa70c12414ad75
Implements: blueprint brick-scsi-wwn
2015-11-10 23:46:55 +00:00
Sean McGinnis
fb4b2e0475 Update minimum tox version to 1.8
Other projects have updated to 1.8 or later for the minimum
tox version (nova, neutron), so we should probably do the
same.

Change-Id: Iad3c452a3e5935894e0fd9748bcb55fde5fcd04f
2015-11-03 19:30:26 -06:00
Jenkins
07162dbad9 Merge "Wait for FC multipath devices to become writable" 2015-10-28 14:32:40 +00:00
OpenStack Proposal Bot
6e9583b94b Updated from global requirements
Change-Id: I246b8f4d66578f3f89adbe927f387535a0b4970d
2015-10-23 17:57:32 +00:00
Patrick East
2e51465519 Wait for FC multipath devices to become writable
Sometimes the multipath devices would be read-only block devices which
would end up causing problems when anything tries to write to them. We
now will wait and rescan a few times to try and get them to become
read-write before moving on with the attach.

Change-Id: If3c17348f6a6e766f811fcd446c03c82e5c8a883
Partial-Bug: #1495701
2015-10-22 12:29:47 -07:00
Ivan Kolodyazhny
782c10207c Check RBDConnector.disconnect_volume device_info argument
device_info is optional and in some cases could be None.
We should check it and don't fail in case if it is None.

Change-Id: Ib970eebc7c57216fd5008ec35b8165d8633de809
2015-10-19 18:36:04 +00:00
Jenkins
90c285704f Merge "Fix silent iSCSI login failures" 2015-10-17 17:38:53 +00:00
Jenkins
db95c5a379 Merge "Updated from global requirements" 2015-10-17 06:49:05 +00:00
OpenStack Proposal Bot
0b42f3bbb8 Updated from global requirements
Change-Id: Idb5d3415a3b1ac46b20daaf5553aadfe917dd77e
2015-10-16 14:21:54 +00:00
Walter A. Boring IV
166820ad11 Fix silent iSCSI login failures
This patch fixes an issue where every iSCSI login attempt fails
and the code doesn't raise an exception.  It used to silently fail
with nothing but a log warning.

The iSCSI connector now checks to make sure that at least 1 of the
N potential target portals login attempts is successful.

Change-Id: Id248c3f1b12385c9d26150c6aa9dd504c01d0df8
Closes-Bug: #1464988
2015-10-07 20:29:02 +00:00
Walter A. Boring IV
dc8f8a170f Change os-brick to use ostestr
This patch changes the unit tests runs via tox to
use os-testr as the tool to run the tests.  Cinder is
already using ostestr.   This also by default enables
parallel testing.

Change-Id: Iab20bdc2cbd454de2f1d66cea3f68b40b161dc9d
2015-10-07 20:28:51 +00:00
OpenStack Proposal Bot
87fa9124e3 Updated from global requirements
Change-Id: I76a922f052ca99665bf01df1a16f2dda0961aa7c
2015-10-05 23:17:33 +00:00
Sean McGinnis
5132a03125 Removed use of deprecated LOG.warn
LOG.warn is deprecated. We were still using it in a few places.
This updates those few instances to use the non-deprecated
LOG.warning instead.

Change-Id: I71cf65b3ec493b88fc7ac4b309852ea9f99a9064
2015-10-04 10:54:53 -05:00
Earle F. Philhower, III
87e8f36293 Fix typo in vgc-cluster command in rootwrap file
Trivial fix to change the "vg*s*-cluster" to the correct "vgc-cluster"
required for the HGST cluster management software.

Change-Id: I1510986a321f60fd5588fea7613dc2a4ba11430d
Closes-Bug: 1498625
2015-09-22 12:06:03 -07:00
Jenkins
5ac54d4e0c Merge "Updated from global requirements" 2015-09-21 19:31:25 +00:00
Jenkins
a4f855b9cf Merge "Fix missing value types for log message" 2015-09-21 19:31:24 +00:00