]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoUse object.property instead of object.dump()['property']
Andy Grover [Thu, 9 Oct 2014 23:08:13 +0000 (16:08 -0700)]
Use object.property instead of object.dump()['property']

Less verbose and requires less work for the library.

Change-Id: Ied2196b548c91324fdfce39ec4f8801e59da4f6c

9 years agoMerge "NetApp 7mode NFS driver doesn't honor netapp_vfiler option"
Jenkins [Wed, 3 Dec 2014 03:29:52 +0000 (03:29 +0000)]
Merge "NetApp 7mode NFS driver doesn't honor netapp_vfiler option"

9 years agoMerge "Fix 3PAR drivers attempt to locate existing host"
Jenkins [Wed, 3 Dec 2014 00:26:42 +0000 (00:26 +0000)]
Merge "Fix 3PAR drivers attempt to locate existing host"

9 years agoNetApp 7mode NFS driver doesn't honor netapp_vfiler option
Andrew Kerr [Mon, 1 Dec 2014 21:32:02 +0000 (16:32 -0500)]
NetApp 7mode NFS driver doesn't honor netapp_vfiler option

This patch fixes the NetApp 7mode NFS driver to register and use
the netapp_vfiler option if it is configured in cinder.conf.

DocImpact
Change-Id: I4db42d2521d7e6018f4f7ad0c4ab13441871675e
Closes-Bug: 1381716

9 years agoFix rpc initialization of cinder-manager volume
Mehdi Abaakouk [Tue, 2 Dec 2014 09:04:54 +0000 (10:04 +0100)]
Fix rpc initialization of cinder-manager volume

VolumeCommands.rpc_client is a property, so when the oslo.config argparser
introspect the class VolumeCommands at module loading time, it launch the
method. But the method depends on a initialized oslo.config.cfg.CONF object,
but this one is not yet initialized.

So don't use python property, to initialize the rpc_client correctly.

No test because of bug: #1398401

Change-Id: I2c2f0be6e7a9d0866f063d98e1f8213f62fb9f92
Closes-bug: #1398319

9 years agoMerge "Remove driver compatibility in volume manager"
Jenkins [Tue, 2 Dec 2014 08:35:55 +0000 (08:35 +0000)]
Merge "Remove driver compatibility in volume manager"

9 years agoMerge "Fix find_autodoc_modules.sh to support OSX"
Jenkins [Tue, 2 Dec 2014 07:12:55 +0000 (07:12 +0000)]
Merge "Fix find_autodoc_modules.sh to support OSX"

9 years agoMerge "Deal with tgt already exists errors"
Jenkins [Tue, 2 Dec 2014 07:12:46 +0000 (07:12 +0000)]
Merge "Deal with tgt already exists errors"

9 years agoFix 3PAR drivers attempt to locate existing host
Kurt Martin [Tue, 2 Dec 2014 00:13:18 +0000 (16:13 -0800)]
Fix 3PAR drivers attempt to locate existing host

This patch fixes the current 3PAR drivers around attempting to locate
3PAR host that might already have volumes attached. The FC driver is
using the correct REST based queryHost but is not specifying the
parameters wwns=wwns when calling it. This was accidentally merged
during the removal on the local file locks.

The iSCSI driver was actually calling a SSH based findHost command
instead of the REST based queryHost based on iqns. The SSH based
command was failing with a session key error after a long idle time
between attaches.
Closes-Bug: 1398206

Change-Id: I5e0b1e5382c65176a74441bd4fe40d066317de48

9 years agoMerge "Don't use _execute directly in brick/iscsi"
Jenkins [Tue, 2 Dec 2014 00:33:18 +0000 (00:33 +0000)]
Merge "Don't use _execute directly in brick/iscsi"

9 years agoRemove driver compatibility in volume manager
Mike Perez [Mon, 1 Dec 2014 21:21:27 +0000 (13:21 -0800)]
Remove driver compatibility in volume manager

The old driver locations were deprecated in Juno. This removes the code
for deprecating and tests.

Change-Id: I1e2a985c1b41f4837e316af0655ef7203273cd7a

9 years agoMerge "Raise exception if invalid IP is specified"
Jenkins [Mon, 1 Dec 2014 21:17:17 +0000 (21:17 +0000)]
Merge "Raise exception if invalid IP is specified"

9 years agoMerge "Fix check_ssh_injection in cinder/utils"
Jenkins [Mon, 1 Dec 2014 21:11:27 +0000 (21:11 +0000)]
Merge "Fix check_ssh_injection in cinder/utils"

9 years agoDon't use _execute directly in brick/iscsi
John Griffith [Mon, 1 Dec 2014 21:01:26 +0000 (14:01 -0700)]
Don't use _execute directly in brick/iscsi

The brick/iscsi module has a run helper that
should be used for executing commands.  There
are a number of inconsistencies where _execute
is called directly.

This patch moves everythign to use the run method
to keep things consistent and also to fix up some
potential issues with variables becoming corrupt
under heavy load.

Change-Id: Idfc183f2ed1ad73b64fc893efcc07972c95926c6

9 years agoDeal with tgt already exists errors
John Griffith [Mon, 1 Dec 2014 20:29:02 +0000 (13:29 -0700)]
Deal with tgt already exists errors

This patch intends to provide a clear marker for
ER in the case that create export fails due to the
target entry already existing.

Also this patch will enable us to go ahead and just use
the existing target rather than bomb out and fail everything.

Root cause of why we're getting a second create is still
unknown and needs addressed, but this might help in getting
more info as well as keeping things stable until we address
the root issue.

Change-Id: If96f4fab7d9709dbb0726b1dca6237d7bc66ecbe
Partial-Bug: #1398078

9 years agoFix find_autodoc_modules.sh to support OSX
Mathieu Gagné [Mon, 1 Dec 2014 20:13:28 +0000 (15:13 -0500)]
Fix find_autodoc_modules.sh to support OSX

When running 'find cinder/' on OSX platforms, all returned paths
will have 2 slashes (//). Because the script only strips
the first slash as per the CINDER_DIR value, we end up
with module names such as "cinder..db.api" in the documentation.

This change trims the leading dot if found to avoid this situation.

Change-Id: I9423b253d9842295850f469757e928bf5856967a

9 years agoRaise exception if invalid IP is specified
Bob Callaway [Tue, 21 Oct 2014 19:23:51 +0000 (15:23 -0400)]
Raise exception if invalid IP is specified

This patch ensures that all values specified for the configuration
option netapp_controller_ips are valid, rather than logging and
continuing with only the valid addresses.

Closes-Bug: 1396718

Change-Id: I180dc74e4535bfde19f1741cff975f5ec675dd21

9 years agoMerge "Implementing the use of _L’x’/i18n markers"
Jenkins [Mon, 1 Dec 2014 14:59:39 +0000 (14:59 +0000)]
Merge "Implementing the use of _L’x’/i18n markers"

9 years agoFix check_ssh_injection in cinder/utils
git-harry [Mon, 1 Dec 2014 13:26:40 +0000 (13:26 +0000)]
Fix check_ssh_injection in cinder/utils

check_ssh_injection is used to prevent commands being modified using
specially constructed strings containing special characters.

The function includes a loop over the special characters to compare
them against each arg. If the special character is the same as the arg
it gets ignored.

This commit modifies this part of the function so that args that are
exactly equal to one of the special characters will cause an exception
to be raised.

Change-Id: I3a61e995ea41fc0324b5cb60e3c96e3d9dc56637
Closes-Bug: #1398002

9 years agoMerge "GlusterFS: Lock on a per-volume basis"
Jenkins [Sun, 30 Nov 2014 06:02:41 +0000 (06:02 +0000)]
Merge "GlusterFS: Lock on a per-volume basis"

9 years agoMerge "Scality SOFS: implement volume backup and restore"
Jenkins [Sun, 30 Nov 2014 05:56:11 +0000 (05:56 +0000)]
Merge "Scality SOFS: implement volume backup and restore"

9 years agoMerge "CiscoFCSanLookupService passing command as string"
Jenkins [Fri, 28 Nov 2014 03:37:27 +0000 (03:37 +0000)]
Merge "CiscoFCSanLookupService passing command as string"

9 years agoMerge "Adding volume driver for X-IO ISE"
Jenkins [Thu, 27 Nov 2014 03:42:02 +0000 (03:42 +0000)]
Merge "Adding volume driver for X-IO ISE"

9 years agoMerge "PureISCSIDriver:Handle delete called on already deleted volume"
Jenkins [Wed, 26 Nov 2014 22:47:41 +0000 (22:47 +0000)]
Merge "PureISCSIDriver:Handle delete called on already deleted volume"

9 years agoAdding volume driver for X-IO ISE
Richard Hedlind [Mon, 27 Oct 2014 15:18:06 +0000 (09:18 -0600)]
Adding volume driver for X-IO ISE

Driver is implemented using one base class XIOISEDriver and two
classes, one for each storage protocol.

This change also addresses version 1.1.0 of the driver that
adds support for:
- QoS
- Volume affinity
- Thin
- Retype

Driver Cert results:
https://bugs.launchpad.net/cinder/+bug/1360078

Unit test tests all required interfaces for both driver types.

Change-Id: I2eeb44e768871e02e407f93243aabef993f96d53
Implements: blueprint xio-iscsi-fc-volume-driver
Implements: blueprint xio-volume-driver-1-1

9 years agoMerge "Remove Python 2.6 backwards compatibility code"
Jenkins [Wed, 26 Nov 2014 16:00:53 +0000 (16:00 +0000)]
Merge "Remove Python 2.6 backwards compatibility code"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 26 Nov 2014 16:00:44 +0000 (16:00 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Get the 'consumer' in a correct way for retyping with qos-specs"
Jenkins [Wed, 26 Nov 2014 15:54:03 +0000 (15:54 +0000)]
Merge "Get the 'consumer' in a correct way for retyping with qos-specs"

9 years agoRemove Python 2.6 backwards compatibility code
git-harry [Tue, 25 Nov 2014 22:40:37 +0000 (22:40 +0000)]
Remove Python 2.6 backwards compatibility code

Python 2.6 is no longer supported in cinder as of kilo. The code in the
project that is specifically for compatibility with 2.6 is therefore no
longer required.

This commit removes code referenced as being required specifically for
compatibility with Python 2.6.

This commit removes:
    - total_seconds from cinder/utils.py
    - TestCase.assertGreater from cinder/test.py
    - TestCase.assertGreaterEqual from cinder/test.py
    - StorwizeSVCDriverTestCase.assertLessEqual from
      cinder/tests/test_storwize_svc.py

Change-Id: I2aca4a6a84bc8ddfa70bd47a331b6fac6f82220f

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 26 Nov 2014 06:10:33 +0000 (06:10 +0000)]
Imported Translations from Transifex

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

Change-Id: I90527d594081adbd8e32866b39594fda78d5c0e7

9 years agoMerge "Add limited retype support for rbd"
Jenkins [Wed, 26 Nov 2014 05:27:42 +0000 (05:27 +0000)]
Merge "Add limited retype support for rbd"

9 years agoGet the 'consumer' in a correct way for retyping with qos-specs
Vincent Hou [Tue, 25 Nov 2014 07:36:07 +0000 (23:36 -0800)]
Get the 'consumer' in a correct way for retyping with qos-specs

The qos specs returned from the database does not contain the
property "qos-specs". Intead, the property "consumer" can be accessed
directly.

Change-Id: I3fe57e5cc20a97d32c8b8c6089ab1e812257da45
closes-bug: #1389519

9 years agoMerge "Add iSCSI Target objects as independent objects"
Jenkins [Tue, 25 Nov 2014 22:47:30 +0000 (22:47 +0000)]
Merge "Add iSCSI Target objects as independent objects"

9 years agoMerge "Removing locks from 3PAR FC and iSCSI drivers"
Jenkins [Tue, 25 Nov 2014 22:47:20 +0000 (22:47 +0000)]
Merge "Removing locks from 3PAR FC and iSCSI drivers"

9 years agoMerge "Brick LVM: LV not found logging and error handling"
Jenkins [Tue, 25 Nov 2014 22:37:48 +0000 (22:37 +0000)]
Merge "Brick LVM: LV not found logging and error handling"

9 years agoMerge "Remove Python 2.6 classifier"
Jenkins [Tue, 25 Nov 2014 21:43:00 +0000 (21:43 +0000)]
Merge "Remove Python 2.6 classifier"

9 years agoPureISCSIDriver:Handle delete called on already deleted volume
Mudassir Latif [Tue, 25 Nov 2014 03:00:47 +0000 (19:00 -0800)]
PureISCSIDriver:Handle delete called on already deleted volume

If the delete_volume method gets an error from Purity
saying volume does not exist, don't proceed with attempt
at deletion

Change-Id: I2a830e43c876433da4cdb50eabe4fb66b7eb6faf
Closes-Bug: #1395826

9 years agoAdd limited retype support for rbd
Arne Wiebalck [Thu, 20 Nov 2014 07:36:34 +0000 (08:36 +0100)]
Add limited retype support for rbd

This patch enables limited retype support for rbd. In addition to
basic retyping between volume types that only differ in their name,
retyping between volume types that imply a change of the qos_specs
are supported. This hence allows to adapt the quality-of-service
settings of a volume after its creation.

All other changes, such as host migration, change of encryption or
changes of settings as defined by the extra_specs are not supported
by this commit and left for later patches.

Implements: blueprint ceph-rbd-support-retype
Change-Id: Ib9edf83eb3ade1e6b2dcf1121a16a6f2e68753e1

9 years agoMerge "Fix exception message formatting"
Jenkins [Tue, 25 Nov 2014 18:11:33 +0000 (18:11 +0000)]
Merge "Fix exception message formatting"

9 years agoMerge "Invalid GlusterFS share format error"
Jenkins [Tue, 25 Nov 2014 18:11:20 +0000 (18:11 +0000)]
Merge "Invalid GlusterFS share format error"

9 years agoMerge "Match mock.patch decorator with appropriate param"
Jenkins [Tue, 25 Nov 2014 17:33:05 +0000 (17:33 +0000)]
Merge "Match mock.patch decorator with appropriate param"

9 years agoMerge "etc: replace NullHandler by Python one"
Jenkins [Tue, 25 Nov 2014 17:32:56 +0000 (17:32 +0000)]
Merge "etc: replace NullHandler by Python one"

9 years agoMerge "Correct misspelled words"
Jenkins [Tue, 25 Nov 2014 17:32:47 +0000 (17:32 +0000)]
Merge "Correct misspelled words"

9 years agoMerge "Add ability to create volume from image by image name."
Jenkins [Tue, 25 Nov 2014 17:32:05 +0000 (17:32 +0000)]
Merge "Add ability to create volume from image by image name."

9 years agoAdd iSCSI Target objects as independent objects
John Griffith [Wed, 29 Oct 2014 19:34:54 +0000 (13:34 -0600)]
Add iSCSI Target objects as independent objects

This patch is a step in decoupling the target
methods and the Volume Driver's Control methods.

This adds the targets directory and the new target objects
that we use with the exception of IET (follow up for that later).
TgtAdm and LIO drivers have been tested with the new LVM object.

All existing drivers are still able to be specified and use the
same objects and code-path they were using previously.  New
connector objects are only used when specifying the new driver.

Next step will be mapping current ref LVM driver to the new
LVM object and target model and continued work on the unit-tests.

After that mark the "old" methods and objects as deprecated
and we can then begin working on some other improvements.

Change-Id: If02db137f936dc5b509fc81ca3c29ae4f87f1cb2
Partial-Bug: #1329139

9 years agoRemove Python 2.6 classifier
Julien Danjou [Tue, 25 Nov 2014 15:55:03 +0000 (16:55 +0100)]
Remove Python 2.6 classifier

Cinder does not support Python 2.6 anymore starting with Kilo and might
not work correctly with it, so remove the classifier.

Change-Id: I47f5e3ba30c7d8950862bc0a0d67d33d90c7eecf

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Tue, 25 Nov 2014 15:57:24 +0000 (15:57 +0000)]
Implementing the use of _L’x’/i18n markers

Placing the _Lx markers back into the code. No other cleaner solution has
has been implemented. Patches will be submitted in a series of sub
directories and in a fashion that is manageable.

Partial-Bug: #1384312

Change-Id: I3974b58bd9b8b9e3c34d5a609228e30c6a08a3c3

9 years agoMerge "Update rally job files"
Jenkins [Tue, 25 Nov 2014 15:37:54 +0000 (15:37 +0000)]
Merge "Update rally job files"

9 years agoMerge "Don't use module importutils from oslo-incubator"
Jenkins [Tue, 25 Nov 2014 15:37:40 +0000 (15:37 +0000)]
Merge "Don't use module importutils from oslo-incubator"

9 years agoMatch mock.patch decorator with appropriate param
git-harry [Tue, 25 Nov 2014 14:20:26 +0000 (14:20 +0000)]
Match mock.patch decorator with appropriate param

mock.patch and mock.patch.object can be used as decorators for mocking
within the scope of the function they decorate. When there are multiple
decorators it is important the function parameters relate to the
corresponding patch objects i.e. that the parameter order matches the
decorator order.
It is easiest to explain this with an example:

@mock.patch.object(Foo, 'bar')
@mock.patch.object(SomeClass, 'some_method', some_function)
@mock.patch.object(AClass, 'a_method')
def test_some_stuff(self, mock_a_method, mock_bar):
    pass

So the decorator closest to the function definition must correspond to
the first (left-most) patch parameter. Note, if the decorator is given a
third argument, the kwarg new, then the decorated function is not
passed an extra argument by that decorator.

Change-Id: I035d71cb3b81f0c8bfd83ed81d8426cb0df31c90

9 years agoCorrect misspelled words
yoan desbordes [Tue, 25 Nov 2014 14:22:35 +0000 (15:22 +0100)]
Correct misspelled words

In some files I found misspelled words like :

begining -> beginning
occured -> ocurred

Change-Id: Ic9ec34952dc43232c29b1dc8f6baec05f804ce25

9 years agoBrick LVM: LV not found logging and error handling
Eric Harney [Fri, 21 Nov 2014 16:50:48 +0000 (11:50 -0500)]
Brick LVM: LV not found logging and error handling

Fix up two things in get_lv_info/get_volume:
1. ProcessExecutionError should be handled where we call the
   command.  We can just return an empty list for this case
   which makes things simple for callers and consistent with
   querying a VG.
2. Not found errors should be logged as info and not warning
   since this is generally not actionable by the admin (and not
   a problem).

Fix typo in lvm command output for not found test.

Add test for get_lv_info not found error.

Change-Id: Iebccf7b8f252303f586b36aad33b85945ea5c927
Related-Bug: #1390081

9 years agoetc: replace NullHandler by Python one
Julien Danjou [Tue, 25 Nov 2014 10:26:40 +0000 (11:26 +0100)]
etc: replace NullHandler by Python one

We don't need to specify the NullHandler that was provided by Oslo
anymore, as Python 2.7 has this one. Let's use it directly.

Change-Id: I6948d1cd5a556779c1b1fd0a4161689e3a944b45

9 years agoMerge "Refactoring to allow addition of NetApp FibreChannel drivers"
Jenkins [Tue, 25 Nov 2014 08:01:06 +0000 (08:01 +0000)]
Merge "Refactoring to allow addition of NetApp FibreChannel drivers"

9 years agoDon't use module importutils from oslo-incubator
ChangBo Guo(gcb) [Mon, 24 Nov 2014 06:13:01 +0000 (14:13 +0800)]
Don't use module importutils from oslo-incubator

* Syncs latest module service
  Removes its dependency for oslo-incubator module importutils.
  Removes code which was never executed after switched to oslo.messaging.
Include changes:
5d40e14 Remove code that moved to oslo.i18n
6ede600 rpc, notifier: remove deprecated modules

* config.genrator has been removed from oslo-incubator, so update
config.generator to use importutils from oslo.utils directly.

* Removes module importutils

Change-Id: If5cf4100006b5ca4dba1ad92e0c8efc22f90083c

9 years agoMerge "VMware: Set target ESX host for backing VM clone"
Jenkins [Tue, 25 Nov 2014 05:21:44 +0000 (05:21 +0000)]
Merge "VMware: Set target ESX host for backing VM clone"

9 years agoMerge "Fix calls to assert_called_once in unit tests"
Jenkins [Tue, 25 Nov 2014 04:41:24 +0000 (04:41 +0000)]
Merge "Fix calls to assert_called_once in unit tests"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 25 Nov 2014 02:57:59 +0000 (02:57 +0000)]
Merge "Imported Translations from Transifex"

9 years agoRemoving locks from 3PAR FC and iSCSI drivers
Anthony Lee [Wed, 15 Oct 2014 21:16:32 +0000 (14:16 -0700)]
Removing locks from 3PAR FC and iSCSI drivers

Removed locks from the 3PAR FC and iSCSI drivers.  In high load
environments where many simultaneous volume creations/deletions
and attaches/detaches are happening errors occur periodically.

By changing the drivers to create a new connection to the 3PAR
backend whenever a volume request is made the errors are avoided
and performance is improved.

Closes-Bug: 1381190
Change-Id: Ie588a1d87cf5a22ddf2e890c440582e1fe67f2cb

9 years agoMerge "Create "image_conversion_dir" before creating temporary file"
Jenkins [Mon, 24 Nov 2014 20:58:58 +0000 (20:58 +0000)]
Merge "Create "image_conversion_dir" before creating temporary file"

9 years agoUpdate rally job files
Boris Pavlovic [Mon, 17 Nov 2014 23:50:54 +0000 (03:50 +0400)]
Update rally job files

Rename rally-scenarios/ to rally-jobs/ Because it makes much more sense
to call directory with jobs files rally-jobs

Add pretty README files, that describes how to write plugins and use
extra dir

Update main README.rst file that describes what the hell is this=)

Add cinder-fakevirt.yaml that will be required after this infra patch
is merged: https://review.openstack.org/#/c/135137/

Change-Id: Ic7e5e8a99fc1385638fb187a04475a42eedcfeb2

9 years agoFix calls to assert_called_once in unit tests
git-harry [Sat, 22 Nov 2014 10:16:22 +0000 (10:16 +0000)]
Fix calls to assert_called_once in unit tests

Mock has a method called assert_called_once_with to check that a mock
was called and the arguments it took were as expected. Mock does not
have a method called assert_called_once and calling it just creates a
mock bound to that name. This means that not only is nothing tested
when assert_called_once is used, the tests also don't warn about this.

This commit attempts to address this in two ways:
    - all occurrences of assert_called_once are replaced with a real
      assertion.
    - the hacking check that nova uses to guard against this has been
      copied to cinder's local hacking checks.

Fixing the assert_called_once issues also highlighted other mistakes
in certain tests which were addressed to make the tests pass.

Due to the nature of mock, this issue is also possible if a method is
misspelt or just mistakenly used and so the hacking check is only
addressing one very specific case. That said, it does appear to be a
common mistake and so is worth singling out.

Change-Id: Iedcc3f48d91f7ebd8878ccc3bca3d023503774bd
Closes-Bug: #1394544

9 years agoRefactoring to allow addition of NetApp FibreChannel drivers
Clinton Knight [Wed, 17 Sep 2014 00:23:52 +0000 (20:23 -0400)]
Refactoring to allow addition of NetApp FibreChannel drivers

NetApp's five Cinder drivers have been in continuous development
for nearly 3 years, and it is now necessary to do some house-
cleaning.  This commit splits long files that contain multiple
classes, fixes the class hierarchies to enable subclassing
different driver classes (ISCSIDriver, FibreChannelDriver),
and renames classes.  It also begins the process of moving
unit test files into a matching hierarchy in the "tests" tree.

Implements blueprint netapp-cinder-driver-refactoring-phase-1
Change-Id: I9b067a8322a676c4c95d5045cb2e78979be9ba5b

9 years agoAdd ability to create volume from image by image name.
Sean McGinnis [Tue, 4 Nov 2014 11:15:26 +0000 (12:15 +0100)]
Add ability to create volume from image by image name.

Some cli commands allow specifying an image by either
its name or its ID. Creating a volume from an image
currently requires knowing the image ID. The request
was made to add the ability to create a volume using
the image name instead.

This patch adds the ability to accept either name or ID.
It will attempt to locate the image based on this input
and fail if neither can be matched. If found by name, it
will also verify there are not multiple images of the
same name. If this is the case it will require using the
ID to be explicit.

Will update python-cinderclient in a separate patch once
this has been merged to allow ID or name.

Change-Id: I8b522ccff3ead644b738499e67fa85d4ab92af36
Partial-Bug: #1377823

9 years agoFix exception message formatting
Eduardo Costa [Sun, 2 Nov 2014 15:06:12 +0000 (16:06 +0100)]
Fix exception message formatting

If the exception class made a reference to the "message" field in
its format string, it would be overriden with the value of the
"message" argument itself. It is now possible to use the "message"
field and preserve the desired message formatting. Test cases
provided.

Change-Id: I5705203466535fa242d13e43571012e5bf72712a
Closes-Bug: #1288066

9 years agoVMware: Set target ESX host for backing VM clone
Vipin Balachandran [Wed, 19 Nov 2014 10:38:45 +0000 (16:08 +0530)]
VMware: Set target ESX host for backing VM clone

The backing VM corresponding to a volume is cloned during create volume
from another volume, snapshot or image. The backing VM is also cloned
during retype and backup restore. Currently, the target ESX host is
unset while calling vCenter CloneVM_Task API and hence the source ESX
host is used as the target. If the destination datastore returned by
the datastore selection logic is not accessible to the source host,
clone fails. This patch fixes the problem by setting the target ESX
host (returned by datastore selection logic) while invoking clone.

Closes-Bug: #1380602
Change-Id: I030d5ce6378fb70f7f98356114825abc12297687

9 years agoMerge "Remove Mock class monkey patching"
Jenkins [Mon, 24 Nov 2014 11:11:48 +0000 (11:11 +0000)]
Merge "Remove Mock class monkey patching"

9 years agoMerge "Convert the DateTime into ISO8601 format for Ceilometer"
Jenkins [Mon, 24 Nov 2014 11:09:32 +0000 (11:09 +0000)]
Merge "Convert the DateTime into ISO8601 format for Ceilometer"

9 years agoMerge "Remove module timeutils"
Jenkins [Mon, 24 Nov 2014 11:01:56 +0000 (11:01 +0000)]
Merge "Remove module timeutils"

9 years agoCreate "image_conversion_dir" before creating temporary file
Bharat Kumar Kobagana [Mon, 24 Nov 2014 08:38:26 +0000 (14:08 +0530)]
Create "image_conversion_dir" before creating temporary file

In file "image_utils.py", "create_temporary_file" method is
failing because, CONF.image_conversion_dir folder doesn't exist.

This patch solves the issue by creating image_conversion_dir
directory before calling "create_temporary_file" method.

Change-Id: I546180e0521616fccdaf261d25fd4356d05f0274
Closes-Bug: #1394578

9 years agoConvert the DateTime into ISO8601 format for Ceilometer
Vincent Hou [Mon, 17 Nov 2014 06:33:35 +0000 (22:33 -0800)]
Convert the DateTime into ISO8601 format for Ceilometer

The fields of DateTime type should be converted to the time in
ISO8601 format, when they are put in the usage information to be
reported to Ceilometer.

Change-Id: I67e9e3609291d0d835156dfd9cfda88deae119c1
closes-bug: #1372791

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 24 Nov 2014 06:08:41 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: I8a94bbf720b1162f7bc1b498cacc444406858d69

9 years agoRemove module timeutils
ChangBo Guo(gcb) [Mon, 24 Nov 2014 05:54:23 +0000 (13:54 +0800)]
Remove module timeutils

Change-Id: I1e548f7dcbb06f7f47f08fc475bb1fe6713b538a

9 years agoMerge "NetApp NFS and iSCSI: move zapi client logic into modules"
Jenkins [Mon, 24 Nov 2014 05:51:55 +0000 (05:51 +0000)]
Merge "NetApp NFS and iSCSI: move zapi client logic into modules"

9 years agoMerge "Fix messages in EMC VMAX driver with no translation"
Jenkins [Mon, 24 Nov 2014 05:21:17 +0000 (05:21 +0000)]
Merge "Fix messages in EMC VMAX driver with no translation"

9 years agoMerge "ProphetStor with pool aware cinder scheduler"
Jenkins [Mon, 24 Nov 2014 04:58:54 +0000 (04:58 +0000)]
Merge "ProphetStor with pool aware cinder scheduler"

9 years agoMerge "Remove module jsonutils"
Jenkins [Mon, 24 Nov 2014 04:58:46 +0000 (04:58 +0000)]
Merge "Remove module jsonutils"

9 years agoNetApp NFS and iSCSI: move zapi client logic into modules
Alex Meade [Thu, 17 Apr 2014 14:34:38 +0000 (10:34 -0400)]
NetApp NFS and iSCSI: move zapi client logic into modules

This patch moves the logic for constructing zapi requests
into its own modules in order to reduce coupling with
driver logic, improve testability, and improve readability.
This patch also adds unit tests around the zapi request
logic.

Implements bp improve-netapp-drivers

Change-Id: I3939df9a55d77b14d723422c25bd3dd3bcef9fbe

9 years agoContext cleanup
Zhiteng Huang [Fri, 21 Nov 2014 18:53:40 +0000 (02:53 +0800)]
Context cleanup

Before the fix of bug #1386932 (285cfaf0954d4c3e320b205c288240c1828476fe)
was committed, there are a few hacks in Cinder where an original copy
of (un-elevated) context has to be saved before doing
context.elevated().  Now that we have the fix in place, it's time to
clean up those old hacks.

Change-Id: Ie3e5cb7398647b4619d294c572e920e6c3b6b9c9
Related-bug: #1386392

9 years agoMerge "Sync policy from oslo-incubator"
Jenkins [Mon, 24 Nov 2014 00:08:21 +0000 (00:08 +0000)]
Merge "Sync policy from oslo-incubator"

9 years agoMerge "Don't use module excutils from oslo-incubator"
Jenkins [Sun, 23 Nov 2014 23:58:15 +0000 (23:58 +0000)]
Merge "Don't use module excutils from oslo-incubator"

9 years agoMerge "Sync latest versionutils from oslo-incubator"
Jenkins [Sun, 23 Nov 2014 23:46:40 +0000 (23:46 +0000)]
Merge "Sync latest versionutils from oslo-incubator"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Sun, 23 Nov 2014 18:31:23 +0000 (18:31 +0000)]
Merge "Imported Translations from Transifex"

9 years agoProphetStor with pool aware cinder scheduler
rick.chen [Thu, 30 Oct 2014 10:07:16 +0000 (18:07 +0800)]
ProphetStor with pool aware cinder scheduler

This patch added pool aware scheduler support in Prophetstor
volume driver. Also added i18n support.

Change-Id: Ie86a4ba4e8cefc4bc0f13d4e735ae4955acb44a0
Implements: blueprint pool-aware-cinder-scheduler-prophetstor

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 23 Nov 2014 09:34:17 +0000 (09:34 +0000)]
Updated from global requirements

Change-Id: I58714f27507e2ec1117e23577ab082341b7a032b

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 23 Nov 2014 06:09:01 +0000 (06:09 +0000)]
Imported Translations from Transifex

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

Change-Id: I58ba936ec94195965e5c038612a57b290ba82cfe

9 years agoMerge "Use urllib.urlencode instead of dict_to_query_str"
Jenkins [Sat, 22 Nov 2014 20:32:17 +0000 (20:32 +0000)]
Merge "Use urllib.urlencode instead of dict_to_query_str"

9 years agoMerge "Fixup regressions in PureISCSIDriver log statements."
Jenkins [Sat, 22 Nov 2014 20:00:34 +0000 (20:00 +0000)]
Merge "Fixup regressions in PureISCSIDriver log statements."

9 years agoFix messages in EMC VMAX driver with no translation
Jay S. Bryant [Wed, 19 Nov 2014 21:01:10 +0000 (15:01 -0600)]
Fix messages in EMC VMAX driver with no translation

There were a number of messages in the EMC VMAX driver
for LOG.info, LOG.error and LOG.warning that had no translation
marker on them.  This patch adds the appropriate _LI, _LE or _LW
marker so that the message will be translated.  Since there is
a separate effort to add in the log level markers going on I
did not attempt, in this patch, to address that issue.  Just
thought we should get translation on the messages that were missing it.

Change-Id: If6ac19369b303466afdec98589afa80ac46ad0f2

9 years agoMerge "PureISCSIDriver needs to disconnect hosts before deleting volumes."
Jenkins [Sat, 22 Nov 2014 15:54:05 +0000 (15:54 +0000)]
Merge "PureISCSIDriver needs to disconnect hosts before deleting volumes."

9 years agoMerge "Implementing the use of _L’x’/i18n markers"
Jenkins [Sat, 22 Nov 2014 15:51:30 +0000 (15:51 +0000)]
Merge "Implementing the use of _L’x’/i18n markers"

9 years agoMerge "Change CHAP secret default length"
Jenkins [Sat, 22 Nov 2014 14:42:54 +0000 (14:42 +0000)]
Merge "Change CHAP secret default length"

9 years agoScality SOFS: implement volume backup and restore
JordanP [Tue, 18 Nov 2014 13:34:39 +0000 (14:34 +0100)]
Scality SOFS: implement volume backup and restore

Add support in Scality SOFS driver for volume backup interface
to backup or restore a volume using backup service
specified in cinder.conf.

Change-Id: I6b4b132c7aec9d0e9e558fd30036cf95d80698d1

9 years agoFixup regressions in PureISCSIDriver log statements.
Patrick East [Fri, 21 Nov 2014 16:39:45 +0000 (08:39 -0800)]
Fixup regressions in PureISCSIDriver log statements.

There were some conflicting patches that went in to fix i18n helpers,
and in the merge resolution we lost some changes that previously removed
all uses of .format() from the driver. This puts back in the updated
log statements originally added in
https://review.openstack.org/#/c/135047/

Change-Id: I562a0dd950b88af2bdb67a135f6f6f0d258eed0e
Closes-Bug: 1395060

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Tue, 11 Nov 2014 09:11:29 +0000 (09:11 +0000)]
Implementing the use of _L’x’/i18n markers

Placing the _Lx markers back into the code. No other cleaner solution has
has been implemented. Patches will be submitted in a series of sub
directories and in a fashion that is manageable.
This is the fourth commit of this kind

Change-Id: Ibbef7f06a391e9e6efca082d45caecdf60a9e811
Partial-Bug: #1384312

9 years agoRemove module jsonutils
ChangBo Guo(gcb) [Fri, 21 Nov 2014 12:11:26 +0000 (20:11 +0800)]
Remove module jsonutils

Sync module jsonutils's consumer module, and remove it.

Change-Id: Idbf61077238e50c486b102d3aa499085a62e3a5d

9 years agoSync policy from oslo-incubator
ChangBo Guo(gcb) [Fri, 21 Nov 2014 11:53:19 +0000 (19:53 +0800)]
Sync policy from oslo-incubator

Sync latest policy module at ddd63a7346bb57a47b0cd031608fc9475d68e241 to
help remove it's dependency for jsonutils. It also fixes some
bugs and introduces new option "policy_dirs", allow developer to add
some policy files in multiple directories.

Change-Id: Ibdb5832712d843ccce29c945cfbe4570dc5799aa

9 years agoMerge "context.elevated() should use copy.deepcopy()"
Jenkins [Fri, 21 Nov 2014 11:46:21 +0000 (11:46 +0000)]
Merge "context.elevated() should use copy.deepcopy()"

9 years agoDon't use module excutils from oslo-incubator
ChangBo Guo(gcb) [Fri, 21 Nov 2014 09:48:18 +0000 (17:48 +0800)]
Don't use module excutils from oslo-incubator

Remove module excutils and sync its only consumer module fileutils,
which is using oslo.utils.

Change-Id: Ib2c60be9febf5e15b198529b11c978d2e5b6df1f

9 years agoMerge "Fix message translations for MSA common class"
Jenkins [Fri, 21 Nov 2014 09:23:59 +0000 (09:23 +0000)]
Merge "Fix message translations for MSA common class"