15714 Commits

Author SHA1 Message Date
Jay S. Bryant
19d5e68b46 Mark Dell EMC CoprHD Drivers unsupported
The Dell EMC CoprHD drivers have not run 3rd Party CI
in more than 60 days.  This patch marks them
unsupported and they will be removed in Stein
if the 3rd Party CI Issues are not resolved.

Change-Id: I6f6ff82b0f6d9318c7471d1a94c2fa39e9a003c1
2018-06-12 10:46:22 +00:00
smartu3
4ee3f80b0c Add doc about backend_default config
Co-Authored-By: ycx <yanpq@awcloud.com>

Change-Id: Ifa33c1546d7b1a9a04cd505fbd697911d9649cca
Closes-Bug: #1703977
2018-06-11 22:37:36 -04:00
Zuul
533563adb1 Merge "Add note about multiattach not supporting encryption to docs" 2018-06-11 23:49:41 +00:00
Zuul
ffbac674fd Merge "Switch to oslo_messaging.ConfFixture.transport_url" 2018-06-11 23:40:39 +00:00
Zuul
43bb91e20f Merge "Remove kwargs 'message' when exception is created" 2018-06-11 23:40:36 +00:00
Zuul
f751d350b3 Merge "[Unity] Return logged-out initiators" 2018-06-11 23:40:33 +00:00
Zuul
e6348f4aef Merge "[Api-ref] fix the type of service_id in worker cleanup api" 2018-06-11 23:40:31 +00:00
Zuul
dbca571a39 Merge "VMware: Add file open mode to support python3" 2018-06-11 23:40:29 +00:00
Zuul
e2a29760dd Merge "Mark Disco driver unsupported" 2018-06-11 22:04:29 +00:00
Zuul
87e1a785ff Merge "ZFSSA handle non-existent snapshot" 2018-06-11 21:37:39 +00:00
Zuul
c0a6d72c9f Merge "IBM XIV: Report backend state in service list" 2018-06-11 21:20:08 +00:00
Zuul
ad5f301d29 Merge "Empty option value maybe cause Unity driver failed to initialize" 2018-06-11 19:27:25 +00:00
liuyamin
45f954d894 [api-ref] Fix the parameter metadata in v3
Change-Id: I5dffe060d73f700de6cd29101127e205362e203d
2018-06-11 16:02:58 +08:00
Zuul
aa1901279e Merge "IBM DS8K: Report backend state" 2018-06-11 06:08:36 +00:00
Yong Huang
2ecfd6144b Empty option value maybe cause Unity driver failed to initialize
If the value of list type option is empty, Unity driver may failed to
initialize.

Example:
unity_io_ports=
unity_storage_pool_names=

Change-Id: Ib5850d984bfd3651d308f448993251e9ec5a9460
Closes-bug: #1775518
2018-06-11 11:06:18 +08:00
TommyLike
e8c24577b8 Support image signature verification
Add image signature verification support when
creating from image.

Change-Id: I37b7a795da18e3ddb18e9f293a9c795e207e7b7e
Partial-Implements: bp cinder-support-image-signing
2018-06-11 10:14:49 +08:00
OpenStack Proposal Bot
20f00d0d8c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie31142d51969e00a9aec66d4443c70a639f8da61
2018-06-09 06:25:47 +00:00
Zuul
7566488696 Merge "Fix cinder-volume uses latest req-id for all log calls" 2018-06-09 01:13:57 +00:00
Felipe Monteiro
7c24eab261 trivial: Add min_version: 3.1 to api_ref for upload volume
This patchset adds min_version: 3.1 to protected and
visiblity params which were added to upload volume to
image action in microversion 3.1 [0][1][2].

[0] 7d95fb79c4/cinder/api/schemas/volume_actions.py (L150)
[1] https://github.com/openstack/cinder/blob/master/cinder/api/contrib/volume_actions.py#L232
[2] 7d95fb79c4/cinder/api/microversions.py (L42)

Change-Id: Ibdfa086d9bdadd11263b0a71aa3fff65faddb32d
2018-06-08 20:04:23 -04:00
Zuul
7d95fb79c4 Merge "Mock log output from DataCore drivers" 2018-06-08 19:58:24 +00:00
yuanyue
219961bff6 Fix cinder-volume uses latest req-id for all log calls
Currently all log entries will have the request ID of the
latest request that was received in the cinder-volume service.

To fix this we just move the monkey patching to the top in the
imports.

Change-Id: Ic1ad7a38cf21256d9446fd2c0270610b4cfe75c5
Closes-Bug: #1773924
2018-06-08 13:48:32 +00:00
Zuul
875596b4ea Merge "Add NexentaEdge drivers" 2018-06-08 01:22:11 +00:00
Zuul
d2874f6438 Merge "VMAX driver - Enable multiattach support" 2018-06-07 23:30:55 +00:00
Sean McGinnis
1246c6ce2d Mock log output from DataCore drivers
The large amount of error logging output from the DataCore API
tests is causing issues that result in hitting an error with
stestr. This logging output is not needed during unit testing,
so this just mocks out the logger to prevent them from happening.

Change-Id: Ie9c3c6e0ee0826d4508599125155b6aceb64d369
Closes-bug: #1775707
2018-06-07 16:37:43 -05:00
Alexey Khodos
e2bd03ef75 Add NexentaEdge drivers
NexentaEdge drivers were kicked from OpenStack pike release due to CI failures.
This patch implements NexentaEdge iSCSI drivers.

Change-Id: I1a2dd99fab742f7ad4d9aa470652bb5decb35359
Implements: blueprint nexentaedge-driver
2018-06-07 11:52:42 -07:00
Xiangfei Zhu
dfd6d32967 VMware: Add file open mode to support python3
Python 3 opens file in text mode by default while Python 2 opens file
in binary mode by default. Adding mode explicitly to work for both
Python 2 and 3.

Closes-bug: 1775678
Change-Id: I1efffb84338e27c92957c7cc5a5f46fda9eda824
2018-06-07 11:17:25 -07:00
Eric Harney
2b5eb29e86 Tests: Remove some ovo FutureWarnings about UUIDs
Invalid ids cause warnings to be printed when running
unit tests.

Change-Id: I93e1744ae431aa54d833e702d4747b0c0de2ef3b
2018-06-07 09:46:26 -04:00
junboli
1268872774 Add check to the flake8 job
Follow up recommendation of [1].
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html

Change-Id: Id268be8b32ce870f2f04fa8a52f4f1854a613fa7
2018-06-07 19:48:57 +08:00
Vishakha Agarwal
a74f7f0cd0 Cloning image fails results duplicate cache entry
When creating a volume with image whose cache
entry is already present,results in duplicate
cache entry when create_clone_image() fails.

Closes-Bug: #1552734
Change-Id: I0708c333fa94bb44e66f64b2b7cc3bc0dbe8a409
2018-06-07 15:44:06 +05:30
Dongcan Ye
e3f24ed15e api-ref: Fix some params in volume types
This patch adds some missing params in volume types
and volume type access APIs. Also trivial fix for
the order of the params in the URL.

Change-Id: I767f68b4252a3b70755494cf82ca3b284112be75
2018-06-07 00:52:01 +00:00
Steve Kowalik
29de922d7e Switch to oslo_messaging.ConfFixture.transport_url
oslo_messaging's rpc_backend setting, which is set by
ConfFixture.transport_driver has been deprecated since Newton. To allow
oslo_messaging to remove it, switch to setting transport_url instead.

Change-Id: Ib1610eb9bcd493732e90a309d219690c43702400
Partial-Bug: #1712399
2018-06-07 09:24:53 +10:00
Sean McGinnis
d675de18de Run pylint job under py3
This switches the pylint target to run under python3. In
order to work right, it also raises the version of pylint
used to a newer version.

Related-bug: #1761800

Change-Id: I0bc68a5aee24a53b9d3a08c20549b89d08989678
2018-06-06 16:28:34 -05:00
Zuul
c308b281dc Merge "Disable failing backup tests in LIO/Barbican job" 2018-06-06 18:32:54 +00:00
Zuul
7d6df90ee3 Merge "Add user messages for extend volume operation" 2018-06-06 16:02:10 +00:00
Eric Harney
737c50b4ea Disable failing backup tests in LIO/Barbican job
Change-Id: Ie4a5178b0705f2286805eba2a352a3f6b287762d
2018-06-06 10:45:40 -04:00
TommyLike
c25a1485f2 Remove kwargs 'message' when exception is created
Now when rpc client rebuild exception at the middleware,
the process will always fail because we have duplicate
keyword 'message' there.  Considering we already have a bunch
of exceptions who need format key 'message' as below:

```
class VolumeDriverException(CinderException):
    message = _("Volume driver reported an error: %(message)s")
```
Instead of refactor all of them, this patch just removes
the kwargs 'message' when exception is initialized.

Closes-Bug: #1728826

Change-Id: I6bfa34a42df1f44e16b7536246def610821b7cba
2018-06-06 14:31:58 +00:00
junboli
9448e6e372 Api-ref: Fix the incorrect parameter description
In the attachment API, the response parameters, such as ``detached_at``,
``attached_at``, ``attach_mode``, ``instance`` are optional, however these
should be required, this is to fix these.

Change-Id: I2748e971655c3f5715585409e5c021f0d91690e4
2018-06-06 18:30:58 +08:00
Michael Still
861646d1ba Implement privsep boilerplate in cinder.
This includes implementing a first trivial example of how to use
privsep to run something as root, specifically the cgroup throttling
driver.

This code is modelled strongly on how nova has chosen to use privsep.
Consistency is probably good here, but it does imply that the cinder
team is ok with the decisons nova has made about implementation.

Change-Id: Ic401138a10a72cb4b976a1a6aba272cafcb40d8b
2018-06-06 09:42:54 +08:00
Sean McGinnis
37510ac034 Default tox jobs to python3
The long term goal for OpenStack is to support python3 for
all things except explicit python2 testing by the T release.
Part of preparing for that is ensuring all ancillary things
like docs jobs and other tooling work with python3.

This switches the default for our docs jobs to python3 so
anything that does not specify another version will end up
using it.

Further work is necessary for the pylint job due to changes
between the runtimes. That will be done in a follow up patch.

There was also a difference in behavior with the genopts job
where it ends up trying to recreate the venv under which it
is currently running under, resulting in a corrupted venv
and a failure. This cleans up that script and changes it so
rather than a tox job calling a tox job it just runs the
script.

Change-Id: Ie79528b33070e6c60f9f5e1f2219084a2f0cb039
2018-06-05 14:16:34 -05:00
Jay S. Bryant
4f4a6ba23f Mark Disco driver unsupported
The Disco driver has not run 3rd Party CI
in more than 60 days.  This patch marks it
unsupported and it will be removed in Stein
if the 3rd Party CI Issues are not resolved.

Change-Id: I6098554cdc13760b4a31b19a4d2089d22a68d0e5
2018-06-05 16:20:57 +00:00
Jay S. Bryant
c88d7ba117 Mark the HGST Driver unsupported
The HGST driver has not run 3rd Party CI
in more than 60 days.  This patch marks it
unsupported and it will be removed in Stein
if the 3rd Party CI Issues are not resolved.

Change-Id: I43dba479dad98a397b5134bbc42922764350858e
2018-06-05 15:49:57 +00:00
Sean McGinnis
443d027063 Move driver config opts out of catchall page
Adds a few bare bones driver config pages or moves config tables to
existing driver docs. Also removing hyperv and redis config tables
as those have been removed.

Change-Id: I3cf2c6c6de6e4346d7dc3fa154d8a6aa90d934a7
2018-06-05 07:16:32 -05:00
jeremy.zhang
0062968568 RBD: support to report backend state
This patch adds the ability to report backend state to RBD driver.

Partial-Implements: blueprint report-backend-state-in-service-list

Change-Id: Ib703786d77621ec139e4f3981506ed117b737524
2018-06-05 16:54:18 +08:00
Yu Zhang
03676baac5 IBM XIV: Report backend state in service list
This patch implements reporting backend state in service list.

Change-Id: Ife48a8c9b362099e89865fcf0b3beb333704a87c
Implements: blueprint report-backend-state-in-service-list
2018-06-05 03:41:19 -04:00
Peng Wang
3e12e2f930 IBM DS8K: Report backend state
This patch implements reporting backend state in service list.
Implements: blueprint report-backend-state-in-service-list

Change-Id: I750bb3d2f534734e74e895aa597259ce719e8ff3
2018-06-04 22:22:17 -07:00
Zuul
9d263f711d Merge "Fix documentation error" 2018-06-05 02:07:17 +00:00
Zuul
86a79a43f5 Merge "Remove duplicate sample files" 2018-06-05 00:01:50 +00:00
Zuul
4650733ea9 Merge "Add descriptions for auth_strategy choices" 2018-06-05 00:01:45 +00:00
Zuul
9bfc74428d Merge "Fix create backup API document" 2018-06-05 00:01:40 +00:00
Zuul
4d73f42d3b Merge "Fix cannot add a column with non-constant default" 2018-06-05 00:01:36 +00:00