]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge "Make PureISCSIDriver iSCSI port discovery more flexible"
Jenkins [Fri, 6 Feb 2015 05:09:51 +0000 (05:09 +0000)]
Merge "Make PureISCSIDriver iSCSI port discovery more flexible"

9 years agoMerge "Enable use of an /etc/cinder/lvm.conf file"
Jenkins [Fri, 6 Feb 2015 04:52:09 +0000 (04:52 +0000)]
Merge "Enable use of an /etc/cinder/lvm.conf file"

9 years agoMerge "Update eqlx driver help text"
Jenkins [Thu, 5 Feb 2015 18:55:33 +0000 (18:55 +0000)]
Merge "Update eqlx driver help text"

9 years agoMerge "Support over subscription in thin provisioning"
Jenkins [Thu, 5 Feb 2015 17:39:15 +0000 (17:39 +0000)]
Merge "Support over subscription in thin provisioning"

9 years agoUpdate eqlx driver help text
Sean McGinnis [Thu, 5 Feb 2015 14:59:22 +0000 (08:59 -0600)]
Update eqlx driver help text

Adds a more descriptive help text to the allowed and default values.

Continuation of work started by James King in:
https://review.openstack.org/#/c/144656

Change-Id: I95de8c93bf6a6ff318d6e726488ebae371ee55bf
Closes-Bug: 1380686

9 years agoMerge "Change oslo.* to oslo_*"
Jenkins [Thu, 5 Feb 2015 12:30:28 +0000 (12:30 +0000)]
Merge "Change oslo.* to oslo_*"

9 years agoMerge "RemoteFS: Use nas_ip and nas_share_path options"
Jenkins [Thu, 5 Feb 2015 11:02:10 +0000 (11:02 +0000)]
Merge "RemoteFS: Use nas_ip and nas_share_path options"

9 years agoMerge "Add retry for tgtadm update when tgt exists"
Jenkins [Thu, 5 Feb 2015 07:18:56 +0000 (07:18 +0000)]
Merge "Add retry for tgtadm update when tgt exists"

9 years agoMerge "Lefthand driver fails to attach a cloned volume"
Jenkins [Thu, 5 Feb 2015 06:38:24 +0000 (06:38 +0000)]
Merge "Lefthand driver fails to attach a cloned volume"

9 years agoMerge "Purge deleted rows"
Jenkins [Thu, 5 Feb 2015 06:22:14 +0000 (06:22 +0000)]
Merge "Purge deleted rows"

9 years agoSupport over subscription in thin provisioning
Xing Yang [Fri, 16 Jan 2015 21:27:23 +0000 (16:27 -0500)]
Support over subscription in thin provisioning

This patch adds support for over subscription in thin provisioning.
The following changes are proposed:

* A configuration option "max_over_subscription_ratio" will be
  introduced.
* Driver reports the following capacities and ratios:
  * provisioned_capacity
  * max_over_subscription_ratio
    * Driver can use the newly added configuration option to report
      this ratio or it can decide what ratio to report itself.
      The value of this ratio is depending on driver implementation
      and will be reported together with other capabilities and
      capacities by the driver.
  * reserved_percentage
    * Note: This is an existing parameter reported by the driver.
    * Currently it is measured against the free capacity. In this
      patch, it will be changed to measure against the total
      capacity in the filter scheduler.
* Driver also reports the following capabilities:
  * thin_provisioning_support (True or False)
  * thick_provisioning_support (True or False)
* Scheduler will use the above new capabilities reported by the
  driver to make decisions when choosing a backend.

For more details, please see Cinder spec:
https://review.openstack.org/#/c/129342/12/specs/kilo/
over-subscription-in-thin-provisioning.rst

Implements: blueprint over-subscription-in-thin-provisioning
Change-Id: I176a691a4e25bbdc7c4d598628acf2543b2c7ac6

9 years agoMerge "Fixes the EQL driver CI tests AttributeError"
Jenkins [Thu, 5 Feb 2015 02:07:43 +0000 (02:07 +0000)]
Merge "Fixes the EQL driver CI tests AttributeError"

9 years agoChange oslo.* to oslo_*
Anish Bhatt [Tue, 3 Feb 2015 21:19:40 +0000 (13:19 -0800)]
Change oslo.* to oslo_*

Change oslo.db to oslo_db
Change oslo.config to olso_config
Change oslo.rootwrap to oslo_rootwrap

The oslo libraries are moving away from namespace packages.

Partial-bug: 1409733

Change-Id: I3429282afa2db4c0b3aa630eb3a0eaece04405ed

9 years agoLefthand driver fails to attach a cloned volume
Kurt Martin [Thu, 5 Feb 2015 00:09:44 +0000 (16:09 -0800)]
Lefthand driver fails to attach a cloned volume

The provider location was not being populated for cloned volumes.
This patch is updating the provider location for cloned volumes
resulting in successful volume attachments.

Change-Id: I86ef7935ed7233377aa4745dc4b45fcab5703f0a
Closes-Bug: 1418201

9 years agoMerge "Remove the solaris volume driver"
Jenkins [Wed, 4 Feb 2015 22:45:27 +0000 (22:45 +0000)]
Merge "Remove the solaris volume driver"

9 years agoPurge deleted rows
Abel Lopez [Tue, 13 Jan 2015 02:50:00 +0000 (18:50 -0800)]
Purge deleted rows

Adds the ability to clean up rows that are already marked as
deleted of a certain specified age. Age is calculated as timedelta
from now() in days, which are given at command line

DocImpact
Change-Id: Ia50ab0dc4aa1547a5a6a2430f7941aab194e4baf
Implements: blueprint database-purge

9 years agoMake PureISCSIDriver iSCSI port discovery more flexible
Patrick East [Tue, 3 Feb 2015 20:09:58 +0000 (12:09 -0800)]
Make PureISCSIDriver iSCSI port discovery more flexible

While searching for reachable iSCSI ports on the target flash array it
might fail the discovery command. If this happens on driver setup it
will throw an exception from attempting to use fields on an
uninitialized class variable. This fixes the log message and adds a
retry to the method to make this more flexible with network timeouts.

Closes-Bug: 1417730
Change-Id: I99ffb8de4dd5a421442df1bf745808505775480a

9 years agoMerge "EMC VNX Cinder Driver Update"
Jenkins [Wed, 4 Feb 2015 14:40:41 +0000 (14:40 +0000)]
Merge "EMC VNX Cinder Driver Update"

9 years agoEMC VNX Cinder Driver Update
Jeegn Chen [Sun, 14 Dec 2014 09:17:41 +0000 (17:17 +0800)]
EMC VNX Cinder Driver Update

VNX Direct Driver was contributed in Icehouse and updated in Juno.
This commit is to continuously improve the driver with the
following enhancements in Kilo:

* Performance improvement, especially the synchronized operations
initiatlize_connetion and terminate_connection.
* LUN Number Threshold Support
* Initiator Auto Deregistration
* Force Deleting LUN in Storage Groups
* Code refactor to enhance the robustness

Change-Id: Id263a5d0405ba942582ce06beed09b436b80ff3c
Implements: blueprint emc-vnx-direct-driver-kilo-update

9 years agoMerge "Add manage/unmanage methods for Hitachi Block Storage Driver"
Jenkins [Wed, 4 Feb 2015 06:01:42 +0000 (06:01 +0000)]
Merge "Add manage/unmanage methods for Hitachi Block Storage Driver"

9 years agoFixes the EQL driver CI tests AttributeError
rajinir [Tue, 3 Feb 2015 21:38:13 +0000 (15:38 -0600)]
Fixes the EQL driver CI tests AttributeError

Moved the ssh object back to a 'with' Block to
fix the AttributeError thrown by the GeneralContextManager
in the Eqlx CI tests

Fixed the unit tests to mock the enter and exit methods
instead

Change-Id: I629d20e815fb7da3df90dfeee76abc1c60daeefe
Closes-Bug: #1417772

9 years agoMerge "Tests: Don't sleep for looping calls (eqlx)"
Jenkins [Tue, 3 Feb 2015 19:17:58 +0000 (19:17 +0000)]
Merge "Tests: Don't sleep for looping calls (eqlx)"

9 years agoMerge "Roll back if VMAX masking view not created"
Jenkins [Tue, 3 Feb 2015 18:31:00 +0000 (18:31 +0000)]
Merge "Roll back if VMAX masking view not created"

9 years agoAdd manage/unmanage methods for Hitachi Block Storage Driver
Seiji Aguchi [Fri, 23 Jan 2015 05:24:41 +0000 (14:24 +0900)]
Add manage/unmanage methods for Hitachi Block Storage Driver

 This patch adds manage_existing, manage_existing_get_size, and
 unmanage methods for Hitachi Block Storage Driver.

Implements: blueprint hitachi-driver-manage-api

Change-Id: I8dc9086452f4db2e2635bf9c933e1fd9d4328367
Signed-off-by: Seiji Aguchi <seiji.aguchi.tr@hitachi.com>
9 years agoRemoteFS: Use nas_ip and nas_share_path options
Eric Harney [Fri, 23 Jan 2015 20:41:40 +0000 (15:41 -0500)]
RemoteFS: Use nas_ip and nas_share_path options

This replaces the <x>fs_shares_config file configuration
options with the existing nas_ip option and new
nas_share_path and nas_mount_options configuration
options.

This means that RemoteFS drivers will manage a single
export rather than a handful of unrelated exports.

If the nas_ip and nas_share_path options are set, they
are used.  If not, the previous configuration mechanism,
based on loading a set of shares from a file configured
by <x>fs_shares_config will be used.

Also use nas_mount_options to replace
nfs_mount_options for consistency.  If nas_mount_options
is not set, nfs_mount_options will be used for
compatibility.

Implements blueprint: remotefs-share-cfg-improvements
DocImpact: new configuration options

Change-Id: Ic72ae6c7fdd2c6a7fea27152f27c6521a561977b

9 years agoTests: Don't sleep for looping calls (eqlx)
Eric Harney [Tue, 3 Feb 2015 11:16:08 +0000 (12:16 +0100)]
Tests: Don't sleep for looping calls (eqlx)

Mock out greenthread.sleep() so that unit tests
do not spend extra time sleeping.

This changes the eqlx tests from:
Ran 23 tests in 33.533s
 to:
Ran 23 tests in 19.260s

Also remove unneeded randomness.

Change-Id: I1cc03f41fa41e827ec5e39b28a49f6a9ad66b2a1

9 years agoMerge "Use get_my_ipv4 from oslo.utils"
Jenkins [Tue, 3 Feb 2015 11:05:59 +0000 (11:05 +0000)]
Merge "Use get_my_ipv4 from oslo.utils"

9 years agoMerge "Tests: Don't sleep for looping calls"
Jenkins [Tue, 3 Feb 2015 04:08:12 +0000 (04:08 +0000)]
Merge "Tests: Don't sleep for looping calls"

9 years agoEnable use of an /etc/cinder/lvm.conf file
John Griffith [Tue, 20 Jan 2015 23:31:57 +0000 (16:31 -0700)]
Enable use of an /etc/cinder/lvm.conf file

During tempest and Rally runs we've noticed occasional
LVM command hangs (lvs, vgs and pvs), we've also gathered
enough data to show that we see very slow response times from
these commands almost all of the time.

It turns out that this seems to be an issue with us scanning
all devices during LVM operations, including devices that may
be Cinder Volumes that are attaching and detaching from the system.

Inspecting a run instrumented with strace shows a number of LVM
commands timing out due to the device being scanned being removed
during scan, and the LVM command in turn waiting until it times out
on the scan that's in process.

This patch just adds the ability to setup a lvm.conf file in
/etc/cinder.  The Cinder LVM code will now specifically set
the LVM_SYSTEM_DIR environment variable to that directory for
each of the LVM scan commands in brick/local_dev/lvm.py.
If the system doesn't have the file, we use the empty string
which tells LVM to use it's defaults.  This only affects LVM
commands in Cinder, the idea is to ensure we don't impact any
other LVM operations on the node outside of Cinder and that we
behave as we always have in the case of no lvm.conf file being
setup in /etc/cinder.  The presence of the file is auto-detected
on brick/localdev/lvm init.

We'll update the OpenStack Devstack deployment scripts to put this
together and fix things up there first. Until that's done and until
we auto-generate the conf (or document it well), this will be a
*partial* bugfix.

I considered adding a default lvm.conf file to cinder/etc/<sample>
that would be copied in on install, but decided against this to
avoid any possible issues with compatability issues between
platforms or versions.

To use, just copy the /etc/lvm/lvm.conf file to /etc/cinder and
modify the filter as appropriate, for example:
  To use loopback device only:
    filter = [ "a/loop/", "r/.*/" ]
  If you have a physical drive like /dev/sdb1
    filter = [ "a/dev/sdb1/", "r/.*/" ]

Finally, this patch also goes through and cleans up our cmd
variables in brick/localdev/lvm.  We had a mix of using a
cmd array, and strings; this causes inconsistencies and makes
it difficult to extend or modify commands.  Switch everything to
using an array and use extend to provide the correct prefix.

Need to update docs to include a recommendation to create an
/etc/cinder/lvm.conf file and set device filters appropriately.
Doc-Impact
Partial-Bug: #1373513

Change-Id: Ia2289197a6d7fcfc910ee3de48e0a2173881a1e6

9 years agoRoll back if VMAX masking view not created
Xing Yang [Mon, 19 Jan 2015 18:27:31 +0000 (13:27 -0500)]
Roll back if VMAX masking view not created

In emc_vmax_masking.py, an exception object is created if
there is a failure in the masking view creation logic.
However, the exception is not raised. As a result,
initialize_connection will succeed in spite of a failure
but the VM will not be able to access the disk.
This patch adds rollback logic to handle failures in
creating masking view. If the masking view cannot be
created, the volume will be added back to the default
storage group and an exception will be raised.

Closes-Bug: #1393540
Change-Id: I1a00d8922cc876a943fb7822cd86c580d8e6beac

9 years agoMerge "Support iSER driver within the ISCSITarget flow"
Jenkins [Mon, 2 Feb 2015 18:12:58 +0000 (18:12 +0000)]
Merge "Support iSER driver within the ISCSITarget flow"

9 years agoTests: Don't sleep for looping calls
Eric Harney [Mon, 2 Feb 2015 16:12:27 +0000 (17:12 +0100)]
Tests: Don't sleep for looping calls

Some tests are sleeping for a few seconds when
running looping calls.  Mock this out so that
tests do not take longer than required to run.

This takes running vnxdirect and srb tests from:
Ran 105 tests in 37.876s
 to:
Ran 105 tests in 23.154s

Change-Id: I1e79c04d83a59ab37d7550b0021a67fe61e8096e

9 years agoMerge "Fixes attribute content checking"
Jenkins [Mon, 2 Feb 2015 10:27:29 +0000 (10:27 +0000)]
Merge "Fixes attribute content checking"

9 years agoMerge "Fix SSHPoolTestCase to work in parallel"
Jenkins [Mon, 2 Feb 2015 09:44:45 +0000 (09:44 +0000)]
Merge "Fix SSHPoolTestCase to work in parallel"

9 years agoMerge "Failed to discovery when iscsi multipath and CHAP both enabled"
Jenkins [Mon, 2 Feb 2015 09:08:37 +0000 (09:08 +0000)]
Merge "Failed to discovery when iscsi multipath and CHAP both enabled"

9 years agoRemove the solaris volume driver
Mike Perez [Fri, 30 Jan 2015 17:17:46 +0000 (09:17 -0800)]
Remove the solaris volume driver

We have never received cert tests for this driver, so we don't know if
it works today in Cinder. There is also no one driving a third party CI
for it.

Change-Id: I0bba2702c576e37658189bdeb201c43676c8388d

9 years agoFix SSHPoolTestCase to work in parallel
Ivan Kolodyazhny [Fri, 30 Jan 2015 17:19:03 +0000 (19:19 +0200)]
Fix SSHPoolTestCase to work in parallel

Mock global config for tests in SSHPoolTestCase to make it
workable in a concurrency mode.

Change-Id: Ibf6f881d6dfd945abe9c7433367b0acf5b24722a
Partial-Bug: #1259463

9 years agoMerge "Punctuation and Copyright changes."
Jenkins [Sat, 31 Jan 2015 20:20:24 +0000 (20:20 +0000)]
Merge "Punctuation and Copyright changes."

9 years agoFixes attribute content checking
Jay Wang [Tue, 27 Jan 2015 20:02:59 +0000 (12:02 -0800)]
Fixes attribute content checking

Use proper way to check the volume attribute contents in display_name
and display_description. If they are not empty, translate them to
volume backend description. Modify other places where return empty
string makes sense than None as well as the return value checking.

Closes-Bug: 1414247
Change-Id: I87b8d09baf75b227b479f8a79ace90a85cf84177

9 years agoMerge "IBM Storwize driver Consistency Group Implementation"
Jenkins [Fri, 30 Jan 2015 18:18:37 +0000 (18:18 +0000)]
Merge "IBM Storwize driver Consistency Group Implementation"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 30 Jan 2015 06:25:51 +0000 (06:25 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I8a3617ad5a011dd029990fe2df3d8e501cc98cc3

9 years agoMerge "Add completion logging for snapshots and volumes"
Jenkins [Fri, 30 Jan 2015 00:02:10 +0000 (00:02 +0000)]
Merge "Add completion logging for snapshots and volumes"

9 years agoMerge "HP3Par: Set snapCPG when managing existing volumes"
Jenkins [Thu, 29 Jan 2015 21:50:06 +0000 (21:50 +0000)]
Merge "HP3Par: Set snapCPG when managing existing volumes"

9 years agoSupport iSER driver within the ISCSITarget flow
Aviram Bar-Haim [Sun, 25 Jan 2015 20:50:46 +0000 (22:50 +0200)]
Support iSER driver within the ISCSITarget flow

Currently the iSER driver is supported over TGT only,
and there are a couple of iSER classes that inherits
from iSCSI classes, but most of their functionality is
the same as the iSCSI classes. This code duplication caused
instability in the iSER driver code, when new features or
changes are added to the iSCSI driver flow.

Main changes:
  1. Added a new parameter to volume/driver.py in order to
     set the iSCSI protocol type to 'iscsi' or 'iser', with default
     to 'iscsi'.
  2. Configured TGT VOLUME_CONF and VOLUME_CONF_WITH_CHAP_AUTH
     with the new iSCSI protocol parameter.
  3. Added support for RDMA (using iSER) to cinder-rtstool.
  4. Set "driver_volume_type" to "iscsi" or "iser" value, according
     to the new parameter value.
  5. Added unit tests for the new iSER flow.
  6. Added deprecation alert to ISERTgtAdm.

DocImpact

Implements: blueprint support-iscsi-driver

Change-Id: Ie2c021e7fd37e7221f99b3311e4792c958045431

9 years agoHP3Par: Set snapCPG when managing existing volumes
Rich Hagarty [Wed, 14 Jan 2015 17:11:27 +0000 (09:11 -0800)]
HP3Par: Set snapCPG when managing existing volumes

This fixes a corner case where the user did not assign a "Copy CPG"
value to the volume when originally created on the back-end, and
then the user does not assign a "Volume Type" to the volume
when it is then "managed" into OpenStack.

This results in an undefined "snapCPG" value which means no
snapshots can be created for the volume.

The fix is to set the "snapCPG" value to match the "User CPG"
value associated with the volume when the volume is "managed"

Change-Id: I207d462e12e4db67bff8624bc69e7e6f1ceff75b
Closes-Bug: #1393609

9 years agoMerge "Remove useless and unused request_utils"
Jenkins [Thu, 29 Jan 2015 16:21:01 +0000 (16:21 +0000)]
Merge "Remove useless and unused request_utils"

9 years agoMerge "Adds unit tests for HNAS backend"
Jenkins [Thu, 29 Jan 2015 16:06:56 +0000 (16:06 +0000)]
Merge "Adds unit tests for HNAS backend"

9 years agoMerge "Add retry to lvm snapshot create"
Jenkins [Thu, 29 Jan 2015 16:00:34 +0000 (16:00 +0000)]
Merge "Add retry to lvm snapshot create"

9 years agoMerge "Fetch_to_volume_format calls copy_volume using wrong parameter"
Jenkins [Thu, 29 Jan 2015 16:00:24 +0000 (16:00 +0000)]
Merge "Fetch_to_volume_format calls copy_volume using wrong parameter"

9 years agoMerge "Fix configratuion of rally jobs"
Jenkins [Thu, 29 Jan 2015 14:46:28 +0000 (14:46 +0000)]
Merge "Fix configratuion of rally jobs"

9 years agoAdds unit tests for HNAS backend
Erlon R. Cruz [Tue, 13 Jan 2015 15:23:27 +0000 (13:23 -0200)]
Adds unit tests for HNAS backend

HNAS drivers only have unit tests for the driver classes. The backend class
used to interface with the array didn't had unit tests.

Change-Id: I1f27533bf6890f033602abdcde33bb42e49c2851

9 years agoFailed to discovery when iscsi multipath and CHAP both enabled
TaoBai [Tue, 20 Jan 2015 12:18:39 +0000 (04:18 -0800)]
Failed to discovery when iscsi multipath and CHAP both enabled

Storage server may be configured to protect target discovering phase with CHAP
authentication, in this case existing discovery command will be failed in Nova
when iscsi multipath enabled. Nova need these below discovery auth properties.
    "discovery.sendtargets.auth.authmethod",
    "discovery.sendtargets.auth.username",
    "discovery.sendtargets.auth.password"

Cinder Storage driver need to send discovery auth properties to Nova in this
case and the properties are:
   iscsi_properties['discovery_auth_method']
   iscsi_properties['discovery_auth_username']
   iscsi_properties['discovery_auth_password']

This issue not just for IBM Storwize, but also other storage drivers who need
CHAP authentication to do iscsi discover.
The according nova change: https://review.openstack.org/#/c/148516/

Closes-Bug: #1367189

Change-Id: Ib528eed3a9fd5006c1649ef42233e1f943c38ab6

9 years agoMerge "HP 3PAR modules have bad log messages"
Jenkins [Thu, 29 Jan 2015 06:39:59 +0000 (06:39 +0000)]
Merge "HP 3PAR modules have bad log messages"

9 years agoAdd retry for tgtadm update when tgt exists
John Griffith [Thu, 15 Jan 2015 15:56:28 +0000 (08:56 -0700)]
Add retry for tgtadm update when tgt exists

For target creation using tgtadm driver, we create a persistence
file for the target, then send a tgt-admin --update 'name' where
name is the specific persistence file we want to read in and update
from.

It turns out that we can hit race conditions where the persistence
file is written, and an update is requested but target has already
done work to make it believe that the target has already been created.

One thought was to just use "update ALL" but this still seems to have
issues, and changes the error to an account exists failure.

This patch takes the brute force approach and adds the cinder.utils
retry decorator to the tgt-admin --update command.  To do this
we just break out the tgt-admin --update call into it's own method
and add the decorator to it.

Closes-Bug: #1398078

Change-Id: Ic72fb5f4fca70a7e7d1c306efe19674fd7e42cd6

9 years agoAdd completion logging for snapshots and volumes
John Griffith [Wed, 28 Jan 2015 04:59:28 +0000 (22:59 -0600)]
Add completion logging for snapshots and volumes

While trying to debug insufficient resource issues occasionally
seen in the gate, it was noted that there's no logging for
resource deletion of volumes and snapshots.

This patch adds some simple logging in the cinder.volume.api
to note when and why a delete call might fail as an info
message indicating when the request is successfully issued
to the scheduler/rpc layer.

In addition, this patch also adds the same sort of logging
to the LVM backend driver.

This additional logging will help troubleshoot the current
resource issues/races we're encountering in the gate.

Change-Id: I1ac39a43d63650ab020b180eefb3a24a946328d2

9 years agoMerge "TgtAdm: Fix _recreate_backing_lun logging"
Jenkins [Thu, 29 Jan 2015 04:49:56 +0000 (04:49 +0000)]
Merge "TgtAdm: Fix _recreate_backing_lun logging"

9 years agoFix configratuion of rally jobs
Boris Pavlovic [Wed, 28 Jan 2015 23:12:33 +0000 (02:12 +0300)]
Fix configratuion of rally jobs

* Reduce requested resources by rally job
* Remove nested snapshot benchmark cause seems like it has some
  issues not related to cinder

Change-Id: Id38cc0670f081b352e7db2b63e47e156ed277382

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 29 Jan 2015 00:20:11 +0000 (00:20 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Changed pvs separator from ':' to '|' to support names with ':'."
Jenkins [Wed, 28 Jan 2015 23:26:54 +0000 (23:26 +0000)]
Merge "Changed pvs separator from ':' to '|' to support names with ':'."

9 years agoMerge "Fix the eqlx driver to retry on ssh timeout"
Jenkins [Wed, 28 Jan 2015 23:25:56 +0000 (23:25 +0000)]
Merge "Fix the eqlx driver to retry on ssh timeout"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 28 Jan 2015 16:31:40 +0000 (16:31 +0000)]
Updated from global requirements

Change-Id: I77d92824c867cabfe505f169e1a224ac805d650f

9 years agoMerge "Revert "Create SolidFire Template account on init""
Jenkins [Wed, 28 Jan 2015 15:44:47 +0000 (15:44 +0000)]
Merge "Revert "Create SolidFire Template account on init""

9 years agoIBM Storwize driver Consistency Group Implementation
TaoBai [Thu, 18 Dec 2014 05:30:39 +0000 (21:30 -0800)]
IBM Storwize driver Consistency Group Implementation

This patch is IBM Storwize Driver implementation for Consistency Group

Implements: blueprint storwize-svc-consistency-group

Change-Id: Id25c32d93f1c8d8a2986904058a9556e98bbdbe2

9 years agoMerge "Add provisioned_capacity"
Jenkins [Wed, 28 Jan 2015 07:37:51 +0000 (07:37 +0000)]
Merge "Add provisioned_capacity"

9 years agoUse get_my_ipv4 from oslo.utils
ChangBo Guo(gcb) [Tue, 23 Dec 2014 08:17:49 +0000 (16:17 +0800)]
Use get_my_ipv4 from oslo.utils

Remove _get_my_ip from Cinder and replace it's usages
by usages of get_my_ipv4 from netutils, because this methods
implements the same functionality.

Change-Id: I293128364dcd1a83e990d9c75555b04c1e4226fb

9 years agoTgtAdm: Fix _recreate_backing_lun logging
Eric Harney [Tue, 27 Jan 2015 21:59:53 +0000 (16:59 -0500)]
TgtAdm: Fix _recreate_backing_lun logging

If the execute of tgtadm new fails, the exception
thrown skips over the debugging output.

Ensure the output from the command is always
printed.

Change-Id: I9772c0f725cd6a19d4af8acae814a046e6cfdd17

9 years agoRevert "Create SolidFire Template account on init"
John Griffith [Tue, 27 Jan 2015 20:14:14 +0000 (20:14 +0000)]
Revert "Create SolidFire Template account on init"

This reverts commit a36100bd34a22ddc3b620947809a41d328b1e949.

Change-Id: I86f6af5ad18f3236a3f7c5db70acdf2f292ae3b5

9 years agoHP 3PAR modules have bad log messages
Rich Hagarty [Sat, 24 Jan 2015 01:44:53 +0000 (17:44 -0800)]
HP 3PAR modules have bad log messages

Some log messages are incorrectly formatted. Specifically, those
messages that take multiple variables. In this case, each variable
needs to be assigned a unique placeholder.

This defect was recently introduced when all log messages where
updated to use "," instead of "%" (see
Change-Id: I23d53d66fda47981ed8f20b618b2ced8ef6e0682),
which allowed translations to be ignored if not required by current
log levels.

Change-Id: Ic3439ba24c61579457dee206064bed2465ae4b6b
Closes-Bug: #1411370

9 years agoRemove useless and unused request_utils
Julien Danjou [Tue, 27 Jan 2015 11:30:38 +0000 (12:30 +0100)]
Remove useless and unused request_utils

This code is not used and has never been used by Cinder, let's remove
it as it is safe to do so. It's not imported anywhere.

Change-Id: I963caebb304d2211755164a082fc600a9570dd1e

9 years agoCreate SolidFire Template account on init
John Griffith [Mon, 26 Jan 2015 22:21:30 +0000 (15:21 -0700)]
Create SolidFire Template account on init

The standard flow in the SolidFire volume is to create
accounts dynamically as needed based on project id.
Unfortunately the clone_image method "forgot" about this
detail and calls the private clone_volume method without
a valid account resulting in an AccountNotFound
Exception.

The clone_image method is enabled using a specific account
provided via the configuration file.  Rather than worry
about dynamic account creation on clone_image call, this
patch just makes it part of the init phase.  We check to
see if template caching is enabled and if it is, just
go ahead and check/create the account on startup.

Closes-Bug: #1414760

Change-Id: I62f3f7aff958c097ae662d21b2c0f55a8d08f784

9 years agoFetch_to_volume_format calls copy_volume using wrong parameter
wuyuting [Mon, 26 Jan 2015 18:50:28 +0000 (02:50 +0800)]
Fetch_to_volume_format calls copy_volume using wrong parameter

When creating a volume from an image, if qemu-img is not installed,
fetch_to_volume_format will call volume_utils.copy_volume to copy
image to volume. Copy_volume need the size of image in megabyte,
but fetch_to_volume_format call it using size in bytes.

Change-Id: Ia3b0f9168235a977a12232e27a5755ad11ec18f5
Closes-Bug: #1414867

9 years agoChanged pvs separator from ':' to '|' to support names with ':'.
Joe D'Andrea [Fri, 16 Jan 2015 21:26:09 +0000 (21:26 +0000)]
Changed pvs separator from ':' to '|' to support names with ':'.

get_all_physical_volumes() runs:

pvs --noheadings --unit=g -o vg_name,name,size,free
    --separator : --nosuffix

Which can produce a variable number of fields if the 'name'
incorporates ':', as in the following:

cinder-volumes-array-lun-0:/dev/disk/by-path/ip-10.8.77.11:3260-
    iscsi-iqn.1984-05.com.dell:powervault.md3600i.6f01faf000eb1b
    540000000053c487b0-lun-0:931.01:931.01

Change-Id: Ia5442af2a06a004ff1af58ce08b816506b369f22
Closes-Bug: 1414076

9 years agoMerge "Remove unnecessary method: _ensure_iscsi_targets() in tgt.py"
Jenkins [Mon, 26 Jan 2015 16:32:06 +0000 (16:32 +0000)]
Merge "Remove unnecessary method: _ensure_iscsi_targets() in tgt.py"

9 years agoMerge "Raise correct exception when validate_connector failed"
Jenkins [Mon, 26 Jan 2015 15:45:09 +0000 (15:45 +0000)]
Merge "Raise correct exception when validate_connector failed"

9 years agoMerge "Move 3 Fujitsu ETERNUS DX related file"
Jenkins [Mon, 26 Jan 2015 07:02:26 +0000 (07:02 +0000)]
Merge "Move 3 Fujitsu ETERNUS DX related file"

9 years agoMerge "Use uuidutils from oslo.utils"
Jenkins [Mon, 26 Jan 2015 06:47:46 +0000 (06:47 +0000)]
Merge "Use uuidutils from oslo.utils"

9 years agoRaise correct exception when validate_connector failed
Zhiteng Huang [Mon, 12 Jan 2015 05:27:15 +0000 (13:27 +0800)]
Raise correct exception when validate_connector failed

Cinder volume manager uses validate_connector() method to verify if required
information is in connector when handling initialize_connection() request.
validate_connector() is actually a pure input validation method, basically
checking if 'initiator' or 'wwpns' is in connector if storage protocol is
iSCSI or FC.  However, when required information is missing, currently drivers
raises either VolumeBackendAPIException or VolumeDriverException, which would
then bubble up to API and then to user (Nova) as InternalServerError.

This change adds a new exception - InvalidConnectorException, that drivers
should raise when connector is found not valid.  With that, Cinder API would
raise BadRequest instead to user, suggesting things are missing in request.

Change-Id: I4f04f5d0c558404836a2bd270f7f22f3f2d4f314
Closes-bug: #1409580

9 years agoAdd provisioned_capacity
Xing Yang [Fri, 16 Jan 2015 17:45:53 +0000 (12:45 -0500)]
Add provisioned_capacity

This change is needed by the over subscription patch:
https://review.openstack.org/#/c/142171/

This patch makes the following change:
Add 'provisioned_capacity' to Cinder base driver, Cinder reference
driver (LVM), and scheduler host_manager.

provisioned_capacity is the apparent allocated space indicating how
much capacity has been provisioned.

Example: User A created 2x10G volumes in Cinder from backend A, and
user B created 3x10G volumes from backend A directly, without using
Cinder. Assume those are all the volumes provisioned on backend A.
The total provisioned_capacity will be 50G and that is what the driver
should be reporting.

Change-Id: I26035a8b591309a922efa517e50c68eb57ef6d2d
Partial-Implements: blueprint over-subscription-in-thin-provisioning

9 years agoMerge "Update tests for Quobyte Cinder drv from mox->mock."
Jenkins [Sun, 25 Jan 2015 17:10:56 +0000 (17:10 +0000)]
Merge "Update tests for Quobyte Cinder drv from mox->mock."

9 years agoMerge "Fix _usage_from_snapshot in volume.utils"
Jenkins [Sun, 25 Jan 2015 17:10:10 +0000 (17:10 +0000)]
Merge "Fix _usage_from_snapshot in volume.utils"

9 years agoMerge "Raise correct exception if deleting of LIO iSCSI target is failed"
Jenkins [Sun, 25 Jan 2015 02:24:52 +0000 (02:24 +0000)]
Merge "Raise correct exception if deleting of LIO iSCSI target is failed"

9 years agoMove 3 Fujitsu ETERNUS DX related file
Yusuke Hayashi [Fri, 26 Dec 2014 12:21:04 +0000 (21:21 +0900)]
Move 3 Fujitsu ETERNUS DX related file

Since there are three volume driver files relating to
Fujitsu ETERNUS DX in cinder.volume.drivers,
I make 'fujitsu' directory at cinder.volume.drivers
and I move these files to the directory.

Closes-Bug: #1402349

Change-Id: I449346fa86940113f5b9e7a7108338b45e981053

9 years agoAdd retry to lvm snapshot create
John Griffith [Thu, 22 Jan 2015 18:22:25 +0000 (11:22 -0700)]
Add retry to lvm snapshot create

We have some occasional issues with snapshot-create
failing for what looks to be conflicts with udev.  It
looks like this problem is a status conflict between LVM
cache and udev, and in most cases the best way to get
around this is to retry the command a few times until
the cache and udev are back in sync.

This patch uses the newly added retry decorator and
for now we're just adding it to the snapshot create
call.  We're using the default values for interval and
retry count but we can certainly adjust this as needed.

Change-Id: Ic884b829591361da979fde968f5710237b34565f
Closes-Bug: #1335905

9 years agoMerge "Add a generic retry decorator to cinder/utils"
Jenkins [Sat, 24 Jan 2015 22:57:43 +0000 (22:57 +0000)]
Merge "Add a generic retry decorator to cinder/utils"

9 years agoMerge "Fixes a small issue in find_autodoc_modules.sh"
Jenkins [Sat, 24 Jan 2015 21:57:12 +0000 (21:57 +0000)]
Merge "Fixes a small issue in find_autodoc_modules.sh"

9 years agoAdd a generic retry decorator to cinder/utils
John Griffith [Thu, 22 Jan 2015 17:35:31 +0000 (10:35 -0700)]
Add a generic retry decorator to cinder/utils

Retries are something that we use in a number of
places, and could probably use in a few more.  Rather
than continue writing custom retry code or silly loops
let's add a generic retry decorator class that can be
initialized and used as needed.

This patch leverages the retrying library that's already
in OpenStack Requirements and used in other places.  We
just add a wrapper around it for some logging and add
a bit of error handling incase somebody sets retries to 0

Co-Authored-By: Josh Harlow <harlowja@yahoo-inc.com>
Change-Id: I629373d3c75be591ccde5608c8c85f2debd47447

9 years agoUse uuidutils from oslo.utils
Julien Danjou [Fri, 23 Jan 2015 21:35:43 +0000 (22:35 +0100)]
Use uuidutils from oslo.utils

Change-Id: I6313ad1d3da1a8e9efeab5d4f336e6f43f7a9857

9 years agoMerge "Remove usage of taskflow 'utils.misc' module"
Jenkins [Fri, 23 Jan 2015 23:34:21 +0000 (23:34 +0000)]
Merge "Remove usage of taskflow 'utils.misc' module"

9 years agoRemove unnecessary method: _ensure_iscsi_targets() in tgt.py
Mitsuhiro Tanino [Fri, 23 Jan 2015 22:06:12 +0000 (17:06 -0500)]
Remove unnecessary method: _ensure_iscsi_targets() in tgt.py

This method is unnecessary in tgt.py after Target Object is
introduced at change-id I43190d1dac33748fe55fa00f260f32ab209be656.

Change-Id: I33a56db72535c7ea9bf6ddf43fbdd6eff923c9f3

9 years agoRaise correct exception if deleting of LIO iSCSI target is failed
Mitsuhiro Tanino [Wed, 14 Jan 2015 17:40:51 +0000 (12:40 -0500)]
Raise correct exception if deleting of LIO iSCSI target is failed

When using LVM driver and LIO target, terminate_connection in LIO
target raises ISCSITargetAttachFailed if deleting of iSCSI target
is failed.

This should raise ISCSITargetDetachFailed.

Closes-Bug: #1414207
Change-Id: I98060d5a0bcd720df15434305ab8d3e31bdb1a43

9 years agoMerge "Fix HNAS driver confusing error message (iSCSI driver)"
Jenkins [Fri, 23 Jan 2015 21:50:00 +0000 (21:50 +0000)]
Merge "Fix HNAS driver confusing error message (iSCSI driver)"

9 years agoMerge "Remove argparse from requirements"
Jenkins [Fri, 23 Jan 2015 21:01:44 +0000 (21:01 +0000)]
Merge "Remove argparse from requirements"

9 years agoMerge "Move oslo.serialization to oslo_serialization namespace"
Jenkins [Fri, 23 Jan 2015 20:49:13 +0000 (20:49 +0000)]
Merge "Move oslo.serialization to oslo_serialization namespace"

9 years agoMerge "Cleanup unused DB APIs, part I"
Jenkins [Fri, 23 Jan 2015 20:48:33 +0000 (20:48 +0000)]
Merge "Cleanup unused DB APIs, part I"

9 years agoMerge "Fix bug in rbd driver: the cloned volume size is wrong"
Jenkins [Fri, 23 Jan 2015 16:31:17 +0000 (16:31 +0000)]
Merge "Fix bug in rbd driver: the cloned volume size is wrong"

9 years agoMerge "Add retrying lib from global requirements"
Jenkins [Fri, 23 Jan 2015 16:30:11 +0000 (16:30 +0000)]
Merge "Add retrying lib from global requirements"

9 years agoCleanup unused DB APIs, part I
Zhiteng Huang [Wed, 14 Jan 2015 03:54:40 +0000 (11:54 +0800)]
Cleanup unused DB APIs, part I

There are unused DB APIs, some of them were leftovers of other features
removal, some are purely added without being used.  This change removes
these unused DB APIs.

Note that there are some DB APIs only used by unit tests, in other words
they are used in unit tests where they are not the unit of code being
tested. Those will be cleaned up in follow-up patch(es).

Change-Id: I456e64445dc8a258fdcc3c1b309f59f8adcc23e3

9 years agoRemove argparse from requirements
Julien Danjou [Fri, 23 Jan 2015 11:23:46 +0000 (12:23 +0100)]
Remove argparse from requirements

Since Cinder does not support Python 2.6 anymore and that argparse is
native in Python >=2.7, no need to pip install it.

Change-Id: I1701a3f6584c5fc827387b185d7182d3011062ca

9 years agoMerge "VMware:Fix error creating vCenter inventory folder"
Jenkins [Fri, 23 Jan 2015 09:38:16 +0000 (09:38 +0000)]
Merge "VMware:Fix error creating vCenter inventory folder"

9 years agoUpdate tests for Quobyte Cinder drv from mox->mock.
Silvan Kaiser [Mon, 19 Jan 2015 15:31:23 +0000 (16:31 +0100)]
Update tests for Quobyte Cinder drv from mox->mock.

Removes mox framework from Quobyte Cinder Driver tests, replacing
it by mock framework code.

blueprint: qb-driver-mox2mock

Change-Id: I12d10b555269cf1da97c80b233412ebbc363bd42