]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agotest_volume unittest fails if ran only this module
Pranali Deore [Mon, 17 Feb 2014 09:35:34 +0000 (01:35 -0800)]
test_volume unittest fails if ran only this module

Using stevedore ExtensionManager to load entry_points(extensions)
before running any test case.

In BaseVolumeTestCase we have stubbed 'os.path.exists' call,
because of this stevedore is not able to load entry points paroperly.
Stevedore internally use pkg_resources and pkg_resources use
'os.path.exists' to check if entry_points.txt file exists or not.
Because of stubbibg it is returning True even if file do not exists.

Change-Id: I4fd6bee2e9f33c45ad3deacfe7359dc56171205e
Closes-Bug: #1263175

10 years agoMerge "Add searchDepth when getClusterInfo called."
Jenkins [Sat, 15 Feb 2014 20:29:42 +0000 (20:29 +0000)]
Merge "Add searchDepth when getClusterInfo called."

10 years agoMerge "Fix wrong example of "nova_endpoint_template""
Jenkins [Sat, 15 Feb 2014 19:30:57 +0000 (19:30 +0000)]
Merge "Fix wrong example of "nova_endpoint_template""

10 years agoMerge "Replace assertEqual(None, *) with assertIsNone in tests"
Jenkins [Sat, 15 Feb 2014 19:28:50 +0000 (19:28 +0000)]
Merge "Replace assertEqual(None, *) with assertIsNone in tests"

10 years agoMerge "Add EMC SMI-S FC Driver in Cinder"
Jenkins [Sat, 15 Feb 2014 19:28:42 +0000 (19:28 +0000)]
Merge "Add EMC SMI-S FC Driver in Cinder"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 15 Feb 2014 18:50:25 +0000 (18:50 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Cast the quota set values to integer before checking their validity"
Jenkins [Sat, 15 Feb 2014 18:45:43 +0000 (18:45 +0000)]
Merge "Cast the quota set values to integer before checking their validity"

10 years agoMerge "Remove dependent module py3kcompat"
Jenkins [Sat, 15 Feb 2014 18:45:35 +0000 (18:45 +0000)]
Merge "Remove dependent module py3kcompat"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 15 Feb 2014 06:17:16 +0000 (06:17 +0000)]
Imported Translations from Transifex

Change-Id: Id20fd023c69d84a929f432304ab15e6c80c81b3b

10 years agoMerge "Remove unused exception"
Jenkins [Sat, 15 Feb 2014 06:03:46 +0000 (06:03 +0000)]
Merge "Remove unused exception"

10 years agoReplace assertEqual(None, *) with assertIsNone in tests
llg8212 [Sat, 15 Feb 2014 04:42:56 +0000 (12:42 +0800)]
Replace assertEqual(None, *) with assertIsNone in tests

Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: Iac9462620bf4ae338998fa6aea7f1514a945059b
Closes-Bug:#1280522

10 years agoMerge "lvm: unhandled exception when migrating volume"
Jenkins [Sat, 15 Feb 2014 02:21:20 +0000 (02:21 +0000)]
Merge "lvm: unhandled exception when migrating volume"

10 years agoMerge "Fix cinder-backup volume restore with ceph driver"
Jenkins [Sat, 15 Feb 2014 01:19:10 +0000 (01:19 +0000)]
Merge "Fix cinder-backup volume restore with ceph driver"

10 years agoCast the quota set values to integer before checking their validity
Sylvain Baubeau [Fri, 14 Feb 2014 17:13:50 +0000 (18:13 +0100)]
Cast the quota set values to integer before checking their validity

Change-Id: I56409607d435a5e2ff702ccb9f19c5d12b432570
Closes-Bug: #1280159

10 years agoRemove dependent module py3kcompat
llg8212 [Fri, 14 Feb 2014 08:34:01 +0000 (16:34 +0800)]
Remove dependent module py3kcompat

Module py3kcompat was removed from oslo-incubator, we can use
six directly.

Change-Id: I6c4266b71312ae53ecaedbd2ce1a865e60eb8d50
Closes-Bug: #1280033

10 years agoAdd EMC SMI-S FC Driver in Cinder
Xing Yang [Tue, 11 Feb 2014 05:00:53 +0000 (00:00 -0500)]
Add EMC SMI-S FC Driver in Cinder

Add an EMC SMI-S FC Driver in Cinder. It supports all required
driver features.
Also made enhancements to the existing SMI-S iSCSI Driver
(performance enhancement, multiple pool support and thick/thin
provisioning, extend volume).
emc_smis_common.py is the common code used by both iSCSI driver
(emc_smis_iscsi.py) and FC driver (emc_smis_fc.py).

Implements blueprint emc-fibre-channel-volume-driver

Change-Id: Idace398ef60863811911511bcbbfcecb3bf58270

10 years agoFix wrong example of "nova_endpoint_template"
ruichen [Thu, 13 Feb 2014 11:12:21 +0000 (19:12 +0800)]
Fix wrong example of "nova_endpoint_template"

In cinder.conf

e.g. http://localhost:8774/v2/%(tenant_id)s

should be

e.g. http://localhost:8774/v2/%(project_id)s

Change-Id: I7dd3be9bc9d2e8f26619b00b5bdbc66505a984b2
Closes-Bug: #1279747

10 years agoMerge "Add update support to volume type encryption"
Jenkins [Thu, 13 Feb 2014 14:43:06 +0000 (14:43 +0000)]
Merge "Add update support to volume type encryption"

10 years agoMerge "Rename Openstack to OpenStack"
Jenkins [Thu, 13 Feb 2014 12:11:24 +0000 (12:11 +0000)]
Merge "Rename Openstack to OpenStack"

10 years agoMerge "GlusterFS: Fix create/restore backup"
Jenkins [Thu, 13 Feb 2014 06:23:29 +0000 (06:23 +0000)]
Merge "GlusterFS: Fix create/restore backup"

10 years agoRemove unused exception
KIYOHIRO ADACHI [Thu, 13 Feb 2014 05:10:21 +0000 (14:10 +0900)]
Remove unused exception

 o class WillNotSchedule(CinderException):

   This exception was removed in the following commit.

    commit cea7fe21cecfcd28ede3ba411b8ab8b36c9a7c15
    Author: Zhiteng Huang <zhithuang@ebaysf.com>
    Date:   Thu Jan 2 15:44:30 2014 +0800

        Drop Chance/SimpleScheduler Implementation

Change-Id: I8f5f8e6c5c844a67607dae9fb63524aef7069133

10 years agoMerge "Allow operators to customize max header size"
Jenkins [Thu, 13 Feb 2014 05:06:20 +0000 (05:06 +0000)]
Merge "Allow operators to customize max header size"

10 years agoMerge "Changes to cast variable as integer as XML API fails."
Jenkins [Thu, 13 Feb 2014 04:25:21 +0000 (04:25 +0000)]
Merge "Changes to cast variable as integer as XML API fails."

10 years agoMerge "Move create_, remove_ and ensure_export from drivers"
Jenkins [Thu, 13 Feb 2014 02:00:43 +0000 (02:00 +0000)]
Merge "Move create_, remove_ and ensure_export from drivers"

10 years agoMerge "Ceph backup driver tidyup"
Jenkins [Thu, 13 Feb 2014 01:19:14 +0000 (01:19 +0000)]
Merge "Ceph backup driver tidyup"

10 years agoAdd searchDepth when getClusterInfo called.
Jay Lee [Sat, 8 Feb 2014 01:43:27 +0000 (01:43 +0000)]
Add searchDepth when getClusterInfo called.

Without searchDepth, getClusterInfo shows every volume and
snapshot. It's an unused information and takes very long time.

Change-Id: Id590e3023f4446f01b965baf4e8ac61980101067
Closes-Bug: 1276388

10 years agoMerge "Check type argument on create from source and snap"
Jenkins [Wed, 12 Feb 2014 20:19:29 +0000 (20:19 +0000)]
Merge "Check type argument on create from source and snap"

10 years agoMerge "Removed unused context in _extend_snapshot method"
Jenkins [Wed, 12 Feb 2014 19:00:52 +0000 (19:00 +0000)]
Merge "Removed unused context in _extend_snapshot method"

10 years agoMerge "Add notifier events to cinder volume rename, reset-state"
Jenkins [Wed, 12 Feb 2014 16:29:02 +0000 (16:29 +0000)]
Merge "Add notifier events to cinder volume rename, reset-state"

10 years agoCheck type argument on create from source and snap
john-griffith [Mon, 10 Feb 2014 21:42:43 +0000 (14:42 -0700)]
Check type argument on create from source and snap

Currently the create from snap and create from source
options will set the volume-type when specified in the
create call.

This is actually wrong, because clone and create from snap
MUST be performed on the same backend as the parent volume.  The
result is that if the specified type doesn't match the specs for
it's parent, and actually needs to be on a different backend
the new volume will "appear" to have the correct type, but it's
actually invalid.

The --volume-type argument should be rejected when --source-volid
or --snapshot-id are used, and the parent type-id just picked up
and used.  Then the user can retype if desired.

Auto failing this strictly causes backward compatability issues though
so we'll just check for a mismatch and raise an exception in that case.
This way if the user knows what they're doing and they're explicit
in the command we still allow it and things are fine.

Change-Id: Ia822cfe48a948045ccea6533bcf92e68ed97ef37
Closes-Bug: 1276787

10 years agoRename Openstack to OpenStack
tanlin [Wed, 12 Feb 2014 07:54:03 +0000 (15:54 +0800)]
Rename Openstack to OpenStack

Change-Id: I074a734cc7bd5db60aeb08a42a4f36432b6f3163

10 years agoMerge "Fix LVM migrate_volume tests"
Jenkins [Wed, 12 Feb 2014 07:40:30 +0000 (07:40 +0000)]
Merge "Fix LVM migrate_volume tests"

10 years agoMerge "Dont set error_extending status on API extend call"
Jenkins [Wed, 12 Feb 2014 07:30:19 +0000 (07:30 +0000)]
Merge "Dont set error_extending status on API extend call"

10 years agoRemoved unused context in _extend_snapshot method
ling-yun [Wed, 12 Feb 2014 02:02:54 +0000 (10:02 +0800)]
Removed unused context in _extend_snapshot method

Input parameter 'context' of _extend_snapshot method in
cinder/api/extended_snapshot_attributes.py is not being used, so remove
this 'context' parameter.

Change-Id: I8577e3938d5ed5bfb143a605320063a6b17c3be0
Closes-bug: #1279146

10 years agoMerge "Storwize/SVC: Check wwpn not None"
Jenkins [Tue, 11 Feb 2014 21:44:47 +0000 (21:44 +0000)]
Merge "Storwize/SVC: Check wwpn not None"

10 years agoStorwize/SVC: Check wwpn not None
Avishay Traeger [Tue, 11 Feb 2014 20:34:24 +0000 (22:34 +0200)]
Storwize/SVC: Check wwpn not None

If the storage doesn't have WWPN information for a host but gets it in
the connector, initialize_connection can fail because it does
wwpn.lower(), and wwpn can be None. Make sure it isn't before calling
lower().

Change-Id: I9923f5c87a1e596e35116bfcbf08c181b75bba35
Closes-bug: 1279061

10 years agoMerge "Remove tox locale overrides"
Jenkins [Tue, 11 Feb 2014 19:52:50 +0000 (19:52 +0000)]
Merge "Remove tox locale overrides"

10 years agoMerge "New HP LeftHand array iSCSI driver"
Jenkins [Tue, 11 Feb 2014 19:39:55 +0000 (19:39 +0000)]
Merge "New HP LeftHand array iSCSI driver"

10 years agoChanges to cast variable as integer as XML API fails.
Glenn M. Gobeli [Tue, 11 Feb 2014 18:03:13 +0000 (13:03 -0500)]
Changes to cast variable as integer as XML API fails.

Code change to ensure that the type of the size variable is correct
when cinder is invoked through XML API. The extend volume code path
differs from volume create where the flow portion verifies that the
size variable is an integer; for extend the earliest place to cast
the size variable is in volume_actions.py.

Change-Id: Iaaed463f988769b8093604cd3b677b270dd2c5cd
Closes-bug: 1277233

10 years agoMerge "Storwize/SVC: Fix races in host-related functions"
Jenkins [Tue, 11 Feb 2014 13:11:57 +0000 (13:11 +0000)]
Merge "Storwize/SVC: Fix races in host-related functions"

10 years agoCeph backup driver tidyup
Edward Hope-Morley [Thu, 6 Feb 2014 11:06:02 +0000 (11:06 +0000)]
Ceph backup driver tidyup

Fixed typos and cleaned up log messages and docstrings.

Closes-Bug: 1276969
Change-Id: Idb1ba4f3315edb76fefc993b38b0590b4794345b

10 years agoMove create_, remove_ and ensure_export from drivers
Ann Kamyshnikova [Tue, 27 Aug 2013 12:17:25 +0000 (16:17 +0400)]
Move create_, remove_ and ensure_export from drivers

create_export, remove_export, ensure_export are almost the same in
LVM and BlockDevice drivers. So they should be moved to
a common cinder.volume.iscsi module.

Change-Id: Id7aa0e10d6b346356312416aee179a1fe8bacef1

10 years agoMerge "Add method for unit tests to set logging level"
Jenkins [Tue, 11 Feb 2014 09:07:47 +0000 (09:07 +0000)]
Merge "Add method for unit tests to set logging level"

10 years agoMerge "Move clear_volume back to it's own method"
Jenkins [Tue, 11 Feb 2014 09:07:39 +0000 (09:07 +0000)]
Merge "Move clear_volume back to it's own method"

10 years agoMerge "Fixes cinder failed to create/restore a backup with NFS driver"
Jenkins [Tue, 11 Feb 2014 08:03:19 +0000 (08:03 +0000)]
Merge "Fixes cinder failed to create/restore a backup with NFS driver"

10 years agoMerge "Implement retype in SolidFire driver"
Jenkins [Tue, 11 Feb 2014 07:56:17 +0000 (07:56 +0000)]
Merge "Implement retype in SolidFire driver"

10 years agoMerge "Remove SSH code from 3PAR drivers"
Jenkins [Tue, 11 Feb 2014 00:30:08 +0000 (00:30 +0000)]
Merge "Remove SSH code from 3PAR drivers"

10 years agoNew HP LeftHand array iSCSI driver
Jim Branen [Tue, 7 Jan 2014 00:14:35 +0000 (16:14 -0800)]
New HP LeftHand array iSCSI driver

This driver is intended to replace the current OpenStack Block
Storage HP LeftHand (LH) StoreVirtual iSCSI Driver,
(cinder.volume.drivers.san.HpSanISCSIDriver), by moving the
existing SSH interface into the new driver to maintain backwards
compatibility, and add the new LH REST interface for new driver
features.

We have the driver broken into 3 files:
hp_lefthand_iscis.py (common interface)
hp_lefthand_cliq_proxy.py (old SSH interface)
hp_lefthand_rest_proxy.py (new REST interface)

The reason we are doing this is because the SSH interface on LH
array has connections and performance limitations. These problems
will be resolved by moving to the new LH OS REST interface. Also,
new LeftHand array capabilities will only be supported in the
REST(hplefthandclient) interface.

To support new driver capabilities (create cloned volume), the
python REST client (hplefthandclient) is required and can be
downloaded from the pypi repository:
  http://pypi.python.org/pypi/hplefthandclient.
This REST client requires LeftHand firmware version 11.5 or
greater.

The SSH interface will be phased out over time.

Driver cert test results;
Related-Bug: 1276809

Closes-Bug: 1277339

DocImpact: Document new driver configuration.

Implements blueprint lefthand-cinder-driver

Change-Id: Id557cab69022c3f7851be14cd82bdab0e4157e55

10 years agoGlusterFS: Fix create/restore backup
Eric Harney [Fri, 7 Feb 2014 17:58:35 +0000 (12:58 -0500)]
GlusterFS: Fix create/restore backup

Allow create_backup for GlusterFS volumes, but
only when snapshots do not exist.  (For now.)

Restore is a no-op for the driver, so allow it.

Related-Bug: 1247743
Closes-Bug: 1275977

Change-Id: I50b8f6cac684c967c7374bb43247a396ce936157

10 years agoAllow operators to customize max header size
Florent Flament [Fri, 17 Jan 2014 10:54:27 +0000 (10:54 +0000)]
Allow operators to customize max header size

HTTP messages max header line size has been increased from 8K to 16K
by default to allow using tokens including up to 14-15 catalog
entries.  The same issue
(https://bugs.launchpad.net/swift/+bug/1190149) may occur again in
the future, if keystone's catalog grows further.

Allowing operators to customize the max header size, will allow them
to have Cinder working whatever the size of the catalog (if the option
is properly set).

Change-Id: Iac269d96fadc96c1e9383dc03422f2d87196dd9d
Related-Bug: #1190149
DocImpact

10 years agoFixup persistence file not found on tgt remove
John Griffith [Mon, 10 Feb 2014 05:21:18 +0000 (05:21 +0000)]
Fixup persistence file not found on tgt remove

After commit: beecd769af02ba5915be827d28a7b46d970e41b0
we're experiencing a race in the tempest gating tests.

It appears that there are certain cases where a detach
and a delete call can overlap causing a race in the
remove_iscsi_target method.  The result is that when
the slower method gets around to the final removal of
the persistence file it's no longer there, so we
hit an unhandled exception.

This patch does two things:
1. It adds the volume lock to the detach_volume
method in the manager (already in place for delete).
This should mitigate the race and allow us to avoid it.

2. In the iscsi_remove_target method check if the
persist file has already been removed when we get
to the last check.  The fact is that if it was somehow
removed before we got here we don't really care, we're
just going to delete it anyway.

Change-Id: Ied45e1a66c8fb79c95ada66f8c59bd2839e200ad
Closes-Bug: 1277362

10 years agoRemove tox locale overrides
Jeremy Stanley [Mon, 10 Feb 2014 02:57:24 +0000 (02:57 +0000)]
Remove tox locale overrides

* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: Ib970a2d3cf62619378792d295b4e2e7216e05181
Closes-Bug: #1277495

10 years agoAdd method for unit tests to set logging level
Bill Owen [Sun, 9 Feb 2014 21:46:50 +0000 (14:46 -0700)]
Add method for unit tests to set logging level

Implements: blueprint cinder-testcase-set-loglevel
Change-Id: Id4bb7023659eda593cc5ac451aa580f68a1a6b9d

10 years agoStorwize/SVC: Fix races in host-related functions
Avishay Traeger [Sat, 8 Feb 2014 20:59:58 +0000 (22:59 +0200)]
Storwize/SVC: Fix races in host-related functions

In the Storwize/SVC driver, initialize_connection checks if a host
object exists on the storage, and if not, creates one. Similarly,
terminate_connection checks if there are any more mappings for this
host, and deletes the host object if there are none. Consequently, there
exist races between two initialize_connection calls, two
terminate_connection calls, or one and one.

The easy solution here is to use locks. Because locks are files on the
local machine, this implies that all cinder-volume processes managing a
given Storwize/SVC contoller run on the same machine.

Change-Id: I62cd992e7150e7d16f1a2b2be6ef61c64b638858
Closes-Bug: #1274123

10 years agoFix cinder-backup volume restore with ceph driver
Edward Hope-Morley [Thu, 6 Feb 2014 13:06:44 +0000 (13:06 +0000)]
Fix cinder-backup volume restore with ceph driver

Restore operations currently break if restoring to
the backup source volume, that volume is an rbd and
the associated backup was incremental.

Change-Id: Ieafe6ab2d1a15cad2b534a3aab0df29eb8591306
Closes-Bug: 1276977

10 years agoMerge "Brick fix BrickException message formatting"
Jenkins [Sat, 8 Feb 2014 05:04:21 +0000 (05:04 +0000)]
Merge "Brick fix BrickException message formatting"

10 years agoDont set error_extending status on API extend call
john-griffith [Sat, 8 Feb 2014 04:55:22 +0000 (21:55 -0700)]
Dont set error_extending status on API extend call

Recent change (Ifd523ac5e9039861cf87711dc5c4842b5cb524c2)
moved the quota check on extend_volume to the API layer
in order to provide feedback to caller if the quota check
failed.

The problem is that change still sets the volume status to
error_extending if the quota check fails.  There's no reason
to do this if we're now giving immediate feedback that the call
failed.

I'm also unclear on what the purpose of adding the reservations
to the rpc call are, but I'll double check on that before changing.

This patch leaves most of the previous change in place but
removes the setting of error_extending to the volumes status
on the quota fail.

Change-Id: I8521c876b8d5c344713f211fa0c8c0c58a12a879

10 years agoMerge "Fix misspellings in cinder"
Jenkins [Sat, 8 Feb 2014 04:16:15 +0000 (04:16 +0000)]
Merge "Fix misspellings in cinder"

10 years agoFix misspellings in cinder
Shane Wang [Fri, 7 Feb 2014 06:45:43 +0000 (14:45 +0800)]
Fix misspellings in cinder

Fix misspellings detected by:
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I4780a9cdd4a2aff5a3dbc55c87e93b0972d907db
Closes-Bug: #1257295

10 years agoFixes cinder failed to create/restore a backup with NFS driver
Jeff Applewhite [Thu, 30 Jan 2014 19:11:08 +0000 (14:11 -0500)]
Fixes cinder failed to create/restore a backup with NFS driver

The action cinder backup-create fails when trying to backup a newly
created volume when using cinder.volume.drivers.nfs.NfsDriver. This
patch removes not implemented stubs for backup_volume and
restore_volume. The inherited methods in cinder/volume/driver.py
succeed in creating a backup and in restoring it. After manual
testing of this change backups/restores succeed without the not
implemented stubs. This change also adds the not implemented
stubs to the glusterfs driver until a fix is submitted.

Closes-Bug: #1247743

Change-Id: I5478d00442ce855c91a7f04c5ba2b40733d44902

10 years agoMerge "Validate the quota in the API layer for volume extend"
Jenkins [Sat, 8 Feb 2014 00:34:21 +0000 (00:34 +0000)]
Merge "Validate the quota in the API layer for volume extend"

10 years agoMerge "Brick connector fix for GlusterFS"
Jenkins [Sat, 8 Feb 2014 00:19:02 +0000 (00:19 +0000)]
Merge "Brick connector fix for GlusterFS"

10 years agoMerge "RBD unit test improvements"
Jenkins [Fri, 7 Feb 2014 23:24:29 +0000 (23:24 +0000)]
Merge "RBD unit test improvements"

10 years agoBrick fix BrickException message formatting
Walter A. Boring IV [Fri, 31 Jan 2014 19:33:17 +0000 (11:33 -0800)]
Brick fix BrickException message formatting

This patch fixes an issue when passing in a
formatting key and value for formatted
text messages for all Brick exceptions.

Added unit tests for brick's exception

Change-Id: I76dcfc6872ca20305d1844162dd0ae28c4bb565c
Related-Bug: 1238085

10 years agoMerge "Rename self.tgtadm to self.target_helper"
Jenkins [Fri, 7 Feb 2014 16:39:28 +0000 (16:39 +0000)]
Merge "Rename self.tgtadm to self.target_helper"

10 years agolvm: unhandled exception when migrating volume
git-harry [Fri, 7 Feb 2014 13:37:59 +0000 (13:37 +0000)]
lvm: unhandled exception when migrating volume

Catches the StopIteration exception if the destination volume group
does not exist when attempting to migrate a volume.

Change-Id: I0b5dd15e4c7198fe54abf1aa917a60554adcd568
Closes-Bug:  #1277512

10 years agoImplement retype in SolidFire driver
John Griffith [Thu, 6 Feb 2014 06:33:58 +0000 (23:33 -0700)]
Implement retype in SolidFire driver

This just adds the ability to modify the
type of an existing SolidFire volume to
another type suppported on the same backend.

Main use case for this is changing QoS settings
for a volume on-demand.

Also updates the internal attributes to store the
deltas between the old-type and new-type.

Change-Id: I65a4c34cbec17d0f3987c1d964e6ad1bafea3601
Implements: blueprint retype-support-for-solidfire-driver

10 years agoMerge "Don't use shred for volume_clear=zero"
Jenkins [Fri, 7 Feb 2014 02:53:30 +0000 (02:53 +0000)]
Merge "Don't use shred for volume_clear=zero"

10 years agoMerge "Add time_type dictionary to test_migrations"
Jenkins [Fri, 7 Feb 2014 02:43:57 +0000 (02:43 +0000)]
Merge "Add time_type dictionary to test_migrations"

10 years agoValidate the quota in the API layer for volume extend
Vincent Hou [Wed, 8 Jan 2014 07:52:54 +0000 (02:52 -0500)]
Validate the quota in the API layer for volume extend

The user needs a friendly message feedback if the quota exceeds when
the volume is about to extend.

Change-Id: Ifd523ac5e9039861cf87711dc5c4842b5cb524c2
Closes-Bug: #1256763

10 years agoMerge "Sync RPC module from Oslo"
Jenkins [Fri, 7 Feb 2014 01:55:49 +0000 (01:55 +0000)]
Merge "Sync RPC module from Oslo"

10 years agoMerge "Set a sane default for state_path"
Jenkins [Fri, 7 Feb 2014 01:53:34 +0000 (01:53 +0000)]
Merge "Set a sane default for state_path"

10 years agoMerge "On create_volume flow get rid of host parameter"
Jenkins [Thu, 6 Feb 2014 22:51:58 +0000 (22:51 +0000)]
Merge "On create_volume flow get rid of host parameter"

10 years agoRename self.tgtadm to self.target_helper
Eric Harney [Wed, 29 Jan 2014 15:45:03 +0000 (10:45 -0500)]
Rename self.tgtadm to self.target_helper

Using "tgtadm" for this member variable is confusing because it
actually represents tgt, IET, and LIO.  Rename to a more generic
term to make things more readable.

Also remove "tgtadm" from method names and references in tests
where it is not tgtadm-specific.

I'm choosing the name "target_helper" because "tgtadm" = tgtd,
and "iscsi_helper" doesn't fit when using RDMA in ISERDriver.

Change-Id: I73fab03eb6635be6b49950e3a0ccc0e9801697ca

10 years agoMerge "vmware: intermittent failure in test_vmware_vmdk"
Jenkins [Thu, 6 Feb 2014 19:32:06 +0000 (19:32 +0000)]
Merge "vmware: intermittent failure in test_vmware_vmdk"

10 years agoFix LVM migrate_volume tests
git-harry [Thu, 6 Feb 2014 16:16:57 +0000 (16:16 +0000)]
Fix LVM migrate_volume tests

In cinder/tests/test_volume.py the following tests fail to correctly
test the functionality.

LVMISCSIVolumeDriverTestCase.test_lvm_migrate_volume_diff_driver
LVMISCSIVolumeDriverTestCase.test_lvm_migrate_volume_diff_host

The location_info is incorrect, it needs to be 5 sections separated by
colons otherwise they fail due to bad location info.

Change-Id: Ie7ceaba6b35c0aedb47cae0db5c60cc489e94c49
Closes-Bug: #1277155

10 years agoBrick connector fix for GlusterFS
Eric Harney [Fri, 20 Dec 2013 16:30:51 +0000 (11:30 -0500)]
Brick connector fix for GlusterFS

Fixes an InvalidParameterValue error by passing the required
information to Brick for mounting.

See also: 1cd3626 Brick connector revised fix for NFS

Bump driver version 1.1.1.

Closes-Bug: 1238085

Change-Id: Ie45889460dd4775a556d592161c98c24a56989c7

10 years agoUpdated from global requirements
OpenStack Jenkins [Wed, 29 Jan 2014 16:57:35 +0000 (16:57 +0000)]
Updated from global requirements

Change-Id: I60e217d361a71b2c7518aff98b5530e689d838c5

10 years agoMerge "vmdk: To add missing time unit in driver option"
Jenkins [Thu, 6 Feb 2014 14:06:38 +0000 (14:06 +0000)]
Merge "vmdk: To add missing time unit in driver option"

10 years agoMerge "Allow spaces in host names in the storwize driver"
Jenkins [Thu, 6 Feb 2014 12:10:48 +0000 (12:10 +0000)]
Merge "Allow spaces in host names in the storwize driver"

10 years agovmware: intermittent failure in test_vmware_vmdk
Subramanian Neelakantan [Thu, 6 Feb 2014 06:07:27 +0000 (11:37 +0530)]
vmware: intermittent failure in test_vmware_vmdk

There was a race condition between the two Event() objects being
created within loopingcall and Retry in api module. Did away with
the Event object in Retry and used loopingcall the right way.

Change-Id: I2534bad9294747fcd618ba3634abb01ceef92213

10 years agoRBD unit test improvements
Edward Hope-Morley [Wed, 5 Feb 2014 17:42:53 +0000 (17:42 +0000)]
RBD unit test improvements

This commit brings the implementation of the test_rbd and
test_backup_ceph unit tests more inline and tries to ensure
that no mock is set without being unset so as not to tread
on the toes of any other tests.

Change-Id: Ibb6bd3bf90952914512e3fa39fd216f43f0f8ecb
Closes-bug: 1276657

10 years agoMove clear_volume back to it's own method
john-griffith [Tue, 4 Feb 2014 20:03:52 +0000 (13:03 -0700)]
Move clear_volume back to it's own method

This just moves clear_volume back to it's own method
and also only calls volutils.clear if we actually
need to perform the clear operation.

Also takes out the hard-coded multiplier of 1024 and
uses units.GiB.  Maybe this should be a separate patch,
I'll spin another if there are objections.

Change-Id: I56f6690fbadc0d44eba48f49d29386d5b9dca195

10 years agoDon't use shred for volume_clear=zero
Eric Harney [Tue, 4 Feb 2014 19:06:59 +0000 (14:06 -0500)]
Don't use shred for volume_clear=zero

We should just call copy_volume unless volume_clear='shred' is
specified.

Change-Id: Id5e15b000cf0d6146ec13f42ff5bb611b6f18484

10 years agoMerge "Remove create_export from volume create"
Jenkins [Wed, 5 Feb 2014 17:05:30 +0000 (17:05 +0000)]
Merge "Remove create_export from volume create"

10 years agoMerge "LVM: remove redundant casts to float"
Jenkins [Wed, 5 Feb 2014 01:51:39 +0000 (01:51 +0000)]
Merge "LVM: remove redundant casts to float"

10 years agoMerge "Move clear_volume method to volume.utils"
Jenkins [Tue, 4 Feb 2014 23:09:27 +0000 (23:09 +0000)]
Merge "Move clear_volume method to volume.utils"

10 years agoMerge "LVM: log thin pool name and size upon creation"
Jenkins [Tue, 4 Feb 2014 20:25:36 +0000 (20:25 +0000)]
Merge "LVM: log thin pool name and size upon creation"

10 years agoMove clear_volume method to volume.utils
Ann Kamyshnikova [Fri, 23 Aug 2013 12:37:38 +0000 (16:37 +0400)]
Move clear_volume method to volume.utils

clear_volume was almost the same in LVM and BlockDevice drivers.
So it has been moved to utils.

Change-Id: Iadb6b8d01cf500109bb48b0d2c817109918519e0

10 years agoAdd update support to volume type encryption
Brianna Poulos [Mon, 18 Nov 2013 23:04:15 +0000 (18:04 -0500)]
Add update support to volume type encryption

This patch adds update support to the Volume Type Encryption API
Extension.  It allows the updating of volume type encryption for
a given volume type as long as no volumes are currently in use
with that volume type.

Change-Id: If5f9ef792626e7dfaf82365bb6838b964f8238ae
Implements: blueprint encrypt-cinder-volumes
https://blueprints.launchpad.net/nova/+spec/encrypt-cinder-volumes

10 years agoLVM: log thin pool name and size upon creation
Jon Bernard [Mon, 3 Feb 2014 17:44:05 +0000 (12:44 -0500)]
LVM: log thin pool name and size upon creation

The thin pool creation size may not be obvious to the user, so a log
message may help alleviate some confusion.

Change-Id: I3a98b610be612a4fb7496a89f9005012c9210bf8

10 years agoRemove create_export from volume create
John Griffith [Fri, 31 Jan 2014 03:53:37 +0000 (03:53 +0000)]
Remove create_export from volume create

Currently the LVM driver creates iscsi targets on
volume creation, even though it's only used at
attach time.  This isn't necessary and in fact
causes issues if a volume is extended because the
target information isn't currently updated after the
extend.  In addition a number of other drivers inclduing
the LIO iscsi driver require the target be created with
initiator info, so the tgt that's created initially
again isn't valid.

This change removes the create_export call from the
volume create process and makes it part of the
managers intialize_connection routine which is
more appropriate.

This change also removes the target on detach since
it's not used any longer and again as the volume may
be modified or extended.

Change-Id: I0b7dfdaf7e49a069da22f22f459861b0b49430a4
Closes-Bug: 1248947

10 years agovmdk: To add missing time unit in driver option
Vipin Balachandran [Tue, 4 Feb 2014 12:41:12 +0000 (18:11 +0530)]
vmdk: To add missing time unit in driver option

Time unit is missing in the description of vmdk driver option
"vmware_task_poll_interval". Due to this, the vmdk driver config
reference document doesn't have the timeunit in its description
column. This fix adds the missing time unit (seconds) in the
driver option.

Closes-Bug: #1258100
Change-Id: I2c49c65ca9a48a2dcc6898a32b4bbc0433e8916b

10 years agoUpdate SolidFire Driver to use cinder's units
john-griffith [Tue, 4 Feb 2014 03:22:33 +0000 (20:22 -0700)]
Update SolidFire Driver to use cinder's units

The SolidFire driver uses math module and it's own
local GB variable.

This patch just removes that and uses the GiB def
that already exists in cinder.units.

Change-Id: I4fc167bd61dbb609bd325b4a32b120bf55db02fa

10 years agoUpdate cinder.conf.sample for new keystone client
john-griffith [Tue, 4 Feb 2014 03:10:03 +0000 (20:10 -0700)]
Update cinder.conf.sample for new keystone client

The latest version of keystoneclient adds a new conf
entry that we don't have in Cinder.

This patch adds "enforce_token_bind=permissive"

Change-Id: I1aeb6a59ca1787c05075d76dd9d1f96722653d88

10 years agoMerge "Do not show quota of removed volume types in Default Quotas panel"
Jenkins [Mon, 3 Feb 2014 18:40:42 +0000 (18:40 +0000)]
Merge "Do not show quota of removed volume types in Default Quotas panel"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 3 Feb 2014 18:22:35 +0000 (18:22 +0000)]
Merge "Imported Translations from Transifex"

10 years agoLVM: remove redundant casts to float
Jon Bernard [Mon, 3 Feb 2014 17:44:33 +0000 (12:44 -0500)]
LVM: remove redundant casts to float

The vg_free_space field is always assigned a float, so additional casts
are not necessary.

Change-Id: Ic2af78ba7dbd7388cc071fc2f0ea876a1558d0e9

10 years agoOn create_volume flow get rid of host parameter
Anastasia Karpinska [Mon, 3 Feb 2014 15:41:46 +0000 (17:41 +0200)]
On create_volume flow get rid of host parameter

On manager create_volume flow save host parameter to volume_ref immediately
when create volume_ref and remove host parameter from other tasks.

Change-Id: Ifc672741c317112b084a076ca65c11c5d0290930

10 years agoMerge "Add support for special char in volume metadata"
Jenkins [Mon, 3 Feb 2014 08:03:26 +0000 (08:03 +0000)]
Merge "Add support for special char in volume metadata"