]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoAdd H233 to ignores in tox.ini
John Griffith [Sat, 10 Aug 2013 18:24:56 +0000 (12:24 -0600)]
Add H233 to ignores in tox.ini

The auto-pull of updated libs added to devstack
will result in the python 3.3 print checks being
added which we're not ready for.

Temporarily add this to our tox.ini ignore list
until we have a chance to go through and fix these.

Change-Id: Ie6e0e28433e9b1240b94ed4a323a97a85e475a17

11 years agoMerge "Fix the multi-backend storge issue for ZMQ."
Jenkins [Sat, 10 Aug 2013 05:42:55 +0000 (05:42 +0000)]
Merge "Fix the multi-backend storge issue for ZMQ."

11 years agoMerge "3PAR drivers creating incorrect comment data"
Jenkins [Fri, 9 Aug 2013 06:47:38 +0000 (06:47 +0000)]
Merge "3PAR drivers creating incorrect comment data"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 9 Aug 2013 06:04:05 +0000 (06:04 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Ignore stmf target must be offline exception"
Jenkins [Fri, 9 Aug 2013 04:12:17 +0000 (04:12 +0000)]
Merge "Ignore stmf target must be offline exception"

11 years agoMerge "Add minimum features in HDS driver (for Havana & Icehouse)"
Jenkins [Thu, 8 Aug 2013 21:56:34 +0000 (21:56 +0000)]
Merge "Add minimum features in HDS driver (for Havana & Icehouse)"

11 years ago3PAR drivers creating incorrect comment data
Kurt Martin [Thu, 8 Aug 2013 21:14:56 +0000 (14:14 -0700)]
3PAR drivers creating incorrect comment data

The 3PAR volumes created from a shapshot had incorrect comment data
that gets added in the comment section of the volumes on the backend.
This patch fixes the display name and description by getting the correct
data when the volume is created. This patch also fixes the inconsistency
in how the keys (name vs. display_name) were used in the comments.

Change-Id: I61af8ceb08d862f2b9dea2d9bb44c803e0b75a10
Fixes: bug 1210245
11 years agoMerge "Refactoring of create_volume to use taskflow."
Jenkins [Thu, 8 Aug 2013 18:54:08 +0000 (18:54 +0000)]
Merge "Refactoring of create_volume to use taskflow."

11 years agoMerge "Set lock_path in tests"
Jenkins [Thu, 8 Aug 2013 18:45:43 +0000 (18:45 +0000)]
Merge "Set lock_path in tests"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 8 Aug 2013 18:10:40 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ib68f2c11e8eac9002407b5bfc2f07547620acd98

11 years agoMerge "Use utils.safe_minidom_parse_string in extensions"
Jenkins [Thu, 8 Aug 2013 16:07:54 +0000 (16:07 +0000)]
Merge "Use utils.safe_minidom_parse_string in extensions"

11 years agoUse utils.safe_minidom_parse_string in extensions
Thierry Carrez [Thu, 8 Aug 2013 10:13:52 +0000 (12:13 +0200)]
Use utils.safe_minidom_parse_string in extensions

Use utils.safe_minidom_parse_string in extensions that were still
using potentially-unsafe minidom.

Fixes bug 1190229

Change-Id: I43afb2e188bbea99ea30fe6cb2eb1aeedc4ddfd4

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 8 Aug 2013 06:11:09 +0000 (06:11 +0000)]
Imported Translations from Transifex

Change-Id: I857c5d49cf1dc44f902952a15a3b2abeff70dd99

11 years agoRefactoring of create_volume to use taskflow.
Joshua Harlow [Thu, 1 Aug 2013 19:08:04 +0000 (12:08 -0700)]
Refactoring of create_volume to use taskflow.

Move the create_volume workflow to using taskflow and
split that workflow into three major pieces (each with
there own workflow) and create tasks that perform the
individual required actions to accomplish the pieces
desired outcome.

1. An api workflow composed of the following tasks:
  - Extracting volume request (which checks types, values) and creates a
    standard output for other tasks to work on (allowing further tasks to be
    plugged in the chain without having to worry about other tasks output
    formats).
  - Quota reservation (rolled back on failure).
  - Database entry creation.
  - Quota committing.
  - Volume RPC casting to volume scheduler or to targeted volume manager.
2. A scheduler workflow composed of the following tasks:
  - Extracting scheduler request specification for further tasks to use.
  - Change status & notify (activated only on failure).
  - Create volume scheduler driver call (which will itself RPC cast to a
    targeted volume manager).
3. A manager workflow composed of the following tasks:
  - Extract volume request specification from incoming request for
    further tasks to use. This also breaks up the incoming request into the 4
    volume types that can be created later.
  - Change status & notify on failure or reschedule on failure, this is
    dependent on if rescheduling is enabled *and* which exception types are
    thrown from the volume creation code.
  - Create volume from specification
    - This contains the code to create from image, create raw volume, create
      from source volume, create from snapshot using the extracted volume
      specification.
  - Change status & notify success.

Key benefits:
  - Handled exceptions in a easier to understand, easier to review and more
    reliable way than they are currently being handled.
  - Rescheduling is now easier to understand.
  - Easier to understand structure with tasks that consume inputs, take some
    action on them and produce outputs and revert on subsequent failure using
    whatever they produced to know how to revert.
  - Ability to add new unit tests that can test individual task actions by
    providing mock task inputs and validating expected task outputs.

Future additions:
  - Eventual addition of resumption logic to recover from operations stopped
    halfway through.
  - Ability to centrally orchestrate the tasks and pick and choice how
    reconciliation of failures based on code or policies.

Part of bp: cinder-state-machine

Change-Id: I96b688511b35014a8c006e4d30b875dcaf409d93

11 years agoAdd minimum features in HDS driver (for Havana & Icehouse)
Lakhinder Walia [Thu, 1 Aug 2013 23:43:45 +0000 (16:43 -0700)]
Add minimum features in HDS driver (for Havana & Icehouse)

* Add create_cloned_volume() api.
* Add extend_volume() api.
* Reorganized some connection state keeping into _loc_info() function.
  Earlier this logic was spread out in various calls.
* New self tests for #1 and #2 above.

Change-Id: I6a88164ee0a427519c7fab6f6a852d46ec46176c
Fixes: bug #1207560
11 years agoMerge "Add test for brick.local_dev.lvm"
Jenkins [Wed, 7 Aug 2013 20:26:50 +0000 (20:26 +0000)]
Merge "Add test for brick.local_dev.lvm"

11 years agoIgnore stmf target must be offline exception
Victor Rodionov [Thu, 1 Aug 2013 20:41:24 +0000 (00:41 +0400)]
Ignore stmf target must be offline exception

Patch to ignore

"NexentaJSONException: : Unable to add member to targetgroup:
    stmfadm: STMF target must be offline"

This error happens when targetgroup is already configured and busy.

fixed bug 1209305

Change-Id: I275dcf465934c99d30f85932fe72e8b1818ef870

11 years agoSet lock_path in tests
Ben Nemec [Wed, 7 Aug 2013 15:54:34 +0000 (10:54 -0500)]
Set lock_path in tests

This is required to sync a locking fix from Oslo.

Change-Id: I1f71d7137eab2509a24c5e1397da653142561f10
Related-Bug: 1065531

11 years ago3PAR volumes created from snaps failed to attach
Kurt Martin [Tue, 6 Aug 2013 20:25:36 +0000 (13:25 -0700)]
3PAR volumes created from snaps failed to attach

An error would occur if you attempted to attach a volume that
was created from a snapshot. The 3PAR backends does not have a
'userCPG' entry in the volume data on the backend, it instead
has a 'snapCPG' field. This patch will now look for the 'snapCPG'
entry and use that CPG when attaching the volume created from a
snapshot.

Change-Id: Ic7dab730a68339edb4273e4fbb6f8e45e37808b3
Fixes: bug 1207913
11 years agoMerge "Remove usage of obsolete oslo.exception"
Jenkins [Wed, 7 Aug 2013 11:44:32 +0000 (11:44 +0000)]
Merge "Remove usage of obsolete oslo.exception"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 7 Aug 2013 09:06:12 +0000 (09:06 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Remove locals() from iser"
Jenkins [Wed, 7 Aug 2013 07:15:40 +0000 (07:15 +0000)]
Merge "Remove locals() from iser"

11 years agoMerge "Remove Brick's iscsi dependency on cinder"
Jenkins [Wed, 7 Aug 2013 07:12:04 +0000 (07:12 +0000)]
Merge "Remove Brick's iscsi dependency on cinder"

11 years agoAdd test for brick.local_dev.lvm
Alexander Gorodnev [Tue, 6 Aug 2013 12:31:51 +0000 (08:31 -0400)]
Add test for brick.local_dev.lvm

Add positive and negative tests for LVM.lv_has_snapshot() method

Change-Id: Ibb261365eae97d8e3843ff48f7389f759226d2af

11 years agoMerge "Add support for volume extension to Nexenta Systems volume driver"
Jenkins [Wed, 7 Aug 2013 07:02:10 +0000 (07:02 +0000)]
Merge "Add support for volume extension to Nexenta Systems volume driver"

11 years agoMerge "Create key manager interface"
Jenkins [Wed, 7 Aug 2013 06:41:50 +0000 (06:41 +0000)]
Merge "Create key manager interface"

11 years agoMerge "GPFS Verify min release level for mmclone command"
Jenkins [Wed, 7 Aug 2013 06:41:49 +0000 (06:41 +0000)]
Merge "GPFS Verify min release level for mmclone command"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 7 Aug 2013 06:10:54 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I084e9bcbbd956bc2d7c7e5d6aca8ea5ca7fb535e

11 years agoMerge "Fixes create rbd volume from image v1 glance api"
Jenkins [Wed, 7 Aug 2013 05:48:07 +0000 (05:48 +0000)]
Merge "Fixes create rbd volume from image v1 glance api"

11 years agoRemove Brick's iscsi dependency on cinder
Walter A. Boring IV [Tue, 6 Aug 2013 23:22:24 +0000 (16:22 -0700)]
Remove Brick's iscsi dependency on cinder

This patch removes Brick's iscsi/iscsi.py's
dependence on cinder.  Brick can't contain
cinder dependencies as it will be used in nova.

Fixes Bug #1209012

Change-Id: I046b5a53baecce81ba184cb7f30ec450f4738dae

11 years agoRemove locals() from iser
Walter A. Boring IV [Tue, 6 Aug 2013 21:43:35 +0000 (14:43 -0700)]
Remove locals() from iser

This patch removes the locals() call
to fix a flake8 violation.

Fixes Bug #1209006

Change-Id: Ida4b498544a2c28ffb4912d402579f8bb7372309

11 years agoMove volume_clear and clear_size opts up to driver
John Griffith [Tue, 6 Aug 2013 20:58:02 +0000 (14:58 -0600)]
Move volume_clear and clear_size opts up to driver

The block_device driver pulled in the clear and clear_size
options for it's own use and broke the inheritance model needed
for multiple backend configs.

This change moves the two configs up higher in the heirarchy to
driver.py so that it can be shared/used by all drivers if they desire.

This means that they are now set properly in volume_opts.  At some
point we shoudl restructure this a bit to allow multi-backends to
specify independent settings for these configs.

Fixes bug: 1208964

Change-Id: I6afbdecea637f7e7d3417be537ab71fe97bffda3

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 6 Aug 2013 20:39:39 +0000 (20:39 +0000)]
Merge "Imported Translations from Transifex"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 6 Aug 2013 18:10:32 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ica6a1b2c73bd1827ec77ef7f8e070e3281c5b93f

11 years agoSet the concurrent connections on the 3PAR array
Kurt Martin [Mon, 5 Aug 2013 21:23:52 +0000 (14:23 -0700)]
Set the concurrent connections on the 3PAR array

Currently, the 3PAR backend has a limit to the number of concurrent
connections that can be made to the WS API Server. This patch is
setting this limit to 15 connections, the highest possible.

Change-Id: Ibb8618c2fc896e0164a5f6a151d6a870cd662527

11 years agoCreate key manager interface
Joel Coffman [Tue, 30 Jul 2013 14:06:28 +0000 (10:06 -0400)]
Create key manager interface

This interface provides a thin wrapper around an underlying key
management implementation such as Barbican or a KMIP server. The key
manager interface is used by the volume encryption code to retrieve
keys for volumes.

This change is a copy-paste of the key manager interface accepted by
Nova. The major modifications are to the module imports (i.e.,
nova -> cinder).

Change-Id: I8f79165d66d67ad8faaca60946959c5a61811c59
Implements: blueprint encrypt-cinder-volumes

11 years agoMerge "Sync gettextutils from oslo"
Jenkins [Tue, 6 Aug 2013 09:16:20 +0000 (09:16 +0000)]
Merge "Sync gettextutils from oslo"

11 years agoRemove usage of obsolete oslo.exception
Julien Danjou [Wed, 31 Jul 2013 09:36:08 +0000 (11:36 +0200)]
Remove usage of obsolete oslo.exception

Change-Id: I6f46f90bd74cc26fc01667e467e3dab38037eec3
Closes-Bug: #1208734

11 years agoMerge "Add eclipse project files to .gitignore"
Jenkins [Tue, 6 Aug 2013 08:37:18 +0000 (08:37 +0000)]
Merge "Add eclipse project files to .gitignore"

11 years agoFixes create rbd volume from image v1 glance api
Edward Hope-Morley [Mon, 5 Aug 2013 21:57:09 +0000 (22:57 +0100)]
Fixes create rbd volume from image v1 glance api

The RBD driver supports two methods of image cloning;
thin copy i.e. copy-on-write (requires v2 Glance API)
and full copy (default if v2 Glance API is not available).

clone_image() was failing in the Glance V1 API case because
it was not returning a tuple, as expected by the volume
manager. Glance V2 support works fine.

Fixes: bug #1208617
Change-Id: I2e8605eaacfe8b65bdf47cb6ea40ef62d6f6b895

11 years agoMerge "Add bin directory to flake8 when not in venv"
Jenkins [Tue, 6 Aug 2013 07:39:18 +0000 (07:39 +0000)]
Merge "Add bin directory to flake8 when not in venv"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 6 Aug 2013 07:34:03 +0000 (07:34 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Remove Storage Manager from cinder-manage"
Jenkins [Tue, 6 Aug 2013 07:33:56 +0000 (07:33 +0000)]
Merge "Remove Storage Manager from cinder-manage"

11 years agoMerge "Remove cinder.exception from Brick"
Jenkins [Tue, 6 Aug 2013 06:34:39 +0000 (06:34 +0000)]
Merge "Remove cinder.exception from Brick"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 6 Aug 2013 06:10:49 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I32f1b24bec8c4484799b008a0d24515b094c5072

11 years agoRemove Storage Manager from cinder-manage
Mike Perez [Tue, 6 Aug 2013 05:37:06 +0000 (22:37 -0700)]
Remove Storage Manager from cinder-manage

Removing leftover sm_backend manage code that was missed in the previous
code removal in 40cb16784f920387ef.

Fixes: bug #1207189
Change-Id: I52c44785924f489a85e4b5f947ed9b4adf679dd8

11 years agoMerge "Adding support for iSER transport protocol"
Jenkins [Mon, 5 Aug 2013 21:40:53 +0000 (21:40 +0000)]
Merge "Adding support for iSER transport protocol"

11 years agoRemove cinder.exception from Brick
Walter A. Boring IV [Mon, 29 Jul 2013 23:21:46 +0000 (16:21 -0700)]
Remove cinder.exception from Brick

This patch fixes an issue that made
Brick's connector module dependent on cinder's
exception module.

Adds a new brick exceptions module to store brick
wide exceptions.

fixes bug #1206288

Change-Id: I070d08f07c7bc488b24b0d68531bb2e0a5461422

11 years agoAdd bin directory to flake8 when not in venv
John Griffith [Mon, 5 Aug 2013 19:43:24 +0000 (13:43 -0600)]
Add bin directory to flake8 when not in venv

If doing run_tests.sh -N -p we only check cinder*
This patch adds a directive to also check the files
in bin/

Change-Id: Ia68073e16067df978475db058c9c0693f35df81c

11 years agoAdd support for volume extension to Nexenta Systems volume driver
Mikhail Khodos [Mon, 5 Aug 2013 19:27:51 +0000 (12:27 -0700)]
Add support for volume extension to Nexenta Systems volume driver

Change-Id: Ie082076292825aaac69b0c5f8aa7351ce6ab9cb9

11 years agoGPFS Verify min release level for mmclone command
Bill Owen [Mon, 5 Aug 2013 18:32:27 +0000 (11:32 -0700)]
GPFS Verify min release level for mmclone command

The gpfs driver makes heavy use of mmclone command.  This command
was added fairly recently.  Verify that the GPFS cluster is operating
at a level that supports mmclone at startup during prerequisite
checking in check_for_setup_error.

Need to verify:
1.  That gpfs cluster is at required level
2.  That filesystem(s) are also operating at required level.

Change-Id: Ie71d0b814d77b544e1a456d110882c1a02a5b2e5
Fixes: bug #1204266
11 years agoSync gettextutils from oslo
Luis A. Garcia [Tue, 23 Jul 2013 18:53:38 +0000 (18:53 +0000)]
Sync gettextutils from oslo

The oslo changes necessary for delayed translation were refactored in
oslo. This patch set brings in the refactored changes, implemented
under the same change-id mentioned below.

Partially implements bp user-locale-api

Change-Id: I27640a3c8b255be51bc6396d238098bd25af61ec

11 years agoAdd eclipse project files to .gitignore
Luis A. Garcia [Thu, 18 Jul 2013 22:32:27 +0000 (22:32 +0000)]
Add eclipse project files to .gitignore

Like some of the other projects (nova, heat, oslo) git ignore eclipse
project files. This will remove manual steps for people developing from
eclipse.

Change-Id: Ib908c8d419072b440f5ec647bea8f13b97e48f7c

11 years agoRemove unnecessary metadata from the 3PAR drivers
Kurt Martin [Wed, 31 Jul 2013 20:56:29 +0000 (13:56 -0700)]
Remove unnecessary metadata from the 3PAR drivers

Currently, both the HP 3PAR iSCSI and FC drivers are populating
the volume and snapshot metadata field with unnecessary data that
should actually be stored on the backend. This data should not be
accessible by the user which it is today and could be updated as well.

This patch will remove all custom 3PAR data from the metadata fields.

Change-Id: I3086be3856192a27fa1db1ada89d95c290c68df7
Fixes: bug 1203144
11 years agoAdding support for iSER transport protocol
Shlomi Sasson [Mon, 17 Jun 2013 17:41:36 +0000 (20:41 +0300)]
Adding support for iSER transport protocol

DocImpact

Implements: blueprint add-iser-support-to-cinder
Change-Id: I55fb7add68151141be571cb9004389951851226b

11 years agoMerge "use 'exc_info=1' instead of import traceback"
Jenkins [Mon, 5 Aug 2013 05:06:34 +0000 (05:06 +0000)]
Merge "use 'exc_info=1' instead of import traceback"

11 years agoMerge "Set bootable flag for volume serializer"
Jenkins [Mon, 5 Aug 2013 04:08:04 +0000 (04:08 +0000)]
Merge "Set bootable flag for volume serializer"

11 years agoMerge "Update driver version to 1.1"
Jenkins [Sun, 4 Aug 2013 16:41:54 +0000 (16:41 +0000)]
Merge "Update driver version to 1.1"

11 years agoMerge "Add new persona value in the 3PAR driver"
Jenkins [Sun, 4 Aug 2013 13:31:52 +0000 (13:31 +0000)]
Merge "Add new persona value in the 3PAR driver"

11 years agoMerge "Call get_session() only when necessary"
Jenkins [Sun, 4 Aug 2013 11:19:48 +0000 (11:19 +0000)]
Merge "Call get_session() only when necessary"

11 years agoMerge "Fix volume_create()/snapshot_create() DB methods"
Jenkins [Sun, 4 Aug 2013 11:19:42 +0000 (11:19 +0000)]
Merge "Fix volume_create()/snapshot_create() DB methods"

11 years agoMerge "Execute DB API methods in a single transaction"
Jenkins [Sun, 4 Aug 2013 11:19:35 +0000 (11:19 +0000)]
Merge "Execute DB API methods in a single transaction"

11 years agoMerge "Improve DB API test coverage"
Jenkins [Sun, 4 Aug 2013 11:19:28 +0000 (11:19 +0000)]
Merge "Improve DB API test coverage"

11 years agoMerge "Remove xen storage manager tables"
Jenkins [Sun, 4 Aug 2013 11:19:21 +0000 (11:19 +0000)]
Merge "Remove xen storage manager tables"

11 years agoSet bootable flag for volume serializer
xiaoxi_chen [Thu, 1 Aug 2013 04:15:42 +0000 (12:15 +0800)]
Set bootable flag for volume serializer

In previous code we didn't set the bootable flag in volume
serializer, and even didn't check it in test. This is the
root cause for bug #1207155

This patch fixed this issue by set the bootable flag in serializer.

Fixed bug #1207155

Change-Id: I0219785aa7f30036747c230800447e99c383042c

11 years agoMerge "Ignore "volume does not exist error""
Jenkins [Sun, 4 Aug 2013 02:20:57 +0000 (02:20 +0000)]
Merge "Ignore "volume does not exist error""

11 years agoAdd new persona value in the 3PAR driver
Kurt Martin [Fri, 2 Aug 2013 22:06:31 +0000 (15:06 -0700)]
Add new persona value in the 3PAR driver

A new persona type, '12 - OpenVMS' was added to the list of valid
personas in the 3PAR drivers. This persona was introduced in the
3.1.2 MU2 firmware update on the 3PAR storage array.

DocImpact

Change-Id: Ib848938d261acfdc8a422a03668cada109e97173

11 years agoUpdate driver version to 1.1
Walter A. Boring IV [Fri, 2 Aug 2013 21:22:27 +0000 (14:22 -0700)]
Update driver version to 1.1

This patch includes bumping the driver versions for both
Fibre Channel and iSCSI to 1.1.  Included a history change
that describes the changes since 1.0.

This patch also changes the way we do clone volume.  We no
longer have to check the status of the volume clone on the 3par
as it's instantly done now since 3.1.2 MU2 firmware.

Change-Id: I541ac7f97e6d1290bac6232d6c80e8ecf3a75dda

11 years agoMerge "Tidy up the SSH call to avoid injection attacks in storwize_svc"
Jenkins [Fri, 2 Aug 2013 12:25:32 +0000 (12:25 +0000)]
Merge "Tidy up the SSH call to avoid injection attacks in storwize_svc"

11 years agoMerge "Fix pep8 and pylint violation in Nexenta volume driver"
Jenkins [Fri, 2 Aug 2013 05:30:06 +0000 (05:30 +0000)]
Merge "Fix pep8 and pylint violation in Nexenta volume driver"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 2 Aug 2013 04:33:42 +0000 (04:33 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Test tools barfs on reusage of 'id' attribute."
Jenkins [Fri, 2 Aug 2013 04:33:14 +0000 (04:33 +0000)]
Merge "Test tools barfs on reusage of 'id' attribute."

11 years agoFix pep8 and pylint violation in Nexenta volume driver
Victor Rodionov [Thu, 1 Aug 2013 13:30:54 +0000 (17:30 +0400)]
Fix pep8 and pylint violation in Nexenta volume driver

Change-Id: Iec7f37ddd0f3850cb84e1cafe223b8f503a3629c

11 years agoTest tools barfs on reusage of 'id' attribute.
Joshua Harlow [Thu, 1 Aug 2013 19:08:04 +0000 (12:08 -0700)]
Test tools barfs on reusage of 'id' attribute.

Fixes bug #1207562

Change-Id: I822d63fe909ca5d6e3f0d45ba922f4852ad97e05

11 years agoIgnore "volume does not exist error"
Victor Rodionov [Thu, 1 Aug 2013 20:17:32 +0000 (00:17 +0400)]
Ignore "volume does not exist error"

Patch to ignore "volume does not exist error" when driver is deleting volume.

Change-Id: I31645182e5495c44e67fe1add0a2e6c8222534b0

11 years agoMerge "Factorize code between nfs.py and glusterfs.py"
Jenkins [Thu, 1 Aug 2013 20:20:30 +0000 (20:20 +0000)]
Merge "Factorize code between nfs.py and glusterfs.py"

11 years agoCall get_session() only when necessary
Roman Podolyaka [Wed, 24 Jul 2013 14:13:07 +0000 (17:13 +0300)]
Call get_session() only when necessary

A Session instance should be retrieved only when it's
really needed, e. g. to make a few DB queries inside a
single transaction or to pass the session to a private
DB API method, etc. At the same time, many queries are
simple and can be expressed by the means  of auxiliary
model_query() function.

Blueprint: db-session-cleanup

Change-Id: I2ddc0cda42a84fe600c04f4624db9c2933799bfc

11 years agoFix volume_create()/snapshot_create() DB methods
Roman Podolyaka [Wed, 24 Jul 2013 13:37:48 +0000 (16:37 +0300)]
Fix volume_create()/snapshot_create() DB methods

volume_create() and snapshot_create() DB API methods create
entities and return information about them by calling
_volume_get() and snapshot_get() methods. There is no need
to create a new transaction to call the corresponding 'getter'.

Unfortunately, fixing this breaks two existing tests, which rely
on the current behaviour of these DB API methods: both volume_create()
and snapshot_create() raise exceptions, nevertheless new entities are
created.

Blueprint: db-session-cleanup

Change-Id: Idecac70893ec280c149f9227f86a6959d70c15fe

11 years agoExecute DB API methods in a single transaction
Roman Podolyaka [Mon, 22 Jul 2013 15:27:51 +0000 (18:27 +0300)]
Execute DB API methods in a single transaction

Many DB API methods do a few queries to a DB (e. g.  SELECT
and then UPDATE, or SELECT and then DELETE, etc).  By default,
a Session instance is used with autocommit=True, which means,
that each query to a DB is done in a separate transaction. This
is error-prone (as it may lead to race conditions or returning
of unexpected results) and makes rollbacks harder (if one of
transactions fail, the previous ones can not be rolled back).

This patch ensures that all DB API methods, which do a few
queries (or call private DB API methods), are executed inside
a single transaction.

Blueprint: db-session-cleanup

Change-Id: Ie6510becffdeb78048fe4a09511ab326627d3412

11 years agoImprove DB API test coverage
Roman Podolyaka [Thu, 25 Jul 2013 14:29:09 +0000 (17:29 +0300)]
Improve DB API test coverage

This patch improves the test coverage of DB API methods a bit.

Blueprint: db-session-cleanup

Change-Id: Ib4b7312b6effca771a80d6b3137005cc28cb81e4

11 years agoMerge "LVM / Block Device Drivers: Fix duplicated flags"
Jenkins [Thu, 1 Aug 2013 18:55:42 +0000 (18:55 +0000)]
Merge "LVM / Block Device Drivers: Fix duplicated flags"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 1 Aug 2013 18:10:35 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I0d2271905141d03ce5a4ef6f7da7fa7a5023fbb9

11 years agoRemove xen storage manager tables
Mike Perez [Wed, 31 Jul 2013 22:26:46 +0000 (15:26 -0700)]
Remove xen storage manager tables

This removes the unused tables sm_backend_config, sm_flavors and
sm_volume. In addition, they're removed from the database API.

Change-Id: I02ff6434c2d6928f2e2b08053f6dcb6178edd773
Fixes: bug #1206962
11 years agoRemove unused migration_* methods from db api.
Yuriy Zveryanskyy [Thu, 11 Jul 2013 11:33:14 +0000 (14:33 +0300)]
Remove unused migration_* methods from db api.

There is migration_* group of methods in cinder
db api. These methods not used by cinder, they
inherited from nova code.

Add migration script for drop unused 'migrations'
table.

blueprint db-cleanup

Change-Id: I4a352fd9acb28bb86072884438af454c86559e71

11 years agoFactorize code between nfs.py and glusterfs.py
Frederic Lepied [Tue, 23 Jul 2013 18:20:27 +0000 (11:20 -0700)]
Factorize code between nfs.py and glusterfs.py

Suppressed most duplicated code between nfs.py and glusterfs.py.

Change-Id: I8a25aa6e3b8947a1d8e75dc611fac217e3009c41
Fixes: bug #1204213
11 years agoLVM / Block Device Drivers: Fix duplicated flags
Emilien Macchi [Wed, 31 Jul 2013 14:47:37 +0000 (16:47 +0200)]
LVM / Block Device Drivers: Fix duplicated flags

- Import in lvm driver the duplicated flags from block_device driver.
- Register volume_opts in block_device drivers

Fix bug #1206944

Change-Id: Icb2c9411be060065ecf5efed293bacd6b735e299

11 years agoMerge "Fix oslo.config.cfg.NoSuchOptError when running individual tests"
Jenkins [Wed, 31 Jul 2013 14:15:58 +0000 (14:15 +0000)]
Merge "Fix oslo.config.cfg.NoSuchOptError when running individual tests"

11 years agoTidy up the SSH call to avoid injection attacks in storwize_svc
Haomai Wang [Wed, 17 Jul 2013 13:36:55 +0000 (21:36 +0800)]
Tidy up the SSH call to avoid injection attacks in storwize_svc

Let the command and arguments form up a list and avoid the extra arguments
attackers inserted to the command string

fix bug 1192971

Change-Id: I57b3fe60e64d9d0dc1ea9a18442c877be2ceece3

11 years agoMerge "Storwize/SVC: Use reserved percentage from conf."
Jenkins [Wed, 31 Jul 2013 12:05:33 +0000 (12:05 +0000)]
Merge "Storwize/SVC: Use reserved percentage from conf."

11 years agoMerge "Update to latest oslo rootwrap"
Jenkins [Wed, 31 Jul 2013 10:45:21 +0000 (10:45 +0000)]
Merge "Update to latest oslo rootwrap"

11 years agoStorwize/SVC: Use reserved percentage from conf.
Avishay Traeger [Wed, 31 Jul 2013 09:27:21 +0000 (12:27 +0300)]
Storwize/SVC: Use reserved percentage from conf.

For reserved_percentage, use the value from the configuration file
instead of 0.

Change-Id: I549822c09449f8d9fc0c8b84d56660c381bddbd5

11 years agoMerge "Pop out 'offset' and 'limit' before use for filter"
Jenkins [Wed, 31 Jul 2013 05:59:39 +0000 (05:59 +0000)]
Merge "Pop out 'offset' and 'limit' before use for filter"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 31 Jul 2013 05:59:32 +0000 (05:59 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Add more info to delete error message."
Jenkins [Wed, 31 Jul 2013 01:58:57 +0000 (01:58 +0000)]
Merge "Add more info to delete error message."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 30 Jul 2013 18:10:20 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: I2e31d6907e7499a8d2db6c16a69e8f71c45f7983

11 years agoMerge "Allow connect by FC-only or iSCSI-only systems."
Jenkins [Tue, 30 Jul 2013 08:59:54 +0000 (08:59 +0000)]
Merge "Allow connect by FC-only or iSCSI-only systems."

11 years agoMerge "Fix running of migrations tests by Jenkins gate"
Jenkins [Tue, 30 Jul 2013 06:53:47 +0000 (06:53 +0000)]
Merge "Fix running of migrations tests by Jenkins gate"

11 years agoPop out 'offset' and 'limit' before use for filter
xiaoxi_chen [Mon, 29 Jul 2013 06:21:25 +0000 (14:21 +0800)]
Pop out 'offset' and 'limit' before use for filter

In previous code of _items() from api/v{1,2}/snapshots.py,
and also the _items)_ from api/v1/volume.py.we didn't pop
out the 'offset' and 'limit' fields from HTTP get params
before we use such params for filter.This is the root cause
for bug #1205956

For non-admin user, since 'offset' and 'limit' is not in the
allowed_search_options, so the volumes.remove_invalid_options
will help to filter them out. As a result, it walks around this
bug.

But for admin user,the volumes.remove_invalid_options will not
try to filter the search_options.So for admin user, the 'limit'
will appear in search_options, then obviously get no result.

fixed bug #1205956

Change-Id: Ib1a66c9d104ac52d6eae18be7f06d02985d4c2fd

11 years agoMerge "Make unicode-to-utf8 conversion universal in ceph backup driver."
Jenkins [Mon, 29 Jul 2013 23:15:00 +0000 (23:15 +0000)]
Merge "Make unicode-to-utf8 conversion universal in ceph backup driver."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 29 Jul 2013 18:10:19 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Idf33136691295d8ff15dae48ba3b4f6b7e002bbb