16248 Commits

Author SHA1 Message Date
Yong Huang
17bef5e591 [Unity] Storage-assisted migration support
Adds storage-assisted migration support for Unity driver.

Change-Id: Ibaf2e6a09f93b167b6b1477d5653922d807fccce
Implements: blueprint unity-storage-assisted-volume-migration-support
2018-12-19 14:04:14 +08:00
Zuul
7b5d4d03fc Merge "Fix for field type error" 2018-10-17 18:32:25 +00:00
Zuul
a9467860b5 Merge "Adding regression test for update_group" 2018-10-17 13:42:39 +00:00
Zuul
80dac829b9 Merge "Mark Veritas HyperScale Driver Unsupported" 2018-10-17 13:42:37 +00:00
Zuul
759697413d Merge "VMAX: set faked max_oversubscription_ratio" 2018-10-17 13:05:05 +00:00
Zuul
35ccb75c1c Merge "Rename cinder.privsep.utils to cinder.privsep.path" 2018-10-17 04:47:20 +00:00
Zuul
946da3b323 Merge "Move cinder-manage page to cli doc subtree" 2018-10-17 03:56:29 +00:00
Sean McGinnis
157f6392a4 VMAX: set faked max_oversubscription_ratio
FakeConfiguration is used in VMAX tests. Without a valueset for
max_oversubscription_ratio, this results in test failures with the
error:

"TypeError: float() argument must be a string or a number, not 'NoneType'"

This adds a default value for this config option in the fake config.

Change-Id: Ia0b9772823fe9d093cfafe3ee241aad5b21fc3fd
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-16 13:14:35 -05:00
Zuul
ca9a8cf037 Merge "Add test-requirements to pylint reqs" 2018-10-16 17:56:53 +00:00
Matt Riedemann
0ff0cbf74a Move cinder-manage page to cli doc subtree
Since we have a CLI reference and specific doc subtree the
cinder-manage docs should live there. This moves the cinder-manage
page from man/ to cli/ and adds a redirect link.

Change-Id: If99416e8a382d2a6571412742276dccc591d180c
2018-10-16 10:13:30 -04:00
Zuul
5766993978 Merge "SF ensure the correct volume is deleted" 2018-10-16 00:51:59 +00:00
Zuul
84073fb76e Merge "api-ref: remove created_at from response example of list-transfer" 2018-10-15 18:48:12 +00:00
Zuul
8030a3e614 Merge "api-ref: qos and extra_spec are optional in types view" 2018-10-15 18:48:10 +00:00
Zuul
4b108bfae2 Merge "api-ref: Add response fields and response example for volume manage" 2018-10-15 18:48:07 +00:00
Eric Harney
e82a842616 Add test-requirements to pylint reqs
Need this for ddt, mock, etc.  pylint runs
currently throw ImportErrors related to this.

Change-Id: Ia906cd89acc9c12e4b731751763b4e9331aa80d2
2018-10-15 10:22:20 -04:00
Chuck Short
94641537b8 Rename cinder.privsep.utils to cinder.privsep.path
Rename file to path because most of these functions in the
file have to do with filesystem paths and the like.

Change-Id: I709d8f8722c6a477e50d0ee7fd9a368a16fe9cca
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-10-15 10:11:00 -04:00
whoami-rajat
6449d734c7 Adding regression test for update_group
Initially the issue was fixed here If74d23b9413209ee8db3c58fc71d215abeb580b2,
but due to code changes, the same issue was repeated and fixed here,
Ia43a6f2df7fd4066a0ed26450b26a1456d4cecfa.
Addressing the comment on the latest fix, adding test case.

Change-Id: I03d6214abf050e5f9a2cc5fa0772150bbbf8520e
Related-Bug: #1645207
2018-10-15 16:27:15 +05:30
OpenStack Proposal Bot
1b2a167884 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I30fe71261e80593d626fb216485cf113fe9ab3e1
2018-10-15 07:59:53 +00:00
Liang Fang
e468e97ab9 Fix for field type error
The data type of QuotaUsage.deleted is boolean, here assigned an
integer to a boolean. Not good to assume 0 is the same as False.

Similar sentence such as 'VolumeTypeProjects.deleted == 0' is correct
because the type of VolumeTypeProjects.deleted is integer.

Change-Id: Ia3f62c93dc2621474907906aeda0ddf1469d5c8f
Signed-off-by: Liang Fang <liang.a.fang@intel.com>
2018-10-14 09:36:31 -07:00
Zuul
65d1e2bddc Merge "NFS Backup: Avoid TypeError in os-brick when not configured" 2018-10-13 19:54:49 +00:00
OpenStack Proposal Bot
5084f84a93 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I964b9c1a4379d333a06ae2c699d1188e4ae2e4c3
2018-10-13 08:02:16 +00:00
Zuul
c10c43255a Merge "Use tempest-pg-full" 2018-10-12 19:56:38 +00:00
Jay S. Bryant
441a1c2368 Mark Veritas HyperScale Driver Unsupported
The Veritas HyperScale Driver 3rd Pary CI hasn't
reported in 153 days.  This does not meet the requirements
for Cinder's 3rd Party CI requirements.

As a result the driver is being marked unsupported in the
Stein release and should be removed in the 'T' release if
the problems are not resolved.

Change-Id: I4e20cdc555e9fb53dbc831f4464ccf80d9f01e7b
2018-10-12 12:51:20 -05:00
Zuul
bfe34243e3 Merge "Fix: UnboundLocalError variable referenced before assignment" 2018-10-12 17:45:54 +00:00
Andreas Jaeger
3b351b2675 Use tempest-pg-full
The legacy job legacy-tempest-dsvm-neutron-pg-full is now named
tempest-pg-full - using the new tempest and Zuul v3 frameworks.

Change experimental job to use new job.

Change-Id: I6110790aec1f532c930753f5955f2976db6703fb
Depends-On: https://review.openstack.org/609530
2018-10-12 10:03:06 +02:00
Jay S. Bryant
c1007ed827 Remove the ITRI DISCO driver
The ITRI DISCO driver was marked unsupported in
the Rocky release.  It hasn't reported on a patch in
74 days and hasn't successfully executed CI in 231 days.

This falls well outside our CI requirements and therefore
the driver is being removed.

Change-Id: Iab4288983e8e13a3b9d59b30887d1934a2eb66c8
2018-10-11 15:22:55 -05:00
Eric Harney
fdc10686cf NFS Backup: Avoid TypeError in os-brick when not configured
If backup_share is not set, a TypeError is raised from
os-brick, because this code is run before the config options
are validated.

Don't try to initialize the path if this is not set.

Closes-Bug: #1797227
Change-Id: I96e104f0e0da0257c48bbaffc2b436f670ccdb76
2018-10-11 12:24:41 -04:00
Zuul
a2d4a9569e Merge "Fix for cinder-manage db purge" 2018-10-10 15:27:35 +00:00
Zuul
70f331228a Merge "Get rid of keys() usage" 2018-10-10 13:01:06 +00:00
Liang Fang
042ad4025a Fix for cinder-manage db purge
When backend database is postgresql, "cinder-manage db purge" will throw
an exception. The root cause is that "deleted" column in table
quality_of_service_specs is of type boolean, but it is compared with an
integer. In mysql, there's no such issue because boolean in mysql is
tinyint(1).

Some logs:
DBAPIError exception wrapped from (psycopg2.ProgrammingError) operator
does not exist: boolean = integer

Closes-Bug: #1797048

Change-Id: I05b0edef4cc56518e99622599f01dbd6280a7f1b
Signed-off-by: Liang Fang <liang.a.fang@intel.com>
2018-10-10 03:10:32 -04:00
Zuul
23cfc4fdea Merge "Remove udevadm from rootwrap" 2018-10-10 03:42:53 +00:00
Zuul
f3543cff0e Merge "Add tests for multiattach check in cinder.objects" 2018-10-10 03:42:51 +00:00
Zuul
deb3c99107 Merge "API-REF:os-quota-sets v2 API reference has the wrong parameters" 2018-10-10 02:23:18 +00:00
Zuul
4fa7a5269d Merge "api-ref: add missing response body for groups" 2018-10-10 02:23:16 +00:00
zhufl
fbf431abe8 api-ref: remove created_at from response example of list-transfer
created_at is only present in "List volume transfers and details", 
and not in "List volume transfers for a project".
https://developer.openstack.org/api-ref/block-storage/v3/index.html#list-volume-transfers-for-a-project
https://developer.openstack.org/api-ref/block-storage/v3/index.html#list-volume-transfers-and-details

So created_at should be removed from the response example of
"List volume transfers for a project".

Change-Id: I52a81454a995920c1ba5534fea3d50f6c9986881
2018-10-10 02:06:21 +00:00
Zuul
abf6938fc3 Merge "Stop using deprecated rpc_backend option" 2018-10-10 01:37:37 +00:00
Zuul
e74fbe1a65 Merge "Remove the HGST Flash Storage Driver" 2018-10-09 21:22:00 +00:00
Zuul
74c14ad18e Merge "Fix doc output examples" 2018-10-09 19:27:50 +00:00
Zuul
2238bb0541 Merge "Don't quote {posargs} in tox.ini" 2018-10-09 19:12:30 +00:00
tianhui
61c438710c Fix doc output examples
Update the response of openstack volume service list

Change-Id: Ib5427827862c88bfe4b4cf7e649b7d60884337ca
2018-10-09 11:23:35 +00:00
whoami-rajat
2ec51c3912 Fix: UnboundLocalError variable referenced before assignment
The variable used inside the try block is also used in the except
block for logging volume id which errors out to
UnboundLocalError: local variable 'add_vol_ref' referenced before
assignment.
This patch addresses the issue by using the volume id from the
for loop.

Change-Id: Ia43a6f2df7fd4066a0ed26450b26a1456d4cecfa
Related-Bug: #1645207
2018-10-09 16:13:03 +05:30
zhufl
a065af3c27 api-ref: Add response fields and response example for volume manage
https://developer.openstack.org/api-ref/block-storage/v3/index.html#manage-an-existing-volume
Response fields and response example are missing in the
"Manage an existing volume" api ref, this is to add them.

Change-Id: If624b672d1723a7226741da85802de87979f6c12
2018-10-09 15:18:53 +08:00
Zuul
fccd84cb2e Merge "Fix wrong NotFound in get_by_name_or_id" 2018-10-09 05:41:54 +00:00
imacdonn
978f02d219 Stop using deprecated rpc_backend option
oslo.messaging deprecated the rpc_backend option long ago, but it was
still being used in cinder unit test configuration fixtures. oslo.messaging
9.0.0 finally removed that option, so now the tests are failing.

This change replaces use of rpc_backend with the corresponding
transport_url option that as recommended at:

https://docs.openstack.org/oslo.messaging/latest/configuration/conffixture.html

It also removes a redundant setUp() override.

Change-Id: I7cc823e96da1fd38ba28650b72a358e792d7c892
Closes-Bug: #1796759
2018-10-08 20:52:53 +00:00
imacdonn
8ca71f5b5b Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I8ce3c403904ea1c6990f88d52c1c1a068aaed75a
2018-10-08 19:44:04 +00:00
OpenStack Proposal Bot
7929594226 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If7e7030bb9073e92a2f8fc034c1dc6349fcada5f
2018-10-08 08:07:16 +00:00
zhufl
69b1430122 api-ref: qos and extra_spec are optional in types view
As Felipe commented in I7ef9b3ea989d65dbd6dfa291ab4752664ed5f935,
extra_specs and qos_specs_id are only populated following policy
authorization: e1d8ec8b26/cinder/api/v2/views/types.py (L31)
So this is to make them optional.

Change-Id: I6f5103b7333b80b9651c279053dbdecd4574c18b
2018-10-08 14:53:50 +08:00
Zuul
e1d8ec8b26 Merge "Remove sg_scan" 2018-10-07 03:10:53 +00:00
Zuul
99d8e13940 Merge "Imported Translations from Zanata" 2018-10-05 10:03:50 +00:00
Zuul
d71c0c1900 Merge "Mark the Nexenta Edge driver unsupported" 2018-10-05 08:19:39 +00:00