]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "Fix Python 3 issues in backup"
Jenkins [Sat, 27 Jun 2015 14:32:53 +0000 (14:32 +0000)]
Merge "Fix Python 3 issues in backup"

9 years agoMerge "Fix weird change of volume status in re-scheduling"
Jenkins [Fri, 26 Jun 2015 04:49:00 +0000 (04:49 +0000)]
Merge "Fix weird change of volume status in re-scheduling"

9 years agoMerge "Filter snapshots data on the DB side"
Jenkins [Fri, 26 Jun 2015 00:57:55 +0000 (00:57 +0000)]
Merge "Filter snapshots data on the DB side"

9 years agoMerge "Dell SC: Enable use of Storage Profiles"
Jenkins [Thu, 25 Jun 2015 18:42:07 +0000 (18:42 +0000)]
Merge "Dell SC: Enable use of Storage Profiles"

9 years agoFilter snapshots data on the DB side
Yuriy Nesenenko [Tue, 19 May 2015 15:17:01 +0000 (18:17 +0300)]
Filter snapshots data on the DB side

It filters snapshots data on the DB side to improve performance.
Some tests are removed from test_snapshots.py because their function
implemented on the DB side.

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

9 years agoEnsure 'WSGIService' derives from oslo_service base class
Joshua Harlow [Thu, 25 Jun 2015 00:54:40 +0000 (17:54 -0700)]
Ensure 'WSGIService' derives from oslo_service base class

Currently this code will fail due to an isinstance check in
oslo_service that ensures that the services launched are of
the right type.

Closes-Bug: #1468559

Change-Id: I71acc5082aacbfb66d422cec6636ba44ae2c8402

9 years agoSwitch to oslo.service
Sergey Vilgelm [Wed, 24 Jun 2015 19:55:32 +0000 (21:55 +0200)]
Switch to oslo.service

oslo.service has graduated, so cinder should consume it.

Change-Id: I80487f559302b0e88953835ffb4a3bfe2a347501
Closes-Bug: #1466851
Depends-On: I305cf53bad6213c151395e93d656b53a8a28e1db

9 years agoFix Python 3 issues in backup
Victor Stinner [Tue, 23 Jun 2015 09:20:47 +0000 (11:20 +0200)]
Fix Python 3 issues in backup

* Replace (int, long) with six.integer_types: the "long" type has been
  removed in Python 3
* Replace str.encode("bas64") with base64.encodestring(str), base64
  text codec has been removed in Python 3. Same change for decode
  (base64.decodestring)
* On Python 3, encode JSON to UTF-8
* tox.ini: add the following tests to Python 3

  - cinder.tests.unit.test_backup
  - cinder.tests.unit.test_backup_driver_base

Blueprint cinder-python3
Change-Id: I86e04f8fbe9a3ce8849fd141dc3ee914e73c8796

9 years agoMerge "Fix tox -e py34"
Jenkins [Wed, 24 Jun 2015 14:52:57 +0000 (14:52 +0000)]
Merge "Fix tox -e py34"

9 years agoMerge "Harden scheduler.rpcapi unit tests"
Jenkins [Wed, 24 Jun 2015 14:35:15 +0000 (14:35 +0000)]
Merge "Harden scheduler.rpcapi unit tests"

9 years agoMerge "Incorrect exception caught in qos-specs create api"
Jenkins [Wed, 24 Jun 2015 02:18:24 +0000 (02:18 +0000)]
Merge "Incorrect exception caught in qos-specs create api"

9 years agoMerge "Modify template account creation in SolidFire drvr"
Jenkins [Wed, 24 Jun 2015 02:16:02 +0000 (02:16 +0000)]
Merge "Modify template account creation in SolidFire drvr"

9 years agoModify template account creation in SolidFire drvr
John Griffith [Sat, 20 Jun 2015 13:58:51 +0000 (07:58 -0600)]
Modify template account creation in SolidFire drvr

On a fresh cluster with no template account, we'll hit
an exception when doing the initial "check for account".

This patch modifies the create_template account method slightly
to use a try/except block to set this up.

Change-Id: I8ff7ff893412f5b30f8a88dc3b44ea592db01ced

9 years agoMerge "Tests: Fix assertRaisesRegexp deprecation warnings"
Jenkins [Tue, 23 Jun 2015 21:55:50 +0000 (21:55 +0000)]
Merge "Tests: Fix assertRaisesRegexp deprecation warnings"

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 23 Jun 2015 21:02:14 +0000 (21:02 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Fix backups.rpcapi to pass objects over RPC"
Jenkins [Tue, 23 Jun 2015 19:32:07 +0000 (19:32 +0000)]
Merge "Fix backups.rpcapi to pass objects over RPC"

9 years agoTests: Fix assertRaisesRegexp deprecation warnings
Eric Harney [Tue, 23 Jun 2015 18:41:14 +0000 (14:41 -0400)]
Tests: Fix assertRaisesRegexp deprecation warnings

Use of assertRaisesRegexp() raises warnings when running
unit tests.

Related-Bug: #1461171

Change-Id: I4a7f2713548968f65591a14260875b3016dce51b

9 years agoMerge "Add exception catch in report_state for DBError"
Jenkins [Tue, 23 Jun 2015 14:31:02 +0000 (14:31 +0000)]
Merge "Add exception catch in report_state for DBError"

9 years agoHarden scheduler.rpcapi unit tests
Michal Dulko [Tue, 23 Jun 2015 13:47:53 +0000 (15:47 +0200)]
Harden scheduler.rpcapi unit tests

Tests for scheduler.rpcapi are very weak. Even changing keyword
arguments names passed to call and cast methods in this module
doesn't trigger unit tests failures. This commit adds keyword
arguments validation to prevent problems similar to ones caused
by bug 1467841 in backup.rpcapi. I've also fixed argument order
in assertEqual usages there.

Change-Id: I78d80d5c5596fb5615608f93157d4d2b3a9b0aef
Related-Bug: 1467841

9 years agoFix backups.rpcapi to pass objects over RPC
Michal Dulko [Tue, 23 Jun 2015 13:42:00 +0000 (15:42 +0200)]
Fix backups.rpcapi to pass objects over RPC

Commit Icff37261b367463b71a1268be16f9c97f595bf0c brought bugs in
backup.rpcapi. For export_record, import_record and reset_status
backup.id is passed instead of whole backup object - which
backup.manager expects. This causes severe failures. This commit
changes the rpcapi to pass objects and adds missing
backup.test_rpcapi unit tests that will prevent such failures in
the future.

Change-Id: I303b77214785165d37663fe8d502988e86a7950f
Closes-Bug: 1467841

9 years agoFix weird change of volume status in re-scheduling
wanghao [Tue, 26 May 2015 09:25:26 +0000 (17:25 +0800)]
Fix weird change of volume status in re-scheduling

When create a volume failed as some exception, cinder will re-schedule the
creation request, the retry number is 3 in default.
But when re-scheduling, this volume's status was changed like this:

creating ----> error -----> creating------>error------>error/available

This is weird to user, since if this volume is in re-scheduling process,
it's status should always be creating, and then become error or available
at last.

Change-Id: I7a2d40585b5ef515a9400349a1397cba63278c78
Closes-Bug: #1445601

9 years agoFix tox -e py34
Victor Stinner [Tue, 23 Jun 2015 09:11:04 +0000 (11:11 +0200)]
Fix tox -e py34

Add a py34 test environment to tox.ini running a subset of tests which
pass on Python 3.4. With this change, the py34 check job should pass and
so it will become possible to make the job voting to avoid further
Python 3 regressions.

Blueprint cinder-python3
Change-Id: If8a8bafe0ff7e8d27baa3467f1790c3cb776457e

9 years agoMerge "Fix LIO target helper when missing targetcli"
Jenkins [Tue, 23 Jun 2015 02:05:36 +0000 (02:05 +0000)]
Merge "Fix LIO target helper when missing targetcli"

9 years agoMerge "Use elevated context for backup destroy"
Jenkins [Mon, 22 Jun 2015 23:58:58 +0000 (23:58 +0000)]
Merge "Use elevated context for backup destroy"

9 years agoMerge "Fix Cinder Objects unit tests"
Jenkins [Mon, 22 Jun 2015 23:56:52 +0000 (23:56 +0000)]
Merge "Fix Cinder Objects unit tests"

9 years agoAdd exception catch in report_state for DBError
Jay S. Bryant [Mon, 22 Jun 2015 16:43:37 +0000 (11:43 -0500)]
Add exception catch in report_state for DBError

We discovered while testing Cinder in an HA
environment that transient DB errors can be
encountered that are not currently covered by
the exception catch in service.py report_state().
The uncaught exceptions were causing the thread
for report_state to prematurely exit and causing
services to no longer update the DB when, in fact,
they were still usable.

This change adds an exception catch for DBError
so that the thread can continue to function.

Change-Id: I95f79b8d6c8f5d7b3e44665306b500b8d2ce3c7c
Closes-bug: 1466991

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 22 Jun 2015 21:24:09 +0000 (21:24 +0000)]
Updated from global requirements

Change-Id: I9395058b42f3e28a267f0d82ae8dfcb663bdfb9b

9 years agoDell SC: Enable use of Storage Profiles
Sean McGinnis [Thu, 18 Jun 2015 21:56:33 +0000 (16:56 -0500)]
Dell SC: Enable use of Storage Profiles

The Storage Center array allows volumes to be associated with
different Storage Profiles. These profiles allow setting tiering
and RAID types per volume. The driver currently only uses the
default Storage Profile configured for the Cinder user account.

This patch adds the capability to use different Storage Profiles
by using extra specs to allow the creation of different volume
types for the desired profiles.

DocImpact

Change-Id: Icf76fceca5a0ae20bb08b276b0c41ef6cdb31087

9 years agoMerge "Nested Quota : Create allocated column in cinder.quotas"
Jenkins [Mon, 22 Jun 2015 18:47:24 +0000 (18:47 +0000)]
Merge "Nested Quota : Create allocated column in cinder.quotas"

9 years agoUse elevated context for backup destroy
Ivan Kolodyazhny [Sat, 20 Jun 2015 20:02:41 +0000 (23:02 +0300)]
Use elevated context for backup destroy

db.backup_destroy requires admin context to mark backup record as
deleted. Commit Icff37261b367463b71a1268be16f9c97f595bf0c removed admin
context passed to backup_destroy method.

This patch uses elevated context to destroy backup.
Change-Id: I75b9e1fff48569a8aa320f2f02914fc7b6665d79
Closes-Bug: #1467167

9 years agoFix Cinder Objects unit tests
Ivan Kolodyazhny [Sun, 21 Jun 2015 08:33:05 +0000 (11:33 +0300)]
Fix Cinder Objects unit tests

Due to the import order all tests passed on CI. But you can not
run cinder.unit.objects.test_backup only. This patch fixes it
adding base class and invokes objects.register_all().

Change-Id: If6168bce88489840b5d25b97be1f285737d943df

9 years agoMerge "Add Virtuozzo Storage Volume Driver"
Jenkins [Mon, 22 Jun 2015 18:23:54 +0000 (18:23 +0000)]
Merge "Add Virtuozzo Storage Volume Driver"

9 years agoMerge "Add iscsi_target_flags configuration option"
Jenkins [Mon, 22 Jun 2015 16:03:03 +0000 (16:03 +0000)]
Merge "Add iscsi_target_flags configuration option"

9 years agoMerge "Handle incorrect '--config-dir' param"
Jenkins [Mon, 22 Jun 2015 14:30:40 +0000 (14:30 +0000)]
Merge "Handle incorrect '--config-dir' param"

9 years agoMerge "rbd: add volume_id to connection_info in initialize_connection"
Jenkins [Mon, 22 Jun 2015 01:55:38 +0000 (01:55 +0000)]
Merge "rbd: add volume_id to connection_info in initialize_connection"

9 years agoMerge "XtremIO Volume driver requests, multipath"
Jenkins [Sat, 20 Jun 2015 20:15:23 +0000 (20:15 +0000)]
Merge "XtremIO Volume driver requests, multipath"

9 years agorbd: add volume_id to connection_info in initialize_connection
Matt Riedemann [Sat, 20 Jun 2015 19:43:34 +0000 (12:43 -0700)]
rbd: add volume_id to connection_info in initialize_connection

Most other volume drivers have a 'volume_id' key in the
connection_info['data'] dict returned from initialize_connection, this
adds it to the rbd volume driver.

This is part of a bigger effort to standardize the connection_info dict
so that consumers like Nova can rely on a common set of keys when
processing connection_info.

Change-Id: I7aed56a93c4cc3be5e0e49da6ddc1f009fed3c18

9 years agoMerge "Get updated volume status in begin_detaching"
Jenkins [Sat, 20 Jun 2015 17:21:41 +0000 (17:21 +0000)]
Merge "Get updated volume status in begin_detaching"

9 years agoMerge "Fix Datera driver export call"
Jenkins [Sat, 20 Jun 2015 15:46:58 +0000 (15:46 +0000)]
Merge "Fix Datera driver export call"

9 years agoMerge "Adds the Violin Memory V7000 series FC driver."
Jenkins [Sat, 20 Jun 2015 15:24:00 +0000 (15:24 +0000)]
Merge "Adds the Violin Memory V7000 series FC driver."

9 years agoFix Datera driver export call
Mike Perez [Sat, 20 Jun 2015 02:12:15 +0000 (19:12 -0700)]
Fix Datera driver export call

A previous commit 3fabed9d64696a204263fd7e00b65115a8ecce87 broke the
export call for the Datera driver. This allows the information to
correctly be accessed again.

Change-Id: I4775700e7a416bf5ebcb5e39f604b270e27f284d
Closes-Bug: #1466967

9 years agoMerge "Revert "Disable backup progress notifications for unit tests""
Jenkins [Sat, 20 Jun 2015 00:17:24 +0000 (00:17 +0000)]
Merge "Revert "Disable backup progress notifications for unit tests""

9 years agoMerge "Update version for Liberty"
Jenkins [Fri, 19 Jun 2015 23:52:22 +0000 (23:52 +0000)]
Merge "Update version for Liberty"

9 years agoMerge "VMware: Remove unused methods"
Jenkins [Fri, 19 Jun 2015 23:08:01 +0000 (23:08 +0000)]
Merge "VMware: Remove unused methods"

9 years agoAdd iscsi_target_flags configuration option
Pavel Boldin [Wed, 13 May 2015 22:01:36 +0000 (01:01 +0300)]
Add iscsi_target_flags configuration option

Newly introduced `iscsi_target_flags' allows to specify `tgtd'
backing storage flags. This can be used to instruct `tgtd' to
open backing device file using `O_DIRECT' flag ensuring direct
access without cache.

DocImpact
Closes-Bug: #1441935
Change-Id: I9c7c88a7ae75096042104849c1b00aa47728e0d4

9 years agoMerge "Remove the hardcoded concurrency limit for ostestr"
Jenkins [Fri, 19 Jun 2015 21:00:13 +0000 (21:00 +0000)]
Merge "Remove the hardcoded concurrency limit for ostestr"

9 years agoAdds the Violin Memory V7000 series FC driver.
Ryan Lucio [Tue, 9 Jun 2015 20:17:53 +0000 (13:17 -0700)]
Adds the Violin Memory V7000 series FC driver.

This driver adds cinder volume support for VMEM 7300 and 7700 disk
arrays with fibrechannel HBAs.

DocImpact
Implements: blueprint vmem-7000-series-fc-driver
Change-Id: I516e12e699674fb0cdd9298f98d49bb14a2097ac

9 years agoMerge "Dell SC Removed _find_domain and associated tests"
Jenkins [Fri, 19 Jun 2015 19:50:15 +0000 (19:50 +0000)]
Merge "Dell SC Removed _find_domain and associated tests"

9 years agoMerge "Ceph driver support retries on rados_connect_timeout"
Jenkins [Fri, 19 Jun 2015 19:10:23 +0000 (19:10 +0000)]
Merge "Ceph driver support retries on rados_connect_timeout"

9 years agoRemove the hardcoded concurrency limit for ostestr
John Griffith [Fri, 19 Jun 2015 18:32:01 +0000 (12:32 -0600)]
Remove the hardcoded concurrency limit for ostestr

ostestr by default uses concurrency = ncpu.

This caused all sorts of things to blow up in Cinder
when one got over 6 cpus.  Since the initial merge a
patch has landed that appears to fix the issues, and
we now run reliably at 8 and even 12 cpus.

This patch removes the hard coded concurrency=6 setting
from tox.ini

Change-Id: I483e53acaf1bb71deeba20d6c81184112cbcb046

9 years agoRevert "Disable backup progress notifications for unit tests"
Eric Harney [Fri, 19 Jun 2015 14:25:50 +0000 (10:25 -0400)]
Revert "Disable backup progress notifications for unit tests"

This reverts commit e5f6ed69e0031900f97da185b5363ebd3dd60c0c.

This was an attempted workaround for the notifier issue.
It's not needed now that the fake notifier has been fixed,
so restore the default behavior.

Also remove conf imports which were added in commit d9b9ac
to fix commit e5f6ed.

Related-Bug: #1412513

Change-Id: Id0d547e3c2faa8c1a0555e28cdb2e9d83956c1ac

9 years agoMerge "Backup object"
Jenkins [Fri, 19 Jun 2015 18:00:20 +0000 (18:00 +0000)]
Merge "Backup object"

9 years agoNested Quota : Create allocated column in cinder.quotas
Vilobh Meshram [Fri, 19 Jun 2015 17:17:07 +0000 (10:17 -0700)]
Nested Quota : Create allocated column in cinder.quotas

Create allocated column in cinder.quotas. This allocated
column will be the sum of "hard_limits" values for the
immediate child projects. This will be needed to track
allocated quota to child projects.

Change-Id: Ia80d9a6cdbbc7e86cf9f11979f5e80c53f0fac1f
Implements: bp cinder-nested-quota-driver

9 years agoMerge "Storwize: remove the useless method check_copy_ok"
Jenkins [Fri, 19 Jun 2015 17:20:55 +0000 (17:20 +0000)]
Merge "Storwize: remove the useless method check_copy_ok"

9 years agoMerge "Port LeftHand driver to use ABCMeta driver model"
Jenkins [Fri, 19 Jun 2015 17:13:59 +0000 (17:13 +0000)]
Merge "Port LeftHand driver to use ABCMeta driver model"

9 years agoMerge "rbd driver in cinder does not manage glance images multi-location"
Jenkins [Fri, 19 Jun 2015 16:35:55 +0000 (16:35 +0000)]
Merge "rbd driver in cinder does not manage glance images multi-location"

9 years agoMerge "Tests: Make fake_notifier per-instance"
Jenkins [Fri, 19 Jun 2015 15:38:14 +0000 (15:38 +0000)]
Merge "Tests: Make fake_notifier per-instance"

9 years agoMerge "Adds FC and ISCSI Cinder drivers for HPMSA Storage Arrays"
Jenkins [Fri, 19 Jun 2015 12:44:20 +0000 (12:44 +0000)]
Merge "Adds FC and ISCSI Cinder drivers for HPMSA Storage Arrays"

9 years agoHandle incorrect '--config-dir' param
Yuriy Nesenenko [Thu, 4 Jun 2015 15:50:14 +0000 (18:50 +0300)]
Handle incorrect '--config-dir' param

This patch fixes the error that occurs if the --config-dir directory
doesn't exist. The exception ConfigDirNotFoundError should be caught
in this case.

Change-Id: Iee3fbd2b01de11124788e2c1df5c456c4010d234
Closes-Bug: #1255354

9 years agoGet updated volume status in begin_detaching
Vipin Balachandran [Tue, 16 Jun 2015 12:15:18 +0000 (17:45 +0530)]
Get updated volume status in begin_detaching

Heat stack deletion followed by an unsuccessful heat stack delete
attempt resulted in calling begin_detaching on a volume which was
already in detaching state. It was observed that the API returned
success instead of failing the operation. There is a check which
verifies the volume status, but it is not using the updated volume
status. This patch fixes the problem by getting updated volume
status from DB. But this fix  won't eliminate the possibility of
above mentioned inconsistent behavior if multiple begin_detaching
happens concurrently.

Closes-Bug: #1466060
Change-Id: I2a4cacef193e6cfa68026d97292370a895b291a9

9 years agoTests: Make fake_notifier per-instance
Eric Harney [Thu, 18 Jun 2015 22:06:54 +0000 (18:06 -0400)]
Tests: Make fake_notifier per-instance

Tests have been failing because multiple threads modify the
same global NOTIFICATIONS list.  Move the notification storage
to be per-test instance, which is what the tests assume.

This has been broken for a while, but made more obvious by
recent changes to parallelize tests.

Also remove all the extra reset calls we added to work around
this problem over time.

Co-authored-by: Gorka Eguileor <geguileo@redhat.com>
Change-Id: Ib5a67c097ef548dc346751ad51b61fdceaf8e3a8
Partial-Bug: #1259463
Closes-Bug: #1412513

9 years agoPort LeftHand driver to use ABCMeta driver model
Kurt Martin [Fri, 19 Jun 2015 00:30:38 +0000 (17:30 -0700)]
Port LeftHand driver to use ABCMeta driver model

Use new ABCMeta driver model for LeftHand driver.
Implements: blueprint abc-driver-update

Change-Id: I4acd1cd711b8718340abd08fdabacb2e4b713b73

9 years agoMerge "Disable profiler for unit tests"
Jenkins [Thu, 18 Jun 2015 22:52:13 +0000 (22:52 +0000)]
Merge "Disable profiler for unit tests"

9 years agoAdd Virtuozzo Storage Volume Driver
Dmitry Guryanov [Thu, 18 Jun 2015 17:14:34 +0000 (20:14 +0300)]
Add Virtuozzo Storage Volume Driver

Add a volume driver which can use Virtuozzo Storage, which
has filesystem interface and so volume driver has a similar
workflow to NFS and SMBFS drivers.

At this point the driver contain minimal set of features. Because
I think some refactoring should be done in RemoteFS drivers before
further development. For example code, which deals with image formats
should go to the RemoteFS class. So I don't add qcow2 images support
in this patch.

Change-Id: If491c4220a77995d0c4247d152b49b0ff3fb0902
Partially-implements: blueprint virtuozzo-cloud-storage-support

9 years agoDisable profiler for unit tests
Eric Harney [Thu, 18 Jun 2015 17:04:43 +0000 (13:04 -0400)]
Disable profiler for unit tests

osprofiler should not run for unit tests.  This makes stack
traces harder to debug, and generally complicates things, with
no benefit.

The backup tests were already doing this, so port that
method to the base Cinder test class.

Closes-Bug: #1394785
Closes-Bug: #1447400

Change-Id: Ifcaaf365aaab24c6fa2a6eca58f546860124f1fc

9 years agoUse a hard-coded project_id in racy cinder.tests.unit.test_volume tests
Matt Riedemann [Thu, 18 Jun 2015 15:16:52 +0000 (08:16 -0700)]
Use a hard-coded project_id in racy cinder.tests.unit.test_volume tests

Since concurrent unit test runs have been turned on with ostestr there
are races with the notifications causing the assertions in
test_volume.py tests to fail.

A few attempts have been made at writing an elastic-recheck query to
identify the failures but they are too generic, e.g. querying for
"fake_notifier.NOTIFICATIONS" or "MismatchError 0 != ", which could hit
on anything that fails with those, e.g. anything that uses
"self.assertEqual(0, " in the code could hit that kind of query - and we
want to avoid those types of queries running against changes in the
check queue since they could mask legitimate test failures.

So we add something unique in these tests to identify them from other
test failures in Cinder by using a hard-coded uuid for the project_id so
that if we have an assertion failure with notifications, the
notification payload is dumped (due to commit
4bbe1c87e26150c62e1dc8a2a5b8979896c1ddd9) and we can query on the
assertion failure plus the hard-coded project_id used only in these
tests.

Related-Bug: #1412513

Change-Id: I57f597a1bb2fdfeb24c17ac9020cc96f1ebf3fdd

9 years agoMerge "Add missing Jinja2 to requirements.txt"
Jenkins [Thu, 18 Jun 2015 13:27:16 +0000 (13:27 +0000)]
Merge "Add missing Jinja2 to requirements.txt"

9 years agoIncorrect exception caught in qos-specs create api
Rajesh Tailor [Wed, 17 Jun 2015 11:35:35 +0000 (04:35 -0700)]
Incorrect exception caught in qos-specs create api

Caught InvalidQoSSpecs exception instead of InvalidInput exception
in qos-specs create api, as _verify_prepare_qos_specs method raises
InvalidQoSSpecs exception if invalid value is passed.

Closes-Bug: 1466065
Change-Id: Idb7b4e6c9e323c2ca732a27a8e3286a1fa00c1f8

9 years agoVMware: Remove unused methods
Vipin Balachandran [Sat, 10 Jan 2015 17:49:16 +0000 (23:19 +0530)]
VMware: Remove unused methods

Patch to remove unused datastore selection methods in vmdk module.

Change-Id: I96f651081a5f0f5747e0bb1fb49028422fd4a4f9

9 years agoMerge "Sync 'report' from oslo-incubator"
Jenkins [Thu, 18 Jun 2015 09:23:54 +0000 (09:23 +0000)]
Merge "Sync 'report' from oslo-incubator"

9 years agoBackup object
Michal Dulko [Wed, 3 Jun 2015 12:25:26 +0000 (14:25 +0200)]
Backup object

This patch adds VersionedObjects abstraction layer to volume backups.
The object derives from CinderObjectDictCompat, so it supports both
object (obj.prop) and dict (obj['prop']) syntax to access properties.
Complete move to object notation will be made in a follow up clean up
patch.

Co-Authored-By: Grzegorz Grasza <grzegorz.grasza@intel.com>
Change-Id: Icff37261b367463b71a1268be16f9c97f595bf0c
Partial-Implements: blueprint cinder-objects

9 years agoAdd missing Jinja2 to requirements.txt
Michal Dulko [Thu, 18 Jun 2015 07:27:26 +0000 (09:27 +0200)]
Add missing Jinja2 to requirements.txt

Recently merged commit I5bbdc0f97db9b0ebd7b48e50ab7869e2ca33aead got in
a dependency on Jinja2 library without adding it to requirements.txt.
The gate was running fine, because Nova already has it in it's
requirements. Problem uncovers when we install DevStack with
--use-venv=True option.

Change-Id: If053c4724d9d0264e0f3b27a995a2b619cf6f515
Closes-Bug: 1466361

9 years agoStorwize: remove the useless method check_copy_ok
Qian Gao [Thu, 18 Jun 2015 05:57:02 +0000 (22:57 -0700)]
Storwize: remove the useless method check_copy_ok

The method check_copy_ok still remains after the code refactor.
However, it is never used. This patch proposes to remove it.

Change-Id: I7cb8611fe242300d28d90520ec3c2867385f9fec
Closes-Bug: #1466321

9 years agoMerge "ScaleIO: Fix broken format string"
Jenkins [Wed, 17 Jun 2015 23:09:26 +0000 (23:09 +0000)]
Merge "ScaleIO: Fix broken format string"

9 years agoUpdate version for Liberty
Doug Hellmann [Tue, 16 Jun 2015 19:49:14 +0000 (19:49 +0000)]
Update version for Liberty

Update the version for Liberty, switching from date-based versioning
to pre-versioning using SemVer. See
http://lists.openstack.org/pipermail/openstack-dev/2015-May/065211.html
and
http://lists.openstack.org/pipermail/openstack-dev/2015-June/067082.html
for details.

Change-Id: I6a35fa0dda798fad93b804d00a46af80f08d475c

9 years agoMerge "Fix namespace issue in generate_sample.sh"
Jenkins [Wed, 17 Jun 2015 21:07:57 +0000 (21:07 +0000)]
Merge "Fix namespace issue in generate_sample.sh"

9 years agoScaleIO: Fix broken format string
Eric Harney [Wed, 17 Jun 2015 20:41:45 +0000 (16:41 -0400)]
ScaleIO: Fix broken format string

Closes-Bug: #1466219

Change-Id: I0ce2eeb2ad85e6c36adf5505ef662efdf5b14f30

9 years agoSync 'report' from oslo-incubator
Eric Harney [Wed, 17 Jun 2015 20:00:35 +0000 (16:00 -0400)]
Sync 'report' from oslo-incubator

Needed to fix guru meditation report for Windows.
We landed an outdated 'report' module recently.

Add report.[generators,models,views] to
openstack-common.conf.

Oslo source: c4c7dd28 Updated from global requirements

Closes-Bug: #1286528

Change-Id: Ib33542718176241663c0e61605acbf4e941e2ca9

9 years agoMerge "Replace basestring with six.string_types"
Jenkins [Wed, 17 Jun 2015 18:56:22 +0000 (18:56 +0000)]
Merge "Replace basestring with six.string_types"

9 years agoMerge "LVM add multiattach flag capability"
Jenkins [Wed, 17 Jun 2015 18:51:45 +0000 (18:51 +0000)]
Merge "LVM add multiattach flag capability"

9 years agoMerge "Switch to oslo.policy 0.3.0"
Jenkins [Wed, 17 Jun 2015 18:49:22 +0000 (18:49 +0000)]
Merge "Switch to oslo.policy 0.3.0"

9 years agoCeph driver support retries on rados_connect_timeout
Ivan Kolodyazhny [Thu, 11 Jun 2015 10:55:28 +0000 (13:55 +0300)]
Ceph driver support retries on rados_connect_timeout

Added retry feature when connection to Ceph cluster failed. This patch
introduces new config options rados_connection_retries and
rados_connection_interval to configure retries due to
the rados_connect_timeout.

DocImpact
Change-Id: Ice65fc40e9bd94805700f64397caf856982fa320
Closes-Bug: #1462970

9 years agoDell SC Removed _find_domain and associated tests
Tom Swanson [Tue, 16 Jun 2015 16:01:58 +0000 (11:01 -0500)]
Dell SC Removed _find_domain and associated tests

Dell StorageCenterApi._find_domain was ununsed and so removed. The
associated tests were also removed.

In addition some other tests mocked _find_domains but called the mock
mock_find_domain.  Changed that to mock_find_domains.

Change-Id: Ieee96064bbc74eae8a8c961ade5c8dfb9615eb1a

9 years agoMerge "Add volume drivers for Infortrend Storage"
Jenkins [Wed, 17 Jun 2015 17:31:10 +0000 (17:31 +0000)]
Merge "Add volume drivers for Infortrend Storage"

9 years agoMerge "Refactor API create_volume flow"
Jenkins [Wed, 17 Jun 2015 17:29:13 +0000 (17:29 +0000)]
Merge "Refactor API create_volume flow"

9 years agoMerge "Tintri driver to manage existing backend storage objects"
Jenkins [Wed, 17 Jun 2015 17:26:16 +0000 (17:26 +0000)]
Merge "Tintri driver to manage existing backend storage objects"

9 years agoMerge "Add config option to set max_volume_size_limit"
Jenkins [Wed, 17 Jun 2015 16:44:29 +0000 (16:44 +0000)]
Merge "Add config option to set max_volume_size_limit"

9 years agoLVM add multiattach flag capability
Walter A. Boring IV [Thu, 11 Jun 2015 17:07:23 +0000 (10:07 -0700)]
LVM add multiattach flag capability

This patch adds reporting of the multiattach capability
in the lvm driver.   Currently the Cinder scheduler does filtering
on hosts at create time for the --allow-multiattach option being
passed into the create request from the client.   In order for someone
to be able to create an LVM volume that can do multiattach, the LVM
driver needs to report the capability.

This patch's purpose is to allow LVM volumes to be multiattachable
for the folks working on the Nova patches to get Nova to do multiattach.
Without this patch, they can't do end to end testing.

Change-Id: I91942569a12d7c7637c7d9ffb8bbff0daeaf6a97

9 years agoMerge "Adds FC and ISCSI Cinder drivers for Lenovo Storage Arrays"
Jenkins [Wed, 17 Jun 2015 13:37:02 +0000 (13:37 +0000)]
Merge "Adds FC and ISCSI Cinder drivers for Lenovo Storage Arrays"

9 years agoAdd volume drivers for Infortrend Storage
Lee [Fri, 24 Apr 2015 07:50:20 +0000 (15:50 +0800)]
Add volume drivers for Infortrend Storage

Infortrend implement ISCSI and FC volume drivers for
EonStor DS product.
It manages storage by Infortrend CLI tool.

common_cli.py implements the basic Cinder Driver API.
infortrend_fc_cli.py and infortrend_iscsi_cli.py use them to
provide FC and iSCSI specific support.

Support features:
- Volume Create/Delete
- Volume Attach/Detach
- Snapshot Create/Delete
- Create Volume from Snapshot
- Get Volume Stats
- Copy Image to Volume
- Copy Volume to Image
- Clone Volume
- Extend Volume

Change-Id: I830c5a48a5fb85707f02396b4634825e27455e8a
Implements: blueprint infortrend-iscsi-fc-volume-driver

9 years agoXtremIO Volume driver requests, multipath
Shay Halsband [Sun, 8 Mar 2015 12:34:53 +0000 (14:34 +0200)]
XtremIO Volume driver requests, multipath

* introduce new driver parameter to configure ssl CA validation
* replace urllib2 with requests
* changes to support iSCSI multipath
* fix missing logging for get requets
* query cluster version without exception

DocImpact: added the option driver_ssl_cert_verify to specify whether
           a volume backends verify SSL certificats when quering https urls.

Implements: blueprint emc-xtremio-updates
Change-Id: Ief32e2247a46046489792f03a5b235d1c9d16a4f

9 years agoMerge "Port remote_fs driver to use new driver model"
Jenkins [Wed, 17 Jun 2015 09:24:21 +0000 (09:24 +0000)]
Merge "Port remote_fs driver to use new driver model"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 17 Jun 2015 00:34:25 +0000 (00:34 +0000)]
Updated from global requirements

Change-Id: I66c535760b7948ab0b6f7a7da3a0c5f5debaa75c

9 years agoMerge "Volume driver for HP XP storage"
Jenkins [Wed, 17 Jun 2015 00:12:14 +0000 (00:12 +0000)]
Merge "Volume driver for HP XP storage"

9 years agoAdds FC and ISCSI Cinder drivers for Lenovo Storage Arrays
nikeshm [Wed, 3 Jun 2015 03:19:45 +0000 (08:49 +0530)]
Adds FC and ISCSI Cinder drivers for Lenovo Storage Arrays

These drivers depend upon DotHill Cinder drivers.
Using inheritance, we are able to reuse a lot of
DotHill cinder drivers source code.

Change-Id: Ica8631d6954898dbd90a71cc78625bb2aa3b5632
Co-Authored-By: Gauvain Pocentek<gauvain.pocentek@objectif-libre.com>
Implements: blueprint lenovo-fc-iscsi-cinder-driver

9 years agoAdds FC and ISCSI Cinder drivers for HPMSA Storage Arrays
nikeshm [Tue, 2 Jun 2015 17:18:46 +0000 (22:48 +0530)]
Adds FC and ISCSI Cinder drivers for HPMSA Storage Arrays

These drivers depend upon DotHill Cinder drivers.
Using inheritance, we are able to reuse a lot of
DotHill cinder drivers source code.

Implements: blueprint hp-msa-fc-iscsi-cinder-driver
Co-Authored-By: Gauvain Pocentek<gauvain.pocentek@objectif-libre.com>
Change-Id: I21184872d1eb3838adc47fe9027de12a1702465d

9 years agoMerge "Fix broken export commands on block_device driver"
Jenkins [Tue, 16 Jun 2015 22:34:44 +0000 (22:34 +0000)]
Merge "Fix broken export commands on block_device driver"

9 years agoReplace basestring with six.string_types
Victor Stinner [Wed, 10 Jun 2015 12:32:41 +0000 (14:32 +0200)]
Replace basestring with six.string_types

basestring type is gone in Python 3, use six.string_types to make Cinder code
compatible with Python 3.

This patch was generated by the basestring operation of the sixer tool:
https://pypi.python.org/pypi/sixer

Blueprint cinder-python3
Change-Id: Ie1aedf1cbb9d3e54a996321cd586b875e69ac85a

9 years agoMerge "Replace dit.itervalues() with dict.values()"
Jenkins [Tue, 16 Jun 2015 20:20:13 +0000 (20:20 +0000)]
Merge "Replace dit.itervalues() with dict.values()"

9 years agoMerge "Rewrite code merging two dictionaries"
Jenkins [Tue, 16 Jun 2015 20:19:57 +0000 (20:19 +0000)]
Merge "Rewrite code merging two dictionaries"