]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMerge "Fix Storwize terminate_connection with no host"
Jenkins [Fri, 29 Nov 2013 08:52:46 +0000 (08:52 +0000)]
Merge "Fix Storwize terminate_connection with no host"

10 years agoMerge "Fix suppressed exceptions for migration downgrade"
Jenkins [Fri, 29 Nov 2013 08:51:13 +0000 (08:51 +0000)]
Merge "Fix suppressed exceptions for migration downgrade"

10 years agoMerge "Add chance weigher to scheduler"
Jenkins [Fri, 29 Nov 2013 03:39:35 +0000 (03:39 +0000)]
Merge "Add chance weigher to scheduler"

10 years agoFix suppressed exceptions for migration downgrade
Rushi Agrawal [Tue, 26 Nov 2013 06:18:38 +0000 (11:48 +0530)]
Fix suppressed exceptions for migration downgrade

In SQLAlchemy migration versions 009, 010 and 020, we missed
reraising exceptions while logging errors in case of a downgrade.
We don't want exceptions to pass silently. This patch fixes that.

Closes-bug: 1227881

Change-Id: Id11b1c5d2e26d208e88bb84e5b46c4b7affc3f9f

10 years agoMerge "Add volume migration code to Nexenta iSCSI volume driver"
Jenkins [Thu, 28 Nov 2013 06:38:11 +0000 (06:38 +0000)]
Merge "Add volume migration code to Nexenta iSCSI volume driver"

10 years agoMerge "Parse out '@' in volume['host'] to do discovery"
Jenkins [Thu, 28 Nov 2013 06:35:55 +0000 (06:35 +0000)]
Merge "Parse out '@' in volume['host'] to do discovery"

10 years agoMerge "Fix the wrong verification for 'readonly'"
Jenkins [Thu, 28 Nov 2013 06:32:36 +0000 (06:32 +0000)]
Merge "Fix the wrong verification for 'readonly'"

10 years agoMerge "Handle NotFound exception in snapshots API code"
Jenkins [Thu, 28 Nov 2013 04:25:23 +0000 (04:25 +0000)]
Merge "Handle NotFound exception in snapshots API code"

10 years agoFix the wrong verification for 'readonly'
zhangyanzi [Thu, 28 Nov 2013 02:02:16 +0000 (10:02 +0800)]
Fix the wrong verification for 'readonly'

A mistake verification for 'readonly', fix it, and add some tests.

Change-Id: Iea20245eef2e884cf4c0d8e62c2da4f1cd967106
Closes-Bug: #1255802

10 years agoMerge "Remove the redundant judgment for 'restore'"
Jenkins [Thu, 28 Nov 2013 00:16:27 +0000 (00:16 +0000)]
Merge "Remove the redundant judgment for 'restore'"

10 years agoParse out '@' in volume['host'] to do discovery
john-griffith [Wed, 27 Nov 2013 23:38:22 +0000 (16:38 -0700)]
Parse out '@' in volume['host'] to do discovery

The backup method of getting iscsi info is to use
iscsiadm discovery, however currently that method
just uses volume['host'] which in the case of
multi-backend will use "host@backend-name".

This will cause the discovery to fail of course, so
this change just parses out the '@' symbol if it's present
and avoids the problem in the first place.

This also beefs up the error logging and exception catching
a bit.

Parsing out the '@' symbol all the time should be safe as
the accepted valid chars for hostnames are digits, a-z and
hyphens.

Change-Id: Ic45a38bf4c56a4aec6847ab0d29e3b41d35bd3d2
Closes-Bug: #1250673

10 years agoAdd volume migration code to Nexenta iSCSI volume driver
keystone [Mon, 11 Nov 2013 17:21:30 +0000 (09:21 -0800)]
Add volume migration code to Nexenta iSCSI volume driver

Utilize ZFS-specific optimizations for direct host-to-host
volume migration

DocImpact
Implements: blueprint nexenta-iscsi-volume-migrate
Change-Id: Ib9f2fa7e1ccb93dbdbc951ddc3a0eda55cb001d5

10 years agoHandle NotFound exception in snapshots API code
john-griffith [Wed, 27 Nov 2013 21:02:48 +0000 (14:02 -0700)]
Handle NotFound exception in snapshots API code

Passing tests in the gate leave unhandled trace/error messages
for a VolumeNotFound issue.

These are caused by the test_volumes_snapshots_negative test
which requests a non-existent volume and the tests pass however
the log files are a bit messed up due to the unhandled exception.

This change just adds a try/catch block around the volume get calls
in the snapshot modules and raises HTTPNotFound as appropriate.

Change-Id: I2096f2da7c68ef7924fc8e69b2d5c2afea578512
Closes-Bug: #1255214

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 27 Nov 2013 20:45:16 +0000 (20:45 +0000)]
Merge "Imported Translations from Transifex"

10 years agoAdd chance weigher to scheduler
Stephen Mulcahy [Wed, 27 Nov 2013 10:26:03 +0000 (10:26 +0000)]
Add chance weigher to scheduler

Adds chance weigher to scheduler to allow distribution of requests
randomly between a number of volume managers.

Change-Id: I3f652caf200c406965b52b94cebb244d3bc1779a

10 years agoMerge "The param 'readonly' is incorrect checked"
Jenkins [Wed, 27 Nov 2013 10:16:56 +0000 (10:16 +0000)]
Merge "The param 'readonly' is incorrect checked"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 27 Nov 2013 06:16:11 +0000 (06:16 +0000)]
Imported Translations from Transifex

Change-Id: Icbaec16425abf1dfbeba7e3581998dbac5cc89e0

10 years agoFix Storwize terminate_connection with no host
Avishay Traeger [Tue, 26 Nov 2013 19:10:22 +0000 (21:10 +0200)]
Fix Storwize terminate_connection with no host

Nova may pass a connector to Cinder with no 'host' field, which was
causing a KeyError in the Storwize driver. This patch resolves this case
by doing the following:
1. If the volume is mapped to only 1 host, unmap it
2. If the volume was not mapped or mapped to multiple hosts, print a
   warning but don't raise an exception

Change-Id: I0ec1c24adbdfbcf1c4868b4981a2e2618d4b411c
Closes-Bug: #1244257

10 years agoMerge "Brick connector revised fix for NFS drivers"
Jenkins [Tue, 26 Nov 2013 20:41:32 +0000 (20:41 +0000)]
Merge "Brick connector revised fix for NFS drivers"

10 years agoMerge "GlusterFS: Set correct permissions for volume file created via clone"
Jenkins [Tue, 26 Nov 2013 17:56:18 +0000 (17:56 +0000)]
Merge "GlusterFS: Set correct permissions for volume file created via clone"

10 years agoMerge "Fix docstring for Snapshot model"
Jenkins [Tue, 26 Nov 2013 11:56:00 +0000 (11:56 +0000)]
Merge "Fix docstring for Snapshot model"

10 years agoMerge "Pull latest service module from Oslo"
Jenkins [Tue, 26 Nov 2013 11:55:52 +0000 (11:55 +0000)]
Merge "Pull latest service module from Oslo"

10 years agoRemove the redundant judgment for 'restore'
zhangyanzi [Mon, 25 Nov 2013 11:13:52 +0000 (19:13 +0800)]
Remove the redundant judgment for 'restore'

In the function 'restore', there is redundant judgment for the body, it
should be removed.

Change-Id: Icfc5ae20141fad9d72de227cf5c06ca8504bd22c
Closes-Bug: 1254671

10 years agoGlusterFS: Set correct permissions for volume file created via clone
Eric Harney [Mon, 25 Nov 2013 21:39:03 +0000 (16:39 -0500)]
GlusterFS: Set correct permissions for volume file created via clone

This is currently done when creating a new volume from scratch,
but not when cloning a new volume.

Closes-Bug: #1254768
Change-Id: I8506dc0824bacdb6cc42b4cadd41c2cad3a74b5b

10 years agoThe param 'readonly' is incorrect checked
zhangyanzi [Mon, 25 Nov 2013 11:33:49 +0000 (19:33 +0800)]
The param 'readonly' is incorrect checked

In the function os-update_readonly_flag, the param 'readonly' is incorrect
checked, without the param in request, i think it should raise exception
with message like "Must specify readonly in request."

Change-Id: I19e15e988ffa2d093d374f6a33ce94d45ffe2c30
Closes-bug: 1254682

10 years agoFix docstring for Snapshot model
huangtianhua [Mon, 25 Nov 2013 09:55:08 +0000 (17:55 +0800)]
Fix docstring for Snapshot model

"Represents a block storage device that can be attached to a VM." as the
description of model Snapshot is incorrect.

Change-Id: I1d7c985869f0829b9305a18a3570928a9da40519
Closes-Bug: #1254635

10 years agoMerge "To fix test_get_dss_rp in test_vmware_vmdk.py"
Jenkins [Mon, 25 Nov 2013 09:19:21 +0000 (09:19 +0000)]
Merge "To fix test_get_dss_rp in test_vmware_vmdk.py"

10 years agoMerge "Remove dead code from test_get_volume_stats()"
Jenkins [Mon, 25 Nov 2013 09:19:05 +0000 (09:19 +0000)]
Merge "Remove dead code from test_get_volume_stats()"

10 years agoMerge "Add greenthread.sleep() to parent wait()"
Jenkins [Mon, 25 Nov 2013 09:02:40 +0000 (09:02 +0000)]
Merge "Add greenthread.sleep() to parent wait()"

10 years agoMerge "Update openstack/common/periodic_task"
Jenkins [Mon, 25 Nov 2013 08:51:17 +0000 (08:51 +0000)]
Merge "Update openstack/common/periodic_task"

10 years agoMerge "Pass the size when fetching image in xenapi driver"
Jenkins [Mon, 25 Nov 2013 05:31:20 +0000 (05:31 +0000)]
Merge "Pass the size when fetching image in xenapi driver"

10 years agoMerge "NetApp fix free space as zero during 1st vol stats update"
Jenkins [Mon, 25 Nov 2013 05:31:04 +0000 (05:31 +0000)]
Merge "NetApp fix free space as zero during 1st vol stats update"

10 years agoMerge "Fix docstring for _migrate_volume_completion"
Jenkins [Mon, 25 Nov 2013 05:30:33 +0000 (05:30 +0000)]
Merge "Fix docstring for _migrate_volume_completion"

10 years agoMerge "Initialize and terminate connection raise 500 err"
Jenkins [Mon, 25 Nov 2013 05:30:25 +0000 (05:30 +0000)]
Merge "Initialize and terminate connection raise 500 err"

10 years agoMerge "Migrate volume should check para "host" in request"
Jenkins [Mon, 25 Nov 2013 05:30:18 +0000 (05:30 +0000)]
Merge "Migrate volume should check para "host" in request"

10 years agoMerge "Fix ./run_tests.sh -V --virtual-env-name"
Jenkins [Mon, 25 Nov 2013 04:56:54 +0000 (04:56 +0000)]
Merge "Fix ./run_tests.sh -V --virtual-env-name"

10 years agoMerge "Ensure 'status' in update_snapshot_status"
Jenkins [Mon, 25 Nov 2013 02:32:52 +0000 (02:32 +0000)]
Merge "Ensure 'status' in update_snapshot_status"

10 years agoMerge "Remove unused code in test_admin_actions.py"
Jenkins [Sun, 24 Nov 2013 10:31:24 +0000 (10:31 +0000)]
Merge "Remove unused code in test_admin_actions.py"

10 years agoEnsure 'status' in update_snapshot_status
zhangyanzi [Fri, 22 Nov 2013 08:41:39 +0000 (16:41 +0800)]
Ensure 'status' in update_snapshot_status

The function os-update_snapshot_status doesn't check whether the param
"status" is in request body. It throws 500 error. We should catch the
KeyError and return 400 (HTTPBadRequest) instead.

Change-Id: If3775e3c0299cf0edbdda5081a6633b38462011b

10 years agoUpdate openstack/common/periodic_task
Michael Still [Sat, 16 Nov 2013 11:33:55 +0000 (22:33 +1100)]
Update openstack/common/periodic_task

The following commits are in this update:

1771a77 Adjust import order according to PEP8 imports rule
4bfb7a2 Apply six for metaclass
0ea069e Removed calls to locals()

Change-Id: Ied20ce735af79b52e7674a3dfe3b097b84b61533

10 years agoInitialize and terminate connection raise 500 err
huangtianhua [Fri, 22 Nov 2013 09:02:32 +0000 (17:02 +0800)]
Initialize and terminate connection raise 500 err

Initialize and terminate connection should check whether "connector" is
in request body. It throws 500 error if "connector" is not present. We
should catch the KeyError and transfer it to 400 (HTTPBadRequest)
instead of.

Closes-Bug: #1253944
Change-Id: If38419592701c8a14df52f94fd46ed0fc7a17e04

10 years agoFix docstring for _migrate_volume_completion
huangtianhua [Fri, 22 Nov 2013 07:40:11 +0000 (15:40 +0800)]
Fix docstring for _migrate_volume_completion

"Migrate a volume to the specified host." as the description of
_migrate_volume_completion func is incorrect.

Closes-Bug: #1253910
Change-Id: Ica944d9a7fa962ff56a9f0107ac1519623d2e551

10 years agoMigrate volume should check para "host" in request
huangtianhua [Fri, 22 Nov 2013 07:22:07 +0000 (15:22 +0800)]
Migrate volume should check para "host" in request

The server doesn't check whether the parameter "host" is in request
body. So the 500 error has been thrown.

We should catch the KeyError and transfer the KeyError to
400 (HTTPBadRequest) instead of 500.

Closes-Bug: #1253904
Change-Id: I3fb07113816a87f284b47e32bacd57f78a32676c

10 years agoContinue to delete volumes that DNE in rbd backend
Mike Perez [Sat, 23 Nov 2013 18:50:15 +0000 (10:50 -0800)]
Continue to delete volumes that DNE in rbd backend

If a volume has already been deleted in the RBD backend, catch the
exception and let Cinder continue removing it in the database.

Closes-Bug: #1254318
Change-Id: I99b591ce78d82c6eaabff0459d9c523e85c8e65f

10 years agoMerge "Add default quota class into DB during migration"
Jenkins [Sat, 23 Nov 2013 01:31:14 +0000 (01:31 +0000)]
Merge "Add default quota class into DB during migration"

10 years agoMerge "Using HttpNfcLease to transfer vmdk files."
Jenkins [Sat, 23 Nov 2013 01:24:15 +0000 (01:24 +0000)]
Merge "Using HttpNfcLease to transfer vmdk files."

10 years agoPull latest service module from Oslo
Zhiteng Huang [Thu, 21 Nov 2013 09:02:23 +0000 (17:02 +0800)]
Pull latest service module from Oslo

Get latest service module from Oslo to prepare for multi-process API service implementation.
Below are the commits included in this pull.

Changes being pulled into in service module are:
e7bc8c9 2013-11-20 | Merge "os._exit in _start_child may cause unexpected exception"
96a2d4e 2013-11-07 | os._exit in _start_child may cause unexpected exception
1771a77 2013-11-05 | Adjust import order according to PEP8 imports rule
3110c0f 2013-10-17 | Use multiprocessing.Event to ensure services have started
b5fba9e 2013-09-18 | Move comment in service.py to correct location
11cc74f 2013-08-26 | Fixes issue with SUGHUP in services on Windows
825ace5 2013-06-17 | Add service restart function in oslo-incubator
c935d1c 2013-07-16 | Merge "Allow launchers to be stopped multiple times"
dc8aa79 2013-07-08 | Allow launchers to be stopped multiple times
1a2df89 2013-06-25 | Enable H302 hacking check
52e857a 2013-06-19 | Ignore any exceptions from rpc.cleanup().
5518ad3 2013-05-16 | Add graceful service shutdown support to Launcher

And these dependent modules
 - cinder/openstack/common/eventlet_backdoor.py
    * 1dcc747 2013-07-15 | Fix stylistic problems with help text
    * 1a2df89 2013-06-25 | Enable H302 hacking check
    * c7c55b2 2013-06-20 | Improve usability when backdoor_port is nonzero
 - cinder/openstack/common/gettextutils.py
    * 3970d46 2013-11-02 | Fix typos in oslo
    * 88db9c8 2013-10-03 | When translating if no locale is given use default locale
 - cinder/openstack/common/jsonutils.py
    * 3d7504b 2013-09-23 | Ensure that Message objects will be sent via RPC in unicode format
    * 1807d32 2013-08-22 | jsonutils: make types py3 compatible
    * bdef862 2013-08-22 | jsonutils: do not require xmlrpclib
    * ded9bd6 2013-08-04 | Make dependency on netaddr optional
    * 7b7566b 2013-06-25 | Add netaddr.IPAddress support to to_primitive()
 - cinder/openstack/common/local.py
    * cb2a2b6 2013-06-28 | Modify local.py to not be dependent on Eventlet
    * 547ab34 2013-03-11 | Fix Copyright Headers - Rename LLC to Foundation
 - cinder/openstack/common/log.py
    * a82e889 2013-11-14 | Merge "Do not name variables as builtins"
    * 2251cb5 2013-11-13 | Do not name variables as builtins
    * 25c5854 2013-11-13 | Adds admin_password as key to be sanitized when logging
    * cbfded9 2013-11-11 | Default iso8601 logging to WARN
    * 76b0cd1 2013-11-04 | Add mask password impl from other projects
 - cinder/openstack/common/loopingcall.py
    * 1a2df89 2013-06-25 | Enable H302 hacking check
 - cinder/openstack/common/threadgroup.py
    * 9d3c34b 2013-10-25 | Add a link method to Thread
    * 1a2df89 2013-06-25 | Enable H302 hacking check
 - cinder/openstack/common/timeutils.py
    * f3b5f17 2013-11-12 | Add helper method total_seconds in timeutils.py
    * 53ebd30 2013-10-18 | python3: use six.text_types for unicode()
    * 3bc6f79 2013-09-19 | Fix timeutils.set_override_time not defaulting to current wall time
    * af76064 2013-08-29 | Optimize timeutils.utcnow_ts()
    * df3f2ba 2013-07-26 | BaseException.message is deprecated since Python 2.6
    * d28fa69 2013-06-27 | python3: Add python3 compatibility.

Partial bp: multi-process-api-service

Change-Id: Ifd25eae9eb2d6ae53bcf1665c3d5b7db4144433c

10 years agoAdd greenthread.sleep() to parent wait()
scott-dangelo [Fri, 22 Nov 2013 16:28:07 +0000 (16:28 +0000)]
Add greenthread.sleep() to parent wait()

Add an eventlet.greenthread.sleep() to wait() to keep
cinder-volume parent from looping after catching SIGTERM
and hogging the CPU. This was already added to the running
state but is missing from the SIGTERM caught state when
the parent waits to reap the child.

Change-Id: Ia871e31db5bf9ec4e86f926f8f6c4f0f4ecb7925
Closes-Bug: #1254089

10 years agoFix ./run_tests.sh -V --virtual-env-name
Eric Harney [Fri, 22 Nov 2013 15:13:58 +0000 (10:13 -0500)]
Fix ./run_tests.sh -V --virtual-env-name

Currently if --virtual-env-name is specified, the tests fail
because it still creates .venv/ but then looks in the specified
location to use the venv.

This makes --virtual-env-name work as expected.

Change-Id: I036cd08f7b7b9dc87e7012f8dd198a26375297a2

10 years agoPass the size when fetching image in xenapi driver
Xavier Queralt [Fri, 22 Nov 2013 09:39:37 +0000 (10:39 +0100)]
Pass the size when fetching image in xenapi driver

In commit 6e287c0f2bb7d4994d50f1763f412277e4dac6f7 the fetch_to_raw
method was changed to accept the volume size so it can fail when the
image doesn't fit in the destination volume. In this commit we also
updated all the volume drivers to pass the volume size to that method so
it could perform the check. The xenapi driver missed that change.

This commit updates the xenapi driver to pass the volume size when
fetching the image to enable the introduced check.

Change-Id: I89bc4b3b1c1e6b06f5c529166cf9ffa1fe600c96
Related-Bug: #1235358

10 years agoMerge "Add support for extend volume in GPFS vol driver"
Jenkins [Fri, 22 Nov 2013 09:06:49 +0000 (09:06 +0000)]
Merge "Add support for extend volume in GPFS vol driver"

10 years agoRemove unused code in test_admin_actions.py
huangtianhua [Fri, 22 Nov 2013 08:21:19 +0000 (16:21 +0800)]
Remove unused code in test_admin_actions.py

Change-Id: I66fa378005d0e8b181274a47b1746a1fe787e716
Closes-Bug: #1253931

10 years agoMerge "Fix typo in cinder.volume.API."
Jenkins [Fri, 22 Nov 2013 07:49:29 +0000 (07:49 +0000)]
Merge "Fix typo in cinder.volume.API."

10 years agoMerge "Don't do glance v2 calls when config is set to v1"
Jenkins [Fri, 22 Nov 2013 07:07:45 +0000 (07:07 +0000)]
Merge "Don't do glance v2 calls when config is set to v1"

10 years agoMerge "Remove suffixes from LVM brick test vgs output"
Jenkins [Fri, 22 Nov 2013 06:16:25 +0000 (06:16 +0000)]
Merge "Remove suffixes from LVM brick test vgs output"

10 years agoMerge "Add valid check and unit tests on quota class"
Jenkins [Fri, 22 Nov 2013 05:06:05 +0000 (05:06 +0000)]
Merge "Add valid check and unit tests on quota class"

10 years agoMerge "Create snapshot throws 500 Internal Error"
Jenkins [Fri, 22 Nov 2013 05:06:02 +0000 (05:06 +0000)]
Merge "Create snapshot throws 500 Internal Error"

10 years agoMerge "GlusterFS: Synchronize operations that manipulate qcow2 data"
Jenkins [Fri, 22 Nov 2013 03:08:19 +0000 (03:08 +0000)]
Merge "GlusterFS: Synchronize operations that manipulate qcow2 data"

10 years agoMerge "Subclass vendor specific exceptions."
Jenkins [Fri, 22 Nov 2013 03:02:15 +0000 (03:02 +0000)]
Merge "Subclass vendor specific exceptions."

10 years agoAdd support for extend volume in GPFS vol driver
Bill Owen [Mon, 18 Nov 2013 22:52:00 +0000 (15:52 -0700)]
Add support for extend volume in GPFS vol driver

Add support for extend volume support to the GPFS volume
driver.

Ensure that requested volume size is implemented for each
of the volume creation paths.

Replace instances where units.GiB could be used but was not.

Implements: blueprint gpfs-extend-volume-support
Change-Id: I79295205f4147fca109f5cb59497a6e1fbe6d296

10 years agoRemove dead code from test_get_volume_stats()
Jon Bernard [Fri, 15 Nov 2013 22:38:31 +0000 (17:38 -0500)]
Remove dead code from test_get_volume_stats()

The _emulate_vgs_execute() routine is never called because the function
that calls it (get_all_volume_groups) is overridden to return fake
output without executing vgs.

Change-Id: I3d3f536f7d85128547dc9e758e3930412ebed121

10 years agoRemove suffixes from LVM brick test vgs output
Jon Bernard [Tue, 19 Nov 2013 17:06:52 +0000 (12:06 -0500)]
Remove suffixes from LVM brick test vgs output

When fake_execute() is called to retrieve volume group information, the
--nosuffix flag is passed but ignored.  This patch honors the nosuffix
flag and removes the unit suffix from the volume group sizes in the
returned output.

Change-Id: I45f41bc58f4ffb4bd527336c0f760350cff7c355

10 years agoMerge "LVM: Activate source LV before cloning from it"
Jenkins [Thu, 21 Nov 2013 22:56:06 +0000 (22:56 +0000)]
Merge "LVM: Activate source LV before cloning from it"

10 years agoSubclass vendor specific exceptions.
John Griffith [Mon, 11 Nov 2013 21:57:44 +0000 (14:57 -0700)]
Subclass vendor specific exceptions.

Up until now drivers have been able to define their
own custom exception classes.  In most cases these are
inherited from either a native python exception class
or at best the base cinder exception class.

The problem with this is that it makes it very difficult
for higher layers (such as volume manager) to do any intelligent
exception handling and the base Cinder.exception class is too broad.

This change takes the first step in cleaning this up.  We create
new exception classes for all drivers to inherit from:
  VolumeDriverException
  VolumeBackendAPIException
  BackupDriverException

This still allows the freedom to create custom exceptions for a
particular driver, however it also gives us a common exception
class to catch and check in higher levels.  Further refinement
and standardization will be helpful going forward but this
should give us a good start.

Change-Id: I8c2ca4eecf7a64a82846d6d24fc0239db086237e

10 years agoDon't do glance v2 calls when config is set to v1
Sam Morrison [Tue, 19 Nov 2013 04:20:05 +0000 (15:20 +1100)]
Don't do glance v2 calls when config is set to v1

Fixes bug 1252549

Change-Id: I6d9509bfecd2f73040a0ad27aff8fc5f6fd0a899

10 years agoLVM: Activate source LV before cloning from it
Eric Harney [Mon, 18 Nov 2013 18:42:37 +0000 (13:42 -0500)]
LVM: Activate source LV before cloning from it

LVM may be configured to not automatically activate
thin-provisioned LVs.

Ensure they are activated when performing a clone, otherwise
dd will fail as the device does not exist in /dev/mapper/.

Closes-Bug: #1252423

Change-Id: Ibcb946ffe7804b1976bf1b1863c48340c8cc7fd5

10 years agoAdd default quota class into DB during migration
Jay S. Bryant [Sat, 16 Nov 2013 01:01:58 +0000 (19:01 -0600)]
Add default quota class into DB during migration

For some time now use_default_quota_class has been the
default setting for Cinder.  Cinder, however, has not been putting
any defaults for the default quota class into the database.  This
resulted in any command that queried for the default quotas to cause
the message "Deprecated: Default quota for resource: <resource> is set
by the default quota flag: <quota flag>, it is now deprecated.  Please use
the default quota class for default quota."

This commit resolves this issue by setting the default value for volumes,
snapshots and gigabytes in the quota_class table at migration time if there
is not already a class_name of 'default' in the quota_classes table.

Unit tests are included with this commit.

Closes-bug 1233763
Change-Id: I457ed8a9b78492eda22e31dfc198b2ee051d3ece

10 years agoTo fix test_get_dss_rp in test_vmware_vmdk.py
Vipin Balachandran [Wed, 13 Nov 2013 16:39:37 +0000 (22:09 +0530)]
To fix test_get_dss_rp in test_vmware_vmdk.py

The test "test_get_dss_rp" in test_vmware_vmdk.py is not testing
the positive case as intended. Rather, it tests the negative case
(no datastores) which is already covered by
"test_get_dss_rp_without_datastores".

Change-Id: I5b4802e22218217e0338fc721fc0ce1efeaee4f1
Closes-Bug: #1251126

10 years agoFix typo in cinder.volume.API.
Takashi NATSUME [Wed, 20 Nov 2013 01:39:44 +0000 (10:39 +0900)]
Fix typo in cinder.volume.API.

'_valid_availabilty_zone' --> '_valid_availability_zone'

Change-Id: Ib79772039d663f0eb4fc8994cc8edc5154d75a02
Closes-Bug: #1252915

10 years agoCreate snapshot throws 500 Internal Error
huangtianhua [Mon, 18 Nov 2013 08:58:45 +0000 (16:58 +0800)]
Create snapshot throws 500 Internal Error

The server doesn't check whether the parameter "volume_id" is in request body.
So the 500 error has been thrown.

We should catch the KeyError and transfer the KeyError to 400(HTTPBadRequest)
instead of 500.

Change-Id: I8a1dde1fd6ed820b39995af434efacc2a27c9604
Closes-Bug: #1252179

10 years agoFixes inappropriate error message.
huangtianhua [Mon, 18 Nov 2013 07:55:32 +0000 (15:55 +0800)]
Fixes inappropriate error message.

"Volume cannot be deleted while migrating" as error message in
create_snapshot is inappropriate while volume is migrating.

Change-Id: I6cfaf312f9b1edbf4e54f737664290d6ab3b6332
Closes-Bug: #1252175

10 years agoMerge "Check only our VG name when testing if VG exists"
Jenkins [Mon, 18 Nov 2013 04:51:30 +0000 (04:51 +0000)]
Merge "Check only our VG name when testing if VG exists"

10 years agoNetApp fix free space as zero during 1st vol stats update
Navneet Singh [Sun, 17 Nov 2013 21:08:07 +0000 (02:38 +0530)]
NetApp fix free space as zero during 1st vol stats update

NetApp clustered ontap drivers report space as zero
till first 60 seconds of driver start. This is causing
discomfort for some performance sensitive deployements.
This was due to async nature of the NetApp stats collection job.
Job is changed to sync at driver start to improve customer
experience.

Change-Id: I7d5cbf590897a0d328ece3a60516c92c0ad0ee7f
Closes-bug: #1253660

10 years agoMerge "Use cached volumes in REST API extensions"
Jenkins [Sat, 16 Nov 2013 07:27:37 +0000 (07:27 +0000)]
Merge "Use cached volumes in REST API extensions"

10 years agoMerge "Enable object caching in cinder REST API requests"
Jenkins [Sat, 16 Nov 2013 06:40:17 +0000 (06:40 +0000)]
Merge "Enable object caching in cinder REST API requests"

10 years agoAdd valid check and unit tests on quota class
ling-yun [Mon, 28 Oct 2013 07:38:35 +0000 (15:38 +0800)]
Add valid check and unit tests on quota class

1.Cinder quota class hard_limit’s value should larger than -1 (-1 is a flag
value for unlimited).
2.Add unit tests for quota class.

Closes-bug: #1245360

Change-Id: Ie483db1bdbd4fac875de26abab8ebebd96f4938b

10 years agoGlusterFS: Synchronize operations that manipulate qcow2 data
Eric Harney [Thu, 14 Nov 2013 20:51:15 +0000 (15:51 -0500)]
GlusterFS: Synchronize operations that manipulate qcow2 data

Operations that modify qcow2 chains or the GlusterFS driver's
snapshot info file should use locking so that more than one thread
cannot run these operations at the same time.

Without this it is possible for multiple threads to concurrently
modify snapshot information resulting in an incomplete snapshot
chain.

Closes-Bug: #1251425

Change-Id: I93c6ffecd9aec38560cb19085243390b9120b363

10 years agoCheck only our VG name when testing if VG exists
Eric Harney [Thu, 14 Nov 2013 18:29:42 +0000 (13:29 -0500)]
Check only our VG name when testing if VG exists

Rather than calling "vgs" we should just call
"vgs <cinder-vg-name>" which returns only information about the VG
we are querying.

Also hardens test command string matching to error on unexpected
calls.

Change-Id: I25580e34b6589e161a51274f22dbb9ed922e43ed

10 years agoMerge "Remove dup of LVMISCSIDriver in LVMISERDriver"
Jenkins [Thu, 14 Nov 2013 15:49:14 +0000 (15:49 +0000)]
Merge "Remove dup of LVMISCSIDriver in LVMISERDriver"

10 years agoMerge "Update quota-set throw 500 error"
Jenkins [Thu, 14 Nov 2013 15:49:06 +0000 (15:49 +0000)]
Merge "Update quota-set throw 500 error"

10 years agoMerge "Adds extend volume to Dell EqualLogic Driver"
Jenkins [Thu, 14 Nov 2013 15:38:32 +0000 (15:38 +0000)]
Merge "Adds extend volume to Dell EqualLogic Driver"

10 years agoUpdate quota-set throw 500 error
ling-yun [Mon, 11 Nov 2013 14:00:03 +0000 (22:00 +0800)]
Update quota-set throw 500 error

The server doesn't check whether the parameter "quota_set" or
"quota_class_set" is in request
body.So the 500 error has been thrown.

We should catch the KeyError and transfer the KeyError to
400(HTTPBadRequest) instead of 500.

Change-Id: I01260c77efa50324f3d203888689cdb1e94d2c21
Closes-Bug: #1249971

10 years agoUsing HttpNfcLease to transfer vmdk files.
Subramanian Neelakantan [Fri, 11 Oct 2013 03:24:18 +0000 (08:54 +0530)]
Using HttpNfcLease to transfer vmdk files.

The current VMware driver supported only "sparse" and "preallocated"
vmware_disktype property set in a "vmdk" glance image. Both of these were just
copied over as *-flat.vmdk files into the vmfs or nfs file system of the
underlying datastore. This was used during copy_image_to_volume() api.
Unfortunately for a vsan datastore this work flow breaks since there is no
access to the flat vmdk file in the underlying datastore.

This patch introduces a new vmware_disktype for a glance image called
"streamOptimized". This is a format generated when a VM/vApp is exported using
the HttpNfc APIs. AS the name suggests this is a highly optimized format for
streaming in chunks and thus would result in much faster upload / download
speeds. The driver's copy_volume_to_image() implementation now always uploads
the vmdk contents using HttpNfc api so that the glance image ends up in the
"streamOptimized" disk type. Also the driver's copy_image_to_volume()
implementation now understands a "streamOptmized" disk type and uses HttpNfc to
import that vmdk into a backing VM.

Note that the same "streamOptmized" glance image format will also be supported
by VMware nova driver. This change is in a different patch -
https://review.openstack.org/#/c/53976/

Patch Set 4: Removing changes to requirements.txt that got in by mistake.
Patch Set 5: Fixing a small bug around progress updates.
Patch Set 6: Addressing comments from Avishay.

Fixes bug: 1229998

Change-Id: I6b55945cb61efded826e0bcf7e2a678ebbbbd9d3

10 years agoMerge "Nexenta NFS driver refactoring"
Jenkins [Thu, 14 Nov 2013 06:02:04 +0000 (06:02 +0000)]
Merge "Nexenta NFS driver refactoring"

10 years agoMerge "Remove the use of common.uuidutils.gen_uuid"
Jenkins [Thu, 14 Nov 2013 05:22:09 +0000 (05:22 +0000)]
Merge "Remove the use of common.uuidutils.gen_uuid"

10 years agoAdds extend volume to Dell EqualLogic Driver
Jacob M. Jacob [Thu, 14 Nov 2013 00:02:37 +0000 (18:02 -0600)]
Adds extend volume to Dell EqualLogic Driver

Adds extend_volume support to the Dell EqualLogic Driver

Change-Id: I416c73248f1813a805dcca4d70ad6cbc91d78f7d
Implements: blueprint eql-extend-vol-support

10 years agoMerge "Don't use deprecated module commands"
Jenkins [Wed, 13 Nov 2013 23:31:03 +0000 (23:31 +0000)]
Merge "Don't use deprecated module commands"

10 years agoRemove the use of common.uuidutils.gen_uuid
John Griffith [Wed, 13 Nov 2013 22:29:32 +0000 (15:29 -0700)]
Remove the use of common.uuidutils.gen_uuid

There's a movement to remove gen_uuid from the
openstack common.  This change removes it's use
from Cinder and just puts the call inline.

Change-Id: I07329bab9553e15e498ddbda3848d50b8f48fd53

10 years agoMerge "Do not allow bad keys while updating quota"
Jenkins [Wed, 13 Nov 2013 16:05:29 +0000 (16:05 +0000)]
Merge "Do not allow bad keys while updating quota"

10 years agoMerge "Support volume_readonly_update using XML format"
Jenkins [Wed, 13 Nov 2013 10:48:52 +0000 (10:48 +0000)]
Merge "Support volume_readonly_update using XML format"

10 years agoMerge "Nexenta iSCSI driver: extend volume stats of _update_volume_stats"
Jenkins [Wed, 13 Nov 2013 09:06:32 +0000 (09:06 +0000)]
Merge "Nexenta iSCSI driver: extend volume stats of _update_volume_stats"

10 years agoMerge "Remove duplication of ISCSIDriver in ISERDriver"
Jenkins [Wed, 13 Nov 2013 09:06:29 +0000 (09:06 +0000)]
Merge "Remove duplication of ISCSIDriver in ISERDriver"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 13 Nov 2013 07:36:47 +0000 (07:36 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fail when image is bigger than the volume"
Jenkins [Wed, 13 Nov 2013 06:50:53 +0000 (06:50 +0000)]
Merge "Fail when image is bigger than the volume"

10 years agoMerge "Retrieve volume image metadata using single query"
Jenkins [Wed, 13 Nov 2013 06:50:50 +0000 (06:50 +0000)]
Merge "Retrieve volume image metadata using single query"

10 years agoMerge "Add call to retrieve image metadata for volumes in bulk"
Jenkins [Wed, 13 Nov 2013 06:50:48 +0000 (06:50 +0000)]
Merge "Add call to retrieve image metadata for volumes in bulk"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 13 Nov 2013 06:16:21 +0000 (06:16 +0000)]
Imported Translations from Transifex

Change-Id: I8893400d375faefcb59c69f4ed729ecf5e8fe7d3

10 years agoMerge "Nexenta: Remove snapshot after volume-clone deletion."
Jenkins [Wed, 13 Nov 2013 06:13:47 +0000 (06:13 +0000)]
Merge "Nexenta: Remove snapshot after volume-clone deletion."

10 years agoDo not allow bad keys while updating quota
Abhijeet Malawade [Wed, 6 Nov 2013 11:20:54 +0000 (03:20 -0800)]
Do not allow bad keys while updating quota

Raise 400 (bad request) error instead of 200 (ok) if bad keys
are passed to the update quota request

Closes-Bug: #1248815

Change-Id: Iaefaa4961dd3783dfab15f843cbb2dcb12195a7d

10 years agoMerge "RequestContext initialization failed in cinder."
Jenkins [Wed, 13 Nov 2013 05:56:27 +0000 (05:56 +0000)]
Merge "RequestContext initialization failed in cinder."