15714 Commits

Author SHA1 Message Date
Eric Harney
48a61877ce RemoteFS: Use summarize option for "du"
Only return the total from du rather than
a full listing.

The parsing code here expects du's output to
only be one line.

Closes-Bug: #1781276

Change-Id: Id398ad1ce3f30ccc029bfcfb1663654946d42c91
2018-07-11 15:41:25 -04:00
Zuul
7a403f5fdf Merge "Remove report of allocated_capacity_gb from Inspur driver" 2018-07-09 03:38:13 +00:00
Zuul
8f7bc14005 Merge "Fix backup/restore error for ceph rbd backend" 2018-07-06 18:47:21 +00:00
Zuul
d06bff8f7a Merge "Port nvmet driver to use privsep" 2018-07-06 17:13:55 +00:00
Zuul
bb3591b567 Merge "RBD: support to get manageable snapshots" 2018-07-06 17:13:53 +00:00
Zuul
34473e77c7 Merge "DS8K: correct the behavior for get_pools method" 2018-07-06 17:12:30 +00:00
Zuul
9ee61b8ecd Merge "Use os.mkdir instead of mkdir" 2018-07-06 16:58:47 +00:00
Zuul
eded9a144a Merge "Drop dmsetup from rootwrap" 2018-07-06 16:02:51 +00:00
Chuck Short
fc3f5d8e8d Use os.mkdir instead of mkdir
There was a few places where we were shelling out
to mkdir instead of just calling the built in python
implementation.

Change-Id: I6f232f81e36dc750e064af6047c137a3bccbdc0a
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-06 08:47:14 -04:00
Chuck Short
2833230155 Remove blockdev from volume.filters
Remove the 'blockdev' command from the volume.filters since
the block-device driver has been deprecated since 2016.

Change-Id: Ifb554898287b139d6ec07f73b012509b7d59c005
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-06 07:41:14 -04:00
Chuck Short
7f930ff83c Drop dmsetup from rootwrap
The 'dmsetup' command is not being used anywhere so remove it
from the volume.filters.

Change-Id: I0619713c5159cf8988804f1949346e238f09445f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-06 07:16:17 -04:00
Zuul
82daaab5cc Merge "Fix prophetstor drivers report value" 2018-07-05 23:24:27 +00:00
Zuul
2f6a3a42f3 Merge "Remove mkdir from volume.filters" 2018-07-05 22:33:31 +00:00
Zuul
d902d765ad Merge "NEC driver: Fix iscsi multipath initialize_connection tests" 2018-07-05 22:33:29 +00:00
Zuul
840790fe37 Merge "Fix RBD incremental backup" 2018-07-05 22:33:22 +00:00
Zuul
4771f053ad Merge "DS8K: correct behavior and return value for terminate_connection method" 2018-07-05 19:36:38 +00:00
Chuck Short
c96c7556f5 Remove mkdir from volume.filters
The 'mkdir' command was not being used anywhere
so remove it.

Change-Id: Ib0894a606df78112a86d444339db4bb5df81110b
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-05 11:47:26 -04:00
Zuul
597b49961d Merge "INFINIDAT: change create_child to create_snapshot" 2018-07-05 12:29:22 +00:00
Chuck Short
5c1b5cbad7 Port nvmet driver to use privsep
Now that we have privsep support in cinder,
we can start using privsep in various drivers
so we can drop rootwrap support.

Change-Id: I3cff61b4cde16e00ad23d534c5281a2f1afcd29f
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-07-05 08:11:01 -04:00
Zuul
023f7d5464 Merge "NetApp ONTAP NFS: Enable multiattach capability" 2018-07-05 05:41:45 +00:00
Peng Wang
97f71915d1 DS8K: correct behavior and return value for terminate_connection method
In terminate_connection method, if the host can't be found in the
storage and the lun type is non-replication, driver will log an error
instead of raising an exception and the return value should be
lowercase.

Change-Id: Idf4e9b966a1b0f9154ca600e088ceb6929a1fb0e
Closes-Bug: 1776227
2018-07-04 18:11:09 -07:00
Zuul
c0b6566207 Merge "Fix time convert error in testcases." 2018-07-04 22:44:15 +00:00
Peng Wang
f16987466e DS8K: correct the behavior for get_pools method
If the pools defined in the config file but these can't be queried
from the storage. The driver should catch this exception and ignore
it to support the Report Backend status feature.

Change-Id: I8d77b9b172df963063b38ccbd32e805dd7db1e00
Closes-Bug: 1780095
2018-07-04 07:18:32 -07:00
Simon Dodsley
52deeff8d2 Correct Pure Storage configuration documentation
The Automatic thin-provisioning/oversubscription ratio section
incorrectly defines the default value.

Rewrite section to be correct.

Change-Id: I3e84e54eb5cd9eb81604740732ea2d717a7e25e9
Closes-Bug: 1779911
2018-07-03 13:37:56 -04:00
Zuul
4bc1e5f6a3 Merge "Reject any filter whose key contains non ascii character" 2018-07-03 14:42:54 +00:00
Arnon Yaari
a15924850e INFINIDAT: change create_child to create_snapshot
create_child method was deprecated in favor of create_snapshot
in infinisdk package. This is an internal change and should have
no customer impact.

Change-Id: I1e89dd2324a6fcd05e2c5336bb0816abf7c5ca2e
2018-07-03 15:51:28 +03:00
Zuul
29691ed9a7 Merge "Fix parameter description in volume and snapshot manage extension" 2018-07-03 06:47:44 +00:00
Zuul
91df46fb64 Merge "Keep volume's status in 'creating' when creating from backup" 2018-07-03 06:47:40 +00:00
Zuul
b202609709 Merge "Solidfire: Fix pylint errors for class decorators" 2018-07-02 21:17:14 +00:00
Zuul
b97733bc41 Merge "Multipath: Update docs for backend drivers" 2018-07-02 20:04:15 +00:00
Zuul
87436dfb36 Merge "NEC driver: Reuse iSCSI LUNs of detached volumes." 2018-07-02 20:04:12 +00:00
Zuul
84b3aeee38 Merge "Clean up unnecessary test params in test_rbd" 2018-07-02 19:34:24 +00:00
Eric Harney
53522164dc Fix RBD incremental backup
Since the default get_backup_device method doesn't
return enough Ceph connection information, RBD
incremental backup will fail, resulting in full backups
being performed when an incremental is requested.

Closes-Bug: #1578036
Co-Author: Gorka Eguileor <geguileo@redhat.com>
Change-Id: I41d1ec84db58f4bf0f7362cec022f2c3380e5ee2
2018-07-02 11:19:54 -04:00
jeremy.zhang
999cd2be12 Fix parameter description in volume and snapshot manage extension
The parameters 'cinder_id', 'reason_not_safe', 'extra_info' can be None,
but are required in the response body of listing detail of managable
volumes or snapshots.

Change-Id: Iade148d2afeaae486aab4dc789d52e9522f206ee
2018-06-30 10:21:16 +08:00
TommyLike
a61677ffd5 Keep volume's status in 'creating' when creating from backup
When volume is created via restoring backup action, the volume
status would change into 'restoring-backup' from 'creating', this
state change would confusing end user. This patch updates this
and keep volume status in 'creating' when creating.

Change-Id: I82d741ea8278de75ed817379b0a04f1f919a27c7
2018-06-30 01:40:20 +00:00
Zuul
fef7e728b0 Merge "Fix quota error when deleting temporary volume" 2018-06-29 19:01:19 +00:00
jeremy.zhang
280cc7c5ae RBD: support to get manageable snapshots
This patch adds the ability to get manageable snapshots to RBD driver.

Partial-Implements: blueprint ceph-list-manageable-volumes-and-snapshots
Change-Id: I2f979f445aeb2664c93c6810dcf2e82aed92a8cf
2018-06-30 02:46:34 +08:00
Zuul
2319cc7628 Merge "Fix vmware disk type changed when volume type is eagerZeroedThick" 2018-06-29 08:35:06 +00:00
Dongcan Ye
d50a4ed431 NEC driver: Fix iscsi multipath initialize_connection tests
Add test for multipath disabled, also adds more infos for the
multipath enabled.

Change-Id: I192217e0a07ec3b16875d699d04f90f159074177
2018-06-28 01:02:46 +00:00
Zuul
6d426c0876 Merge "VMAX Driver - Incorrect SSL cert verification" 2018-06-27 14:30:33 +00:00
Dongcan Ye
12cf709097 Multipath: Update docs for backend drivers
Since Nova had deprecated the iscsi_use_multipath option, we should
updates the config docs for this change.

Change-Id: I320c6a7481978976394403edde6e9e85174d3b36
2018-06-27 09:21:08 +00:00
TommyLike
0ac8be26a9 Fix time convert error in testcases.
The converted time differs via different timezones, this patch replace
the expected value with 'mock.ANY' to avoid testcase failure.

Change-Id: Ifb778dd9d418e9a638a385db585add55698d7e21
2018-06-27 16:19:53 +08:00
Shunei Shiono
78f104d75c NEC driver: Reuse iSCSI LUNs of detached volumes.
Currently, NEC driver does not reuse iSCSI LUNs of detached volumes.
The driver always use the LUN of (max(LUNs used) + 1) to attach
a volume.

If multi-target mode of NEC Storage is enabled, the driver works
without the problem because only LUN0s are used in the multi-target
mode.

This patch changes the using LUN to min(LUNs not used) for reusing
a LUN of detached volume with multi-target mode disabled.

Change-Id: I067cb09928c4c9d4ebb7159950fff526ee70f1bb
Closes-Bug: #1778669
2018-06-27 13:02:42 +09:00
Alan Bishop
8d9f862901 Fix quota error when deleting temporary volume
When deleting a volume, always use the admin context to fetch the
admin_metadata that indicates whether it's a temporary volume.

This fixes a bug where a non-admin user failed to retrieve the
admin_metadata, which caused the volume to not be treated as temporary.
This, in turn, caused quota usage to be incorrectly updated.

Closes-Bug: #1778774
Change-Id: I8e6b0c726dc6498b28795a1ea0520ef05e53f047
2018-06-26 17:08:05 -04:00
Zuul
fc19a0dca8 Merge "Remove 'message' from format argument from exception" 2018-06-26 05:15:55 +00:00
Zuul
090a08fc33 Merge "Remove 'message' from format argument from exception" 2018-06-26 05:15:53 +00:00
Zuul
8952e22f5f Merge "NetApp: Remove duplicate volume_type kwarg" 2018-06-26 05:05:42 +00:00
Zuul
514c63bd7c Merge "Use check_virtual_size to do the size check" 2018-06-26 00:12:08 +00:00
Zuul
7959cd24d5 Merge "Add v3 api-ref for force delete snapshot" 2018-06-25 23:42:19 +00:00
Zuul
24bcc02ae7 Merge "Fix the usage of RBDVolumeProxy in getting manageable volumes" 2018-06-25 23:42:17 +00:00