]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
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 agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 25 Nov 2014 02:57:59 +0000 (02:57 +0000)]
Merge "Imported Translations from Transifex"

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 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 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"

9 years agoSync latest versionutils from oslo-incubator
ChangBo Guo(gcb) [Fri, 21 Nov 2014 08:47:31 +0000 (16:47 +0800)]
Sync latest versionutils from oslo-incubator

Sync latest versionutils to let us add warning for deprecated class in
Kilo. This also syncs its dependency module log and _i18n.

versionutils:
5d40e14 Remove code that moved to oslo.i18n
1c3ecfc Enhance versionutils.deprecated to work with classes
9a46271 Add Kilo release name to versionutils
a2ad3a2 Allow deprecated decorator to specify no plan for removal
05ae498 Add JUNO as a target to versionutils module
de4adbc pep8: fixed multiple violations

log:
ac4330d Make use_syslog=True log to syslog via /dev/log
df774ff Import PublishErrorsHandler from oslo.messaging
a3220c5 add list_opts to all modules with configuration options
6c706c5 Delete graduated serialization files
5d40e14 Remove code that moved to oslo.i18n
6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
aa74411 log: add missing space in error message

Change-Id: I9c1911e666e603d306685ff8bea390830c656256

9 years agoMerge "Added missing rules in policy.json"
Jenkins [Fri, 21 Nov 2014 08:37:09 +0000 (08:37 +0000)]
Merge "Added missing rules in policy.json"

9 years agoMerge "Remove code for deprecated extension path"
Jenkins [Fri, 21 Nov 2014 08:32:51 +0000 (08:32 +0000)]
Merge "Remove code for deprecated extension path"

9 years agoMerge "Defining the variable "tmp" before try block"
Jenkins [Fri, 21 Nov 2014 08:28:43 +0000 (08:28 +0000)]
Merge "Defining the variable "tmp" before try block"

9 years agoMerge "Update prerequisite packages in development docs"
Jenkins [Fri, 21 Nov 2014 04:36:36 +0000 (04:36 +0000)]
Merge "Update prerequisite packages in development docs"

9 years agoDefining the variable "tmp" before try block
Bharat Kumar Kobagana [Thu, 20 Nov 2014 11:39:38 +0000 (17:09 +0530)]
Defining the variable "tmp" before try block

In file "image_utils.py", "tmp" variable initialized in try
block. So, if any exception occurred in the try block, then
"tmp" would not be assigned with any value. Because of this
finally block will raise an exception like "local variable
tmp tried to use before the assignment".

This patch resolves that issue by defining "tmp" variable before
try block.

Change-Id: I9d8c8eaaeba0a7aab7ebfc791b9ddd967f324184
Closes-Bug: #1394548

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 21 Nov 2014 02:39:56 +0000 (02:39 +0000)]
Merge "Imported Translations from Transifex"

9 years agoPureISCSIDriver needs to disconnect hosts before deleting volumes.
Patrick East [Sat, 13 Sep 2014 00:09:42 +0000 (17:09 -0700)]
PureISCSIDriver needs to disconnect hosts before deleting volumes.

Some error conditions can cause a situation where the volume is
“connected” to a Purity host, but the volume failed to attach on the
initiator side. If we then try to delete this volume it will cause
errors and leave orphaned volumes behind on the Flash Array.

The solution is to check for any connections and then remove them prior
to making a call to delete the volume.

Closes-Bug: 1388260
Change-Id: I8f5b3b28900d79228fd91f2ad53535224f263657

9 years agocontext.elevated() should use copy.deepcopy()
Jay S. Bryant [Thu, 20 Nov 2014 17:06:48 +0000 (11:06 -0600)]
context.elevated() should use copy.deepcopy()

Currently context.elevated is just doing a copy.copy(self).
This needs to be changed to use copy.deepcopy so that the
list reference is not shared between objects which leaves
the possibility of an admin role leak.

This fix changes context.elevated use copy.deepcopy.

Change-Id: I349c53ccbe9e02ad2a3e84ae897424db9785a170
Closes-bug: 1386932

9 years agoMerge "Switch Cinder to use oslo.concurrency"
Jenkins [Fri, 21 Nov 2014 00:52:56 +0000 (00:52 +0000)]
Merge "Switch Cinder to use oslo.concurrency"

9 years agoMerge "Use oslo.utils"
Jenkins [Fri, 21 Nov 2014 00:52:14 +0000 (00:52 +0000)]
Merge "Use oslo.utils"

9 years agoMerge "Capture exception when delete a volume detached"
Jenkins [Fri, 21 Nov 2014 00:12:47 +0000 (00:12 +0000)]
Merge "Capture exception when delete a volume detached"

9 years agoAdded missing rules in policy.json
Ajaya Agrawal [Tue, 18 Nov 2014 12:18:03 +0000 (17:48 +0530)]
Added missing rules in policy.json

The policy file was missing rules
corresponding to volume get and
volume delete.

Change-Id: I414fabaf9e6a81d6973803bec5d47a75bf433470

9 years agoFix message translations for MSA common class
Walter A. Boring IV [Wed, 19 Nov 2014 23:52:56 +0000 (15:52 -0800)]
Fix message translations for MSA common class

This patch adds the crazy _LI, _LE, _LW markers for
the MSA class for each of the appropriate LOG.info,
LOG.error and LOG.warning calls.

Change-Id: I831db878f1d51cdf61049a6fd8302d2464d477d5
Partial-Bug: #1384312

9 years agoSwitch Cinder to use oslo.concurrency
ChangBo Guo(gcb) [Mon, 10 Nov 2014 12:45:12 +0000 (20:45 +0800)]
Switch Cinder to use oslo.concurrency

Let's switch to the newly released oslo library for the
processutils and lockutils. We use the config fixture(s) to
specify disable_process_locking and lock_path in the CONF
variable of oslo.concurrency library for correctly setting the
flags.

Change-Id: Ib8f3aac5449eba66ea84bc5cad8aea061adab276

9 years agoUse oslo.utils
ChangBo Guo(gcb) [Mon, 10 Nov 2014 08:53:18 +0000 (16:53 +0800)]
Use oslo.utils

oslo.utils library now provides the functionality previously in
oslo-incubator's excutils, importutils, network_utils, strutils
timeutils, units etc. Some of these outdated modules will still be
around for a while until all other oslo modules that use them have been
updated in future commits.

Change-Id: Idee8600dfe42e5977b8fb824e91afff7e9119981

9 years agoRemove code for deprecated extension path
Rushi Agrawal [Thu, 20 Nov 2014 10:24:10 +0000 (15:54 +0530)]
Remove code for deprecated extension path

As per the #NOTE, we should remove this code post-Grizzly.

Change-Id: I8b8e807f5e49e112159395e061f10b0a3acea33c

9 years agoMerge "Implementing the use of _L’x’/i18n markers"
Jenkins [Thu, 20 Nov 2014 06:23:01 +0000 (06:23 +0000)]
Merge "Implementing the use of _L’x’/i18n markers"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 20 Nov 2014 06:09:33 +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: Iacc17652260172c2888d71026e316a53e135b9b7

9 years agoMerge "IBM Storwize: Improve error message"
Jenkins [Thu, 20 Nov 2014 05:45:36 +0000 (05:45 +0000)]
Merge "IBM Storwize: Improve error message"

9 years agoMerge "Switch to oslo.serialization"
Jenkins [Thu, 20 Nov 2014 02:24:32 +0000 (02:24 +0000)]
Merge "Switch to oslo.serialization"

9 years agoMerge "Amend unused variables to assist pylint testing"
Jenkins [Wed, 19 Nov 2014 23:41:01 +0000 (23:41 +0000)]
Merge "Amend unused variables to assist pylint testing"

9 years agoUpdate prerequisite packages in development docs
git-harry [Wed, 10 Sep 2014 09:46:02 +0000 (10:46 +0100)]
Update prerequisite packages in development docs

The packages listed for Linux distros are updated to meet the
prerequisites to run the unit tests.

Change-Id: Iedd9e4d04d7700d418ddb07881ac76ad758466cb
Closes-bug: #1367670

9 years agoChange CHAP secret default length
Lucian Petrut [Fri, 14 Nov 2014 16:22:04 +0000 (18:22 +0200)]
Change CHAP secret default length

Some of the iSCSI initiators have a limit regarding the maximum
CHAP secret length. For example, the MS iSCSI Initiator
does not allow CHAP secrets longer than 16 characters, smaller
than the actual default 20 characters length.

This patch simply changes the default length to 16 characters,
value which is already used by default by some of the volume
drivers. In fact, the iSCSI specs state that: "Implementations
MUST support use of up to 128 bit random CHAP secrets".

Change-Id: I0295fabd0c0048c93e1f452077d0f5d19af9784d
Closes-Bug: #1392792

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Mon, 17 Nov 2014 09:58:10 +0000 (09:58 +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 sixth commit of this kind

Partial-Bug: #1384312

Change-Id: I42b4e168deec9930571c1869fe1a181d4aad1112

9 years agoSwitch to oslo.serialization
ChangBo Guo(gcb) [Mon, 10 Nov 2014 06:32:44 +0000 (14:32 +0800)]
Switch to oslo.serialization

Very simple import change in each file, just touches a whole
lot of files. jsonutils has graduated into a standalone library
and has been removed from the oslo-incubator repository.
We should be using the library for all projects.
This commit doesn't change files synced from oslo-incubator, and
doesn't remove the 'module=jsonutils' in openstack-common.conf.
Another sync commit will cover that.

Change-Id: I56ea380a85e8a3c1b42b2425430fc28409937365

9 years agoMerge "Fix typo in SolidFire xDBVersionMismatch label"
Jenkins [Tue, 18 Nov 2014 23:24:31 +0000 (23:24 +0000)]
Merge "Fix typo in SolidFire xDBVersionMismatch label"

9 years agoMerge "Changing PureISCSIDriver to use % string formatting instead of .format"
Jenkins [Tue, 18 Nov 2014 23:23:53 +0000 (23:23 +0000)]
Merge "Changing PureISCSIDriver to use % string formatting instead of .format"

9 years agoMerge "Adding support for 'source-id' in 3PAR manage"
Jenkins [Tue, 18 Nov 2014 23:22:28 +0000 (23:22 +0000)]
Merge "Adding support for 'source-id' in 3PAR manage"

9 years agoMerge "Disable Cgsnapshot APIs by default"
Jenkins [Tue, 18 Nov 2014 21:36:28 +0000 (21:36 +0000)]
Merge "Disable Cgsnapshot APIs by default"

9 years agoMerge "Fix a problem in creating consistency group in ProphetStor driver."
Jenkins [Tue, 18 Nov 2014 20:37:57 +0000 (20:37 +0000)]
Merge "Fix a problem in creating consistency group in ProphetStor driver."

9 years agoMerge "Handle DBConnectionError instead of Exception"
Jenkins [Tue, 18 Nov 2014 20:08:15 +0000 (20:08 +0000)]
Merge "Handle DBConnectionError instead of Exception"

9 years agoFix typo in SolidFire xDBVersionMismatch label
John Griffith [Tue, 18 Nov 2014 19:37:11 +0000 (12:37 -0700)]
Fix typo in SolidFire xDBVersionMismatch label

The retryable errors list in the SolidFire driver includes
an xDBVersionMismatch error that can be emitted from the
device.  During some recent work however the spelling of
the error was incorrect, so it's never deteceted/retried
as it should be.

This patch fixes the typo from 'xDBVersionMisMatch' to
xDBVersionMismatch'.

Change-Id: I5b4bf908c6a9146c4554e5749cd12dbc46c6e7c1
Closes-Bug: #1393916

9 years agoFix a problem in creating consistency group in ProphetStor driver.
rick.chen [Wed, 12 Nov 2014 03:50:37 +0000 (11:50 +0800)]
Fix a problem in creating consistency group in ProphetStor driver.

a.Failed to create CG in the storage:
  Storage site cannot accept CG uuid including "-" word. Before
  sending API to back-end storage, the "-" word in the CG uuid
  needs to be removed.
b.Failed to delete volume of CG:
  Corrected api leaving group operation key.

Change-Id: I017b2f65c4da6961219f0b972edae2b1cb447878
Closes-Bug: 1391724

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 18 Nov 2014 11:30:11 +0000 (11:30 +0000)]
Updated from global requirements

Change-Id: I1908061f27f26413f484518e0bc1508af3608673

9 years agoMerge "allow image_id for imageRef in create volume API v2"
Jenkins [Tue, 18 Nov 2014 09:44:54 +0000 (09:44 +0000)]
Merge "allow image_id for imageRef in create volume API v2"

9 years agoMerge "Remove deprecation warnings relating to api-paste"
Jenkins [Tue, 18 Nov 2014 07:28:32 +0000 (07:28 +0000)]
Merge "Remove deprecation warnings relating to api-paste"

9 years agoDisable Cgsnapshot APIs by default
Xing Yang [Tue, 18 Nov 2014 04:28:39 +0000 (23:28 -0500)]
Disable Cgsnapshot APIs by default

Currently consistency group APIs are disabled by default because there are
only a very small number of drivers that have implemented them. In
cinder/etc/cinder/policy.json, there are the following entries:

    "consistencygroup:create" : "group:nobody",
    "consistencygroup:delete": "group:nobody",
    "consistencygroup:get": "group:nobody",
    "consistencygroup:get_all": "group:nobody",
    "consistencygroup:create_cgsnapshot" : "",
    "consistencygroup:delete_cgsnapshot": "",
    "consistencygroup:get_cgsnapshot": "",
    "consistencygroup:get_all_cgsnapshots": "",

Note that Cgsnapshot related APIs are not disabled by default. They should be
disabled to be consistent. So the policy entries will be changed to the
following in this patch:

    "consistencygroup:create" : "group:nobody",
    "consistencygroup:delete": "group:nobody",
    "consistencygroup:get": "group:nobody",
    "consistencygroup:get_all": "group:nobody",
    "consistencygroup:create_cgsnapshot" : "group:nobody",
    "consistencygroup:delete_cgsnapshot": "group:nobody",
    "consistencygroup:get_cgsnapshot": "group:nobody",
    "consistencygroup:get_all_cgsnapshots": "group:nobody",

Note: If a driver has CG functions implemented, the CG APIs have to be enabled
by changing "group:nobody" to "" for the CG functions to work.

Change-Id: If59b3da1e84e25e1f547793638c58966e10f488c
Closes-Bug: #1393652

9 years agoallow image_id for imageRef in create volume API v2
Pascal Wehrle [Mon, 17 Nov 2014 22:20:17 +0000 (23:20 +0100)]
allow image_id for imageRef in create volume API v2

The create volume request for the V2 API has a property named
"imageRef" with the ID of the image to be used when creating the
volume.
The name of this property is inconsistent as all multi word
properties use snake case and the property in the reponse is named
"image_id".

This adds support for aliasing the imageRef key with image_id when
creating a volume in v2 of the Cinder API in a backward-compatible
way.

Change-Id: I85a5c6734ba05a8a7ea9eff3f849d12fb3d167fb
Closes-Bug: 1375867

9 years agoChanging PureISCSIDriver to use % string formatting instead of .format
Daniel Wilson [Fri, 14 Nov 2014 23:08:34 +0000 (15:08 -0800)]
Changing PureISCSIDriver to use % string formatting instead of .format

Removing usage of .format for string formatting to be more in line with
OpenStack standards. Adding appropiate usage of _LE,_LW,_LI as well.

Change-Id: I4f411920293553d1356012c7db803c9b2dcf593f
Closes-bug: #1392063

9 years agoUpdate cinder.conf.sample to fix max db conn retries
Jay S. Bryant [Mon, 17 Nov 2014 19:11:03 +0000 (13:11 -0600)]
Update cinder.conf.sample to fix max db conn retries

Another external library change (oslo.db) has broken the gate
because cinder.conf.sample appears to be out of date.  The change
was just to a message string:

   Maximum number of database connection retries during
   startup. Set to -1 to specify an infinite retry count. (integer value)
   ->
   Maximum db connection retries during startup. Set to -1 to
   specify an infinite retry count. (integer value)

This patch updates cinder.conf.sample to get beyond this failure.  The
Cinder team will be talking about how to avoid these issues in the future.

Change-Id: Ia14954842d141b9bd208ce98c5a70a42b014ac45

9 years agoMerge "Documentation Bug fix committed"
Jenkins [Mon, 17 Nov 2014 15:24:03 +0000 (15:24 +0000)]
Merge "Documentation Bug fix committed"

9 years agoMerge "Add i18n _LX tags for relevant log levels in EQLX driver."
Jenkins [Mon, 17 Nov 2014 03:53:01 +0000 (03:53 +0000)]
Merge "Add i18n _LX tags for relevant log levels in EQLX driver."

9 years agoDocumentation Bug fix committed
yatin karel [Sun, 16 Nov 2014 12:37:36 +0000 (18:07 +0530)]
Documentation Bug fix committed

I have corrected the spelling mistakes, that were described in the bug.

Change-Id: I53371b9a70651078bf051d6bc384d1107724d39b
Closes-Bug: #1393133

9 years agoMerge "Mock cinder.wsgi.Server in TestWSGIService"
Jenkins [Sun, 16 Nov 2014 11:04:04 +0000 (11:04 +0000)]
Merge "Mock cinder.wsgi.Server in TestWSGIService"

9 years agoMerge "Remove cinder/compute/aggregate_states.py"
Jenkins [Sun, 16 Nov 2014 06:37:21 +0000 (06:37 +0000)]
Merge "Remove cinder/compute/aggregate_states.py"

9 years agoMerge "Mock isfile in test_ssh_missing_hosts_key_file"
Jenkins [Sun, 16 Nov 2014 00:31:04 +0000 (00:31 +0000)]
Merge "Mock isfile in test_ssh_missing_hosts_key_file"

9 years agoMerge "Fix wrapper to work with barbicanclient 3.0.1"
Jenkins [Sun, 16 Nov 2014 00:17:20 +0000 (00:17 +0000)]
Merge "Fix wrapper to work with barbicanclient 3.0.1"

9 years agoAdd i18n _LX tags for relevant log levels in EQLX driver.
Sean McGinnis [Sat, 15 Nov 2014 01:39:54 +0000 (19:39 -0600)]
Add i18n _LX tags for relevant log levels in EQLX driver.

The decision has been made to follow the translation
convention used in other projects of marking all INFO
and above log strings with _LI, _LW, or _LE. This patch
adds these markers for all log strings in the EQLX
driver that are not being used in an exception or where
array output is being logged.

Change-Id: I978886e0a98601c0b3d70f7c97bccf6561ba325e

9 years agoBump Req timeout to 30 seconds in SolidFire Driver
John Griffith [Fri, 14 Nov 2014 18:26:07 +0000 (11:26 -0700)]
Bump Req timeout to 30 seconds in SolidFire Driver

Local SolidFire CI system seems to have various networking
disconnects during runs.  This appears to be a problem with
latencies in our lab.

Currently have resources working on this, but in the meantime
bumping the timeout value in requests to see if we can address
it that way and get CI running again.  We'll either get to root
cause in our network or add this as a formal config option later
that will be used only for SolidFire CI system.

Change-Id: I0a13ac2e60c7053fc935922bfb28127ade858392

9 years agoRemove cinder/compute/aggregate_states.py
git-harry [Fri, 14 Nov 2014 17:10:58 +0000 (17:10 +0000)]
Remove cinder/compute/aggregate_states.py

This file is from the initial fork from nova. It defines the states a
host aggregate can take. It is not used anywhere in the cinder code
and is therefore unnecessary.

The commit removes the file from the codebase.

Change-Id: I9ba12aabc5009020950b746f312372fa4bfa156d

9 years agoMerge "Fix Brocade FC SAN lookup MITM vulnerability"
Jenkins [Fri, 14 Nov 2014 16:26:27 +0000 (16:26 +0000)]
Merge "Fix Brocade FC SAN lookup MITM vulnerability"

9 years agoRemove deprecation warnings relating to api-paste
git-harry [Fri, 14 Nov 2014 11:22:39 +0000 (11:22 +0000)]
Remove deprecation warnings relating to api-paste

Remove deprecation warnings and backwards compatibility introduced by
commit c355d68a. This commit was introduce in havana and backported to
grizzly. It relates to config options in api-paste.ini.

This commit removes the following deprecated items:
 * cinder.api.auth:CinderKeystoneContext
 * cinder.api.auth:pipeline_factory
 * cinder.api.openstack:FaultWrapper
 * cinder.api.openstack.urlmap:urlmap_factory
 * cinder.api.openstack.volume:APIRouter
 * cinder.api.openstack.volume.versions.Versions
 * cinder.api.sizelimit:RequestBodySizeLimiter

Change-Id: If7c055be0d257dee570da1db4adce2df6e73db14

9 years agoMock isfile in test_ssh_missing_hosts_key_file
git-harry [Fri, 14 Nov 2014 09:09:55 +0000 (09:09 +0000)]
Mock isfile in test_ssh_missing_hosts_key_file

test_ssh_missing_hosts_key_file tests that when the ssh_hosts_key_file
is missing an InvalidInput exception is raised. It does this by
setting CONF.ssh_hosts_key_file to, what is assumed to be, the
location of a non-existant file. If the file, /tmp/blah, exists the
test fails. This test should not be dependent on what is on the
filesystem.

This commit adds a mock for os.path.isfile so that when
ssh_utils.SSHPool checks for existance of CONF.ssh_hosts_key_file it
always gets False regardless of the state of the filesystem.

Change-Id: I6bf797301a0829797d55d4442088f9ef944aec2c
Closes-bug: #1392628

9 years agoMerge "Implementing the use of _L’x’/i18n markers"
Jenkins [Fri, 14 Nov 2014 15:46:59 +0000 (15:46 +0000)]
Merge "Implementing the use of _L’x’/i18n markers"

9 years agoMerge "Scality driver:use self.configuration instead of CONF"
Jenkins [Fri, 14 Nov 2014 15:21:34 +0000 (15:21 +0000)]
Merge "Scality driver:use self.configuration instead of CONF"

9 years agoMerge "Implementing the use of _L’x’/i18n markers"
Jenkins [Fri, 14 Nov 2014 15:19:54 +0000 (15:19 +0000)]
Merge "Implementing the use of _L’x’/i18n markers"

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Tue, 11 Nov 2014 14:05:24 +0000 (14:05 +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 fifth commit of this kind

Change-Id: I476750bf05ddee85dd5bf25c7bd00ee103d23115
Partial-Bug: #1384312

9 years agoScality driver:use self.configuration instead of CONF
JordanP [Thu, 13 Nov 2014 16:14:00 +0000 (17:14 +0100)]
Scality driver:use self.configuration instead of CONF

In order for the Filter scheduler to be used to it's full advantage
Cinder drivers need to move away from using FLAGS directly and switch
to appending their specific options to self.configuration.

This patch converts the driver and updates tests.

Commit message stolen from Id1a7c583894ac368bdcc61facc6f72300db320c7
Closes-Bug: #1392633
Change-Id: I61b0b6a21628d5629b5f80768e73ee44db05d1ce

9 years agoMerge "Explicitly close requests obj in SolidFire Driver"
Jenkins [Fri, 14 Nov 2014 06:27:39 +0000 (06:27 +0000)]
Merge "Explicitly close requests obj in SolidFire Driver"

9 years agoMerge "Add automatic creation and deletion of Purity hosts for PureISCSIDriver"
Jenkins [Fri, 14 Nov 2014 05:26:24 +0000 (05:26 +0000)]
Merge "Add automatic creation and deletion of Purity hosts for PureISCSIDriver"

9 years agoMerge "Add volume attribute support to volume created using clone, snapshot"
Jenkins [Fri, 14 Nov 2014 05:25:41 +0000 (05:25 +0000)]
Merge "Add volume attribute support to volume created using clone, snapshot"

9 years agoMock cinder.wsgi.Server in TestWSGIService
git-harry [Thu, 13 Nov 2014 21:50:23 +0000 (21:50 +0000)]
Mock cinder.wsgi.Server in TestWSGIService

The fixed tests were binding to port 8776. These unit tests should not
be starting the wsgi app and so the class has been mocked.

Change-Id: I52b8ce4788741a0802d4d91d413474101542a3e0
Closes-bug: #1392498

9 years agoExplicitly close requests obj in SolidFire Driver
John Griffith [Thu, 13 Nov 2014 14:43:13 +0000 (07:43 -0700)]
Explicitly close requests obj in SolidFire Driver

Currently we're not explicitly returning requests
connection objects back to the ConnectionPool when
we're done with them.  For most cases this isn't a
problem, however if we start adding higher and higher
concurrent actions the internal Connection Pool management
doesn't keep up.

This patch just adds an explicit close of the requests
connection after we're done with it to keep the ConnectionPool
as full as possible and avoid any resource issues that could
occur during heavy concurrent usage.

Change-Id: Ib074ca15286060d2aa11cdc66e74be1b8eed3c93