]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "Removing Nexenta driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:33:24 +0000 (00:33 +0000)]
Merge "Removing Nexenta driver for no reported CI"

9 years agoMerge "Removing Symantec NFS driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:33:11 +0000 (00:33 +0000)]
Merge "Removing Symantec NFS driver for no reported CI"

9 years agoMerge "Removing StorPool driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:32:55 +0000 (00:32 +0000)]
Merge "Removing StorPool driver for no reported CI"

9 years agoMerge "Removing ZFSSA driver for no reported CI"
Jenkins [Fri, 20 Mar 2015 00:24:33 +0000 (00:24 +0000)]
Merge "Removing ZFSSA driver for no reported CI"

9 years agoMerge "Removing Coraid driver for no reported CI"
Jenkins [Thu, 19 Mar 2015 21:58:54 +0000 (21:58 +0000)]
Merge "Removing Coraid driver for no reported CI"

9 years agoMerge "Removing HP MSA driver for no reported CI"
Jenkins [Thu, 19 Mar 2015 21:58:39 +0000 (21:58 +0000)]
Merge "Removing HP MSA driver for no reported CI"

9 years agoMerge "Make the 3PAR drivers honor the pool in create"
Jenkins [Thu, 19 Mar 2015 21:42:13 +0000 (21:42 +0000)]
Merge "Make the 3PAR drivers honor the pool in create"

9 years agoMerge "Add retry to create resource in Datera driver"
Jenkins [Thu, 19 Mar 2015 21:26:42 +0000 (21:26 +0000)]
Merge "Add retry to create resource in Datera driver"

9 years agoRemoving Nexenta driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 17:51:36 +0000 (10:51 -0700)]
Removing Nexenta driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I732612e671c57c0b611f1016f22c89a886a317f7

9 years agoRemoving Symantec NFS driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 18:15:01 +0000 (11:15 -0700)]
Removing Symantec NFS driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I38b66f8df30508704df6081f18a09a3a12853858

9 years agoRemoving StorPool driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:25:19 +0000 (12:25 -0700)]
Removing StorPool driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I024d97038f6e027bd5f154d2933438847962fcb4

9 years agoRemoving ZFSSA driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 19:20:16 +0000 (12:20 -0700)]
Removing ZFSSA driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer does not have a CI
reporting to ensure their driver integration is successful. Therfore, we
can not validate the driver is working in Cinder today in a continuous
way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html
Change-Id: I5126ee5c56d2a7382e67626d28197eafa5940be5

9 years agoMerge "Revert "Datera's export to avoid deprecated keys""
Jenkins [Thu, 19 Mar 2015 18:55:52 +0000 (18:55 +0000)]
Merge "Revert "Datera's export to avoid deprecated keys""

9 years agoMake the 3PAR drivers honor the pool in create
Walter A. Boring IV [Wed, 18 Mar 2015 21:11:45 +0000 (14:11 -0700)]
Make the 3PAR drivers honor the pool in create

Currently, the 3PAR drivers rely on the pool (CPG) existing
in the extra specs of a volume type.   This is the way that the
3PAR drivers supported the idea of 'pools' prior to Cinder
itself supporting pools.

Now, the 3PAR drivers will not use the CPG specified in the
extra specs of a volume type.   The drivers will log a warning
explaining that CPG is deprecated, and then override the CPG
setting with the pool name specified by the scheduler in the
volume['host'] entry.    This fixes a few bugs in the 3PAR
drivers.

Existing 3PAR deployments will need to update their cinder.conf
to specify the list of CPGs they want the driver to support as
pools in the hp3par_cpg=[list of cpgs] entry.  hp3par_cpg can be
a single CPG, or a comma separated list of CPGS.

The 3PAR best practice guide will be updated for the Kilo release
explaining how to upgrade from existing deployments and describe
how best to use CPGS as pools.

Closes-Bug: #1432876
DocImpact

Change-Id: I2c733ff3f13ba309cc07e07331b4945b1981a07a

9 years agoRemoving HP MSA driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 18:08:37 +0000 (11:08 -0700)]
Removing HP MSA driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because it's not supported, so it won't have
a CI reporting to ensure their driver integration is successful.
Therfore, we can not validate the driver is working in Cinder today in
a continuous way.

DocImpact
[1]- http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: Ia6681e943ffb807ff6b3064976f6ef8eb3259e65

9 years agoMerge "Fix retype return value in volume driver base class"
Jenkins [Thu, 19 Mar 2015 18:05:42 +0000 (18:05 +0000)]
Merge "Fix retype return value in volume driver base class"

9 years agoMerge "Fix retype arguments in volume driver base class"
Jenkins [Thu, 19 Mar 2015 18:03:16 +0000 (18:03 +0000)]
Merge "Fix retype arguments in volume driver base class"

9 years agoMerge "Fix allocated_capacity tracking when rescheduling"
Jenkins [Thu, 19 Mar 2015 17:51:06 +0000 (17:51 +0000)]
Merge "Fix allocated_capacity tracking when rescheduling"

9 years agoRemoving Coraid driver for no reported CI
Mike Perez [Thu, 19 Mar 2015 04:56:39 +0000 (21:56 -0700)]
Removing Coraid driver for no reported CI

CI deadlines were set and pushed since last year. An email about this
requirement and the deadline of March 19th 2015 has been sent to each
individual driver maintainer, as well as the mailing list [1]. This
driver is being removed because the maintainer has chosen not to respond
to the CI deadline email and report a CI to ensure their driver
integration is successful. Therfore, we can not validate the driver is
working in Cinder today in a continuous way.

DocImpact
[1] - http://lists.openstack.org/pipermail/openstack-dev/2015-January/054614.html

Change-Id: I033960c21db91c3150daeffa3dae38005b7ef39b

9 years agoAdd retry to create resource in Datera driver
Mike Perez [Wed, 18 Mar 2015 09:19:45 +0000 (02:19 -0700)]
Add retry to create resource in Datera driver

If the volume is still in a creating state, wait, and retry a few times.
Otherwise, raise an exception for the manager to set the volume into an
error state.

Closes-Bug: #1433543
Change-Id: If49fd9229f08301cedbd63399fe46475e73a83ef

9 years agoMerge "Windows iSCSI driver: Fixes copy disk method exception handling"
Jenkins [Thu, 19 Mar 2015 17:11:30 +0000 (17:11 +0000)]
Merge "Windows iSCSI driver: Fixes copy disk method exception handling"

9 years agoMerge "Change datetime.now() to timeutils.utcnow() from oslo_utils"
Jenkins [Thu, 19 Mar 2015 16:19:31 +0000 (16:19 +0000)]
Merge "Change datetime.now() to timeutils.utcnow() from oslo_utils"

9 years agoChange datetime.now() to timeutils.utcnow() from oslo_utils
Yuriy Nesenenko [Fri, 27 Feb 2015 14:06:03 +0000 (16:06 +0200)]
Change datetime.now() to timeutils.utcnow() from oslo_utils

We use an UTC time to avoid the difference with time zones.

Change-Id: I15aa3b5d3337b90ccdcc6c4ac5d3c7d78108fe21
Related-Bug: #1288979

9 years agoMerge "Update Violin REST client library name"
Jenkins [Thu, 19 Mar 2015 05:45:39 +0000 (05:45 +0000)]
Merge "Update Violin REST client library name"

9 years agoMerge "Add minimum qemu-img version check functions"
Jenkins [Thu, 19 Mar 2015 05:16:50 +0000 (05:16 +0000)]
Merge "Add minimum qemu-img version check functions"

9 years agoMerge "cinder-manage man update"
Jenkins [Thu, 19 Mar 2015 05:16:39 +0000 (05:16 +0000)]
Merge "cinder-manage man update"

9 years agoMerge "Remove the reference of volume['instance_uuid']in VNX driver"
Jenkins [Thu, 19 Mar 2015 05:12:08 +0000 (05:12 +0000)]
Merge "Remove the reference of volume['instance_uuid']in VNX driver"

9 years agoMerge "EMC: Fix use of "_" as variable name"
Jenkins [Thu, 19 Mar 2015 05:11:51 +0000 (05:11 +0000)]
Merge "EMC: Fix use of "_" as variable name"

9 years agoMerge "Don't override extra specs with config in VMAX"
Jenkins [Thu, 19 Mar 2015 05:11:39 +0000 (05:11 +0000)]
Merge "Don't override extra specs with config in VMAX"

9 years agoMerge "Return updated volume object to the caller of _attach_volume()"
Jenkins [Thu, 19 Mar 2015 05:06:48 +0000 (05:06 +0000)]
Merge "Return updated volume object to the caller of _attach_volume()"

9 years agoMerge "Check license before clone in VMAX driver"
Jenkins [Thu, 19 Mar 2015 00:59:15 +0000 (00:59 +0000)]
Merge "Check license before clone in VMAX driver"

9 years agoMerge "Reduce configured file size for nfs backup unit tests"
Jenkins [Wed, 18 Mar 2015 22:00:22 +0000 (22:00 +0000)]
Merge "Reduce configured file size for nfs backup unit tests"

9 years agoMerge "Sort snapshots in create CG from CG snapshot"
Jenkins [Wed, 18 Mar 2015 21:16:20 +0000 (21:16 +0000)]
Merge "Sort snapshots in create CG from CG snapshot"

9 years agoMerge "Change default value of gpfs_images_share_mode to None"
Jenkins [Wed, 18 Mar 2015 19:16:59 +0000 (19:16 +0000)]
Merge "Change default value of gpfs_images_share_mode to None"

9 years agoReturn updated volume object to the caller of _attach_volume()
Mitsuhiro Tanino [Wed, 18 Mar 2015 15:48:25 +0000 (11:48 -0400)]
Return updated volume object to the caller of _attach_volume()

Currently, migrate volume between two back-ends using LIO scsi
target fails due to the error of "Unable to terminate volume
connection: 'NoneType' object has no attribute 'split'".

The root cause of this error is _detach_volume() during volume
migration does not use updated volume object which is updated
during _attach_volume() by create_export().
As a result terminate_connection() which is called from
_detach_volume() tries to split volume['provider_location']
even if the entry is None and causes above error.

Also same error would be happened following methods.

- copy_volume_data(-> volume migration)
- backup_volume
- restore_backup
- copy_image_to_volume
- copy_volume_to_image

This change adds updated volume as an additional return value
for _attach_volume().

Change-Id: I7b76941d8b2e761c2c0147b13a201583d7e0a1c4
Closes-Bug: #1433360

9 years agoEMC: Fix use of "_" as variable name
Vipin Balachandran [Thu, 12 Mar 2015 22:21:30 +0000 (15:21 -0700)]
EMC: Fix use of "_" as variable name

Variables with name "_" will clash with translation lookup
function "_" in cinder.i18n. This patch fixes usage of "_"
as variable name.

Change-Id: I4f03dcfd7b92dcae78e741486ded7028e481d0ee

9 years agoReduce configured file size for nfs backup unit tests
Tom Barron [Mon, 16 Mar 2015 07:43:18 +0000 (03:43 -0400)]
Reduce configured file size for nfs backup unit tests

Unit tests that were ported from the Swift backup
service for NFS backup trigger memory errors when
run in tox on a 1GB VM.  This commit configures
NFS backup 'backup_file_size' to match the default
Swift 'chunk_size' so that the NFS backup unit test
memory consumption is dialed down to match the Swift
unit tests.

Closes-Bug: 1432687

Change-Id: I4b71d47190179b97baefe9bc390276f720670919

9 years agotests: remove useless variable
Julien Danjou [Mon, 2 Mar 2015 11:07:09 +0000 (12:07 +0100)]
tests: remove useless variable

Change-Id: Ieb0871e0da707d34338c0aa7b2bafccf9267b3d0

9 years agoRevert "Datera's export to avoid deprecated keys"
Mike Perez [Mon, 16 Mar 2015 02:59:43 +0000 (19:59 -0700)]
Revert "Datera's export to avoid deprecated keys"

The changes on the Datera solution have been reverted, so the driver
is being updated as well.

This reverts commit a754f317a708d9932aea743588468f0bb1cabdbb.

Change-Id: I369abca84d224c71b0ea7c55d0ecda8db9a76759

9 years agoMerge "Fix typo in log message"
Jenkins [Wed, 18 Mar 2015 07:52:13 +0000 (07:52 +0000)]
Merge "Fix typo in log message"

9 years agoMerge "Raise exception for invalid mock assert calls"
Jenkins [Wed, 18 Mar 2015 07:47:09 +0000 (07:47 +0000)]
Merge "Raise exception for invalid mock assert calls"

9 years agoMerge "Fix some issues with pool name sent to SVC"
Jenkins [Wed, 18 Mar 2015 07:46:55 +0000 (07:46 +0000)]
Merge "Fix some issues with pool name sent to SVC"

9 years agoDon't override extra specs with config in VMAX
Xing Yang [Mon, 9 Mar 2015 15:18:11 +0000 (11:18 -0400)]
Don't override extra specs with config in VMAX

A recent merge in https://review.openstack.org/#/c/157679
brought in regression because it tied volume type extra specs to
config file settings.

This patch rolled back most of the changes and don't let extra specs
be overwritten by the config file settings. Intervals and retries
will be read from the config file.

Partial-Bug: #1425641
Change-Id: I7b7959d64f9cc5e954d03f56f6a37021c4c0e9e1

9 years agoCheck license before clone in VMAX driver
Xing Yang [Thu, 26 Feb 2015 17:27:16 +0000 (12:27 -0500)]
Check license before clone in VMAX driver

This patch checks if a license for clone is available before
doing the clone operation.

Change-Id: I69d009b2cac775c301e9a5254079238b2b2a3b10
Closes-Bug: #1385450

9 years agoMerge "Fixing mount when state_path is configured with a final '/'"
Jenkins [Tue, 17 Mar 2015 22:03:32 +0000 (22:03 +0000)]
Merge "Fixing mount when state_path is configured with a final '/'"

9 years agoMerge "Decrement remaining retries after failed REST call."
Jenkins [Tue, 17 Mar 2015 21:40:48 +0000 (21:40 +0000)]
Merge "Decrement remaining retries after failed REST call."

9 years agoMerge "SMBFS: Fix retrieving the volume path and format"
Jenkins [Tue, 17 Mar 2015 18:24:25 +0000 (18:24 +0000)]
Merge "SMBFS: Fix retrieving the volume path and format"

9 years agoMerge "Make unused iscsi_num_targets, iser_num_targets configs as deprecated"
Jenkins [Tue, 17 Mar 2015 18:14:58 +0000 (18:14 +0000)]
Merge "Make unused iscsi_num_targets, iser_num_targets configs as deprecated"

9 years agoFixing mount when state_path is configured with a final '/'
Rushil Chugh [Thu, 5 Mar 2015 22:16:26 +0000 (17:16 -0500)]
Fixing mount when state_path is configured with a final '/'

If state_path variable is configured with a final '/' on path, then
mount_path variable is created with wrong syntax. This causes
a failure when the c-vol process tries to mount the filesystem.

This patch proposes to fix the aforementioned problem by checking
the validity of the mount point and fixing the mount point in case
it has an incorrect value.

Closes-bug: 1425551

Change-Id: I9fe50fe07953fb5e94da467a7446528e5030e41b

9 years agoMerge "Fixed the order of mock decorators in VMAX driver"
Jenkins [Tue, 17 Mar 2015 04:27:55 +0000 (04:27 +0000)]
Merge "Fixed the order of mock decorators in VMAX driver"

9 years agoMerge "VMware: Fail immediately for images in a container"
Jenkins [Tue, 17 Mar 2015 04:27:44 +0000 (04:27 +0000)]
Merge "VMware: Fail immediately for images in a container"

9 years agoMerge "VMware: Relocate volume to compliant datastore"
Jenkins [Tue, 17 Mar 2015 04:27:10 +0000 (04:27 +0000)]
Merge "VMware: Relocate volume to compliant datastore"

9 years agoMerge "i18n Compatibility in VMAX driver"
Jenkins [Tue, 17 Mar 2015 04:26:58 +0000 (04:26 +0000)]
Merge "i18n Compatibility in VMAX driver"

9 years agoUpdate Violin REST client library name
Ryan Lucio [Tue, 10 Mar 2015 00:00:09 +0000 (17:00 -0700)]
Update Violin REST client library name

Fixed all drivers and tests to use the 'vmemclient' library.

Change-Id: I337e67ecd7c45d7b28e1bc4a551245ec0705ea31
Closes-bug: 1430009

9 years agoMerge "Remove use of contextlib.nested"
Jenkins [Tue, 17 Mar 2015 03:15:48 +0000 (03:15 +0000)]
Merge "Remove use of contextlib.nested"

9 years agoMerge "Increase LeftHand driver minimum client version"
Jenkins [Tue, 17 Mar 2015 03:14:40 +0000 (03:14 +0000)]
Merge "Increase LeftHand driver minimum client version"

9 years agoMerge "Remove global mocking from test_pure.py"
Jenkins [Tue, 17 Mar 2015 03:10:07 +0000 (03:10 +0000)]
Merge "Remove global mocking from test_pure.py"

9 years agoRemove the reference of volume['instance_uuid']in VNX driver
Tina [Mon, 16 Mar 2015 22:55:31 +0000 (18:55 -0400)]
Remove the reference of volume['instance_uuid']in VNX driver

Multiattach feature removed the column 'instance_uuid' and
'attached_host' from volume DB model. However, these 2 fields are
used by VNX driver to determine the volume's original status
in retype. This patch changed the VNX driver to not use those
removed fields.

Change-Id: I4b4820d93e784913eeb7e485439d5f434141bcb9
Closes-Bug: 1432925

9 years agoMerge "VMware:Use datastore selection logic in new module"
Jenkins [Tue, 17 Mar 2015 01:40:27 +0000 (01:40 +0000)]
Merge "VMware:Use datastore selection logic in new module"

9 years agoMerge "VMware: Refactor initialize_connection unit tests"
Jenkins [Tue, 17 Mar 2015 01:40:15 +0000 (01:40 +0000)]
Merge "VMware: Refactor initialize_connection unit tests"

9 years agoMerge "Huawei driver check before associating LUN to a LUN group"
Jenkins [Tue, 17 Mar 2015 01:40:03 +0000 (01:40 +0000)]
Merge "Huawei driver check before associating LUN to a LUN group"

9 years agoMerge "Fixed a concurrency issue in VMAX driver"
Jenkins [Tue, 17 Mar 2015 01:35:22 +0000 (01:35 +0000)]
Merge "Fixed a concurrency issue in VMAX driver"

9 years agoIncrease LeftHand driver minimum client version
Anthony Lee [Mon, 16 Mar 2015 23:48:34 +0000 (16:48 -0700)]
Increase LeftHand driver minimum client version

An error was occuring during LeftHand driver initialization when
an older LeftHand client was installed.

The minimum client version needed to be updated.

Closes-Bug: 1432757
Change-Id: Ifb6bc989a50ed9d051a72c065d8a7287a8570d1e

9 years agoDecrement remaining retries after failed REST call.
Richard Hedlind [Wed, 11 Mar 2015 05:46:48 +0000 (23:46 -0600)]
Decrement remaining retries after failed REST call.

Also, update unit test to properly test the retry path.

Change-Id: I89863a44102bdeebce09de80fa5c5131af67f564
Closes-Bug: #1429283

9 years agoVMware: Fail immediately for images in a container
Vipin Balachandran [Wed, 14 Jan 2015 19:03:52 +0000 (00:33 +0530)]
VMware: Fail immediately for images in a container

Currently VMDK driver doesn't support images within
a container such as OVA. Instead of throwing an error
immediately, the driver tries to create a backing
using the container as its vmdk. This will eventually
fail with vCenter error. This patch fixes it.

Change-Id: Ie97a3a63807d00880310f2a7e5f6d32ee89d2cd7
Closes-Bug: #1371478

9 years agoMake unused iscsi_num_targets, iser_num_targets configs as deprecated
Mitsuhiro Tanino [Tue, 3 Mar 2015 22:49:03 +0000 (17:49 -0500)]
Make unused iscsi_num_targets, iser_num_targets configs as deprecated

After introducing new iscsi target driver model via Change-Id:
I43190d1dac33748fe55fa00f260f32ab209be656, configuration
options of iscsi_num_targets and iser_num_targets are not
used in these new scsi targets.

This patch makes these unused configuration options as
deprecated and adds warning messages to notify future removal
of these configs to users.

Also this patch removes _ensure_iscsi_targets() which uses these
two config options from cxt scsi target because this method is
never called anywhere.

Closes-Bug: #1427904
DocImpact: Two unused config options are deprecated
Change-Id: Ic34910f4765f46e2708de7cb686e49418f486709

9 years agoMerge "Error trying to delete snapshots on Hitachi driver"
Jenkins [Mon, 16 Mar 2015 18:33:40 +0000 (18:33 +0000)]
Merge "Error trying to delete snapshots on Hitachi driver"

9 years agoMerge "Fix unit tests for multiattach patch"
Jenkins [Mon, 16 Mar 2015 18:30:06 +0000 (18:30 +0000)]
Merge "Fix unit tests for multiattach patch"

9 years agoRaise exception for invalid mock assert calls
Thang Pham [Mon, 2 Mar 2015 00:43:58 +0000 (19:43 -0500)]
Raise exception for invalid mock assert calls

Several test cases were using the wrong mock assert methods.
The following patch corrects these calls and adds a method in
test.py (sourced from nova/test.py) to make sure they are
properly caught in the future.

Closes-Bug: #1429669
Change-Id: Ic6e5bca0c3ddbfb402e412b51e882859cb49108c

9 years agoMerge "DRBD: Use correct function object after DBus disconnect."
Jenkins [Mon, 16 Mar 2015 11:05:23 +0000 (11:05 +0000)]
Merge "DRBD: Use correct function object after DBus disconnect."

9 years agoMocked utils.execute for broken tests
PranaliDeore [Fri, 13 Mar 2015 06:47:12 +0000 (23:47 -0700)]
Mocked utils.execute for broken tests

Few tests were failing because utils.execute
was not mocked.

Added decorator @mock.patch('cinder.utils.execute')
which will mock the utils.execute call for failing tests.

Closes-Bug: #1430525
Change-Id: Ib54b83b1ad6dc42b084adf48ddd53a64a9b12cf7

9 years agoHuawei driver check before associating LUN to a LUN group
Bob-OpenStack [Mon, 19 Jan 2015 01:05:14 +0000 (17:05 -0800)]
Huawei driver check before associating LUN to a LUN group

This commit fixes the following problems:
* Change in huawei_t.py removes the duplicated wwns
  returned from the array.
* Change in rest_common.py adds log print for response
  data from the array.
* Change in rest_common.py does a check before associating
  a LUN to a LUN group.
* Change in rest_common.py fixes the REST request.
* Change in ssh_common.py checks whether the hostlunid
  have already been assigned.

Closes-Bug: #1411904
Change-Id: I862ed5d71780fb7b8cbc5ed257072ea1113fead7

9 years agoMerge "Move to the oslo.middleware library"
Jenkins [Sun, 15 Mar 2015 21:05:16 +0000 (21:05 +0000)]
Merge "Move to the oslo.middleware library"

9 years agoMerge "Add waiting for the driver to SchedulerManager"
Jenkins [Sun, 15 Mar 2015 20:33:53 +0000 (20:33 +0000)]
Merge "Add waiting for the driver to SchedulerManager"

9 years agoMerge "Add is_ready method to scheduler driver"
Jenkins [Sun, 15 Mar 2015 20:18:30 +0000 (20:18 +0000)]
Merge "Add is_ready method to scheduler driver"

9 years agoFix typos in LVMVolumeDriver
Mitsuhiro SHIGEMATSU [Sun, 15 Mar 2015 11:16:23 +0000 (20:16 +0900)]
Fix typos in LVMVolumeDriver

Fix typos. "Succesfully" -> "Successfully"

Change-Id: Ic26d7fc65c1e8b97bfac2fcc3aa395090716020f
Closes-Bug: #1429773

9 years agoAdd minimum qemu-img version check functions
Lucian Petrut [Fri, 27 Feb 2015 13:55:13 +0000 (15:55 +0200)]
Add minimum qemu-img version check functions

Functions for retrieving the qemu-img version and validate it
against driver specific requirements are added to imageutils.

This way, duplicated code can be removed in a following patch
from volume drivers that require it.

Change-Id: Ic0808863bd95c7ee84751a27d7a4eabc613f8d58

9 years agoMerge "Fix Cinder logs to show authentication error in RBD driver"
Jenkins [Sat, 14 Mar 2015 02:06:53 +0000 (02:06 +0000)]
Merge "Fix Cinder logs to show authentication error in RBD driver"

9 years agoMerge "Implement IET target driver"
Jenkins [Sat, 14 Mar 2015 00:09:20 +0000 (00:09 +0000)]
Merge "Implement IET target driver"

9 years agoMerge "Fix LVM thin pool creation race"
Jenkins [Fri, 13 Mar 2015 21:53:53 +0000 (21:53 +0000)]
Merge "Fix LVM thin pool creation race"

9 years agoImplement IET target driver
Mitsuhiro Tanino [Thu, 26 Feb 2015 00:16:39 +0000 (19:16 -0500)]
Implement IET target driver

When introducing Change-Id: I43190d1dac33748fe55fa00f260f32ab209be656,
IET driver was not implemented. This patch adds IET target for new
iscsi target driver model.

Certification results:
    https://bugs.launchpad.net/cinder/+bug/1428758

Closes-Bug: #1409918
Closes-Bug: #1329139

Co-Authored-By: Anish Bhatt <anish@chelsio.com>
Change-Id: I165a592bb3a39728fcc3d8ee4162b579c13ba928

9 years agoFix unit tests for multiattach patch
Walter A. Boring IV [Wed, 11 Mar 2015 18:18:34 +0000 (11:18 -0700)]
Fix unit tests for multiattach patch

Part of the process of accepting the Cinder multiattach
patch was to create a follow up patch that fixes some of
the inconsistencies with order of parameters in the new
unit tests.   This patch fixes those assertX calls and
parameter ordering to be in the style of:
expected, actual

Change-Id: I4e199899afdec0497df130d02560ab58a959a0dc
Closes-Bug: #1430946

9 years agoFixed a concurrency issue in VMAX driver
Xing Yang [Fri, 20 Feb 2015 06:38:09 +0000 (01:38 -0500)]
Fixed a concurrency issue in VMAX driver

This patch fixed the following problem:

When trying to add a second volume to the same masking view,
the first volume got removed at the same time, causing
the operation on the second volume to fail.

When two attach requests happen at the same time on the same
volume, the second one will fail.

Also fixed a W503 pep8 issue (line break before binary operator)
in emc_vmax_common.py.

Closes-Bug: #1416035
Closes-Bug: #1403160
Change-Id: I52975b399c2bd8e2a91bdd09004ee277e54c9a89

9 years agoFix LVM thin pool creation race
Duncan Thomas [Tue, 13 Jan 2015 16:41:13 +0000 (18:41 +0200)]
Fix LVM thin pool creation race

In the event that two copied of the LVM driver get init called at
the same time (e.g. cinder-volume and cinder-backup getting
started in parallel, on the same host), it is possible for the
thin pool check/create to race. Add a simple recheck if the create
fails, to cover this window.

Change-Id: I006970736ba0e62df383bacc79b5754dea2e9a3e
Closes-Bug: #1410341

9 years agoFix ArgsAlreadyParsedError in emc_vnx_cli.py
peter_wang [Fri, 13 Mar 2015 06:27:17 +0000 (02:27 -0400)]
Fix ArgsAlreadyParsedError in emc_vnx_cli.py

This error was introduced after adding following:
logging.register_options(CONF)
in https://review.openstack.org/#/c/157441/
So, this patchset is to remove this.

Change-Id: I3d7d30fb8a5d8f5424811fc7422efc2546300a12
Closes-Bug: 1431875

9 years agoFix typo in log message
ankitagrawal [Fri, 13 Mar 2015 12:09:05 +0000 (05:09 -0700)]
Fix typo in log message

Fixed typo valude -> value in purge_deleted_rows() method of
cinder.db.sqlalchemy.api in log message.

Change-Id: Iebdb4790086bb1186051572a388c6ebba4101fbc

9 years agoMerge "Remove strutils from oslo-incubator"
Jenkins [Fri, 13 Mar 2015 08:13:47 +0000 (08:13 +0000)]
Merge "Remove strutils from oslo-incubator"

9 years agoMerge "Fix a typo in sf_template_account_name help"
Jenkins [Fri, 13 Mar 2015 08:01:28 +0000 (08:01 +0000)]
Merge "Fix a typo in sf_template_account_name help"

9 years agoMerge "Tests: Harden fake_notifier asserts"
Jenkins [Fri, 13 Mar 2015 00:43:32 +0000 (00:43 +0000)]
Merge "Tests: Harden fake_notifier asserts"

9 years agoFix a typo in sf_template_account_name help
Romain Hardouin [Thu, 12 Mar 2015 20:14:05 +0000 (21:14 +0100)]
Fix a typo in sf_template_account_name help

Note: the config reference documentation for operators is auto
generated from Cinder sources.

Change-Id: I8ba5609acc512965fb38b02086127395d910e8c3
Closes-Bug: #1431543

9 years agoMove to the oslo.middleware library
Jay S. Bryant [Wed, 11 Mar 2015 01:15:00 +0000 (20:15 -0500)]
Move to the oslo.middleware library

This patch moves Cinder to using olso.middleware, updates us so
we are using the oslo_middleware namespace and syncs the latest
middleware code from oslo-incubator to support grenade jobs.

The details for the middleware sync from oslo-incubator are as follows:

Current HEAD in OSLO:
---------------------
commit e589dde0721a0a67e4030813e582afec6e70d042
Date:  Wed Feb 18 03:08:12 2015 +0000
Merge "Have a little fun with release notes"

Changes merged with this patch:
---------------------
__init__.py
  4ffc4c87 - Add middleware.request_id shim for Kilo
  4504e4f4 - Remove middleware

catch_errors.py
  a01a8527 - Use oslo_middleware instead of deprecated oslo.middleware
  ce8f8fa4 - Add middleware.catch_errors shim for Kilo
  4504e4f4 - Remove middleware
  5d40e143 - Remove code that moved to oslo.i18n
  76183592 - add deprecation note to middleware
  463e6916 - remove oslo log from middleware
  fcf517d7 - Update oslo log messages with translation domains

request_id.py
  a01a8527 - Use oslo_middleware instead of deprecated oslo.middleware
  66d8d613 - Fix oslo.middleware deprecation error
  4ffc4c87 - Add middleware.request_id shim for Kilo
  4504e4f4 - Remove middleware
  76183592 - add deprecation note to middleware
  d7bd9dc3 - Don't store the request ID value in middleware as class variable

Some notes on this change.  It is based on the change made in Nova:
https://review.openstack.org/#/c/130771 and is the recommended method
for cleaning up the unused portions of middleware from oslo-incubator,
moving to the oslo.middleware library and not breaking grenade in the
gate.

Change-Id: Ia99ab479cb8ef63a0db1a1208cc2501abba6132c

9 years agoMerge "Remove the useless next link for volumes, transfers and backups"
Jenkins [Thu, 12 Mar 2015 18:48:25 +0000 (18:48 +0000)]
Merge "Remove the useless next link for volumes, transfers and backups"

9 years agoRemove use of contextlib.nested
Sean McGinnis [Tue, 24 Feb 2015 15:24:52 +0000 (09:24 -0600)]
Remove use of contextlib.nested

The contextlib.nested call has been deprecated
in Python 2.7. This causes DeprecationWarning
messages in the unit tests.

There are also known issues with contextlib.nested
that were addressed by the native support for
multiple "with" variables. For instance, if the
first object is created but the second one throws
an exception, the first object's __exit__ is never
called.

Since Cinder no longer supports 2.6 we can remove
the use of these contextlib.nested calls.

Added hacking check to catch if any new instances
are added to the codebase.

Note: line continuation markers (e.g. '\') had to
be used or syntax errors were thrown. While using
parentheses is the preferred way for multiple line
statements it is not a requirement.

Partial-Bug: 1428424
Change-Id: I7bb7d201d31ff239be3402fb64e5f202ede019b0

9 years agoRemove strutils from oslo-incubator
Jay S. Bryant [Thu, 12 Mar 2015 18:34:16 +0000 (13:34 -0500)]
Remove strutils from oslo-incubator

This change goes along with the work to get away from
oslo-incubator modules to using the new oslo libraries.
The strutils module moved to the oslo_utils library and
should no longer be used from oslo-incubator.

Additionally, merging this change removes a dependency on
gettextutils, allowing us to remove another deprecated
module.

Change-Id: Ibd4e848b526c67cad660c31038df718ac416c6e1

9 years agoMerge "Fix sqlalchemy reuse in multi-backend children"
Jenkins [Thu, 12 Mar 2015 18:24:23 +0000 (18:24 +0000)]
Merge "Fix sqlalchemy reuse in multi-backend children"

9 years agoAdd waiting for the driver to SchedulerManager
Michal Dulko [Thu, 12 Mar 2015 16:24:09 +0000 (17:24 +0100)]
Add waiting for the driver to SchedulerManager

This patch adds _wait_for_scheduler method before serving any request.
Method waits till scheduler.is_ready() returns true or
CONF.periodic_interval seconds passed from service startup.

Change-Id: I9fab9fb076a955a24c1c157229baf027359d9771
Closes-Bug: 1409012

9 years agoFix retype return value in volume driver base class
Jon Bernard [Fri, 6 Mar 2015 20:26:19 +0000 (15:26 -0500)]
Fix retype return value in volume driver base class

Instead of raising an exception, the expected behaviour is to return
a tuple indicating that the driver does not support retype operation.

Closes-Bug: #1430605

Change-Id: I395dfc3213bb560767ac3fc95e5d68c4a87a7640

9 years agoFix retype arguments in volume driver base class
Jon Bernard [Fri, 6 Mar 2015 20:23:51 +0000 (15:23 -0500)]
Fix retype arguments in volume driver base class

Partial-Bug: #1430605

Change-Id: Ida0d0d7133d88501813460ecc920f3fbd738fcc5

9 years agoFix sqlalchemy reuse in multi-backend children
Eric Harney [Wed, 11 Mar 2015 18:00:44 +0000 (14:00 -0400)]
Fix sqlalchemy reuse in multi-backend children

Multi-backend breaks because sqlalchemy objects
are shared between child backends.

When creating a new service (Base), call dispose
to reset the sqlalchemy object and connection.

Change-Id: I9d937c5b2fa850edc5523f26e031f59cad5a9e7e
Closes-Bug: #1417018

9 years agoFix Cinder logs to show authentication error in RBD driver
Yuriy Nesenenko [Tue, 10 Mar 2015 10:27:51 +0000 (12:27 +0200)]
Fix Cinder logs to show authentication error in RBD driver

The Cinder logs fail to report authentication error when working
with the RBD driver.

Change-Id: I3d190d6359c744efe0c6d0612bd0f2d2e6b0ab0d
Closes-Bug: #1389983