15714 Commits

Author SHA1 Message Date
Zuul
e7a0dda394 Merge "Fix rbd driver json loading" 2018-06-25 23:27:40 +00:00
Zuul
1ca5c6842f Merge "Remove 'message' from format argument from exception" 2018-06-25 23:01:10 +00:00
Zuul
e9ef7ec8d4 Merge "Move blockbox DB volume to home directory" 2018-06-25 22:47:44 +00:00
Zuul
41178f1346 Merge "api-ref: Rephrase delete volume precondition" 2018-06-25 22:47:42 +00:00
Zuul
b8167a5c3e Merge "Storwize: update the function is_volume_hyperswap" 2018-06-25 22:47:40 +00:00
Sean McGinnis
ddd01906aa Clean up unnecessary test params in test_rbd
Unit test was added that copied a test using ddt for supplied
values passed in, but the new test did not used ddt. This just
moves the values of those parameters into the body of the test.
It keeps the variable names to help keep the intent of the
values clear.

Change-Id: I5148f9500b0578dae457a9b561def8568165fbd1
2018-06-25 16:39:39 -05:00
Luiz Gavioli
4e064a3ae7 NetApp ONTAP NFS: Enable multiattach capability
Change-Id: I65fabec317a3e3dce2512002247e8a7b75fbe5d7
2018-06-25 16:16:37 -04:00
Zuul
66458fbf14 Merge "Nimble: Fix tuple being passed for exception init" 2018-06-25 12:29:36 +00:00
Zuul
01abd75a68 Merge "Storwize: get list of all volumes for ensure_export." 2018-06-25 03:00:02 +00:00
Zuul
d9ee5372e9 Merge "VMAX docs - use config-table directive" 2018-06-23 02:19:27 +00:00
Zuul
89140dddfc Merge "DataCore: get rid of pylint errors due to contextlib" 2018-06-23 02:19:20 +00:00
Zuul
adf262aef4 Merge "api-ref: Adds os-update_readonly_flag API" 2018-06-22 21:46:10 +00:00
Zuul
063bd43ffa Merge "Fix invalid escape sequence warnings" 2018-06-22 21:46:05 +00:00
Zuul
333c0e4f5d Merge "Fix v3 sample files" 2018-06-22 21:46:01 +00:00
Zuul
cc8ede2892 Merge "Get rid of conditional rtslib_fb imports" 2018-06-22 21:45:58 +00:00
Zuul
c46ff2db51 Merge "VMAX driver - remove deprecated XML option" 2018-06-22 19:05:30 +00:00
Zuul
bc9efca122 Merge "VMAX driver - Deleting snapshot that is source of multiple volumes fails" 2018-06-22 19:05:27 +00:00
lihaijing
9c41319a10 Fix vmware disk type changed when volume type is eagerZeroedThick
Create a volume from an image, choose "eagerZeroedThick" volume_type.
But login in Vcenter, you will get a "lazyZeroedThick" volume. There
is no problem when creating a blank vmware volume.

The reason is: when creating a volume from image, if volueme_size
> image_size, the last step is to extend backing volume. In the method
extend_virtual_disk(), there is a parameter "eager_zero", which
determining if the free space is zeroed out. The param "eager_zero"
default value is "False", and not to be changed to "True" in creating
an eagerZeroedThick volume from an image. So the actuall volume type
is different with designated volume type.

We can add a paramter "disk_type" in _extend_backing() method,
determining which type disk to extend. Then pass "False" or "True" to
extend_virtual_disk() as "eager_zero".

Change-Id: I29978b69d21c2583da152f9fbf1264ada8f079e6
Closes-Bug: #1777430
2018-06-22 16:09:01 +00:00
Zuul
f9611c5e2a Merge "VMAX driver - Incorrect service level reporting" 2018-06-22 03:09:07 +00:00
Zuul
f9fe85e8b8 Merge "VMAX driver and docs - change san_rest_port to san_api_port" 2018-06-22 03:09:01 +00:00
Zuul
d8021af72d Merge "VMAX: Address nits in list manageable code" 2018-06-22 03:08:58 +00:00
Kien Ha
35002d2f8b Remove report of allocated_capacity_gb from Inspur driver
Drivers should not be handling this value. Let Cinder core take care of
allocated_capacity_gb.

Change-Id: Id2ceb77cd80a8fbd22243f29190717928817a7b4
Closes-Bug: #1746222
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-06-21 20:10:15 -04:00
jeremy.zhang
299f4ecd0c Fix v3 sample files
This patch is mainly to fix some v3 sample json files to keep the format consistent.

Change-Id: Ibfe171f19e1530c0fcdc6a531c36871d1bc51a3c
2018-06-22 01:05:08 +08:00
jeremy.zhang
6ba228e2cd Add v3 api-ref for force delete snapshot
This patch is to add v3 api-ref for force delete a snapshot.

Change-Id: I44d16a9fa9065b5e92b18c487b45e7076ec03b0e
2018-06-21 23:34:16 +08:00
Zuul
b79947c472 Merge "DS8K: Enable multiattach support" 2018-06-21 04:59:31 +00:00
Dongcan Ye
cb0cb208e3 api-ref: Adds os-update_readonly_flag API
This patch adds "os-update_readonly_flag" volume action API.

Change-Id: Idad24f9a17af3323a26ed487f1f0d20306bf935f
Closes-Bug: #1775915
Closes-Bug: #1771390
2018-06-21 04:38:16 +00:00
Kien Ha
c0a3a495f5 Fix prophetstor drivers report value
allocated_capacity_gb should not be reported by drivers and let the
volume manager handle this.

Change-Id: Ief53a578f96384ab945598b4a67337dd8b8349f8
Closes-Bug: #1746221
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-06-20 23:48:35 -04:00
Zuul
7ff3505a68 Merge "HPE3PAR: Fix pointing to backend in group failover" 2018-06-20 22:17:00 +00:00
Sean McGinnis
09654af518 Fix invalid escape sequence warnings
There are a lot of DeprecationWarning message emited when running
under python 3.6 due mostly to non-raw strings being used for
regex expressions.

DeprecationWarning: invalid escape sequence \

These had previously been ignored, but starting with python 3.6,
and the commit for issue 27364, these are now considered deprecated
and will no longer be supported going forward. Per the discussion
on that issue, these strings should really be raw strings any way:

https://bugs.python.org/issue27364#msg272696

Change-Id: If6ff206e4bbcf10ab52d2895f606dafad2936ddb
2018-06-20 16:22:26 -05:00
Sean McGinnis
f1e942fe8d Get rid of conditional rtslib_fb imports
Newer versions of this library have been out for awhile now
and appear to be working well. This raises the minimum version
for rtslib_fb to a recent version that does not require the
conditional import due to the namespace change from rtslib to
rtslib_fb.

Depends-on: https://review.openstack.org/575530
Change-Id: I10f48833c2a61b7b2c6b300d4f8291a357f7e600
2018-06-20 16:18:21 -05:00
Zuul
5bd5c57032 Merge "Add v3 api-ref for updating snapshot status" 2018-06-20 20:58:08 +00:00
Sean McGinnis
4560e3e12a DataCore: get rid of pylint errors due to contextlib
Use of contextlib.closing causes pylint to not recognize the
type and causes "no memeber" errors. Since this is a locally
defined class that can simply be made into a context manager,
this removes the use of contextlib and handles it directly in
code.

Change-Id: I2b284b1ba51f848c183c3895948131de9e89d300
2018-06-20 15:15:59 -05:00
Sean McGinnis
accc7c35ab Nimble: Fix tuple being passed for exception init
Rather than formatting a string to pass as the exception initialization
it was passing in a tuple of the format string and value. This changes
it to perform the string formatting correctly.

Also fixes up a whitespace issue in one of the other exception strings.

Change-Id: I12648a8806bdbb3ef7933d3f256a2c0213219302
2018-06-20 14:47:03 -05:00
Sean McGinnis
a2c589e907 Solidfire: Fix pylint errors for class decorators
A couple decorators used within the Solidfire driver were defined
as class methods rather than their own functions. This results in
the pylint errors:

"Method should have \"self\" as first argument"

Since these do not need access to self, there is no reason they
should be class methods. This moves them out to be their own
functions.

Change-Id: Ia4da36987783fb0e3f2c44857a3cf9d586c5e769
2018-06-20 14:21:54 -05:00
Sean McGinnis
86e7c0557a NetApp: Remove duplicate volume_type kwarg
The create_destination_flexvol method gets provisioning
options from the source volume, but also explicitly sets
the volume_type for the flexvol. Since volume_type is
part of the source volume attributes, this results in
volume_type being provided twice and the pylint error:

"Got multiple values for keyword argument 'volume_type'
in function call"

Since the volume_type needs to be explicitly set, this
overwrites whatever is gathered from the source volume.

Change-Id: I6e597d1b44af2332e538c48d12e79ab745a5c9b5
Closes-bug: #1777911
2018-06-20 13:20:17 -05:00
Sean McGinnis
1c741636c7 Increase pylint processes
The default process concurrency for pylint is 1. Since our gate
images used to run the job have 8 cores, this results in slower
job execution with many cores sitting idle. To speed things up,
this sets the process count to match the number of cores available.

Change-Id: If4ba3333a1cb3b8bb6b4797f9149f412d32047ef
2018-06-20 10:35:26 -05:00
jeremy.zhang
9519e20308 Add v3 api-ref for updating snapshot status
This patch adds v3 api-ref for updating relative fields to status of a snapshot.

Change-Id: I24b8a05c814eb6a69ce957c75b8d168576774380
2018-06-20 19:13:58 +08:00
TommyLike
70969a6457 Reject any filter whose key contains non ascii character
Since filter key will be recognized as the object attribute inside
Cinder, this change will disallow any filter whose key contains
non ascii character.

Change-Id: I66ec74e1396f4fa42fd855988265990a535c333b
Closes-Bug: #1766965
2018-06-20 03:39:10 +00:00
Vivek Soni
a433c19ef0 HPE3PAR: Fix pointing to backend in group failover
Issue: After group failover, subsequent operations
like attach & detach volume, which are part of that
failed over group points to primary backend instead
of secondary.

This patch fixes the above issue by setting up the
appropriate backend in case of subsequent operation
on volume, which are part of group which is failed
over.

Change-Id: I679b11317c91ad28cefdf995a8d6849dc71bc1c5
Closes-Bug: #1773069
2018-06-19 23:11:02 -04:00
TommyLike
38950b71e4 Remove 'message' from format argument from exception
This patch removes 'message' from format argument
of 'NexentaException' and 'BadResetResourceStatus'
exceptions.

We should not use 'message' as a format argument
and the reason is described here [1]. From a long
time view we need remove them from exceptions rather
than remove it when initialized.

[1]: https://review.openstack.org/#/c/572674/

Change-Id: Icc0e4aefecbd224a4c14bdaef64b62ec0cd68968
2018-06-20 09:03:50 +08:00
jeremy.zhang
4ad3a254d4 Fix the usage of RBDVolumeProxy in getting manageable volumes
Pass the 'client' and 'ioctx' paramters to the RBDVolumeProxy() to
reuse external connection that already established, which will reduce
load to the ceph cluster.

Change-Id: I14f41bd10242c037301bc97986c95d72954d7bcc
2018-06-19 20:28:27 +08:00
Margarita Shakhova
d5f79c52d8 Storwize: get list of all volumes for ensure_export.
This patch solves the problem of too slow initialization of
cinder-volume service.
Previously lsvdisk() was called separately for each 'in-use' volume
in order to check if the volume exists on the storage.
Now lsvdisk() is called once per pool.

Change-Id: Ia84afc12a30ea7b714b287844e81ba02ce4b0f3d
Closes-Bug: #1749687
2018-06-19 12:04:28 +00:00
wanghao
e396560f33 Keep ORM names matching their VO counterparts
Now cinder had some Versioned Objects which names do not
match their ORM counterparts. In method: get_model_for_versioned_object,
we handles those exceptions.

This patch fix this issue to keep the names match.

Change-Id: Icf709d87be99df95e5b52204032b730cd790096c
Closes-Bug: #1493112
2018-06-19 17:50:47 +08:00
Peng Wang
3599eb5ba9 DS8K: Enable multiattach support
Support multiattach capability for IBM DS8K

Change-Id: I4e1f79dba0ed241fabd83bf972f60a6cbe21a106
2018-06-18 19:08:06 -07:00
Zuul
1aa9231cb2 Merge "Storwize: add data reduction pool support" 2018-06-18 21:56:23 +00:00
Zuul
58a10d6097 Merge "policy docs: Add volume summary under GET_ALL_POLICY entry" 2018-06-18 21:56:18 +00:00
Zuul
ee7186845d Merge "DS8K: correct the return value for initialize_connection method" 2018-06-18 21:56:16 +00:00
Zuul
5f5032418c Merge "NEC driver: Delete max volumes per pool limit." 2018-06-18 20:29:29 +00:00
Zuul
baef0227fa Merge "Mark Dell EMC CoprHD Drivers unsupported" 2018-06-18 20:29:27 +00:00
Ivan Kolodyazhny
d27a5f2c72 Move blockbox DB volume to home directory
Moved db_data directory to ~/.blockbox/db_data because it's owned by
MySQL in the container so tox will failed with it during *.pyc files
cleanup.

Change-Id: Ib2c57d57193cd94108927bfd3a4bf944941976e9
2018-06-18 18:42:40 +00:00