]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoChange default of option volume_driver to LVMVolumeDriver
Christian Berendt [Sat, 25 Apr 2015 08:20:03 +0000 (10:20 +0200)]
Change default of option volume_driver to LVMVolumeDriver

LVMISCSIDriver is deprecated, LVMVolumeDriver should be used as new
default value for the volume_driver option.

DocImpact

Change-Id: Icee4e3881e4e8f9127fec6238c1e68b1526b553c

9 years agoMerge "Windows: Improve vhdutils error messages"
Jenkins [Sat, 25 Apr 2015 05:25:46 +0000 (05:25 +0000)]
Merge "Windows: Improve vhdutils error messages"

9 years agoMerge "Don't truncate osapi_volume_link prefixes"
Jenkins [Sat, 25 Apr 2015 05:18:03 +0000 (05:18 +0000)]
Merge "Don't truncate osapi_volume_link prefixes"

9 years agoMerge "Remove deprecated methods in VNX driver"
Jenkins [Sat, 25 Apr 2015 05:12:00 +0000 (05:12 +0000)]
Merge "Remove deprecated methods in VNX driver"

9 years agoMerge "Sync oslo service module"
Jenkins [Sat, 25 Apr 2015 04:59:40 +0000 (04:59 +0000)]
Merge "Sync oslo service module"

9 years agoAdd test case for volume_encryption_metadata_get
Joel Coffman [Thu, 26 Mar 2015 22:14:01 +0000 (18:14 -0400)]
Add test case for volume_encryption_metadata_get

This change adds unit tests for the volume_encryption_metadata_get
function. The unit tests provide protection against regressions when
refactoring this code as part of follow-up patches.

Writing the unit tests also exposed a minor issue with the existing
implementation of the volume_encryption_metadata_get function. If the
volume type is not encrypted, then the existing implementation would
raise an exception due to volume_type_encryption_get returning None.
In practice, this issue would not be encountered due to separate
checks to ensure that the volume type is encrypted, but a small
refactoring obviates the need for these checks and allows the
volume_encryption_metadata_get function to be invoked for both
encrypted and "normal" volumes.

A separate patch will clean up the unnecessary checks to ensure that
the volume type was encrypted prior to calling this function.

Related to blueprint volume-encryption-metadata

Change-Id: I6ba62a58ac62a3b7bfb2b9d4d18b37ef458b616c

9 years agoDon't truncate osapi_volume_link prefixes
Deliang Fan [Fri, 24 Apr 2015 03:16:46 +0000 (11:16 +0800)]
Don't truncate osapi_volume_link prefixes

When osapi_volume_link_prefix is defined and used to update the
links return in API responses, do not drop the path component of
the overriding link prefix.

Change-Id: Ic84e16cdfa989d4af7f076a4c244808be2ca4dce
Closes-Bug: #1304099

9 years agoMerge "NetApp E-Series: Fix instance live-migration with attached volumes"
Jenkins [Fri, 24 Apr 2015 03:09:46 +0000 (03:09 +0000)]
Merge "NetApp E-Series: Fix instance live-migration with attached volumes"

9 years agoMerge "3PAR don't log version numbers every stats update"
Jenkins [Fri, 24 Apr 2015 03:09:36 +0000 (03:09 +0000)]
Merge "3PAR don't log version numbers every stats update"

9 years agoMerge "Move RBD calls to a separate threads"
Jenkins [Fri, 24 Apr 2015 02:59:22 +0000 (02:59 +0000)]
Merge "Move RBD calls to a separate threads"

9 years agoMerge "Use iscsi_helper instead of target_helper on logs"
Jenkins [Fri, 24 Apr 2015 02:55:21 +0000 (02:55 +0000)]
Merge "Use iscsi_helper instead of target_helper on logs"

9 years agoRemove deprecated methods in VNX driver
Tina [Fri, 24 Apr 2015 01:41:12 +0000 (21:41 -0400)]
Remove deprecated methods in VNX driver

This change amis to do a cleanup in VNX driver to remove those
deprecated methods.

Change-Id: I9d3c5bd6ade259a4d731d3d1020e4c37c75ef889
Close-Bug: 1447908

9 years agoMerge "Add external genconfig calls"
Jenkins [Fri, 24 Apr 2015 00:56:21 +0000 (00:56 +0000)]
Merge "Add external genconfig calls"

9 years ago3PAR don't log version numbers every stats update
Walter A. Boring IV [Thu, 23 Apr 2015 16:34:35 +0000 (09:34 -0700)]
3PAR don't log version numbers every stats update

After the 3PAR drivers were refactored to remove the local
file locks, the login mechanism was logging the common and
client version numbers on every driver entry point.

This patch removes that logging except at driver startup.

Change-Id: Ib7732817a45cbdfdf975df13dbaf9bc0462a1dc0
Closes-Bug: #1447697

9 years agoSync oslo service module
John Griffith [Thu, 23 Apr 2015 15:05:57 +0000 (09:05 -0600)]
Sync oslo service module

This does a full sync of the oslo.service module.  Note
that we've cherry picked some critical bug-fix changes
to this module already, this commit just syncs the full
module properly and gets us up to date where we should be.

Current HEAD in OSLO:
-----------------------
commit:  d5edda00b4eca65d57f94bd0ac1b790e6d1f732e
Date:    Wed Apr 22 19:49:00 2015 +0000
Merge "service child process normal SIGTERM exit"

Changes merged with this patch:
---------------------------------
d5edda00 - Merge "service child process normal SIGTERM exit"
702bc569 - service child process normal SIGTERM exit
64b5819e - Revert "Revert "Revert "Optimization of waiting subprocesses
           in ProcessLauncher
f5646edc - Revert "Revert "Optimization of waiting subprocesses
           in ProcessLauncher
d23b6589 - Revert "Optimization of waiting subprocesses in ProcessLauncher"
593005b7 - ProcessLauncher: reload config file in parent process on SIGHUP
f29e865d - Store ProcessLauncher signal handlers on class level
bf92010c - Optimization of waiting subprocesses in ProcessLauncher

NOTE: Commit 702bc569 was actually pulled in with commit d73ac96d .
      We shouldn't have merged that individual commit.  I include the
      commit here to document Oslo level that the service module is at
      cumulatively between that commit and patch.

Change-Id: I613ba5ba442cf533c0f68d06281d117fbac20bd6

9 years agoAdd external genconfig calls
John Griffith [Thu, 23 Apr 2015 18:07:12 +0000 (12:07 -0600)]
Add external genconfig calls

After moving to oslo.config we still were using
incubator config generator.  This was ok, but the
problem is we haven't been pulling config options
from the oslo libs.

This is a hack that just appends external lib calls
and appends those options to the sample file being built.

Change-Id: I2634b20ef4abd3bf7990f845d59ad3d208db234f
Closes-Bug: #1447380

9 years agoMerge "Add resource tag to logging in volume.manager.py"
Jenkins [Thu, 23 Apr 2015 17:57:57 +0000 (17:57 +0000)]
Merge "Add resource tag to logging in volume.manager.py"

9 years agoNetApp E-Series: Fix instance live-migration with attached volumes
Alex Meade [Tue, 24 Feb 2015 21:22:58 +0000 (16:22 -0500)]
NetApp E-Series: Fix instance live-migration with attached volumes

Currently, live migrations of instances with attached volumes that live
on a NetApp E-Series backend will fail and break connectivity to the
guest. This patch adds the 'netapp_enable_multiattach' configuration
option that enables multiattach operations with the E-Series driver.
It defaults to allowing these operations but needs to be configurable
since allowing for multiple attachments imposes a limit of 256 volumes
on the backend due to how multiple attachments must be managed by
E-Series.

Multiattach operations are enabled by mapping volumes to an E-Series
host group on the backend called 'cinder-host-group'. Host groups can
only have 256 mappings at a time and so we must limit the number of
volumes in order to guarantee any volume created could then be attached.

Closes-bug: 1433825
Change-Id: Icb73f5b65b12decbd7b7f21c2fcec6fe700eaf59

9 years agoAdd resource tag to logging in volume.manager.py
John Griffith [Sat, 18 Apr 2015 00:19:37 +0000 (00:19 +0000)]
Add resource tag to logging in volume.manager.py

We now have resource tag support in oslo logging,
and our logging is pretty inconsistent and down right
ugly in places.  Let's clean things up based on the
standard logging guidelines and use the fancy new
resource tag.

To use set the following in cinder.conf:
logging_context_format_string = \
%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s \
%(project_name)s] %(resource)s%(message)s

This change hits the majority of the code in manager and
should be used as an example/guide.  There are some exceptions
around migration and replication where things are kinda ugly,
those should be fixed up as follow up work.

Change-Id: I1315cc16116601fea8c023b47f99b2eaad01d6fb

9 years agoMerge "Remove force check from copy_volume_to_image"
Jenkins [Thu, 23 Apr 2015 05:35:53 +0000 (05:35 +0000)]
Merge "Remove force check from copy_volume_to_image"

9 years agoRemove force check from copy_volume_to_image
John Griffith [Wed, 22 Apr 2015 04:28:34 +0000 (04:28 +0000)]
Remove force check from copy_volume_to_image

The upload_volume_to_image method allows a force parameter that will
upload a volume even though the volume is attached/in-use. A user can
get away with this with the LVM driver because the LVM backing is
local to the Cinder worker node that's pushing the bits to Glance.

The problem is, this only works for local storage, it won't work
with any iSCSI devices because they can't do multi-attach. Also,
the reason we required that a volume NOT be in-use for this
operation is because we have no way of keeping the guest Instance
from writing to the volume while we're uploading, and corrupting the data.

This has been exposed like this for several releases, so removing it
now likely would not be a good user experience.  Instead, this
patch add a config option to enable/disable it (default is to
disable), and deployers can choose whether they would like to
allow the use of --force True or not.

DocImpact Disables the --force option to copy-volume-to-image and
          introduces "allow_force_upload" boolean option to re-enable

Change-Id: I1210186689dea204601356f8d08805c6cb6f017c
Closes-Bug: 1446954

9 years agoservice child process normal SIGTERM exit
Brant Knudson [Wed, 22 Apr 2015 19:57:53 +0000 (14:57 -0500)]
service child process normal SIGTERM exit

service.py had some code where the child process would catch the
SIGTERM from the parent just so it could exit with 1 status rather
than with an indication that it exited due to SIGTERM. When
shutting down the parent doesn't care in what way the child ended,
only that they're all gone, so this code is unnecessary.

Also, for some reason this caused the child to never exit while
there was an open connection from a client. Probably something
with eventlet and signal handling.

This is a cherry-pick of oslo-incubator commit
702bc569987854b602ef189655c201c348de84cb .

Change-Id: I87f3ca4da64fb8070e4d6c3876a2f1ce1a3ca71d
Closes-Bug: #1446583

9 years agoMove unit tests into dedicated directory
John Griffith [Mon, 20 Apr 2015 21:38:22 +0000 (15:38 -0600)]
Move unit tests into dedicated directory

This patch moves all of the existing cinder/tests into
cinder unit tests.  This is being done to make way for
the addition of cinder/tests/functional.

Yes, this is going to cause significant pain with
any changes that haven't merged behind it in terms
of rebase, but there's no real alternative.  We have
to rip the band-aid off at some point, and early in L
seems like a great time to do it.

Change-Id: I63b0f89474b3c139bdb89589abd85319d2aa61ec

9 years agoMove RBD calls to a separate threads
Ivan Kolodyazhny [Mon, 20 Apr 2015 19:53:14 +0000 (22:53 +0300)]
Move RBD calls to a separate threads

RBD is a python binding for librados which isn't patched by eventlet.

Making long-running tasks like removing big (~100GB, ~1TB) volumes
blocks eventlet loop and all cinder-volume service hangs
until it finished when rados_connect_timeout is disabled. It makes
cinder-volume services unavailable for a while.

This patch moves all rados calls to a separate python thread which
doesn't block eventlet loop.

Change-Id: Ibaf43858d60e1320c339f2523b5c09c7f7c7f91e
Closes-Bug: #1401335

9 years agoMerge "Storwize driver should only report active wwpn port"
Jenkins [Tue, 21 Apr 2015 17:36:42 +0000 (17:36 +0000)]
Merge "Storwize driver should only report active wwpn port"

9 years agoMerge "Standardize logging in volume.api.py"
Jenkins [Tue, 21 Apr 2015 07:26:14 +0000 (07:26 +0000)]
Merge "Standardize logging in volume.api.py"

9 years agoMerge "Reserve 5 migrations for Kilo backports"
Jenkins [Tue, 21 Apr 2015 07:26:00 +0000 (07:26 +0000)]
Merge "Reserve 5 migrations for Kilo backports"

9 years agoReserve 5 migrations for Kilo backports
John Griffith [Mon, 20 Apr 2015 17:04:46 +0000 (11:04 -0600)]
Reserve 5 migrations for Kilo backports

Reserve 5 migrations so that we can backport any fixes
that require a db migration to stable kilo.

Change-Id: I951f945e58698907a464e19d340222e41c0f31d1

9 years agoRBD: Add missing Ceph customized cluster name support
Zhiteng Huang [Mon, 20 Apr 2015 16:25:11 +0000 (00:25 +0800)]
RBD: Add missing Ceph customized cluster name support

It turns out '--cluster' is also needed when RBD driver talks to
ceph cluster using 'ceph' command (not via librados).  This change
appends RBDDriver._ceph_args with '--cluster' when 'rbd_cluster_name'
config option is not None.

Change-Id: Ie957a3658a630947a140f4172f775e42b7611c6e
Closes-bug: #1444855

9 years agoStandardize logging in volume.api.py
John Griffith [Fri, 17 Apr 2015 20:51:06 +0000 (20:51 +0000)]
Standardize logging in volume.api.py

We now have resource tag support in oslo logging,
and our logging is pretty inconsistent and down right
ugly in places.  Let's clean things up based on the
standard logging guidelines and use the fancy new
resource tag.

This patch starts with the volume.api file as that's
'easy', so we can enforce things going forward and start
working out other files in future patches.

To use set the following in cinder.conf:
logging_context_format_string = \
%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s \
%(project_name)s] %(resource)s%(message)s

Change-Id: I78708ba8bc372c2ca051aa7d84386dc7125a9b5e

9 years agoMerge "Fix QoSSpecManageApiTest to work in parallel"
Jenkins [Sun, 19 Apr 2015 15:48:41 +0000 (15:48 +0000)]
Merge "Fix QoSSpecManageApiTest to work in parallel"

9 years agoMerge "Complete the doc/README.rst instructions to build docs"
Jenkins [Sun, 19 Apr 2015 15:43:08 +0000 (15:43 +0000)]
Merge "Complete the doc/README.rst instructions to build docs"

9 years agoMerge "VMware: Improve invalid container error message"
Jenkins [Sun, 19 Apr 2015 06:11:13 +0000 (06:11 +0000)]
Merge "VMware: Improve invalid container error message"

9 years agoMerge "VolMgr: reschedule only when filter_properties has retry"
Jenkins [Sun, 19 Apr 2015 06:09:02 +0000 (06:09 +0000)]
Merge "VolMgr: reschedule only when filter_properties has retry"

9 years agoWindows: Improve vhdutils error messages
Lucian Petrut [Thu, 16 Apr 2015 21:37:18 +0000 (00:37 +0300)]
Windows: Improve vhdutils error messages

The Windows Cinder volume drivers use Win32 API functions for VHD/X
related operations. In case of failure, those return non-zero error
codes.

We can use the FormatMessage function in order to retrieve more
accurate error descriptions based on the error codes.

Change-Id: Ic0d68fe57847c6b1875567873a60315ba7c6d436

9 years agoMerge "Fix LUN misalignment issue with NetApp iSCSI drivers"
Jenkins [Fri, 17 Apr 2015 17:36:40 +0000 (17:36 +0000)]
Merge "Fix LUN misalignment issue with NetApp iSCSI drivers"

9 years agoVolMgr: reschedule only when filter_properties has retry
Zhiteng Huang [Fri, 17 Apr 2015 16:34:59 +0000 (00:34 +0800)]
VolMgr: reschedule only when filter_properties has retry

In the task flow for volume manager, create_volume tasks, volume gets
reschedule even when scheduler doesn't indicate so.  The problem is
the flow should not only check 'allow_reschedule' and 'request_specs',
but also (more importantly) filter_properties['retry'], which is
populated by scheduler if schedule_max_attempts is set to > 1.  This
checks was there before taskflow was introduced, but somehow the
migration missed the check for filter_properties['retry'].

This change adds back the check, so scheduler_max_attempts won't be
treated like scheduler_max_attempts = infinite.

Change-Id: Ia873617b22a2d86662ea8ea2fec5aae7f54a2058
Closes-bug: #1445561

9 years agoStorwize driver should only report active wwpn port
TaoBai [Fri, 17 Apr 2015 09:29:53 +0000 (02:29 -0700)]
Storwize driver should only report active wwpn port

Current code will report both active and inactive wwpn port which
will cause connection failure.We should only report active port.

Closes-bug: #1445409

Change-Id: Ide74df778294bfec50fbedd2ac3cd9207201b187

9 years agoMerge "Mask passwords with iscsiadm commands"
Jenkins [Thu, 16 Apr 2015 22:30:28 +0000 (22:30 +0000)]
Merge "Mask passwords with iscsiadm commands"

9 years agoMerge "Fix always false condition in glance wrapper"
Jenkins [Thu, 16 Apr 2015 19:18:55 +0000 (19:18 +0000)]
Merge "Fix always false condition in glance wrapper"

9 years agoMerge "SMBFS: Lock on a per-volume basis"
Jenkins [Thu, 16 Apr 2015 18:52:11 +0000 (18:52 +0000)]
Merge "SMBFS: Lock on a per-volume basis"

9 years agoMerge "Add volume:update rule to policy.json"
Jenkins [Thu, 16 Apr 2015 18:15:43 +0000 (18:15 +0000)]
Merge "Add volume:update rule to policy.json"

9 years agoMerge "Add support for customized cluster name"
Jenkins [Thu, 16 Apr 2015 18:15:34 +0000 (18:15 +0000)]
Merge "Add support for customized cluster name"

9 years agoMask passwords with iscsiadm commands
Walter A. Boring IV [Thu, 16 Apr 2015 17:44:10 +0000 (10:44 -0700)]
Mask passwords with iscsiadm commands

This patch adds the fix that exists in the nova
libvirt volume code to use oslo_utils strutils
to mask passwords that might show up in debug log
messages.

Change-Id: I5c321d6b2627f186ff3dfe64ee7ad71f27a95cf0
Closes-Bug: 1445137

9 years agoAdd support for customized cluster name
Zhiteng Huang [Thu, 16 Apr 2015 14:47:31 +0000 (22:47 +0800)]
Add support for customized cluster name

Current RBD driver assumes ceph cluster name to be 'ceph', for
cluster has a different name, the driver won't be able to connect
to the cluster.  This change add a new config option
'rbd_cluster_name' to address this issue.

DocImpact

Change-Id: I02ae1a255fd613fce291cc7ddf90cfd9175255a8
Closes-bug: #1444855

9 years agoSMBFS: Lock on a per-volume basis
Alessandro Pilotti [Wed, 1 Apr 2015 17:57:14 +0000 (20:57 +0300)]
SMBFS: Lock on a per-volume basis

This allows operations that do not conflict with each
other (i.e. are on different volumes) to run concurrently.
The prior locking scheme was too coarse and essentially
made the driver single-threaded.

This patch moves the implementation of the GlusterFS driver locking
scheme to the RemoteFS base driver so that other similar volume
drivers can use it.

Closes-Bug: #1439352
Change-Id: I37be14e7525406e0ad568f6228c1303998c5235f

9 years agoWindows SMBFS: fix volume extend
Lucian Petrut [Fri, 27 Mar 2015 12:15:25 +0000 (14:15 +0200)]
Windows SMBFS: fix volume extend

The Windows SMBFS driver inherits the Linux SMBFS driver,
overriding Windows specific methods.

This commit Ic89cffc93940b7b119cfcde3362f304c9f2875df added the
volume name as an extra argument to the _do_extend_volume in order
to check if differencing images are pointing to backing files other
than the according volume disks.

Although this is not required on Windows, this method should accept
this extra argument in order to have the same signature as the
method it overrides. At the moment, this raises the following
exception:

TypeError: _do_extend_volume() takes exactly 3 arguments (4 given)

Change-Id: I868d7de4a2c68f3fc520ba476a5660a84f440bb1
Closes-Bug: #1437290

9 years agoComplete the doc/README.rst instructions to build docs
Fabien Boucher [Tue, 17 Mar 2015 15:17:02 +0000 (15:17 +0000)]
Complete the doc/README.rst instructions to build docs

Give instructions about how to build the docs using tox
and virtualenv.

Change-Id: I3d7cdbd848158307706d94ee8a35b3b35911900d

9 years agoMerge "Add CA cert option to backups swift driver"
Jenkins [Thu, 16 Apr 2015 06:07:48 +0000 (06:07 +0000)]
Merge "Add CA cert option to backups swift driver"

9 years agoMerge "Fix a wrong argument of create method"
Jenkins [Thu, 16 Apr 2015 05:54:03 +0000 (05:54 +0000)]
Merge "Fix a wrong argument of create method"

9 years agoMerge "Reworked Dell SC iSCSI target portal return"
Jenkins [Thu, 16 Apr 2015 02:03:09 +0000 (02:03 +0000)]
Merge "Reworked Dell SC iSCSI target portal return"

9 years agoAdd CA cert option to backups swift driver
Francis Moorehead [Fri, 23 Jan 2015 13:13:38 +0000 (13:13 +0000)]
Add CA cert option to backups swift driver

Add the option in volume backups swift driver
to specify a CA certificate file

DocImpact: Add the option in volume backups swift driver to
specify a CA certificate file

Closes-Bug: 1413945

Change-Id: Ibcfe220d35cbb5369679a1ff51fffd41f16c9909

9 years agoMerge "Add locking to PureISCSIDriver around creating Purity Host objects."
Jenkins [Wed, 15 Apr 2015 06:01:04 +0000 (06:01 +0000)]
Merge "Add locking to PureISCSIDriver around creating Purity Host objects."

9 years agoMerge "Get volume from db again before updating it's status"
Jenkins [Wed, 15 Apr 2015 05:21:30 +0000 (05:21 +0000)]
Merge "Get volume from db again before updating it's status"

9 years agoMerge "Remove the export creation during volume creation for migration"
Jenkins [Wed, 15 Apr 2015 05:21:10 +0000 (05:21 +0000)]
Merge "Remove the export creation during volume creation for migration"

9 years agoFix a wrong argument of create method
Daisuke Fujita [Wed, 15 Apr 2015 05:03:31 +0000 (14:03 +0900)]
Fix a wrong argument of create method

Change the argument 'QoSSpecs.create' to 'qos_specs.create'.

Change-Id: Iabebc5f1681be75fb06d836ea72b93de0a9d688e
Closes-Bug: #1443331

9 years agoMerge "Fix assertEqual in test_volume.py in correct order of params"
Jenkins [Wed, 15 Apr 2015 03:39:41 +0000 (03:39 +0000)]
Merge "Fix assertEqual in test_volume.py in correct order of params"

9 years agoAdd locking to PureISCSIDriver around creating Purity Host objects.
Patrick East [Wed, 15 Apr 2015 01:42:19 +0000 (18:42 -0700)]
Add locking to PureISCSIDriver around creating Purity Host objects.

This will prevent us from getting conflicting credentials for
connection methods which will result in iSCSI attach operations to fail.

Change-Id: Ia206e7b5ff330c8fccb49ed23a31b120a5c04eb3
Closes-Bug: 1444224

9 years agoMerge "Fixes snapshot creation failure in CloudByte driver."
Jenkins [Tue, 14 Apr 2015 11:20:15 +0000 (11:20 +0000)]
Merge "Fixes snapshot creation failure in CloudByte driver."

9 years agoMerge "Logging not using oslo.i18n guidelines (brick)"
Jenkins [Tue, 14 Apr 2015 09:20:07 +0000 (09:20 +0000)]
Merge "Logging not using oslo.i18n guidelines (brick)"

9 years agoMerge "Verify all quotas before updating the database"
Jenkins [Tue, 14 Apr 2015 08:51:20 +0000 (08:51 +0000)]
Merge "Verify all quotas before updating the database"

9 years agoMerge "Update openstack-common reference in openstack/common/README"
Jenkins [Mon, 13 Apr 2015 23:24:24 +0000 (23:24 +0000)]
Merge "Update openstack-common reference in openstack/common/README"

9 years agoMerge "Removed sleep before 'YES' is sent to confim an operation"
Jenkins [Mon, 13 Apr 2015 23:22:22 +0000 (23:22 +0000)]
Merge "Removed sleep before 'YES' is sent to confim an operation"

9 years agoReworked Dell SC iSCSI target portal return
Tom Swanson [Thu, 9 Apr 2015 20:24:27 +0000 (15:24 -0500)]
Reworked Dell SC iSCSI target portal return

On initialize_connection the code to determine the portal, lun and
iqn info to return could skip ports and potentially not return the
best portal choice.  In the case of multipath being enabled not all
ports would be returned.

Also changed a LOG.debug to a LOG.info in initialize_connection.

Closes-bug: 1442346

Change-Id: I2c5235da4d373d15303325a51ed1d4c37fd38815

9 years agoFix LUN misalignment issue with NetApp iSCSI drivers
Navneet Singh [Wed, 1 Oct 2014 18:31:41 +0000 (00:01 +0530)]
Fix LUN misalignment issue with NetApp iSCSI drivers

This patch fixes LUN misalignment issues that can be
experienced when provisioning Cinder volumes with the iSCSI
protocol. In the fix, two new SAN options for configuring
LUN OS and initiator OS used while attaching volume can be
specified. This gives the admin flexibility to configure
backends correctly for multiple hypervisor and guest OS
platforms.

Closes-Bug: 1410107

Change-Id: If09e1ad41880e8070afddde5606c6536b03396fe

9 years agoRemove the export creation during volume creation for migration
Vincent Hou [Mon, 13 Apr 2015 03:20:35 +0000 (11:20 +0800)]
Remove the export creation during volume creation for migration

Since create_export was moved from create_volume to
initialize_connection, the migrate_volume part should change
accordingly.

Change-Id: I42637c5d861670fb125e78918c2b5b2b13ea43d4
Closes-bug: #1278289

9 years agoFix assertEqual in test_volume.py in correct order of params
Vincent Hou [Thu, 9 Apr 2015 05:43:17 +0000 (13:43 +0800)]
Fix assertEqual in test_volume.py in correct order of params

AssertEqual/assertDictMatch is called with the wrong order of
parameters in many parts of test_volume.py. This patch fix them
all for test_volume.py.

Change-Id: I2ffb3a928710eb22eac9fc3afb6c2e38dc9903ce
Closes-bug: #1441964

9 years agoMerge "VNX Cinder Driver should report 0 free_capacity_gb in some scenarios"
Jenkins [Sun, 12 Apr 2015 05:19:34 +0000 (05:19 +0000)]
Merge "VNX Cinder Driver should report 0 free_capacity_gb in some scenarios"

9 years agoMerge "set default auth_strategy to keystone"
Jenkins [Sat, 11 Apr 2015 05:26:49 +0000 (05:26 +0000)]
Merge "set default auth_strategy to keystone"

9 years agoMerge "VMware: Fix missing target resource pool"
Jenkins [Sat, 11 Apr 2015 04:56:32 +0000 (04:56 +0000)]
Merge "VMware: Fix missing target resource pool"

9 years agoVNX Cinder Driver should report 0 free_capacity_gb in some scenarios
Jeegn Chen [Thu, 2 Apr 2015 08:42:08 +0000 (16:42 +0800)]
VNX Cinder Driver should report 0 free_capacity_gb in some scenarios

When the storage pool is Initializing, Offline or Deleting, no more LUNs
can be created before the pool gets out of the state.
So when a pool is in the 3 states, its free capacity is de facto 0.

This patch is to add logic to report 0 free capacity accordingly.

Change-Id: I4ef56d48e987795a48e6dcb23615e4b2a7580452
Closes-Bug: #1431233

9 years agoInclude boot properties from glance v2 images
Jon Bernard [Tue, 7 Apr 2015 17:57:36 +0000 (13:57 -0400)]
Include boot properties from glance v2 images

In order for users to take advantage of COW volumes created from
a glance image, Cinder must be configured to use Glance API version
2 (default is 1). In version 2, the required boot metadata (kernel_id
and ramdisk_id) are no long stored in the 'properties' dict, but as
standalone fields in the GET response from glance. The existing cinder
parser for the glance request is not aware of this and the volume
created form a v2 image will lack this required metadata.

This was causing the recent Ceph CI gate failures for
test_volume_boot_pattern.

Change-Id: I688898b3841691369d73887f7eabdceb05155db1
Closes-Bug: #1439371

9 years agoLogging not using oslo.i18n guidelines (brick)
Sean McGinnis [Thu, 9 Apr 2015 15:32:03 +0000 (10:32 -0500)]
Logging not using oslo.i18n guidelines (brick)

Multi-patch set for easier chunks. This one addresses
the backup and common cinder directories.

Updates have already been made to the os-brick project.

There have been quite a few instances found where the
i18n guidelines are not being followed. I believe this
has helped lead to some of the confusion around how to
correctly do this. Other developers see this code and
assume it is an example of the correct usage.

This patch attempts to clean up most of those violations
in the existing codebase to hopefully help avoid some of
that confusion in reviews.

Some issues address:
* Correct log translation markers for different log levels
* Passing format values as arguments to call, not preformatting
* Not forcing translation via six.text_type and others

Guidelines can be found here:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Hacking checks will not be able to identify all violations of
the guidelines, but it could be useful for catching obvious ones
such as LOG.info("No markers!").

Change-Id: I993a0a567383dfe6fca13dfcc76758ea3a46e1dd
Partial-bug: 1433216

9 years agoset default auth_strategy to keystone
Christian Berendt [Mon, 5 May 2014 07:09:38 +0000 (09:09 +0200)]
set default auth_strategy to keystone

Like in change Ife63dc7ab680fcf0588d95c98fc9f29901485c64 for Nova
the default for auth_strategy should be keystone instead of noauth.

DocImpact Changed default config option 'auth_strategy' to 'keystone'.

Change-Id: Ia72c5bf9be641b438a4d428ba43e501d1aa333d6
Closes-Bug: #1327503

9 years agoMerge "Open Liberty development"
Jenkins [Thu, 9 Apr 2015 11:14:07 +0000 (11:14 +0000)]
Merge "Open Liberty development"

9 years agoMerge "Create initiator id if not exist in VMAX driver"
Jenkins [Thu, 9 Apr 2015 10:08:50 +0000 (10:08 +0000)]
Merge "Create initiator id if not exist in VMAX driver"

9 years agoOpen Liberty development
Thierry Carrez [Tue, 7 Apr 2015 14:40:30 +0000 (16:40 +0200)]
Open Liberty development

Bump pre-version in setup.cfg to formally open Liberty development.
Kilo release branch will be cut from the previous commit.

Depends-On: I868118528d831a9f49081a6393e64eb7a414b36f
Change-Id: I2934522ec7e7a4485f9a3a07e0b375587c976bd9

9 years agoRemoved sleep before 'YES' is sent to confim an operation
Pradeep Sathasivam [Wed, 8 Apr 2015 07:26:23 +0000 (12:56 +0530)]
Removed sleep before 'YES' is sent to confim an operation

Removed sleep between the time a command is sent
and 'YES' is sent to confim the operation. We have
discussed this internally and have concluded that
the sleep was mistakenly added in the initial coding
from an example of the SSH code. We have done full
functionality testing of the zoning operations on
Brocade switches with the sleep removed and have
found no side effects from the removal

Additionally, no other Brocade management
applications which perform zoning on our switches
require sleep intervals between execution of
commands. We are confident that the sleep is not
necessary and can be removed

Change-Id: I2ac6e50ff3d231b4d404f1a0be29f907e8d20458
Closes-Bug: #1436594

9 years agoMerge "Fix the unicode encode error when create volume"
Jenkins [Thu, 9 Apr 2015 04:41:50 +0000 (04:41 +0000)]
Merge "Fix the unicode encode error when create volume"

9 years agoMerge "GlusterFS: Returning provider location of volume from snapshot"
Jenkins [Thu, 9 Apr 2015 02:41:14 +0000 (02:41 +0000)]
Merge "GlusterFS: Returning provider location of volume from snapshot"

9 years agoMerge "Fix multipath device discovery when UFN is enabled."
Jenkins [Wed, 8 Apr 2015 20:27:27 +0000 (20:27 +0000)]
Merge "Fix multipath device discovery when UFN is enabled."

9 years agoMerge "Revert "Removing Windows drivers""
Jenkins [Wed, 8 Apr 2015 18:52:14 +0000 (18:52 +0000)]
Merge "Revert "Removing Windows drivers""

9 years agoUpdate openstack-common reference in openstack/common/README
Kamil Rykowski [Wed, 8 Apr 2015 15:48:31 +0000 (17:48 +0200)]
Update openstack-common reference in openstack/common/README

The README file under the openstack/common directory references to
openstack-common, but the link points to oslo-incubator (which is
correct). Update the file, so that it makes use of oslo-incubator
instead of openstack-common.

Change-Id: Ie02770954e726f0b9784465e6f167335bcb501c3
Closes-Bug: 1434370

9 years agoMerge "Delete the temporary volume if migration fails"
Jenkins [Wed, 8 Apr 2015 12:52:51 +0000 (12:52 +0000)]
Merge "Delete the temporary volume if migration fails"

9 years agoMerge "Rbd update volume stats in wrong way"
Jenkins [Wed, 8 Apr 2015 12:52:39 +0000 (12:52 +0000)]
Merge "Rbd update volume stats in wrong way"

9 years agoGlusterFS: Returning provider location of volume from snapshot
Bharat Kumar Kobagana [Wed, 8 Apr 2015 06:32:32 +0000 (12:02 +0530)]
GlusterFS: Returning provider location of volume from snapshot

This patch returns the provider location of volume, which is
created from snapshot.

Partial-Bug: 1441050
Reported-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: I5994f2f6c125888d442055d9e65355f0af1b22f4

9 years agoFixes snapshot creation failure in CloudByte driver.
yogeshprasad [Thu, 26 Mar 2015 12:52:09 +0000 (18:22 +0530)]
Fixes snapshot creation failure in CloudByte driver.

Driver will use OpenStack snapshot id as snapshot name to
create a snapshot.

Previously it was using user entered value.

Change-Id: I93aa6359ee2cad5ee1223d5d4d402d92ecc953aa
Closes-Bug: #1436675

9 years agoMerge "Correct cinder hacking check numbering"
Jenkins [Wed, 8 Apr 2015 09:15:43 +0000 (09:15 +0000)]
Merge "Correct cinder hacking check numbering"

9 years agoMerge "Add hacking check for print() statements"
Jenkins [Wed, 8 Apr 2015 08:28:34 +0000 (08:28 +0000)]
Merge "Add hacking check for print() statements"

9 years agoDelete the temporary volume if migration fails
Vincent Hou [Tue, 3 Mar 2015 08:04:41 +0000 (16:04 +0800)]
Delete the temporary volume if migration fails

Issues resolved in this patch include the following changes:
* A temporary volume is created on the destination host before migrating
the data from the source. However, if the creation of this volume fails,
its record will be left in the database as redundant information. This
patch will remove the database record if the creation fails.

* If attaching the remote dest volme fails at initialize_connection
due to timeout, we need to terminate the connection. Otherwise, the dest
volume will not be released and successfully deleted.

Closes-bug: #1398177
Change-Id: I5bc75bd7652841fddd66481ee001fb682168215c

9 years agoRevert "Removing Windows drivers"
Mike Perez [Wed, 8 Apr 2015 06:06:57 +0000 (23:06 -0700)]
Revert "Removing Windows drivers"

This reverts commit 85f0814e1a96ea043e8048cf7081f70fa024f20b.

Change-Id: I0b078a60e8d9c95d12185d1ff3ffe74fb71f10ab

9 years agoMerge "Partial Revert "Removing ZFSSA driver""
Jenkins [Tue, 7 Apr 2015 23:56:57 +0000 (23:56 +0000)]
Merge "Partial Revert "Removing ZFSSA driver""

9 years agoMerge "Add missing copy_volume_to_image method to Sheepdog driver"
Jenkins [Tue, 7 Apr 2015 21:40:17 +0000 (21:40 +0000)]
Merge "Add missing copy_volume_to_image method to Sheepdog driver"

9 years agoMerge "Partial Revert "Removing Huawei drivers""
Jenkins [Tue, 7 Apr 2015 21:37:35 +0000 (21:37 +0000)]
Merge "Partial Revert "Removing Huawei drivers""

9 years agoMerge "Set volume_attachment to [] for the temporary volume creation"
Jenkins [Tue, 7 Apr 2015 20:28:49 +0000 (20:28 +0000)]
Merge "Set volume_attachment to [] for the temporary volume creation"

9 years agoCorrect cinder hacking check numbering
Jay S. Bryant [Mon, 6 Apr 2015 19:02:31 +0000 (14:02 -0500)]
Correct cinder hacking check numbering

We have a couple of hacking checks that are specific to
Cinder that were written a while back.  Unfortunately, when
they were written the numbering scheme for hacking checks was
not understood.  We used N3xx when we should have used C3xx.

This patch corrects that mistake.

Change-Id: Ia17797005d444ab53a45b47b80b97799114001ee
Closes-bug: 1440833

9 years agoAdd hacking check for print() statements
Jay S. Bryant [Mon, 6 Apr 2015 16:22:09 +0000 (11:22 -0500)]
Add hacking check for print() statements

We are frequently having to -1 patches because people
forget print() statements that were used for debug in
their development.  Can save everyone time and trouble by
adding this simple hacking check.

The check excluded the cinder/cmd directory as the files in there
legitimately need to use the print() command.  Also wsgi.py and
the test_hds_nas_backend.py files make use of print, so I have
excluded those from checking as well.

Change-Id: I2066eeb2bdc6c9af294d0b9befb7e0b32abd1378

9 years agoRbd update volume stats in wrong way
wuyuting [Fri, 20 Mar 2015 10:41:11 +0000 (18:41 +0800)]
Rbd update volume stats in wrong way

Cinder volume uses a RADOS pool to store volumes and
update storage stats periodically. However, rbd driver
reports the whole cluster stats but not the pool's. This
is wrong. The right way is to report the pool stats but
not the whole cluster.

Change-Id: Ie18324ebd8b85f7b63dc034ba20857ae9e470804
Closes-Bug: #1434441

9 years agoAdd missing copy_volume_to_image method to Sheepdog driver
YAMADA Hideki [Wed, 4 Mar 2015 18:11:23 +0000 (18:11 +0000)]
Add missing copy_volume_to_image method to Sheepdog driver

Copy Volume to Image feature is required since Havana release.
The Sheepdog driver has not implemented it.

Change-Id: I940095be7ed3721cc8f1bafde821fbb420d305d0
Closes-Bug: #1426431

9 years agoPartial Revert "Removing Huawei drivers"
Mike Perez [Mon, 6 Apr 2015 04:40:47 +0000 (21:40 -0700)]
Partial Revert "Removing Huawei drivers"

This reverts commit 5e26b0c1d1ae1984e51ae47441e8a243f224bf29.

Change-Id: Iad7c1afff1a932876255a37fc0b5bf5993246aaa