]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
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 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 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 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 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 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

9 years agoFixes a small issue in find_autodoc_modules.sh
liyingjun [Fri, 23 Jan 2015 06:26:20 +0000 (14:26 +0800)]
Fixes a small issue in find_autodoc_modules.sh

When generating docs, the modules listed under api all seem to be
missing the first letter after "cinder." at the beginning.

Change-Id: I924e55642350d3bb813ebab7cb978915fdd8b964
Closes-bug: #1408828

9 years agoMerge "HP 3PAR modules do not follow coding guidelines"
Jenkins [Fri, 23 Jan 2015 06:32:57 +0000 (06:32 +0000)]
Merge "HP 3PAR modules do not follow coding guidelines"

9 years agoFix the eqlx driver to retry on ssh timeout
rajinir [Tue, 20 Jan 2015 19:52:32 +0000 (13:52 -0600)]
Fix the eqlx driver to retry on ssh timeout

When the ssh session is timing out, the driver
should make attempts to retry based on the value
in eqlx_cli_max_retries. Instead it was raising
the exception and bailing out on a single attempt.

Fixed the driver to raise a different exception
so the ssh sessions can be retried.

Added unit tests to ensure the max retries
happen

Also fixed the actual attempts made in the message

Change-Id: I9bda46f9ef63eec436a381da3c96c09ce77c31ef
Closes-Bug: #1412940

9 years agoAdd retrying lib from global requirements
John Griffith [Fri, 23 Jan 2015 00:21:27 +0000 (17:21 -0700)]
Add retrying lib from global requirements

Submitted a retry decorator and it was pointed out that
the retrying library was already in global-requirements,
it would probably be good to leverage this and use it rather
than roll our own, so let's add it to our version of requirements
and then we can look at whether using a decorator or just
leveraging the lib is the right way to go.

Change-Id: Ieea042e5cd65b7c7bfa803996f60856fcae054bf

9 years agoRemove usage of taskflow 'utils.misc' module
Joshua Harlow [Thu, 22 Jan 2015 19:22:21 +0000 (11:22 -0800)]
Remove usage of taskflow 'utils.misc' module

The failure type at its old location in an internal
utils directory of taskflow is deprecated (in general
usage of taskflow utils code should be restricted/not
done) and it has been moved to a public location of
taskflow.types (which is ok to use and is not
deprecated).

This change updates to use the better and more supported
module/code location instead.

Change-Id: I8b8c6e98c934fbf1341b8f1c907ecd385405a3c1

9 years agoMove oslo.serialization to oslo_serialization namespace
Jay S. Bryant [Wed, 21 Jan 2015 07:43:00 +0000 (01:43 -0600)]
Move oslo.serialization to oslo_serialization namespace

This is the fifth in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus, we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no instances
of oslo.utils sneak back in.

Change-Id: Ida0f9512a816d45ec5cae4dc4da4dbc923a67cf4
Partial-bug: 1409733

9 years agoHP 3PAR modules do not follow coding guidelines
Rich Hagarty [Fri, 16 Jan 2015 21:11:28 +0000 (13:11 -0800)]
HP 3PAR modules do not follow coding guidelines

Should use "," instead of "%" in logging messages, and
the use of "\" to continue lines should be avoided.

Change-Id: I23d53d66fda47981ed8f20b618b2ced8ef6e0682
Closes-Bug: #1411370

9 years agoMerge "Ensure lazy translation is disabled properly"
Jenkins [Thu, 22 Jan 2015 21:33:21 +0000 (21:33 +0000)]
Merge "Ensure lazy translation is disabled properly"

9 years agoMerge "Fix cinder-manage shell ipython"
Jenkins [Thu, 22 Jan 2015 21:33:11 +0000 (21:33 +0000)]
Merge "Fix cinder-manage shell ipython"

9 years agoMerge "Improve debug logging of Dell Storage Center driver"
Jenkins [Thu, 22 Jan 2015 21:21:03 +0000 (21:21 +0000)]
Merge "Improve debug logging of Dell Storage Center driver"

9 years agoMerge "Shrink down customized logging listener"
Jenkins [Thu, 22 Jan 2015 21:20:53 +0000 (21:20 +0000)]
Merge "Shrink down customized logging listener"

9 years agoMerge "Move oslo.utils to oslo_utils namespace"
Jenkins [Thu, 22 Jan 2015 21:08:08 +0000 (21:08 +0000)]
Merge "Move oslo.utils to oslo_utils namespace"

9 years agoImprove debug logging of Dell Storage Center driver
Sean McGinnis [Tue, 20 Jan 2015 22:50:19 +0000 (16:50 -0600)]
Improve debug logging of Dell Storage Center driver

Adding debug message and expanding some existing log statements
to make debugging and auditing easier. Some interesting calls
were not being logged while others had logging that was missing
some relevant arguments.

Change-Id: Iad5ceb9305aa5b03f429a8f624eb7f51d0ca6814

9 years agoFix _usage_from_snapshot in volume.utils
Ilya Tyaptin [Thu, 6 Nov 2014 12:32:33 +0000 (16:32 +0400)]
Fix _usage_from_snapshot in volume.utils

Now in this function we trying to get snapshot_ref.volume for
collecting 'availability_zone'. It's invalid because snapshot_ref
in this function is __dict__. In this patchset there is fix for
it.

Change-Id: I4cb86c0efd7520904fdf2288048d07cc40ed3a13
Closes-bug: #1390064

9 years agoVMware:Fix error creating vCenter inventory folder
Vipin Balachandran [Thu, 22 Jan 2015 09:49:20 +0000 (15:19 +0530)]
VMware:Fix error creating vCenter inventory folder

Creating vCenter inventory folder for grouping volumes will
fail with AttributeError if the vCenter's datacenter doesn't
have any child folder under vmFolder (inventory folder for
grouping virtual machines). This patch fixes it.

Change-Id: I0454a6c6a8c1dd49b0e369887883e2b45a778885
Closes-Bug: #1413537

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 22 Jan 2015 07:14:00 +0000 (07:14 +0000)]
Merge "Updated from global requirements"

9 years agoFix cinder-manage shell ipython
gtt116 [Thu, 22 Jan 2015 05:59:48 +0000 (05:59 +0000)]
Fix cinder-manage shell ipython

IPython current stable version is 2.3.1, and the code
in cinder-manage is only work for IPython < 0.11. The
patch make it work for IPython 2.3.1.

Change-Id: I1555744fbf80771455ebd9f9095e8f9ddc7d16e7
Closes-Bug: #1413485

9 years agoShrink down customized logging listener
Joshua Harlow [Thu, 22 Jan 2015 00:32:28 +0000 (16:32 -0800)]
Shrink down customized logging listener

Most of the code for this has been moved into taskflow
upstream; so now we should be able to override a single
*cinder-specific* method and retain the same functionality
that previously existed but in a more shareable manner (for
example glance will be using similar code).

Change-Id: I848897ed006147305f9a2c5e1e6a5ecbf598c128

9 years agoPrevent deleting volumes in a consistency group
Mike Perez [Thu, 22 Jan 2015 00:06:49 +0000 (16:06 -0800)]
Prevent deleting volumes in a consistency group

Currently you have to destroy the consistency group if you want to
delete these volumes. In the Kilo release, we'll have the ability to
remove a volume from a consistency group, which then can be deleted.

Closes-Bug: #1413427
Change-Id: Ice8ab88a89e447a08c3ce71c7698dd5fcf02d1e9

9 years agoFix bug in rbd driver: the cloned volume size is wrong
wuyuting [Sun, 18 Jan 2015 22:32:34 +0000 (06:32 +0800)]
Fix bug in rbd driver: the cloned volume size is wrong

The cloned volume size is wrong when the size is different
from source volume. This is because rbd driver doesn't
resize the volume when clone has completed.

Change-Id: If953441b2c24dee46bd64e6d4b8f4d3ab116f0fa
Closes-Bug: #1412317

9 years agoMerge "DRBD: remove a wrong comma, it creates a tuple"
Jenkins [Wed, 21 Jan 2015 14:13:26 +0000 (14:13 +0000)]
Merge "DRBD: remove a wrong comma, it creates a tuple"

9 years agoMerge "Fix the iSER legacy usage in the new targets flow"
Jenkins [Wed, 21 Jan 2015 12:06:40 +0000 (12:06 +0000)]
Merge "Fix the iSER legacy usage in the new targets flow"

9 years agoFix HNAS driver confusing error message (iSCSI driver)
Erlon R. Cruz [Thu, 18 Dec 2014 18:11:48 +0000 (16:11 -0200)]
Fix HNAS driver confusing error message (iSCSI driver)

The error message shown when the parser finds a parser error
says, 'file not found' which causes confusion on the user when
he/she needs to debug the real cause of the problem. This patch fixes
this by testing first if the file exist and then throwing a proper error
message.

Also corrects an error when appending the config_file_name to the message on
the NFS driver and fixes LOG messages according to oslo.i18n guidelines.

Closes-Bug: #1403986
Change-Id: Ib6e613796eede751215db54696b353431caaafd1

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 20 Jan 2015 16:43:20 +0000 (16:43 +0000)]
Updated from global requirements

Change-Id: I1859c16eb9bf00bdffe64a7f64aae575a1b916ae

9 years agoEnsure lazy translation is disabled properly
Jay S. Bryant [Tue, 13 Jan 2015 04:55:45 +0000 (22:55 -0600)]
Ensure lazy translation is disabled properly

Commit 894f20d9cf57b36ccf9a675c6b2b070d56c9b297 changed the way that
enable_lazy() is being configured in cinder's test cases.  The changes
were required to remove the use of _lazy from the oslo's i18n library.
_lazy was removed from i18n and the code that was accessing the internal
variable broke.  The commit referenced above made changes to remove
the use of _lazy.

The commit, however, changed the behavior of the test cases to only
enable_lazy without disabling it, which diverges from the original
behavior.

This commit uses the new oslo.i18n ToggleLazy fixture (added in 1.3.0).

Closes-bug: 1408099
Change-Id: If9530b2bb8f0f511ccff4527ea9f2d13f7103bdb

9 years agoMerge "DRBD: Log an error if libraries can't be loaded"
Jenkins [Tue, 20 Jan 2015 13:08:23 +0000 (13:08 +0000)]
Merge "DRBD: Log an error if libraries can't be loaded"

9 years agoDRBD: remove a wrong comma, it creates a tuple
Philipp Marek [Tue, 20 Jan 2015 09:07:41 +0000 (10:07 +0100)]
DRBD: remove a wrong comma, it creates a tuple

Change-Id: I8a1152b9f173171be7611ed600ade1033791a5bf

9 years agoMerge "Add policy_dirs conf fixture"
Jenkins [Tue, 20 Jan 2015 04:04:13 +0000 (04:04 +0000)]
Merge "Add policy_dirs conf fixture"

9 years agoMove oslo.utils to oslo_utils namespace
Jay S. Bryant [Fri, 16 Jan 2015 22:54:27 +0000 (16:54 -0600)]
Move oslo.utils to oslo_utils namespace

This is the fourth in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus, we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no instances
of oslo.utils sneak back in.

Change-Id: I19c331a9b54c5f42c278577ecc59fe1b65e61af0

9 years agoMerge "Make test_create_delete_snapshot more robust"
Jenkins [Mon, 19 Jan 2015 21:01:10 +0000 (21:01 +0000)]
Merge "Make test_create_delete_snapshot more robust"

9 years agoMerge "Move oslo.config to oslo_config namespace"
Jenkins [Mon, 19 Jan 2015 20:19:48 +0000 (20:19 +0000)]
Merge "Move oslo.config to oslo_config namespace"

9 years agoMake test_create_delete_snapshot more robust
Eric Harney [Mon, 19 Jan 2015 19:01:45 +0000 (14:01 -0500)]
Make test_create_delete_snapshot more robust

This patch does two things to improve this test, and
help debug issues with it failing.

- Add additional checks for contents of the first two
  expected notifications.
- Assert the length of the notifications list after checking
  its contents so that if it contains unexpected items, we can
  see what they are.  This should help with the current gate
  failures.

Change-Id: Ib92247389fb3be6d65a658880fd47e634f1da8d1
Related-Bug: #1412513

9 years agoAdd policy_dirs conf fixture
Eric Harney [Mon, 19 Jan 2015 18:10:00 +0000 (13:10 -0500)]
Add policy_dirs conf fixture

Unit tests that call into the policy enforcer from openstack
common will try to load files from the default directory of
'policy.d'.

Set the policy_dirs option to [] for unit tests since tests
are not trying to use policy from a directory like this, and
this will prevent test failures.

Change-Id: I7645179aeab3713a5addfccb0bb44a28e8fc4e87
Closes-Bug: #1412526

9 years agoDRBD: Log an error if libraries can't be loaded
Philipp Marek [Mon, 19 Jan 2015 13:29:57 +0000 (14:29 +0100)]
DRBD: Log an error if libraries can't be loaded

Having a meaningful error message is better than a backtrace.

Change-Id: I0631228228db06efdedd65a44a286824b34e0b1a

9 years agoMerge "Verify the instance's existance in the VMAX driver"
Jenkins [Sun, 18 Jan 2015 12:13:31 +0000 (12:13 +0000)]
Merge "Verify the instance's existance in the VMAX driver"

9 years agoFix the iSER legacy usage in the new targets flow
Aviram Bar-Haim [Fri, 16 Jan 2015 00:45:30 +0000 (02:45 +0200)]
Fix the iSER legacy usage in the new targets flow

The iSER driver flow, after setting volume_driver to LVMISERDriver,
is broken in the new driver - target model in the master,
due to a mismatch in the target prefixes and a lack of iSER target
initialization, with the correct parameters.

In order to fix this:
  1. The function initialize_connection, that sets the iSER required
     parameters, was added to cinder/volume/targets/iser.py (and overrides the
     new connection initialization in cinder/volume/targets/tgt.py).
  2. The iSER and iSCSI prefixes equalized, due to the removal of brick/iscsi
     with the different default prefix for ISERTgtAdm (and for stability).

Closes-Bug:#1411470

Change-Id: Ie4b9b85b47e9da20a1de1e10415766413cd01f04

9 years agoMove oslo.config to oslo_config namespace
Jay S. Bryant [Thu, 15 Jan 2015 20:03:49 +0000 (14:03 -0600)]
Move oslo.config to oslo_config namespace

This is the third in a series of changes to move to using
the new oslo_<library> namespace that is being used for
oslo libraries.

There is currently a shim in place that is allowing the old
oslo.<library> imports to work, but we need to be prepared for
when the shims go away.  Thus, we need patches like this one to
move to the new namespace.

This patch also updates our hacking check to ensure that no instances
of oslo.config sneak back in.

Change-Id: I45d24c4330f7c23fc5ad0a0527f1840d09710512

9 years agoMerge "TgtAdm: Don't change CHAP username/password on live migration"
Jenkins [Sat, 17 Jan 2015 01:54:23 +0000 (01:54 +0000)]
Merge "TgtAdm: Don't change CHAP username/password on live migration"