]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "VNX driver needs extra params for create cg from src"
Jenkins [Fri, 14 Aug 2015 11:02:16 +0000 (11:02 +0000)]
Merge "VNX driver needs extra params for create cg from src"

9 years agoMerge "LVM Thin Provisioning auto-detect"
Jenkins [Fri, 14 Aug 2015 09:19:42 +0000 (09:19 +0000)]
Merge "LVM Thin Provisioning auto-detect"

9 years agoMerge "Remove unused fake objects in vmdk test module"
Jenkins [Fri, 14 Aug 2015 05:19:39 +0000 (05:19 +0000)]
Merge "Remove unused fake objects in vmdk test module"

9 years agoMerge "VMware: Set virtual disk UUID to volume ID"
Jenkins [Fri, 14 Aug 2015 05:19:28 +0000 (05:19 +0000)]
Merge "VMware: Set virtual disk UUID to volume ID"

9 years agoMerge "VMware: Add volume ID in vCenter's volume config"
Jenkins [Fri, 14 Aug 2015 05:19:16 +0000 (05:19 +0000)]
Merge "VMware: Add volume ID in vCenter's volume config"

9 years agoMerge "Add objects.register_all() to cinder-all command"
Jenkins [Fri, 14 Aug 2015 05:05:46 +0000 (05:05 +0000)]
Merge "Add objects.register_all() to cinder-all command"

9 years agoMerge "Use Requests HTTP library and URL safe names"
Jenkins [Fri, 14 Aug 2015 01:50:38 +0000 (01:50 +0000)]
Merge "Use Requests HTTP library and URL safe names"

9 years agoMerge "Don't return Exception when volume is detached"
Jenkins [Fri, 14 Aug 2015 00:48:00 +0000 (00:48 +0000)]
Merge "Don't return Exception when volume is detached"

9 years agoMerge "Clean up volume_types logging"
Jenkins [Thu, 13 Aug 2015 17:06:14 +0000 (17:06 +0000)]
Merge "Clean up volume_types logging"

9 years agoDon't return Exception when volume is detached
Walter A. Boring IV [Wed, 12 Aug 2015 21:00:54 +0000 (14:00 -0700)]
Don't return Exception when volume is detached

This patch changes the way we handle volume detach
attempts when the attachment_id is already detached
and/or when the volume has no attachments.  We now
handle this the same way we do with deleting volumes
that don't exist.  We return success.

This patch also takes care to make sure we safely reset
the volume status to what it should be depending on if
there are other attachments.  If the attachment_id is
passed in and that attachment is detached, but there are
other attachments, we want to make sure that the volume is
left in an in-use state, not available.

Change-Id: I11b7c45bb6570ce11e13e487cf1136ca2551036b
Closes-Bug: #1484194
Related-Bug: #1476806

9 years agoMerge "Fix RestURL to storage backend in Huawei driver"
Jenkins [Thu, 13 Aug 2015 16:13:54 +0000 (16:13 +0000)]
Merge "Fix RestURL to storage backend in Huawei driver"

9 years agoMerge "Attach snapshot - driver only"
Jenkins [Thu, 13 Aug 2015 16:06:10 +0000 (16:06 +0000)]
Merge "Attach snapshot - driver only"

9 years agoMerge "Add oslo.vmware into test-requirements"
Jenkins [Thu, 13 Aug 2015 15:44:27 +0000 (15:44 +0000)]
Merge "Add oslo.vmware into test-requirements"

9 years agoUse Requests HTTP library and URL safe names
nikeshm [Tue, 11 Aug 2015 14:02:44 +0000 (19:32 +0530)]
Use Requests HTTP library and URL safe names

Use Requests HTTP library instead of urllib, and also use URL safe
resource names to communicate to the DotHill array.

Change-Id: If20bca9f375269cf652ef367c1b70eb061f57337
Closes-Bug: #1461718
Co-Authored-By: Lakshman <lakshminarayanat@vedams.com>
9 years agoAdd objects.register_all() to cinder-all command
Michal Dulko [Thu, 13 Aug 2015 12:45:15 +0000 (14:45 +0200)]
Add objects.register_all() to cinder-all command

In cmd/all.py registration of objects was missing. This caused running
cinder-all command to raise exceptions about unknown objects. Following
commit fixes this problem.

Closes-Bug: 1484533
Change-Id: Id7686bc801aaea30c1f7f24209044311656fa4cd

9 years agoVMware: Set virtual disk UUID to volume ID
Vipin Balachandran [Mon, 27 Jul 2015 07:57:46 +0000 (13:27 +0530)]
VMware: Set virtual disk UUID to volume ID

The symlinks in /dev/disk/by-id/ (in a Linux guest OS running in VMware
ESX based Nova instance) use UUID of virtual disk as the SCSI device ID
when disk.EnableUUID is set to True in the virtual machine configuration
file. This patch sets the UUID of virtual disk corresponding to a Cinder
volume (at the time of volume creation) to volume ID so that end-users
(of Nova instance) can identify the device corresponding to an attached
volume in the guest using /dev/disk/by-id symlink.

For example, given a Cinder volume with ID = xyz, user can identify the
device corresponding to the volume in instance's guest using the symlink
/dev/disk/by-id/scsi-xyz provided disk.EnableUUID is set to True in the
instance's virtual machine configuration file (in ESX).

Note: If the UUID of the virtual disk corresponding to a volume is unset
at the time of volume creation, a random UUID will be used.

Closes-Bug: #1475738
Change-Id: I8f9d210083010b25833a7b108ae135417c72fd09

9 years agoMerge "Update snap-quota to unlimited in Nimble driver"
Jenkins [Thu, 13 Aug 2015 00:15:40 +0000 (00:15 +0000)]
Merge "Update snap-quota to unlimited in Nimble driver"

9 years agoAdd oslo.vmware into test-requirements
Jay S Bryant [Wed, 12 Aug 2015 20:31:05 +0000 (15:31 -0500)]
Add oslo.vmware into test-requirements

run_tests.sh is currently broken due to the commit that made
installing oslo.vmware optional: e67adc385ce6997249fbf70e9402264f758fc6f4

There are test cases that require oslo.vmware and the change made in the
commit for tox doesn't cover the case where run_tests.sh is used.  Without
including oslo.vmware in the test-requirements file there are a number of
test cases that fail without the library installed.

This patch resolves the issue by move oslo.vmware over to the
test-requirements file.

Change-Id: I2ffd21a23552e39bdb220c4aaa0c5e372c52f7ce

9 years agoMerge "Add unit test cases for the capacity scheduler"
Jenkins [Wed, 12 Aug 2015 17:33:53 +0000 (17:33 +0000)]
Merge "Add unit test cases for the capacity scheduler"

9 years agoLVM Thin Provisioning auto-detect
Eric Harney [Mon, 16 Jun 2014 19:43:51 +0000 (15:43 -0400)]
LVM Thin Provisioning auto-detect

Add the ability to set lvm_type=auto, which will
enable thin provisioning if the system supports it,
and the configured volume group either:
a) has a pool LV with the expected name or
b) has no LVs

This, along with thin-provisioning accounting, will
give a path to move toward thin LVM as the default.

DocImpact: new value 'auto' for option 'lvm_type'

Partial-Bug: #1472803

Change-Id: Idfc1cd749bfd7aec659ab8e80629cc506cd9797a

9 years agoRemove unused fake objects in vmdk test module
Vipin Balachandran [Wed, 12 Aug 2015 10:47:55 +0000 (16:17 +0530)]
Remove unused fake objects in vmdk test module

Patch to remove unused fake objects in the vmdk unit
test module.

Change-Id: I15f4ed1c028bc01558a2f5bf39d9fb294afd52bf

9 years agoVMware: Add volume ID in vCenter's volume config
Vipin Balachandran [Mon, 22 Jun 2015 14:26:09 +0000 (19:56 +0530)]
VMware: Add volume ID in vCenter's volume config

HP data protector's backup of vCenter inventory is failing
for 'in-use' Cinder volumes because the vmdk is attached
to two VMs (Nova instance and the backing VM corresponding
to Cinder volume). The solution is to skip the backing VM
during data protector's backup.

This patch adds key 'cinder.volume.id' with value set to
volume UUID in volume's vCenter config file so that other
vCenter solutions can uniquely identify Cinder volumes.

Closes-Bug: #1484012
Change-Id: I08a5f1a39def14f164ab3ca08a480310ce0b79ca

9 years agoMerge "Fix argument order for assertEqual in tests"
Jenkins [Tue, 11 Aug 2015 22:59:38 +0000 (22:59 +0000)]
Merge "Fix argument order for assertEqual in tests"

9 years agoMerge "Corrected order of parameters in docstring"
Jenkins [Tue, 11 Aug 2015 22:59:26 +0000 (22:59 +0000)]
Merge "Corrected order of parameters in docstring"

9 years agoAdd unit test cases for the capacity scheduler
James Carey [Thu, 6 Aug 2015 04:11:27 +0000 (04:11 +0000)]
Add unit test cases for the capacity scheduler

Add unit tests for the capacity weigher for cases where the host
has 'infinite' or 'unknown' capacities.

Note that while the new test cases follow the correct parameter
ordering for assertEqual, the other test cases will be fixed
in a separate patch.

Change-Id: I5ab20443563c253b561f328aedca4fd2f62b8d47

9 years agoFix argument order for assertEqual in tests
Skyler Berg [Tue, 4 Aug 2015 21:44:58 +0000 (14:44 -0700)]
Fix argument order for assertEqual in tests

Some tests incorrectly use the order assertEqual(observed, expected)
instead of the correct order, assertEqual(expected, observed). This
patch corrects this issue.

Change-Id: I4683b80451d3e4576443c4472a01460b24633d04
Closes-Bug: #1259292

9 years agoMerge "Fix order of parms in assertEqual for scheduler ut"
Jenkins [Tue, 11 Aug 2015 16:22:31 +0000 (16:22 +0000)]
Merge "Fix order of parms in assertEqual for scheduler ut"

9 years agoMerge "ConsistencyGroup Object"
Jenkins [Tue, 11 Aug 2015 05:57:54 +0000 (05:57 +0000)]
Merge "ConsistencyGroup Object"

9 years agoFix order of parms in assertEqual for scheduler ut
James Carey [Thu, 6 Aug 2015 05:13:15 +0000 (05:13 +0000)]
Fix order of parms in assertEqual for scheduler ut

When assertEqual is used it should be assertEqual(expected, observed).
Constant values are always the expected.  This patch makes them the
first parameter and fixes some other non-constant cases.

Closes-Bug: #1482373
Change-Id: Iec771d35d1005434281f9efd8bed8d53134abc7f

9 years agoMerge "Update authorization actions for services API"
Jenkins [Tue, 11 Aug 2015 04:14:07 +0000 (04:14 +0000)]
Merge "Update authorization actions for services API"

9 years agoMerge "NetApp SSC job will be run periodically"
Jenkins [Tue, 11 Aug 2015 04:13:56 +0000 (04:13 +0000)]
Merge "NetApp SSC job will be run periodically"

9 years agoMerge "Remove unused context parameter"
Jenkins [Tue, 11 Aug 2015 04:13:45 +0000 (04:13 +0000)]
Merge "Remove unused context parameter"

9 years agoVNX driver needs extra params for create cg from src
Tina [Fri, 7 Aug 2015 04:33:03 +0000 (00:33 -0400)]
VNX driver needs extra params for create cg from src

The cinder manager is passing 2 additional parameters (source_cg and
source_vols) to create_consistencygroup_from_src of driver. VNX
driver needs to add these 2 parameters.

Change-Id: Ibf1ac8955238a27c82b32e1aa728f1efacd71273
Closes-Bug: #1482571

9 years agoMerge "Revert "Revert First version of Cinder driver for Quobyte""
Jenkins [Tue, 11 Aug 2015 01:29:27 +0000 (01:29 +0000)]
Merge "Revert "Revert First version of Cinder driver for Quobyte""

9 years agoMerge "mark oslo.vmware as optional dependency"
Jenkins [Mon, 10 Aug 2015 21:14:32 +0000 (21:14 +0000)]
Merge "mark oslo.vmware as optional dependency"

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 10 Aug 2015 17:03:10 +0000 (17:03 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Add discard to connection properties"
Jenkins [Mon, 10 Aug 2015 17:02:59 +0000 (17:02 +0000)]
Merge "Add discard to connection properties"

9 years agoMerge "Remove StorPool Driver"
Jenkins [Mon, 10 Aug 2015 17:02:38 +0000 (17:02 +0000)]
Merge "Remove StorPool Driver"

9 years agoMerge "RBD: use user-configured value for chunk size"
Jenkins [Mon, 10 Aug 2015 16:04:41 +0000 (16:04 +0000)]
Merge "RBD: use user-configured value for chunk size"

9 years agoMerge "Validate 'is_public' when creating volume type"
Jenkins [Mon, 10 Aug 2015 16:00:33 +0000 (16:00 +0000)]
Merge "Validate 'is_public' when creating volume type"

9 years agomark oslo.vmware as optional dependency
Matthew Edmonds [Fri, 17 Jul 2015 20:42:35 +0000 (16:42 -0400)]
mark oslo.vmware as optional dependency

Driver-specific requirements are not hard requirements, since the
choice of drivers is up to the operator. The oslo.vmware module is
herein moved out of requirements.txt and instead listed as an optional
dependency using the extras functionality in setup.cfg.

A check is added to the vmdk driver to gracefully handle import errors
if the vmdk driver is used and oslo.vmware is not found.

Change-Id: I9b00edc38f0700304a1a164f0679a734f8701ebe
Closes-Bug: #1475739

9 years agoMerge "Remove bad tests for the VMAX driver"
Jenkins [Mon, 10 Aug 2015 11:29:23 +0000 (11:29 +0000)]
Merge "Remove bad tests for the VMAX driver"

9 years agoConsistencyGroup Object
Michal Dulko [Tue, 21 Jul 2015 08:32:01 +0000 (10:32 +0200)]
ConsistencyGroup Object

This patch adds VersionedObjects abstraction layer to
consistency groups.

Change-Id: I3febb95bb2b3dd8f10da4f01ffa705e39cb20520
Partial-Implements: blueprint cinder-objects
Co-Authored-by: Daniel Tadrzak <daniel.tadrzak@intel.com>
Co-Authored-by: Michal Dulko <michal.dulko@intel.com>
9 years agoMerge "Tests: Fix os.path.exists mock (emc_vnxdirect)"
Jenkins [Mon, 10 Aug 2015 08:17:34 +0000 (08:17 +0000)]
Merge "Tests: Fix os.path.exists mock (emc_vnxdirect)"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 10 Aug 2015 02:09:10 +0000 (02:09 +0000)]
Updated from global requirements

Change-Id: I25a1f5b137358c4d53c0d26c5d56a8f38c626eb8

9 years agoMerge "Remove incorrect URLs from jenkins.rst"
Jenkins [Mon, 10 Aug 2015 01:36:11 +0000 (01:36 +0000)]
Merge "Remove incorrect URLs from jenkins.rst"

9 years agoMerge "Fixing notify message of manage_existing flow"
Jenkins [Mon, 10 Aug 2015 01:35:04 +0000 (01:35 +0000)]
Merge "Fixing notify message of manage_existing flow"

9 years agoMerge "Fix volume limit exceeded exception"
Jenkins [Mon, 10 Aug 2015 01:04:21 +0000 (01:04 +0000)]
Merge "Fix volume limit exceeded exception"

9 years agoMerge "Port Tintri driver to ABC driver model"
Jenkins [Mon, 10 Aug 2015 01:04:10 +0000 (01:04 +0000)]
Merge "Port Tintri driver to ABC driver model"

9 years agoMerge "Fix Python 3 issues in Hitachi HNAS tests"
Jenkins [Mon, 10 Aug 2015 01:04:00 +0000 (01:04 +0000)]
Merge "Fix Python 3 issues in Hitachi HNAS tests"

9 years agoMerge "Port remotefs driver to Python 3"
Jenkins [Mon, 10 Aug 2015 01:03:49 +0000 (01:03 +0000)]
Merge "Port remotefs driver to Python 3"

9 years agoMerge "Change default of option volume_driver to LVMVolumeDriver"
Jenkins [Mon, 10 Aug 2015 01:03:38 +0000 (01:03 +0000)]
Merge "Change default of option volume_driver to LVMVolumeDriver"

9 years agoMerge "Port IBM driver to Python 3"
Jenkins [Mon, 10 Aug 2015 01:03:28 +0000 (01:03 +0000)]
Merge "Port IBM driver to Python 3"

9 years agoMerge "VNX driver needs to return snapshot objects"
Jenkins [Mon, 10 Aug 2015 00:59:17 +0000 (00:59 +0000)]
Merge "VNX driver needs to return snapshot objects"

9 years agoValidate 'is_public' when creating volume type
liyingjun [Wed, 29 Jul 2015 01:42:00 +0000 (09:42 +0800)]
Validate 'is_public' when creating volume type

is_public should be checked when creating volume type, otherwise DBError
will be raised in cinder-api, and the user will receive a 500 Internal
server error.

Change-Id: Id0695fbb05613f3655a7af5b5ab10e08ed5e606b
Closes-bug: #1479170

9 years agoRemove StorPool Driver
Mike Perez [Mon, 10 Aug 2015 00:40:25 +0000 (17:40 -0700)]
Remove StorPool Driver

CI has been disabled since July 31st due to false failure reports, and
no sign from the maintainers to fix things.

Change-Id: Ife07a5f5933274a04f88967abfc02e57ebea576c

9 years agoIgnore InsecureReq warning in SolidFire Driver
John Griffith [Sun, 9 Aug 2015 16:00:51 +0000 (10:00 -0600)]
Ignore InsecureReq warning in SolidFire Driver

The python requests package logs the use of Insecure as
a warning.  Currently the use of http vs https is a
configurable option, and for those that use http, the
log files include a Warning message for every single
request to the SolidFire Cluster.

In our case we're explicitly providing the
option to use http instead of https, so we can safely
ignore this message and remove it from the logs.

Change-Id: I746b5f7d7351ef594bf0004ec76458fc1a633031

9 years agoMerge "Add connector object to create_export"
Jenkins [Sat, 8 Aug 2015 21:02:01 +0000 (21:02 +0000)]
Merge "Add connector object to create_export"

9 years agoAttach snapshot - driver only
Xing Yang [Fri, 7 Aug 2015 18:49:30 +0000 (14:49 -0400)]
Attach snapshot - driver only

This patch is a continuation of adding support for
non-disruptive backup. It provides a more efficient way
to backup an attached volume by creating a temp snapshot.
Since this is used internally for backup, the attach
snapshot interface is added in the driver only. For
drivers not implementing the attach snapshot interface,
backup will still be done using a volume.

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

9 years agoMerge "Snap copy feature for EMC VNX Cinder driver"
Jenkins [Sat, 8 Aug 2015 01:07:16 +0000 (01:07 +0000)]
Merge "Snap copy feature for EMC VNX Cinder driver"

9 years agoRemove bad tests for the VMAX driver
Xing Yang [Fri, 7 Aug 2015 22:02:21 +0000 (18:02 -0400)]
Remove bad tests for the VMAX driver

There are a few tests for the VMAX driver that are causing lots of
unit test failures on various patches. I think the reason is several
tests are using the config file with the same name which is created
during setup and deleted at cleanup. When concurrency is > 1, one test
could have deleted the file while another test is trying to read from
it. So the unit tests need to be re-designed to isolate the impact on
each other. This will be worked on. For the short term, I want to
remove the bad tests to reduce the number of unit test failures on
other patches.

Change-Id: Icd0ecf5ed184a81350e25ef0c8df3c3d400def98

9 years agoMerge "VMware: Remove unused constants"
Jenkins [Fri, 7 Aug 2015 19:32:12 +0000 (19:32 +0000)]
Merge "VMware: Remove unused constants"

9 years agoMerge "Fix list comparison for empty list"
Jenkins [Fri, 7 Aug 2015 19:25:13 +0000 (19:25 +0000)]
Merge "Fix list comparison for empty list"

9 years agoMerge "GlusterFS: Using 'fallocate' instead of 'dd'"
Jenkins [Fri, 7 Aug 2015 19:25:01 +0000 (19:25 +0000)]
Merge "GlusterFS: Using 'fallocate' instead of 'dd'"

9 years agoMerge "Remove unit test migration logging"
Jenkins [Fri, 7 Aug 2015 18:28:59 +0000 (18:28 +0000)]
Merge "Remove unit test migration logging"

9 years agoUpdate authorization actions for services API
Anna Sortland [Tue, 14 Jul 2015 19:51:51 +0000 (14:51 -0500)]
Update authorization actions for services API

Previously, the services extension used generic authorization check
"volume_extension:services" for both index and update APIs.

This change creates separate rules for index and update APIs
so that it is possible to assign different rules to different users.
The sample /etc/cinder/policy.json is also updated to include new rules:
    "volume_extension:services:index": "",
    "volume_extension:services:update" : "rule:admin_api"

Change-Id: Ib57171f5011210861478590bbdfc30cce25e62b4
Closes-Bug: #1471995
Closes-Bug: #1471999

9 years agoRemove incorrect URLs from jenkins.rst
Yusuke Hayashi [Sun, 2 Aug 2015 08:49:19 +0000 (17:49 +0900)]
Remove incorrect URLs from jenkins.rst

Remove URLs from jenkins.rst which is no longer exist
and fix incorrect URLs.

Change-Id: I7418dbe35518987de96fa31bcedb85a5d92cdc2e
Closes-Bug: #1480012

9 years agoMerge "Fix lvm manage existing volume"
Jenkins [Fri, 7 Aug 2015 12:26:40 +0000 (12:26 +0000)]
Merge "Fix lvm manage existing volume"

9 years agoFix list comparison for empty list
ankitagrawal [Tue, 4 Aug 2015 11:20:12 +0000 (04:20 -0700)]
Fix list comparison for empty list

Replaced boolean expression with 'not fields' in "_filter" method.
Also updated unit test cases which calls "_filter" method with
expected value of fields in restore methods.

The unit test "test_restore_vol_meta" was failing for empty list
because after updating the volume metadata, container was passed
to the "_restore_vol_meta" method where "metadata" is expected.
So fixed this unit test by passing the expected value to the
"_restore_vol_meta" method.

Closes-Bug: 1482619
Change-Id: I95c3a390b0b75c0514a3d63699367081440bf414

9 years agoSnap copy feature for EMC VNX Cinder driver
Xi Yang [Thu, 21 May 2015 08:09:21 +0000 (04:09 -0400)]
Snap copy feature for EMC VNX Cinder driver

Currently in VNX Cinder driver, a full-copy will be performed
when creating a volume from snapshot or volume and it is
time-consuming. This patch is going to address this issue by
providing an alternative way which is performing a snap-copy
when creating a volume from snapshot or volume. This can
accelerate the proccess a lot. And if the user wants to perform
a full-copy on the snap-copy volume, migration or retype can be
triggered on it. And we implement update_migrated_volume to
support migration and retype on the snap-copy volume.

DocImpact
Change-Id: I134a2d2274b1e3b85ea08cbf5e034f47d98e97db
Closes-Bug: #1457274

9 years agoMerge "Add entry create and cast tasks to manage workflow"
Jenkins [Fri, 7 Aug 2015 00:05:31 +0000 (00:05 +0000)]
Merge "Add entry create and cast tasks to manage workflow"

9 years agoMerge "Fix wrong exception usage in cinder exception classes"
Jenkins [Thu, 6 Aug 2015 23:16:10 +0000 (23:16 +0000)]
Merge "Fix wrong exception usage in cinder exception classes"

9 years agoTests: Fix os.path.exists mock (emc_vnxdirect)
Eric Harney [Thu, 6 Aug 2015 22:31:41 +0000 (16:31 -0600)]
Tests: Fix os.path.exists mock (emc_vnxdirect)

Use mock rather than assigning to os.path.exists,
since this may cause later tests to break.

Change-Id: I028aee93c92d5fafb4da018925d20db18c962eed

9 years agoAdd connector object to create_export
Walter A. Boring IV [Thu, 16 Jul 2015 21:48:37 +0000 (14:48 -0700)]
Add connector object to create_export

This patch adds the connector object as a parameter
to all driver create_export calls.  This will enable
drivers to actually use create_export method for doing
what they are now doing inside of initialize_connection.

Change-Id: Ia13897a3704080fc5da71e6c8445f308d474f64a
Implements: blueprint add-create-export-connector

9 years agoRemove unit test migration logging
Sean McGinnis [Thu, 6 Aug 2015 21:46:27 +0000 (16:46 -0500)]
Remove unit test migration logging

DB migration unit tests output a bunch of 'Loading script'
messages that are of little to no value. This patch raises
the default migrations module logging level to WARNING to
prevent these debug messages from cluttering the output.

Change-Id: Ib1bb5a0efc791a41f2d4cb1ea0e6eba4658097a8
Co-Authored-By: John Griffith <john.griffith@solidfire.com>
9 years agoMerge "Sync scheduler module from oslo-incubator"
Jenkins [Thu, 6 Aug 2015 12:34:32 +0000 (12:34 +0000)]
Merge "Sync scheduler module from oslo-incubator"

9 years agoCorrected order of parameters in docstring
PranaliDeore [Thu, 6 Aug 2015 09:18:49 +0000 (02:18 -0700)]
Corrected order of parameters in docstring

In _v1_restore_factory and _v2_restore_factory methods,
invalid order of parameters given in docstring.

Changed the order of parameters in docstring.

Closes-Bug: #1482184
Change-Id: I7899f8b04b41f271b3d64ec54199dfc414620873

9 years agoFix wrong exception usage in cinder exception classes
Eli Qiao [Thu, 6 Aug 2015 08:50:52 +0000 (16:50 +0800)]
Fix wrong exception usage in cinder exception classes

We need to use message instead of msg_fmt if we want to pass a message
format to Base CinderException.

Closes-Bug: #1482128
Change-Id: Ib3d29e5f23a6eb2cbd3aed191d9d042dfc3022e0

9 years agoMerge "Fix PEP476 & format message of Oracle ZFSSA drivers"
Jenkins [Thu, 6 Aug 2015 07:57:06 +0000 (07:57 +0000)]
Merge "Fix PEP476 & format message of Oracle ZFSSA drivers"

9 years agoFix RestURL to storage backend in Huawei driver
liuxinguo [Thu, 6 Aug 2015 06:48:32 +0000 (14:48 +0800)]
Fix RestURL to storage backend in Huawei driver

One RestURL "/mappingview/associate/portgroup" is not standard
although it can work most time. This should be changed to
"/portgroup/associate".

Change-Id: I53705e1994dcac3ae381dbb12a28b2eda1097089
Closed-Bug: #1482076

9 years agoSync scheduler module from oslo-incubator
James Carey [Wed, 29 Jul 2015 22:55:03 +0000 (22:55 +0000)]
Sync scheduler module from oslo-incubator

The scheduler and scheduler.weights modules have not been
updated since early in the Icehouse release cycle.  This
patch brings the version in Cinder up to date with what is in
oslo-incubator.

Current HEAD in OSLO:
---------------------
commit 20d7dc57819a70abdff967299542068946d75ac1
Date:   Wed Jul 29 03:49:46 2015 +0000
    Updated from global requirements

    Change-Id: Iba0e4f9545fc9ba82f080a0fec672761dcfeaeec

Patches included with sync by file:
---------------------
base_filter.py
 - 2fbf5065 - Remove oslo.log code and clean up versionutils API
 - 5d40e143 - Remove code that moved to oslo.i18n
 - 2af88ece - Use _LI instead of _ for info message translation
 - 4a47188e - Allow filters to only run once per request if their data is static
 - fcf517d7 - Update oslo log messages with translation domains
 - cae33101 - Stop looping all filters if no objects return
 base_handler.py
 - 6fa29aee - Trivial: Make vertical white space after license header consistent
 - 35660dac7 - Enable hacking H401 test
 - 5dcc43b1 - Break out common functionality for filters and weights
base_weight.py
 - 825cb870 - Upgrade to hacking 0.10
 - a2fa4878 - Fix common.scheduler.base_weight.BaseWeigher to be Python3 compat
 - e47bc70e - Normalize Scheduler Weights

 Note: Key changes were made that impact cinder:
   (1) The weigher base class changed the name of _weight_mulitipler() to
       weight_multiplier() which impacted cinder/scheduler/weights/capacity.py
       and cinder/scheduler/weights/volume_number.py.
   (2) Application of the weight multiplier was moved from the weigher to the
       handler and normalization of the weights prior to applying the weight
       multiplier was added.  This impacted cinder weigher test cases which
       were checking for non-normalized weights.
   (3) The normalization does not support the use of infinite weights which
       are used by the cinder capacity weigher.  When an infinite value is
       used, it is not known what the other weights will be, so this adds an
       override to CapacityWeigher for the weigh_objects() method that wraps
       the parent method to use the returned complete set of weights to
       replace any infinite weights with values that are much larger than
       the largest non-infinite weight.

Change-Id: Iad9bb431f0876e4957598c0ac0d3c8d7f67199fc

9 years agoVNX driver needs to return snapshot objects
Tina [Thu, 6 Aug 2015 02:04:29 +0000 (22:04 -0400)]
VNX driver needs to return snapshot objects

Use snapshot objects instead of snapshot dictionaries of
create_cgsnapshot and delete_cgsnapshot.

Change-Id: I0794e1c30a1ef8f0a4bdf82c6cb850ae4415d164
Partially-Closes-Bug: #1458125

9 years agoMerge "Add multiple pools support to VMAX driver"
Jenkins [Thu, 6 Aug 2015 02:48:56 +0000 (02:48 +0000)]
Merge "Add multiple pools support to VMAX driver"

9 years agoMerge "RemoteFS: Fix the offline snapshot delete operation"
Jenkins [Thu, 6 Aug 2015 02:45:32 +0000 (02:45 +0000)]
Merge "RemoteFS: Fix the offline snapshot delete operation"

9 years agoMerge "Add bandit for security static analysis testing"
Jenkins [Thu, 6 Aug 2015 01:19:39 +0000 (01:19 +0000)]
Merge "Add bandit for security static analysis testing"

9 years agoRevert "Revert First version of Cinder driver for Quobyte"
Mike Perez [Mon, 3 Aug 2015 15:17:18 +0000 (08:17 -0700)]
Revert "Revert First version of Cinder driver for Quobyte"

This reverts commit e896ae29eccc8575aca08e4ebeb27a82e28fa8eb.

Change-Id: Id6b25af58434ecef891c2deecc1a574d351ee713

9 years agoMerge "Refactor api.v2.volumes unit tests"
Jenkins [Wed, 5 Aug 2015 17:23:13 +0000 (17:23 +0000)]
Merge "Refactor api.v2.volumes unit tests"

9 years agoMerge "Set driver version in Sheepdog driver"
Jenkins [Wed, 5 Aug 2015 16:00:58 +0000 (16:00 +0000)]
Merge "Set driver version in Sheepdog driver"

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 5 Aug 2015 14:51:23 +0000 (14:51 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Dell SC: Add check of current value on retype"
Jenkins [Wed, 5 Aug 2015 08:19:25 +0000 (08:19 +0000)]
Merge "Dell SC: Add check of current value on retype"

9 years agoVMware: Remove unused constants
Vipin Balachandran [Wed, 5 Aug 2015 07:28:20 +0000 (12:58 +0530)]
VMware: Remove unused constants

This patch removes unused constants in the volumeops module
of vmdk driver. These became unused after integration with
oslo.vmware.

Change-Id: Ib223b09b4ef833b2bd1e23ae54627790dc37073d

9 years agoFix volume limit exceeded exception
Vipin Balachandran [Tue, 4 Aug 2015 06:33:25 +0000 (12:03 +0530)]
Fix volume limit exceeded exception

The VolumeLimitExceeded exception contains the wrong limit when
the number of volumes exceeds the quota corresponding to a volume
type. It always contains the limit of quota 'volumes'. This patch
fixes the limit in both exception and log message. It also adds
the quota name to exception and log message for better clarity.

Change-Id: I3e2d4fa00fe49f64b2153930e901fccd8015483e
Closes-Bug: #1481182

9 years agoRefactor api.v2.volumes unit tests
Vipin Balachandran [Fri, 31 Jul 2015 12:20:48 +0000 (17:50 +0530)]
Refactor api.v2.volumes unit tests

This patch refactors api.v2.volumes unit tests to use helper
methods added in commit I7c4225de5d32ecd0ad78fc7c0ff847a8bee7b7da.
It also fixes the order of assertEquals in refactored tests.

Partial-Bug: #1277104
Change-Id: I5b5aa9baea07fd46a52bb6c15897949a42748847

9 years agoMerge "Add SmartX support for Huawei driver"
Jenkins [Wed, 5 Aug 2015 00:34:48 +0000 (00:34 +0000)]
Merge "Add SmartX support for Huawei driver"

9 years agoDell SC: Add check of current value on retype
Sean McGinnis [Mon, 27 Jul 2015 14:18:44 +0000 (09:18 -0500)]
Dell SC: Add check of current value on retype

The recently merged retype code for the Dell Storage
Center driver does not check if the new Storage Profile
value is different than the currently set value. While
this is mostly harmless since there isn't a lot of overhead
to setting the Storage Profile to its existing value, it
is still extra overhead and API calls that need to be
performed to complete the operation.

This adds a simple check to compare the current value against
the requested value to decide whether or not to perform the
retype operation. We only support retyping of the Storage
Profile, so if they are the same, just return true to
prevent a migration from happening.

Change-Id: I2d16b4129170cc8ecedfd3674b609badb27b9095

9 years agoUpdate snap-quota to unlimited in Nimble driver
Sonia Ghanekar [Tue, 4 Aug 2015 22:08:21 +0000 (15:08 -0700)]
Update snap-quota to unlimited in Nimble driver

Change the snap-quota from limited fix size of the volume
to unlimited on the Nimble driver. This applies to creating
a new volume, extending an existing volume and creating a
clone from an existing volume snapshot.

Change-Id: Id22836559554c10074c1a14d837a09dbe01b52f8
Closes-Bug: #1463214

9 years agoMerge "Port NetApp NFS drivers to use ABC driver model"
Jenkins [Tue, 4 Aug 2015 20:44:32 +0000 (20:44 +0000)]
Merge "Port NetApp NFS drivers to use ABC driver model"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 4 Aug 2015 18:14:09 +0000 (18:14 +0000)]
Updated from global requirements

Change-Id: I0566ed07f359a0b993009a9dd08a01f16fc1b312

9 years agoMerge "Over subscription for HP LeftHand iSCSI driver"
Jenkins [Tue, 4 Aug 2015 16:54:10 +0000 (16:54 +0000)]
Merge "Over subscription for HP LeftHand iSCSI driver"

9 years agoFix PEP476 & format message of Oracle ZFSSA drivers
Diem Tran [Wed, 1 Jul 2015 21:12:48 +0000 (21:12 +0000)]
Fix PEP476 & format message of Oracle ZFSSA drivers

* Handles the PEP 476 by opting out certificate verification.
* Fix debug format messages in restclient.py

Change-Id: Iaf9e546f0aed6b57fe9c2bf43aa2ce003a05ddf8
Closes-Bug: #1460156