]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoAdd I/T mapping check for IBM FlashSystem
Edwin Wang [Mon, 20 Jul 2015 12:25:25 +0000 (20:25 +0800)]
Add I/T mapping check for IBM FlashSystem

No initiator_target_map within properties is needed if no more I/T
connection. Otherwise the FCZone manager will remove the zoning
between I/T. This patch is to add host check in terminate_connection.
If no I/T exists, host will be removed in _unmap_vdisk_from_host.

Closes-Bug: #1469581
Change-Id: Ide5d2f5cb3557bd167f065fc168722c143f8f267

9 years agoMerge "Raise BadRequest for invalid replication status"
Jenkins [Fri, 24 Jul 2015 00:49:13 +0000 (00:49 +0000)]
Merge "Raise BadRequest for invalid replication status"

9 years agoMerge "Fix getting wwpn information in infortrend driver for DS4000"
Jenkins [Fri, 24 Jul 2015 00:49:01 +0000 (00:49 +0000)]
Merge "Fix getting wwpn information in infortrend driver for DS4000"

9 years agoMerge "Fix properties extracting from image with glance api v2"
Jenkins [Fri, 24 Jul 2015 00:48:50 +0000 (00:48 +0000)]
Merge "Fix properties extracting from image with glance api v2"

9 years agoMerge "Remove "volume:services" rule from policy.json"
Jenkins [Thu, 23 Jul 2015 23:34:54 +0000 (23:34 +0000)]
Merge "Remove "volume:services" rule from policy.json"

9 years agoMerge "Move volume.api test to correct location"
Jenkins [Thu, 23 Jul 2015 23:30:18 +0000 (23:30 +0000)]
Merge "Move volume.api test to correct location"

9 years agoMerge "Filter cgsnapshots data on the DB side"
Jenkins [Thu, 23 Jul 2015 19:49:14 +0000 (19:49 +0000)]
Merge "Filter cgsnapshots data on the DB side"

9 years agoMerge "Rename filename from il8n.rst to i18n.rst"
Jenkins [Thu, 23 Jul 2015 17:09:05 +0000 (17:09 +0000)]
Merge "Rename filename from il8n.rst to i18n.rst"

9 years agoMerge "Add drivers list generator"
Jenkins [Thu, 23 Jul 2015 14:15:53 +0000 (14:15 +0000)]
Merge "Add drivers list generator"

9 years agoMerge "Prevent missing Purity hosts from raising errors"
Jenkins [Thu, 23 Jul 2015 14:11:55 +0000 (14:11 +0000)]
Merge "Prevent missing Purity hosts from raising errors"

9 years agoMerge "Backups: allow name to be specified during restore"
Jenkins [Thu, 23 Jul 2015 14:02:22 +0000 (14:02 +0000)]
Merge "Backups: allow name to be specified during restore"

9 years agoMerge "Non-disruptive backup"
Jenkins [Thu, 23 Jul 2015 13:11:15 +0000 (13:11 +0000)]
Merge "Non-disruptive backup"

9 years agoMerge "Add unit tests for cinder.api.v2.volumes"
Jenkins [Thu, 23 Jul 2015 12:49:46 +0000 (12:49 +0000)]
Merge "Add unit tests for cinder.api.v2.volumes"

9 years agoMerge "VMware: Create volume backing in specific clusters"
Jenkins [Thu, 23 Jul 2015 12:46:00 +0000 (12:46 +0000)]
Merge "VMware: Create volume backing in specific clusters"

9 years agoRename filename from il8n.rst to i18n.rst
Atsushi SAKAI [Thu, 23 Jul 2015 07:34:21 +0000 (16:34 +0900)]
Rename filename from il8n.rst to i18n.rst

Internationalization's abbreviation is i18n.
This patch renames l to one.

Closes-Bug: #1477393

Change-Id: Ia7f236bd6eae3bf8613f7589916905a811c68e65

9 years agoMerge "Dell SC: Fix Consistency Group issues"
Jenkins [Thu, 23 Jul 2015 10:07:50 +0000 (10:07 +0000)]
Merge "Dell SC: Fix Consistency Group issues"

9 years agoMerge "Tests: test_volume mock conversion"
Jenkins [Thu, 23 Jul 2015 08:11:19 +0000 (08:11 +0000)]
Merge "Tests: test_volume mock conversion"

9 years agoMerge "Fix restore point if backup base is diff-format in ceph"
Jenkins [Thu, 23 Jul 2015 07:33:10 +0000 (07:33 +0000)]
Merge "Fix restore point if backup base is diff-format in ceph"

9 years agoMerge "Add CHAP support for Huawei driver"
Jenkins [Thu, 23 Jul 2015 03:15:42 +0000 (03:15 +0000)]
Merge "Add CHAP support for Huawei driver"

9 years agoMerge "DRBD: Define a separate prefix for snapshots"
Jenkins [Thu, 23 Jul 2015 03:12:18 +0000 (03:12 +0000)]
Merge "DRBD: Define a separate prefix for snapshots"

9 years agoMerge "DRBD: Rename a constant to a better name"
Jenkins [Thu, 23 Jul 2015 00:02:27 +0000 (00:02 +0000)]
Merge "DRBD: Rename a constant to a better name"

9 years agoNon-disruptive backup
Xing Yang [Mon, 22 Jun 2015 21:46:32 +0000 (17:46 -0400)]
Non-disruptive backup

This patch adds support for non-disruptive backup for
volumes in 'in-use' status as follows:

Adds a force flag in create backup API when backing up
an 'in-use' volume.

For the default implementation in volume/driver.py:
* Create a temporary volume from the original volume
* Backup the temporary volume
* Clean up the temporary volume

For the LVM driver:
* Create a temporary snapshot
* Obtain local_path for the temporary snapshot
* Backup the temporary snapshot
* Cleanup the temporary snapshot

Attach snapshot will be implemented in another patch.

Partial-implements blueprint non-disruptive-backup
Change-Id: I915c279b526e7268d68ab18ce01200ae22deabdd

9 years agoDRBD: Rename a constant to a better name
Philipp Marek [Wed, 22 Jul 2015 11:36:24 +0000 (13:36 +0200)]
DRBD: Rename a constant to a better name

As requested in a Icb7347d55dc5b22720269405b6d2b4053c2ad819 review
(https://review.openstack.org/#/c/178573/19..20/cinder/volume/drivers/drbdmanagedrv.py)
constants should consist of uppercase letters only.

Change-Id: I2826fa091b9b7c092c5d436e0a3888cdfa6173a2

9 years agoDell SC: Fix Consistency Group issues
Tom Swanson [Tue, 14 Jul 2015 17:21:19 +0000 (12:21 -0500)]
Dell SC: Fix Consistency Group issues

The Dell Storage Center driver was not honoring the consisgroup_id
in the volume object in volume creation. Updated create_volume,
create_cloned_volume and create_volume_from_snapshot to honor this
value.

The driver was also not checking that volumes were initialized prior
to snapshotting a consistency group. The Dell backend does not
actually create the volumes until there is data or the volumes are
mapped to a server.

On create_volume_from_snapshot the driver was not checking for
cgsnapshot_id before snapshot_id.

Changed from calling the db to update snapshots to retrieving
the SnapshotList() object.

In addition some tests were not checking results. Fixed that.

Change-Id: I896f7438c0b98003aa345ca1c3841aba8835cc2a
Closes-Bug: #1474062
Closes-Bug: #1474105
Closes-Bug: #1475016

9 years agoAdd drivers list generator
Anton Arefiev [Wed, 17 Jun 2015 15:57:34 +0000 (18:57 +0300)]
Add drivers list generator

It is useful to have a maintained (in source control) list
of drivers that exist in Cinder. It could be used in docs
and unit tests to check method impl on backend drivers.

This change add tool for generate list of drivers based on
existing BaseVD class in class hierarchy of volume drivers.

Output example:
Drivers: ['cinder.volume.drivers.lvm.LVMVolumeDriver',
          'cinder.volume.drivers.rbd.RBDDriver',
         ...]

Implements: blueprint drivers-list-generator
Change-Id: I0e10906873e659e09a6e34531a0c932495d7c399

9 years agoAdd CHAP support for Huawei driver
chenzongliang [Thu, 4 Jun 2015 09:35:12 +0000 (17:35 +0800)]
Add CHAP support for Huawei driver

CHAP authentication for iSCSI has already been
implemented in multiple drivers. The patch aims to
add this feature to Huawei driver.

Change-Id: Idb267cbf8cc237878eeb7e1f381a3440699b1342
Implements: blueprint huawei-storage-add-chap-support

9 years agoMove volume.api test to correct location
Vipin Balachandran [Fri, 26 Jun 2015 12:23:26 +0000 (17:53 +0530)]
Move volume.api test to correct location

Test test_create_volume_with_consistencygroup_invalid_type in
tests.unit.api.v2.test_volumes is verifying consistency group
logic in cinder.volumes.api. This patch moves this test to
tests.unit.test_volume.py.

Change-Id: I0027f03fd084fd490c43e6a957f84a57de7523a6

9 years agoDRBD: Define a separate prefix for snapshots
Philipp Marek [Mon, 20 Jul 2015 20:23:19 +0000 (22:23 +0200)]
DRBD: Define a separate prefix for snapshots

As snapshots and volumes are done via one namespace (DRBD resources),
having distinct names helps during debugging - it's easy to see which
type of Cinder element is.

Change-Id: I4080651c8ac471f1de93ab2b63a6cec46d583bce

9 years agoPrevent missing Purity hosts from raising errors
Patrick East [Mon, 13 Jul 2015 22:49:40 +0000 (15:49 -0700)]
Prevent missing Purity hosts from raising errors

Occasionally a Purity host can be deleted out from underneath Cinder.
When this happens if cinder is attempting to disconnect a volume from
that host we should treat it as a ‘success’ since if the host is gone,
it is disconnected already (as far as Purity is concerned).

To prevent one cause of this, the disconnect method will now be locked
with the connect ones so that can’t delete a host we intend to re-use.

Change-Id: Iba82c93f9e101709cf5532225068474688187b29
Closes-bug: #1472710

9 years agoMerge "Remove obsolete API from documentation"
Jenkins [Mon, 20 Jul 2015 14:09:07 +0000 (14:09 +0000)]
Merge "Remove obsolete API from documentation"

9 years agoMerge "Refactor Huawei Volume driver"
Jenkins [Mon, 20 Jul 2015 14:06:06 +0000 (14:06 +0000)]
Merge "Refactor Huawei Volume driver"

9 years agoFilter cgsnapshots data on the DB side
Yuriy Nesenenko [Tue, 30 Jun 2015 16:06:47 +0000 (19:06 +0300)]
Filter cgsnapshots data on the DB side

It filters cgsnapshots data on the DB side to improve performance.

Change-Id: I399ddec9d21345bf0496a293059963363c7c8cbe
Partial-Implements: blueprint data-filtering-on-the-db-side

9 years agoMerge "Remove lio_initiator_iqns config option"
Jenkins [Sun, 19 Jul 2015 16:14:47 +0000 (16:14 +0000)]
Merge "Remove lio_initiator_iqns config option"

9 years agoMerge "Add white list support for target ports in VNX driver"
Jenkins [Sun, 19 Jul 2015 15:38:06 +0000 (15:38 +0000)]
Merge "Add white list support for target ports in VNX driver"

9 years agoRefactor Huawei Volume driver
chenzongliang [Thu, 4 Jun 2015 02:43:07 +0000 (10:43 +0800)]
Refactor Huawei Volume driver

This patch attempts to refactor Huawei volume driver in liberty.
We add a base driver to implement the basic functions.
The sub-class will inherit from the base driver according to different
storages.

The following changes were made in this refactor:
1. Abstract a base class named HuaweiBaseDriver to make Huawei driver more
universal. You can find it in the huawei_driver.py.
2. Put all static variables into the constants.py.
3. Rename rest_common.py to rest_client.py. rest_client.py stores the
relevant methods implemented for Huawei driver.
4. Migrate some public methods from rest_client.py to huawei_utils.py,
such as parse_xml_file(), _get_volume_type() and so on.
5. This refactor only involves structural adjustment and does not involve
functional changes.

Change-Id: I768889e2577a4d975397218eb31e89b42e08e04f
Implements: blueprint refactor-huawei-volume-driver

9 years agoBackups: allow name to be specified during restore
Abhishek Lekshmanan [Mon, 8 Jun 2015 11:14:22 +0000 (16:44 +0530)]
Backups: allow name to be specified during restore

This commit adds the ability to specify a `name` attribute during backup
restore. This will create a volume with the specified name during
restore, instead of the default pattern of the form
`restore-backup-<id>`. In case volume id is specified the `name`
attribute is ignored.

DocImpact
APIImpact
Implements: blueprint backup-restore-display-name
Change-Id: I23730834058d88e30be62624ada3b24cdaeaa6f3
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
9 years agoMerge "Fix getting out-of-date volume operation state issue for VNX"
Jenkins [Fri, 17 Jul 2015 04:48:03 +0000 (04:48 +0000)]
Merge "Fix getting out-of-date volume operation state issue for VNX"

9 years agoMerge "Support SMI-S provider v8.0.3 in VMAX driver"
Jenkins [Fri, 17 Jul 2015 04:40:46 +0000 (04:40 +0000)]
Merge "Support SMI-S provider v8.0.3 in VMAX driver"

9 years agoMerge "Fix 3PAR driver handling of existing VLUNs"
Jenkins [Fri, 17 Jul 2015 04:39:59 +0000 (04:39 +0000)]
Merge "Fix 3PAR driver handling of existing VLUNs"

9 years agoMerge "scality: add export and name keys to os-initialize_connection info"
Jenkins [Fri, 17 Jul 2015 04:39:45 +0000 (04:39 +0000)]
Merge "scality: add export and name keys to os-initialize_connection info"

9 years agoMerge "Handle volume not found on zfssa volume delete"
Jenkins [Fri, 17 Jul 2015 04:39:29 +0000 (04:39 +0000)]
Merge "Handle volume not found on zfssa volume delete"

9 years agoFix 3PAR driver handling of existing VLUNs
Anthony Lee [Thu, 16 Jul 2015 02:25:58 +0000 (19:25 -0700)]
Fix 3PAR driver handling of existing VLUNs

Changes the 3PAR FC and iSCSI drivers to check for existing
VLUNs by taking into consideration both the volume and the host
when querying the backend.

Also pulled out some common code from the FC and iSCSI driver
to reduce duplicate code relating to the finding of existing
VLUNs.

Closes-Bug: #1475064
Change-Id: Id8fbdb5ae79274fb3d074f674df39f56db06f34d

9 years agoscality: add export and name keys to os-initialize_connection info
Matt Riedemann [Thu, 16 Jul 2015 20:51:23 +0000 (13:51 -0700)]
scality: add export and name keys to os-initialize_connection info

Nova is standardizing on some of the common code for file system type
volume drivers in blueprint consolidate-libvirt-fs-volume-drivers and
expects the 'export' and 'name' keys to be in connection_info['data']
returned from the os-initialize_connection Cinder API.

The Scality volume driver wasn't providing these keys so those are added
here.

Related Nova change: I7db834956c67383e63be2fe2c465118e00273e4b

Closes-Bug: #1475419

Change-Id: I73938c51ac147dca5cf39765768f4ac078bf5e63

9 years agoMerge "Report capability of multiattach for FlashSystem"
Jenkins [Thu, 16 Jul 2015 20:06:07 +0000 (20:06 +0000)]
Merge "Report capability of multiattach for FlashSystem"

9 years agoMerge "Raise HTTP exception for backup not found"
Jenkins [Thu, 16 Jul 2015 19:46:54 +0000 (19:46 +0000)]
Merge "Raise HTTP exception for backup not found"

9 years agoRemove "volume:services" rule from policy.json
Anna Sortland [Thu, 16 Jul 2015 14:33:46 +0000 (09:33 -0500)]
Remove "volume:services" rule from policy.json

The rule "volume:services": "rule:admin_api" does not seem to be used.
The cinder/api/contrib/services.py is using "volume_extension:services".
This change deletes "volume:services" rule from policy.json.

Change-Id: Id1d23e44c5b7e8361e21c8568ff67f0012e5c097
Closes-Bug: #1471990

9 years agoMerge "Dell SC: Add support for ManageableVD"
Jenkins [Wed, 15 Jul 2015 21:08:35 +0000 (21:08 +0000)]
Merge "Dell SC: Add support for ManageableVD"

9 years agoReport capability of multiattach for FlashSystem
Jinru Yan [Thu, 9 Jul 2015 01:30:45 +0000 (09:30 +0800)]
Report capability of multiattach for FlashSystem

This patch enables the multiattach capability reporting in
_update_volume_stats. This will allow nova to attach and detach
a volume to multiple virtual machine instances.

Change-Id: Ie66850c954168612dd1c17c14e75cd64c0c6d1e7
Implements: blueprint ibm-flashsystem-multiattach

9 years agoHandle volume not found on zfssa volume delete
John Griffith [Tue, 7 Jul 2015 22:26:21 +0000 (16:26 -0600)]
Handle volume not found on zfssa volume delete

The zfssa driver doesn't handle cases where a volume may not
exist on the backend when a delete call is sent.  The result
is a stack-trace in the logs, sometimes a crash of the service
and an inability to clean up volumes from Cinder's perspective.

This patch doesn't address the root cause of the issue, but
it does handle the case more gracefully by catching the
exception, logging an error and returning.

This way the volume can be cleaned up on the Cinder side and
the operator still has an indication that something went wrong.
This is a common pattern for most of the drivers in Cinder.

Change-Id: I09725b29effb79450d010949527bd54329919f52
Closes-Bug: #1472412

9 years agoRaise BadRequest for invalid replication status
Vipin Balachandran [Wed, 1 Jul 2015 06:50:37 +0000 (12:20 +0530)]
Raise BadRequest for invalid replication status

Raise HTTPBadRequest instead of HTTPNotFound while creating
a volume from an existing source replica with invalid replication
status 'disabled'.

APIImpact

Change-Id: If7ac01a9452dca0446088189b658340da538c427
Closes-Bug: #1471694

9 years agoAdd unit tests for cinder.api.v2.volumes
Vipin Balachandran [Wed, 1 Jul 2015 06:41:19 +0000 (12:11 +0530)]
Add unit tests for cinder.api.v2.volumes

Add units tests to increase coverage for
cinder.api.v2.volumes.VolumeController.create.

Change-Id: I7c4225de5d32ecd0ad78fc7c0ff847a8bee7b7da

9 years agoRaise HTTP exception for backup not found
Vipin Balachandran [Wed, 15 Jul 2015 08:51:46 +0000 (14:21 +0530)]
Raise HTTP exception for backup not found

If backup cannot be found while resetting its status, Cinder
exception (BackupNotFound) is raised instead of HTTP exception.
This patch handles the BackupNotFound exception and raises
HTTPNotFound exception.

APIImpact
HTTPNotFound exception (404) is raised instead of BackupNotFound
if backup cannot be found during backup reset-status.

Change-Id: I5a41c71a83c05d09c6d1e2e506adca6cfbe3e890
Closes-Bug: #1474748

9 years agoMerge "VMEM v6000: Fix export verify routines"
Jenkins [Wed, 15 Jul 2015 03:11:04 +0000 (03:11 +0000)]
Merge "VMEM v6000: Fix export verify routines"

9 years agoMerge "Cleanup unused method fake_get_target"
Jenkins [Wed, 15 Jul 2015 02:02:44 +0000 (02:02 +0000)]
Merge "Cleanup unused method fake_get_target"

9 years agoMerge "Remove useless logging from unit tests"
Jenkins [Wed, 15 Jul 2015 00:23:57 +0000 (00:23 +0000)]
Merge "Remove useless logging from unit tests"

9 years agoMerge "Preserve mock side_effect’s in test_pure"
Jenkins [Wed, 15 Jul 2015 00:11:59 +0000 (00:11 +0000)]
Merge "Preserve mock side_effect’s in test_pure"

9 years agoMerge "Add support for force-delete backups"
Jenkins [Tue, 14 Jul 2015 18:21:07 +0000 (18:21 +0000)]
Merge "Add support for force-delete backups"

9 years agoMerge "Add ability to override OpenStack privileged user auth url"
Jenkins [Tue, 14 Jul 2015 18:17:40 +0000 (18:17 +0000)]
Merge "Add ability to override OpenStack privileged user auth url"

9 years agoMerge "StorPool: clean up the last uses of str.format()"
Jenkins [Tue, 14 Jul 2015 17:42:16 +0000 (17:42 +0000)]
Merge "StorPool: clean up the last uses of str.format()"

9 years agoMerge "Fix saving tz aware datetimes in Versioned Objects"
Jenkins [Tue, 14 Jul 2015 15:58:13 +0000 (15:58 +0000)]
Merge "Fix saving tz aware datetimes in Versioned Objects"

9 years agoRemove obsolete API from documentation
Ivan Kolodyazhny [Tue, 14 Jul 2015 15:24:29 +0000 (18:24 +0300)]
Remove obsolete API from documentation

Cinder doesn't support EC2 API and doesn't contain cinder.api.ec2
module.
Also references to cinder.api.openstack.auth and cinder.api.cloud were
removed too.

Change-Id: I30f71cf541d93d3ab68780328e2dea6ebd326b63

9 years agoTests: test_volume mock conversion
Eric Harney [Tue, 30 Jun 2015 20:23:51 +0000 (16:23 -0400)]
Tests: test_volume mock conversion

The goal here is to try to drive down complexity in
our tests.  Note that this file is massive and this
will be a gradual effort, not something that will
be completed in one patchset.

osprofiler is mocked out in all unit tests now, so
remove that from here.

Make a first pass at converting these tests over to
mock and strengthen the assertions for calling methods
that were previously mocked with stubs.

Remove a bunch of "fake" methods, using mock instead.

Switch to mock decorators for some tests where it
makes the code easier to follow.  This helps because
it separates test setup from the test itself more
clearly.

Change-Id: Ifdf2980d183cf83c88848a20519403648427a644

9 years agoFix restore point if backup base is diff-format in ceph
lisali [Tue, 7 Jul 2015 07:34:32 +0000 (15:34 +0800)]
Fix restore point if backup base is diff-format in ceph

In Ceph when backup base is diff-format and use this backup
to restore volumes not rbd, need to find out the correct restore
point.

This is fixed in cinder/backup/drivers/ceph.py _diff_restore_allowed.

Before the change: when backup is diff-format, and destination volume
is not rbd, the function returns restore_point as None. As a result,
backup restore uses wrong image/snapshot to do restore.

With the change, we always get the right restore point, regardless
of the kind of restore we'll do differential or not.

Change-Id: I006c05d246f59fc6aff597543bedc68589d37576
Closes-Bug: #1472088

9 years agoAdd white list support for target ports in VNX driver
peter_wang [Tue, 30 Jun 2015 02:56:40 +0000 (22:56 -0400)]
Add white list support for target ports in VNX driver

Currently, VNX cinder driver registers host initiator to all
configured iSCSI/FC ports on array and chooses ports from
all available ports to return in initialize_connection.

By introducing a new driver option io_port_list:
1. driver will only register initiator to ports in io_port_list
2. driver will only return ports in io_port_list from initialize_connection

Change-Id: Ie64eceb73bc0d70076033a29295c3efc57f34db4
Closes-Bug: 1470003

9 years agoMerge "Removing archaic references"
Jenkins [Mon, 13 Jul 2015 23:37:32 +0000 (23:37 +0000)]
Merge "Removing archaic references"

9 years agoMerge "Storwize_svc_npiv_compatibility_mode default value change"
Jenkins [Mon, 13 Jul 2015 22:14:37 +0000 (22:14 +0000)]
Merge "Storwize_svc_npiv_compatibility_mode default value change"

9 years agoMerge "Fix HBSD horcm driver with oslo.concurrency 2.1.0"
Jenkins [Mon, 13 Jul 2015 21:52:46 +0000 (21:52 +0000)]
Merge "Fix HBSD horcm driver with oslo.concurrency 2.1.0"

9 years agoPreserve mock side_effect’s in test_pure
Patrick East [Mon, 13 Jul 2015 20:42:46 +0000 (13:42 -0700)]
Preserve mock side_effect’s in test_pure

The helper method to test if exceptions are propagated or handled would
unset the mock objects side_effect value when its done. This overrides
the original value making the mock not behave as expected as soon as it
is passed into assert_error_propagates.

This changes the helper to store the original side effect and then put
it back once we are done making it throw an exception.

Change-Id: I71900071a1c050913b7283aa743a17c24da1a6b9
Closes-Bug: #1474130

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 13 Jul 2015 21:07:38 +0000 (21:07 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "cinder list fails with 'name' sort key"
Jenkins [Mon, 13 Jul 2015 20:28:51 +0000 (20:28 +0000)]
Merge "cinder list fails with 'name' sort key"

9 years agoMerge "NetApp ONTAP: Add debug tracing"
Jenkins [Mon, 13 Jul 2015 20:25:50 +0000 (20:25 +0000)]
Merge "NetApp ONTAP: Add debug tracing"

9 years agoStorPool: clean up the last uses of str.format()
Peter Penchev [Fri, 12 Jun 2015 07:41:52 +0000 (10:41 +0300)]
StorPool: clean up the last uses of str.format()

Replace three logging uses of str.format() with parameters passed
directly to LOG.error(), simplifying them in the process by
avoiding the need to call six.text_type() ourselves.

Replace the remaining use with string concatenation.

Suggested by: Sean McGinnis in review 188725
Change-Id: Ie53c394d7f31fa1dccfa4ed5c4b514539c77aa05

9 years agoRemoving archaic references
David Medberry [Sat, 20 Jun 2015 12:34:35 +0000 (06:34 -0600)]
Removing archaic references

This document was originally imported from Nova. Removing some of the
old references to Quickstart and Hypervisors.

http://docs.openstack.org/developer/cinder/devref/development.environment.html
has a dangling link to a ../quickstart document (removed long ago.)

Change-Id: If70f4cb45034e78304cd8c5c5d5deccb692d19e7
Closes-bug: #1225822

9 years agoRemove useless logging from unit tests
Sean McGinnis [Wed, 1 Jul 2015 20:14:57 +0000 (15:14 -0500)]
Remove useless logging from unit tests

It has been discussed that there really isn't much point in having
unit tests making any kind of logger calls. Some usage has already
been cleaned up. This patch removes the remaining instances of log
calls under the cinder/tests directory.

Also cleaned up a lot of cases where the source files would import
oslo_logging and declare a LOG variable which was never actually
used.

Leaving logging in the cinder/tests/unit/integrated tree for now
until a plan is decided as to what to do with all of these type of
tests.

Added hacking check to prevent new instances from slipping by code
reviews.

Change-Id: If177394486d5c92fa5466cd3825b15d30cf5fb18

9 years agoMerge "Remove unused parameter in PureFCDriver _connect"
Jenkins [Mon, 13 Jul 2015 15:52:03 +0000 (15:52 +0000)]
Merge "Remove unused parameter in PureFCDriver _connect"

9 years agoMerge "set/unset volume image metadata"
Jenkins [Mon, 13 Jul 2015 14:32:15 +0000 (14:32 +0000)]
Merge "set/unset volume image metadata"

9 years agocinder list fails with 'name' sort key
Kuo-tung Kao [Mon, 6 Jul 2015 06:40:07 +0000 (14:40 +0800)]
cinder list fails with 'name' sort key

Change sort key from `name` to `display_name` if the key, `name` exists.

Change-Id: I9e285c7de2e860b251f881ab82d8d2d93e1191d2
Closes-Bug: #1404020

9 years agoStorwize_svc_npiv_compatibility_mode default value change
xqli-openstack [Mon, 6 Jul 2015 12:02:46 +0000 (05:02 -0700)]
Storwize_svc_npiv_compatibility_mode default value change

IBM cinder config item storwize_svc_npiv_compatibility_mode
should always be set to True. Mark it as deprecated and remove
it in M release.

Closes-Bug: 1471749

Change-Id: I2de183b2a86e034d7939e7aa39ee2672320c9add

9 years agoRemove unused parameter in PureFCDriver _connect
Patrick East [Mon, 13 Jul 2015 03:21:19 +0000 (20:21 -0700)]
Remove unused parameter in PureFCDriver _connect

The ‘initiator_data’ parameter is unused and can safely be removed.

Change-Id: I6b9c8b7b87a75fc15400d141c8b16c5f9a364953
Closes-Bug: #1473822

9 years agoMerge "Fix not implemented wording in update_migrated_volume"
Jenkins [Mon, 13 Jul 2015 03:04:52 +0000 (03:04 +0000)]
Merge "Fix not implemented wording in update_migrated_volume"

9 years agoCleanup unused method fake_get_target
Kenji Yasui [Fri, 10 Jul 2015 05:02:23 +0000 (05:02 +0000)]
Cleanup unused method fake_get_target

This method has not been used since the change
I43190d1dac33748fe55fa00f260f32ab209be656
which removes the callers of fake_get_target()

Closes-Bug: #1473338
Change-Id: Ib94d9d3a5d3fd99885ab18cd2efc0730720e8c3f

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 12 Jul 2015 15:17:16 +0000 (15:17 +0000)]
Updated from global requirements

Change-Id: I4549af0e48c9b43b18ec9dafb8abff394d9d2fa7

9 years agoFix saving tz aware datetimes in Versioned Objects
Gorka Eguileor [Fri, 26 Jun 2015 14:05:04 +0000 (16:05 +0200)]
Fix saving tz aware datetimes in Versioned Objects

Currently we cannot save date fields in Versioned Objects because they
are timezone aware and our database is not.

If we look at our objects definition, we are not giving any value to
tzinfo_aware argument, so it takes DateTime default value (True).

In our sqlalchemy model definitions we are defining our datetime fields
as Column(DateTime) which will take sqlalchemy default: class
sqlalchemy.types.DateTime(timezone=False)

In most cases we are accessing those fields directly through the DB
methods, so we don't see the problem, but if we were to modify any of
those fields using versioned object, for example scheduled_at, and then
save the object we'll get an exception:

 File ".../sqlalchemy/sql/type_api.py", line 278, in compare_values
 return x == y
 TypeError: can't compare offset-naive and offset-aware datetimes

Because we are trying to save a timezone aware date to a timezone
unaware DB field.

Following Dan's advice we create a specific cinder_obj_get_changes,
instead of overwriting obj_get_changes, that returns all datefields as
timezone naive UTC datetimes ready for saving.

Change-Id: Ie7b0249e3f6850e7c70d23fc53cfaf27fe04afbb
Closes-Bug: #1469120

9 years agoMerge "Improve 3PAR driver VLUN creation and deletion"
Jenkins [Sun, 12 Jul 2015 05:22:10 +0000 (05:22 +0000)]
Merge "Improve 3PAR driver VLUN creation and deletion"

9 years agoMerge "Remove hacking check N327"
Jenkins [Sun, 12 Jul 2015 05:12:43 +0000 (05:12 +0000)]
Merge "Remove hacking check N327"

9 years agoset/unset volume image metadata
Dave Chen [Fri, 16 Jan 2015 09:59:18 +0000 (17:59 +0800)]
set/unset volume image metadata

This patch implements:
- Create, delete, update APIs for modifying volume image metadata.
- Refactoring in the volume API to accommodate both user and
  image metadata.
- All of the necessary testcases needed for the changes.

DocImpact
APIImpact
Partially implements: bp support-modify-volume-image-metadata
Change-Id: I22792ef7bd49c763d7c130aa8cac9abc3fff2d4c

9 years agoMerge "Fix NetApp cDOT driver use of Glance locations"
Jenkins [Sat, 11 Jul 2015 01:40:56 +0000 (01:40 +0000)]
Merge "Fix NetApp cDOT driver use of Glance locations"

9 years agoFix not implemented wording in update_migrated_volume
Jay S. Bryant [Fri, 10 Jul 2015 21:38:15 +0000 (16:38 -0500)]
Fix not implemented wording in update_migrated_volume

It was recommended in review https://review.openstack.org/#/c/180873
that the message sent to the NotImplementedError exception be reworded.
The recommendation was made late in the review process and was not
corrected.  This patch implements the recommendation.

Change-Id: I1b0356c7b9d7e493c8501ce388ca4bc855b1e517

9 years agoAdd support for force-delete backups
wanghao [Fri, 20 Mar 2015 07:51:57 +0000 (15:51 +0800)]
Add support for force-delete backups

1. Add _get and _delete method to BackupAdminController.
2. Add force=False arg to delete method in backup api.
3. If force=True, then allow the deletion of backup, which
can be in any state.
4. For chunkeddriver based backup, check the status of backup
from DB in backup loop, if it has changed to deleting, set the
flag is_backup_canceled and clear the data to avoid leaving orphan
object in the object store.
5. Add the flag: support_force_delete=False in BackupDriver. That
indicates if the backup driver supports force deletion.
It should be set to True if the driver that inherits from BackupDriver
supports the force deletion function.
6. If the backup driver doesn't support this feature, and it will return
405 when calling API of force delete.

DocImpact
APIImpact
Add os-force_delete in request body:
*POST /v2/{tenant_id}/backups/{id}/action
{
  "os-force_delete": {}
}
Implements: blueprint support-force-delete-backup

Change-Id: Ia4d36520d2a092730cd1be56e338349e383f9e6b

9 years agoImprove 3PAR driver VLUN creation and deletion
Anthony Lee [Fri, 26 Jun 2015 17:38:33 +0000 (10:38 -0700)]
Improve 3PAR driver VLUN creation and deletion

This patch improves the creation and deletion logic for VLUNs
for the 3PAR drivers. The changes will help to prevent VLUNs
from being left behind after volume detaches. It also prevents
extra VLUNs being created when initialize_connection is called
multiple times for the same volume and host.

Closes-Bug: #1469816
Change-Id: I497564cb4bd661252570eb2e69962f7d5f3c07da

9 years agoRemove hacking check N327
Eric Harney [Fri, 10 Jul 2015 14:25:50 +0000 (10:25 -0400)]
Remove hacking check N327

With mock 1.1.0+, mock will fail when nonexistent
methods are called, so this check is no longer
necessary.

Related-Bug: #1473454

Change-Id: I9cb8b4a5eab78e51728aa8f83668f5979c0b9be1

9 years agoFix tests failing in gate
Gorka Eguileor [Fri, 10 Jul 2015 11:20:16 +0000 (13:20 +0200)]
Fix tests failing in gate

gate-cinder-python27 gate-cinder-python34 is reporting failures where it
wasn't before. This is all due to new mock version 1.1.0.  This patch
fixed the tests to pass the gate.

Some of these errors are actual errors in our test code, while other are
changes to Mock syntax.

Closes-Bug: #1473454
Change-Id: If8eabfeacacc221e92dfece9f4937875bd70751e

9 years agoFix properties extracting from image with glance api v2
Anton Arefiev [Tue, 31 Mar 2015 16:44:57 +0000 (19:44 +0300)]
Fix properties extracting from image with glance api v2

When a volume is created using the glance v1 API, the non based
properties places in 'properties' dict, and nova is expected
to find them here. Otherwise api's v2 return custom image properties
as base properties, so nova can't find them in volume 'image
properties'.

This change add new glance call to get image schema, it allows
extract custom properties from image.

Closes-Bug: 1323660

Change-Id: Ib54bb6759b27334294fb2c6d2c0bfe4eae3d0920

9 years agoSupport SMI-S provider v8.0.3 in VMAX driver
Xing Yang [Fri, 19 Jun 2015 13:47:59 +0000 (09:47 -0400)]
Support SMI-S provider v8.0.3 in VMAX driver

This patch made changes in the VMAX driver to support
interface changes in SMI-S provider v8.0.3.

* Accommodate System Name prefix change from 'SYMMETRIX+' to
  'SYMMETRIX-+-'.
* Delete composite volume - changed from using
  ReturnElementsToStoragePool to EMCReturnToStoragePool.
* Extend volume - removed InPool parameter from EMCUnBindElements
  method.
* Create snapshot/clone with multi meta members -
  EMC_PartialAllocOfConcreteExtentCIM was deprecated;
  used 'GetCompositeElements' instead and changed how we get meta
  members' capacities.
* Create CG snapshot - A new WaitForCopyState parameter was added.
* Added helper function to determine SMI-S provider and SE version
  Note: SMI-S provider is bundled with SE (Solutions Enabler) and
  they have the same version number starting from v8.0.
  The EMC SMI-S Provider supports the SNIA Storage Management Initiative
  (SMI), an ANSI standard for storage management. It supports the VMAX
  storage system. SE is a software product that discovers and manages
  VMAX storage system.

Closes-Bug: #1463217
Change-Id: Ia6333396a8111f110f540c367e5018cfad6e93e4

9 years agoAdd ability to override OpenStack privileged user auth url
Mathieu Gagné [Thu, 9 Jul 2015 16:13:19 +0000 (12:13 -0400)]
Add ability to override OpenStack privileged user auth url

Introduce os_privileged_user_auth_url config to give the ability
to override the auth_url used when authenticating
the OpenStack privileged user and bypass use of catalog found in token.

DocImpact: New os_privileged_user_auth_url config
Closes-bug: #1473206
Change-Id: I4ffca8df0eb38fe41264439ae5bb93e025c808ff

9 years agoMerge "Add missing argument to delete_keys method"
Jenkins [Thu, 9 Jul 2015 20:12:05 +0000 (20:12 +0000)]
Merge "Add missing argument to delete_keys method"

9 years agoVMEM v6000: Fix export verify routines
Ryan Lucio [Thu, 12 Mar 2015 23:12:10 +0000 (16:12 -0700)]
VMEM v6000: Fix export verify routines

New 'state' nodes in vmos6 are reflecting the kernel/system state
indicating lun accessibility on the data plane.  The nodes used
previously were only reflecting success on the mgmt plane, meaning
that the routines were sometimes returning before the target/export
was actually available for client use.

Also, switch to using one global iscsi target group (backend
container that groups target IPs) to avoid a backend export bug
exposed by the changes mentioned above.

Change-Id: I1cd296d6d02562e1eb7374df736b2649fe2692a2
Closes-Bug: #1430014

9 years agoMerge "Set encrypted key in connection_info during initialize"
Jenkins [Thu, 9 Jul 2015 18:35:51 +0000 (18:35 +0000)]
Merge "Set encrypted key in connection_info during initialize"

9 years agoMerge "GlusterFS: support extending a volume that has snapshots"
Jenkins [Thu, 9 Jul 2015 15:58:12 +0000 (15:58 +0000)]
Merge "GlusterFS: support extending a volume that has snapshots"

9 years agoMerge "Storwize Driver zone removing"
Jenkins [Thu, 9 Jul 2015 05:26:20 +0000 (05:26 +0000)]
Merge "Storwize Driver zone removing"