]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "Update cloned volumes QoS settings." into stable/grizzly
Jenkins [Fri, 31 May 2013 00:43:10 +0000 (00:43 +0000)]
Merge "Update cloned volumes QoS settings." into stable/grizzly

11 years agoUpdate cloned volumes QoS settings.
John Griffith [Sat, 25 May 2013 23:52:30 +0000 (17:52 -0600)]
Update cloned volumes QoS settings.

The SolidFire device inherits all settings (including QoS) from
the parent on a clone.  This meant that although we were expecting
QoS to be updated when a clone was issued with a different Volume
Type than the parent volume it was never acted upon.

This change fixes that bug by simply adding the *new* qos settings
to the ModifyVolume call after cloning.

Fixes bug: 1184235

Change-Id: I81786a07312027d543b9f06e54dfbf57e6085bc9
(cherry picked from commit 37fa1ef51ef389ed7ac0affb1dd59ba680ca52df)

11 years agoCatch and report errors from copy image to volume.
John Griffith [Mon, 27 May 2013 20:04:56 +0000 (20:04 +0000)]
Catch and report errors from copy image to volume.

The copy image-to-volume errors weren't being handled
properly and the result was the lvcreate being retried
even though the lvcreate itself succeeded.

The result of this was misleading errors stating that
the volume couldn't be created because it already existed
(which it did, becuase the create itself was succesful).

Fixes bug: 1183283

Change-Id: I23f05fe64475c3efe285e05a258c4625b801375c
(cherry picked from commit b2371aeff9eccbd28952dd0f568da26722dc58f7)

11 years agoMerge "Fix ownership transfer when cloning with SolidFire" into stable/grizzly
Jenkins [Wed, 29 May 2013 00:10:39 +0000 (00:10 +0000)]
Merge "Fix ownership transfer when cloning with SolidFire" into stable/grizzly

11 years agoMerge "Use an SSH pool to manage SSH connection" into stable/grizzly
Jenkins [Sun, 26 May 2013 09:29:49 +0000 (09:29 +0000)]
Merge "Use an SSH pool to manage SSH connection" into stable/grizzly

11 years agoFix ownership transfer when cloning with SolidFire
Mathieu Gagné [Thu, 23 May 2013 19:26:44 +0000 (15:26 -0400)]
Fix ownership transfer when cloning with SolidFire

When cloning a volume with SolidFire driver, the owner of
the cloned volume is not set correctly in SolidFire when there is
a transfer of ownership.

This results in inconsistent states where the cloned volume
is owned by the new tenant in Cinder but SolidFire thinks it is still
owned by the original volume's tenant.

This patch adds the newAccountID parameter to all CloneVolume calls.

If the cloned volume is owned by the same tenant, newAccountID will
be set to the same value as the original SolidFire volume. There
will be no change of ownership done by the cloning process in SolidFire.

If the cloned volume should be owned by a different tenant, newAccountID
will be set to the appropriate SolidFire account corresponding
to the new tenant. If the SolidFire account does not exist already,
it will be created.

Fixes: bug #1183521
Change-Id: I622ca2962478298e3e0c5a26866e39919805075f
(cherry picked from commit af023fe0cce3b8ef2b90ec37f1bc49feb17eac83)

11 years agoMerge "cinder volume service keeps retrying even code exception" into stable/grizzly
Jenkins [Thu, 23 May 2013 12:30:51 +0000 (12:30 +0000)]
Merge "cinder volume service keeps retrying even code exception" into stable/grizzly

11 years agoDeprecating old dot path locations for Folsom configs
Mike Perez [Sat, 13 Apr 2013 23:43:16 +0000 (16:43 -0700)]
Deprecating old dot path locations for Folsom configs

In grizzly, we made a lot of structure changes. This deprecates the old
locations so the dot paths in old configs still work but give warnings
in the logs of what needs to be updated.

Fixes: bug #1168573
Change-Id: I7b1754b0e59a923afa623871fc3be07362bf1bdc
(cherry picked from commit c355d68a868e9232a80c2f22557ffe228fcb4f8f)

11 years agoUse an SSH pool to manage SSH connection
zhangchao010 [Fri, 10 May 2013 12:08:45 +0000 (20:08 +0800)]
Use an SSH pool to manage SSH connection

Use an SSH pool to hold all SSH clients,this makes driver work when
mutiple requests received in short time.Rewrite method create() and
do not set socket timeout to be None because "None" leads to closing
ssh client blocking.

This patch alse fix:
make "Not format" to be "Notformat" in function _find_lun.
Change the type of "free_capacity_gb" fron string to be float.Because
type string will lead to cinder scheduler filter failure.

Fixes bug: 1162251
Change-Id: I7d2270bb23ccfec27e618a686ab8c278a72f2244

11 years agoBump stable/grizzly next version to 2013.1.2
Alan Pevec [Thu, 9 May 2013 21:36:57 +0000 (23:36 +0200)]
Bump stable/grizzly next version to 2013.1.2

Change-Id: I130528ae946e8888d35c25e468b4ea6ac29db0cf

11 years agocinder volume service keeps retrying even code exception
Yang Yu [Wed, 17 Apr 2013 08:00:07 +0000 (16:00 +0800)]
cinder volume service keeps retrying even code exception

Make sure that ProcessLauncher does not try to restart the failed
service. And make sure the ProcessLauncher exits, when the number
of the failed services equal the number of total services.

Fixes: bug 1167841
Change-Id: I818c754534c18a62d292e21f0c98086571fe0565
(cherry picked from commit 2cee8fc3a4899097801ad93b5d6e6a4f373ad8fe)

11 years agoMerge "Fix ability to add custom volume_backend_name" into stable/grizzly
Jenkins [Wed, 8 May 2013 17:13:23 +0000 (17:13 +0000)]
Merge "Fix ability to add custom volume_backend_name" into stable/grizzly

11 years agoMerge "Add parsing to extra-specs key check" into stable/grizzly
Jenkins [Tue, 7 May 2013 18:35:39 +0000 (18:35 +0000)]
Merge "Add parsing to extra-specs key check" into stable/grizzly

11 years agoFix ability to add custom volume_backend_name
Walter A. Boring IV [Fri, 3 May 2013 21:36:12 +0000 (14:36 -0700)]
Fix ability to add custom volume_backend_name

This patch fixes the ability to set the volume_backend_name
for each driver.   The original bug was filed against LeftHand
and 3PAR, but several drivers exhibited a fixed backend name.

Fixes: bug #1175222
       bug #1172286

Change-Id: I4197f99bebd6ca8e4969795ae6edb537bc066c90
(cherry picked from commit 54a2ee48a4dc31cbf116b1e9d5add37efe66bc20)

11 years agoMerge "Fixes 3PAR FC driver synchronization" into stable/grizzly
Jenkins [Tue, 7 May 2013 01:47:12 +0000 (01:47 +0000)]
Merge "Fixes 3PAR FC driver synchronization" into stable/grizzly

11 years agoMerge "Dont delete backup record from database" into stable/grizzly
Jenkins [Sun, 5 May 2013 01:16:07 +0000 (01:16 +0000)]
Merge "Dont delete backup record from database" into stable/grizzly

11 years agoMerge "Add stats reporting to Nexenta Driver" into stable/grizzly
Jenkins [Sun, 5 May 2013 01:16:05 +0000 (01:16 +0000)]
Merge "Add stats reporting to Nexenta Driver" into stable/grizzly

11 years agoDont delete backup record from database
Michael Kerrin [Wed, 17 Apr 2013 15:36:28 +0000 (15:36 +0000)]
Dont delete backup record from database

Instead we should be marking the backup as deleted so that we have an audit
of all the backups. Backups are now marked deleted in the way that volumes
are.

Fixes bug: 1169943
Fixes bug: 1169857

Change-Id: I52c603be138c0f1d6d411d167977041255ac9053
(cherry picked from commit a4ba17b668bd893d50fd4f3a5453da89966a77e3)

11 years agoFixes 3PAR FC driver synchronization
Jim Branen [Thu, 25 Apr 2013 00:52:41 +0000 (17:52 -0700)]
Fixes 3PAR FC driver synchronization

While running  stress tests we found missing synchronized methods.
This patch added synchronized anotations around the necessary
methods.

Fixes bug 1172503

Change-Id: I8e475fe38d96ca663fbaac40c5a50420d791f5d5
(cherry picked from commit beacbd368124a656eaa4038fe1c35f1796e5dda4)

11 years agoAdd parsing to extra-specs key check
John Griffith [Wed, 10 Apr 2013 05:07:52 +0000 (23:07 -0600)]
Add parsing to extra-specs key check

When using the filter scheduler which is now the default,
we can no longer pass in extra-specs like: {minIOPS:500, ....},
because the capabilities filter will reject this because there is
no host reporting minIOPS:500 capabilities.

We now need to scope the keys (ie qos:minIOPS:500....), but
that unfortunately requires a fix to the SolidFire driver.

This change add a check for the ':' in the key, and parses
on it if it's there.

Also fixes backend_name and uses VERSION var instead of
generating string in stats reporting.

Fixes bug: 1167141

Change-Id: Ie7fd7d231af78cb18a13f44a4379b44d3c3385df
(cherry picked from commit 0e3ea4e85dab00b7cecd5596f6daa65cc4d710b5)

11 years agoAdd stats reporting to Nexenta Driver
John Griffith [Fri, 12 Apr 2013 17:11:38 +0000 (11:11 -0600)]
Add stats reporting to Nexenta Driver

Nexenta driver was never updated to report stats.
This change doesn't include support for backend_name assignment
via configs, there's some other work that will need to be
done to enable that.

Fixes bug: 1166607

Change-Id: Id9cfff24df8815a67e42393aa18fd41ac1b9e6b3
(cherry picked from commit 781055bc1f30cebe08848130f3a40764f7f1bb4f)

11 years agoAdd capabilities reporting to ThinLVM driver
John Griffith [Fri, 12 Apr 2013 02:05:01 +0000 (20:05 -0600)]
Add capabilities reporting to ThinLVM driver

ThinLVM driver was missing the newly required capabilities reporting
and inheritance from the parent LVM driver doesn't work because the
capacity reporting methods between regular LVM and Thin LVM are not
compatible.

This patch add the basic requirements needed in the capabilities reporting
to make it usable by the filter scheduler.

Fixes bug: 1166572

Change-Id: I471dcc31d07516e71bcd2d3ae03e0405e0594697
(cherry picked from commit a95a2149a5ba805451a6d961b792ccd5b9984bea)

11 years agoFix update snapshot-quotas on delete.
John Griffith [Mon, 29 Apr 2013 17:30:10 +0000 (11:30 -0600)]
Fix update snapshot-quotas on delete.

The merge from stable to RC of the snapshot quota
fixes missed the new CONF usage and as a result the
setting was always ignored on delete and therefore
quotas were not decremented on delete.

This patch changes CONF back to FLAGS for that call and
resolves the issue.

Fixes bug: 1173365

Change-Id: I7af69d5078ebcc5547e08d543a2dcfd0ca3f6c4b

11 years agoRemove Flags usage from cinder.volume.driver
John Griffith [Fri, 12 Apr 2013 00:42:59 +0000 (18:42 -0600)]
Remove Flags usage from cinder.volume.driver

cinder.volume.driver was using a mix of FLAGS and the
new conf options for multi-backend.  The result was failure
of multi-backend configrations to set the iscsi_helper
option.

This updates the driver.py file to use the OSLO.cfg and fixes the
check for iscsi_helper check in the initialize_connection call,
which was undefined.

Fixes bug: 1169928

Change-Id: Ia1678893f32a9d08a695f055f59f7296e17d9d78
(cherry picked from commit 168b7566a51807dfd42f873c810440472aed7171)

11 years agoMerge "Implement get_volume_stats for GlusterFS driver" into stable/grizzly
Jenkins [Tue, 16 Apr 2013 09:12:42 +0000 (09:12 +0000)]
Merge "Implement get_volume_stats for GlusterFS driver" into stable/grizzly

11 years agoMerge "leave re-scheduled volume status to creating" into stable/grizzly
Jenkins [Fri, 12 Apr 2013 22:54:00 +0000 (22:54 +0000)]
Merge "leave re-scheduled volume status to creating" into stable/grizzly

11 years agoMerge "Fix cinder-manage backup list to work with uuids" into stable/grizzly
Jenkins [Fri, 12 Apr 2013 22:53:57 +0000 (22:53 +0000)]
Merge "Fix cinder-manage backup list to work with uuids" into stable/grizzly

11 years agoMerge "getLogger should be called after logging is configured" into stable/grizzly
Jenkins [Fri, 12 Apr 2013 22:53:55 +0000 (22:53 +0000)]
Merge "getLogger should be called after logging is configured" into stable/grizzly

11 years agoMerge "Mark sql_connection with secret flag" into stable/grizzly
Jenkins [Fri, 12 Apr 2013 22:53:51 +0000 (22:53 +0000)]
Merge "Mark sql_connection with secret flag" into stable/grizzly

11 years agoMerge "Fixed a volume creation re-schedule error" into stable/grizzly
Jenkins [Thu, 11 Apr 2013 23:09:55 +0000 (23:09 +0000)]
Merge "Fixed a volume creation re-schedule error" into stable/grizzly

11 years agoRemove unused tools/rfc.sh
Mark McLoughlin [Mon, 25 Mar 2013 21:57:01 +0000 (21:57 +0000)]
Remove unused tools/rfc.sh

This has been deprecated in favour of git-review for quite a while now
and was removed from Nova 10 months ago.

Backport of git commit ae4aecdc7e554f78156c91c7c0b2436638bec5eb in
master.

This is a zero risk commit, as it removes something from tools that
isn't used. It also means removing the only GPL licensed file in the
whole of the cinder repository for 2013.1.1 release.

Change-Id: Ic4bfa1aee3a4b6a7588be3678ac033a1b13e2b18

11 years agoMark sql_connection with secret flag
Michael J Fork [Thu, 28 Mar 2013 02:58:04 +0000 (02:58 +0000)]
Mark sql_connection with secret flag

sql_connection contains the password in some setups and marking as
secret prevents accidental logging

fixes bug 1160680

Change-Id: I3704237d0923bb30138b5ece7e5c7bbda0a78b9b
(cherry picked from commit 9f8ee9d2981c5f317139e3743385b59956546d65)

11 years agogetLogger should be called after logging is configured
Davanum Srinivas [Wed, 27 Mar 2013 19:17:44 +0000 (15:17 -0400)]
getLogger should be called after logging is configured

logging needs to be setup properly before we try to log
something. Fixed one spot from logging->LOG

Fixes LP# 1161038

Change-Id: I87743cff9062e47c1d5e989c2c0c05c3921b65c7
(cherry picked from commit 3a106f7e67e4b7f7c446058b98c33f8c71ca2868)

11 years agoFix backup manager formatting error.
Avishay Traeger [Tue, 9 Apr 2013 06:27:46 +0000 (09:27 +0300)]
Fix backup manager formatting error.

ID was being printed as %d instead of %s, causing tests to fail. This
error was previously undetected.
In addition, NetApp tests are failing due to a bug in the suds
package, which is no longer actively maintained. This patch adds skips
to the problematic tests, which should be removed once the issue is
resolved.

Change-Id: I5645909f59aa2ea3dc536ed4707ea75754307050
Fixes: bug 1166600
(cherry picked from commit 23bd028ce39bebf0f5d2403df328ad55e6eb007e)

11 years agoleave re-scheduled volume status to creating
Liang Chen [Thu, 4 Apr 2013 15:39:54 +0000 (23:39 +0800)]
leave re-scheduled volume status to creating

A re-scheduled volume should not be exported and set to available

Fixes bug #1159027

Change-Id: Ie61d9132ce1bd6461d5e4d9836424ebf14100389
(cherry picked from commit b823de4370fb306de0416d8ec1c1a70ac224207c)

11 years agoFix cinder-manage backup list to work with uuids
Stephen Mulcahy [Fri, 5 Apr 2013 09:55:01 +0000 (09:55 +0000)]
Fix cinder-manage backup list to work with uuids

Fixes bug #1164922

Change-Id: I8ed7ff7ca334b983d60445d96cd1f6c368766407
(cherry picked from commit 9d359c01f383807846a8be2f7180641880d76952)

11 years agoFixed a volume creation re-schedule error
Liang Chen [Fri, 5 Apr 2013 14:00:39 +0000 (22:00 +0800)]
Fixed a volume creation re-schedule error

Don't see any reason to construct a list for request_spec['volume_id'].
And it indeed causes problems when the scheduler receives a reschedule
request with such a request_spec.

Fixes bug #1164857

Change-Id: I811e957d5bf9c814165d55ea0042833ea72c8de5
(cherry picked from commit 46b2a7dd3224c4ed00457520b95569442386d273)

11 years agoImplement get_volume_stats for GlusterFS driver
Eric Harney [Wed, 3 Apr 2013 18:39:38 +0000 (14:39 -0400)]
Implement get_volume_stats for GlusterFS driver

Implement get_volume_stats(), so that the GlusterFS driver
will work correctly with the scheduler.

Fixes bug: 1164038

Change-Id: Ib4db8bad897212227b39704e2e6cb5f07f2bb70e
(cherry picked from commit d59094f316f0c41aaa7be63ee4e25e2dea4fa0a9)

11 years agoOpen stable/grizzly
Thierry Carrez [Thu, 4 Apr 2013 16:08:44 +0000 (18:08 +0200)]
Open stable/grizzly

Bump "next" version to 2013.1.1 and switch default branch in .gitreview.

Change-Id: Ib3d50c76e7b10dde9098c1952780fbbe79af848b

11 years agoFix quota updating when admin deletes common user's volume
Yug Suo [Mon, 11 Mar 2013 08:30:07 +0000 (16:30 +0800)]
Fix quota updating when admin deletes common user's volume

Add 'project_id=None' optional argument in QUOTAS related methods.

There are two problems when admin deletes volumes of common user
before fixing this bug:
Firstly, It will get tenant quotas using context.project_id which
results in getting admin's quotas not common user's.
Secondly, It will also get wrong quota usages using context.project_id
when updating common user's quota_usages.

So we could pass into QUOTAS related methods an optional argument to
specify the tenant ID to be affected. And if it's not set, then we
default to drawing the tenant ID from the context.

Fixes: bug 1078668
Change-Id: Ie250da84726d1c5c3280430038184000dfd1e9e2
(cherry picked from commit 576c9b0880c32bfc8053550b8f25a76df98c60e4)

11 years agoAdd the volume and snapshot gigabytes together.
Cory Stone [Mon, 25 Mar 2013 20:09:37 +0000 (15:09 -0500)]
Add the volume and snapshot gigabytes together.

The quota sync functions were not working correctly for both
snapshots and volumes regarding gigabytes. Each would report
their own count as the total gigabytes.

Now the gigabytes sync is separate from the volume and snapshot
count syncs.

Fixes bug #1160004

Change-Id: Ib1200813acb6055412b3f7f6b63fa9ba2b8fa3be
(cherry picked from commit 1fde5a4fbc73a31453f0fe288a0b4a929d7f3026)

11 years agoSync lockutils from oslo-incubator stable/grizzly.
John Griffith [Tue, 26 Mar 2013 16:19:47 +0000 (10:19 -0600)]
Sync lockutils from oslo-incubator stable/grizzly.

Changes include:

3cb71ff Locking edge case when lock_path does not exist
21925b6 Fix locking issues in Windows
547ab34 Fix Copyright Headers - Rename LLC to Foundation

Fix bug 1158179.

Change-Id: I0d5fb58bef593233068accfcea0dff9fa05f61ef
(cherry picked from commit 649e8926cf6a6ee1cc01a34e6f718e0996feb930)

11 years agoMerge "Remove AGPL rtslib pkg from pip-requires." into milestone-proposed
Jenkins [Tue, 26 Mar 2013 16:38:06 +0000 (16:38 +0000)]
Merge "Remove AGPL rtslib pkg from pip-requires." into milestone-proposed

11 years agoRemove AGPL rtslib pkg from pip-requires.
john-griffith [Tue, 19 Mar 2013 15:02:52 +0000 (09:02 -0600)]
Remove AGPL rtslib pkg from pip-requires.

Fixes bug: 1157091

Change-Id: I1879712ab33324740496b284500fa2b22a1bc310
(cherry picked from commit 7bb449aa5a0a069cc6df918acc33bf550fbd5834)

11 years agoForce deletes using tgt to workaround bug 1159948
Vishvananda Ishaya [Mon, 25 Mar 2013 19:46:51 +0000 (12:46 -0700)]
Force deletes using tgt to workaround bug 1159948

Tgt has a bug where it can have multiple copies of an initiator
if there has been a reconnect.

See https://bugs.launchpad.net/cinder/+bug/1159948

Change-Id: I9a1b6757eb780efbaa1403016e50de7c0e45d720
(cherry picked from commit b84218633ab5417adf94c568eb54243f4074ab11)

11 years agoFixed shared gigabytes quota resource.
John Griffith [Sun, 24 Mar 2013 20:49:46 +0000 (20:49 +0000)]
Fixed shared gigabytes quota resource.

The shared gigabytes resource between volumes and snapshots wasn't
working properly.  The issue was that on update/sync the action item
(volumes or snapshots) would update the resource usages based only on
it's own particular item.

This patch fixes that, and makes the total gigabytes truly shared
between volumesa and snapshots.

Fixes bug: 1159489

Change-Id: Ib1be9788f0beb4f94d010e4f816f9f3393371205
(cherry picked from commit d6935af9b3cdf73cc5dac2006d76a95e4c6cb35e)

11 years agoFixes Cinder REST API /volumes issue
Fei Long Wang [Thu, 14 Mar 2013 06:35:10 +0000 (14:35 +0800)]
Fixes Cinder REST API /volumes issue

Issue #1
Once GET variable 'offset' is specified, the API /volume will get an empty
output.

Issue #2
Should validate the GET variable 'limit' before query database to get a
consistent message with Cinder REST API v1.
By current implement, error message is as below if the variable 'limit'
is invalid:
--------------------------------------------------------------------------
{"computeFault": {"message": "The server has either erred or is incapable
of performing the requested operation.", "code": 500}}

After this change, the new message is as below:
--------------------------------------------------------------------------
{"badRequest": {"message": "limit param must be an integer", "code": 400}}

Fixes Bug: 1154454

Change-Id: Ifb155477bae0ea3e39877737ee9019e7d8a104a7
(cherry picked from commit 7c760581d80b2ee5cd1e01a1d0a007770c9aa807)

11 years agoMerge "Last driver sync for Folsom and Grizzly" into milestone-proposed
Jenkins [Sun, 24 Mar 2013 19:08:56 +0000 (19:08 +0000)]
Merge "Last driver sync for Folsom and Grizzly" into milestone-proposed

11 years agoCoraidDriver: support users that are not admin
Jean-Baptiste RANSY [Thu, 21 Mar 2013 13:19:54 +0000 (14:19 +0100)]
CoraidDriver: support users that are not admin

Add support to the CoraidDriver to specify a subgroup (with admin
privileges).
Coraid storage orchestration allows you to allocate portions of your
SAN to specific users/groups.
The driver should support this and not assume logging in
as "admin" (equiv to "root").

Will add another parameter to cinder.conf, "coraid_group",
and if present, the driver will authenticate using the specified group
as well as the already available coraid_user parameter.

Fixes bug 1157354

Change-Id: I0d165955126adabce788ebdacd3a14a08edc8d8f
(cherry picked from commit 0a0251e695ed600ea586233b9654aedf4dab79e6)

11 years agoLast driver sync for Folsom and Grizzly
john-griffith [Sat, 23 Mar 2013 00:01:02 +0000 (18:01 -0600)]
Last driver sync for Folsom and Grizzly

This is the last of the updates that I've been putting
off while trying to handle the core items in Cinder.

This change fixes the ctxt ordering error in volume_types
and also fixes and also changes the internal SolidFire
metadata storage to a single dict instead of a dict of dicts.

Change-Id: I002a591bc109ae1ab625c89f6ad841f60e464a40
(cherry picked from commit f53d48ebd9ff0e3b99470a9b95527c7054709c12)

11 years agoMerge "CoraidDriver: typo in _login exception handler" into milestone-proposed
Jenkins [Sun, 24 Mar 2013 16:55:04 +0000 (16:55 +0000)]
Merge "CoraidDriver: typo in _login exception handler" into milestone-proposed

11 years agoMerge "Fixed attach volume for EMC SMI-S iSCSI driver" into milestone-proposed
Jenkins [Sun, 24 Mar 2013 16:50:20 +0000 (16:50 +0000)]
Merge "Fixed attach volume for EMC SMI-S iSCSI driver" into milestone-proposed

11 years agoMerge "Fetch volume_types by uuid and not by name in v2" into milestone-proposed
Jenkins [Sun, 24 Mar 2013 16:49:48 +0000 (16:49 +0000)]
Merge "Fetch volume_types by uuid and not by name in v2" into milestone-proposed

11 years agoMerge "Snapshot reservation sync calls wrong resource." into milestone-proposed
Jenkins [Sun, 24 Mar 2013 16:49:16 +0000 (16:49 +0000)]
Merge "Snapshot reservation sync calls wrong resource." into milestone-proposed

11 years agoMerge "Extend param2id() to work with uuids" into milestone-proposed
Jenkins [Sun, 24 Mar 2013 16:47:42 +0000 (16:47 +0000)]
Merge "Extend param2id() to work with uuids" into milestone-proposed

11 years agoFetch volume_types by uuid and not by name in v2
Mike Perez [Fri, 22 Mar 2013 02:55:48 +0000 (19:55 -0700)]
Fetch volume_types by uuid and not by name in v2

This was left over from the UUID switch. Looking up volume_types by name
is deprecated in v1 and removed in v2.

Fixes: bug #1087817
Change-Id: I02cc035565f9496cd5af228c55ced5cafef2ad81
(cherry picked from commit f5706319365dbd11cbc91bd69b09238afa51a626)

11 years agoCoraidDriver: typo in _login exception handler
Jean-Baptiste RANSY [Thu, 21 Mar 2013 10:51:37 +0000 (11:51 +0100)]
CoraidDriver: typo in _login exception handler

In cinder/volume/drivers/coraid.py, _login method, if login is
unsuccessful, we try to get the message from an undefined
object "response". Instead we should be getting it from "reply".

- errmsg = response.get('message', '')
+ errmsg = reply.get('message', '')

Fixes bug 1157499

Change-Id: Ifd047ced6b40f49881e81d4e73189d9bd216c903
(cherry picked from commit 4403230bbe8f39a19c38e58840bbb2283ccd808f)

11 years agoCoraidDriver: do not call login from __init__
Jean-Baptiste RANSY [Thu, 21 Mar 2013 11:08:53 +0000 (12:08 +0100)]
CoraidDriver: do not call login from __init__

We should not call _login from the driver's __init__.
If the ESM is down, the constructor will fail.

- self._login()

Fixes bug 1157500

Change-Id: Ie57fbb6d3704d270a81cd9eb056d7988989da1f8
(cherry picked from commit 28102bc54ac2793ea17f47c81f6812bb84615834)

11 years agoFixed attach volume for EMC SMI-S iSCSI driver
Xing Yang [Thu, 21 Mar 2013 04:36:03 +0000 (00:36 -0400)]
Fixed attach volume for EMC SMI-S iSCSI driver

This problem was encountered during Grizzly RC1 testing.  The driver
didn't find the correct target IQN.  As a result, Nova couldn't find
the matching path in /dev/disk/by-path and therefore detached the volume.

Change-Id: I8bcf6d9896b9d445f6376ecc3a5695be46507663
Fixes: bug #1157912
(cherry picked from commit 18bf0b386b2f26f524ebb6ab540941f64cad4642)

11 years agoSnapshot reservation sync calls wrong resource.
john-griffith [Thu, 21 Mar 2013 15:48:03 +0000 (09:48 -0600)]
Snapshot reservation sync calls wrong resource.

The snapshot reservations code isn't calling the
correct resource on sync (it's calling volumes).  There's
also some problems with the logic being used on the delete/clean up
that are fixed here as well.

Fixes bug: 1157506
Fixes bug: 1157982

Change-Id: I91327b8043ab63aa35ea8a91b6de544bf5bf6c61
(cherry picked from commit b450eef832ff471b78776c9715b0878e95d69263)

11 years agoExtend param2id() to work with uuids
Stephen Mulcahy [Thu, 21 Mar 2013 17:57:24 +0000 (17:57 +0000)]
Extend param2id() to work with uuids

Add uuid support to param2id() to allow commands including
cinder-manage volume delete to work with uuid style volumd ids

Fixes bug #1158409

Change-Id: I2d197320b61f44d1104ed0342a6b5b70f673468a
(cherry picked from commit e1561b8f8a05f3cd6b8635683b178f924384de65)

11 years agoMerge "Updates to OSAPI sizelimit middleware." into milestone-proposed
Jenkins [Fri, 22 Mar 2013 13:06:26 +0000 (13:06 +0000)]
Merge "Updates to OSAPI sizelimit middleware." into milestone-proposed

11 years agoMerge "Fix Storwize/SVC LUN allocation with holes." into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:46:07 +0000 (12:46 +0000)]
Merge "Fix Storwize/SVC LUN allocation with holes." into milestone-proposed

11 years agoMerge "Update Cinder's latest copy of OSLO grizzly stable" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:46:04 +0000 (12:46 +0000)]
Merge "Update Cinder's latest copy of OSLO grizzly stable" into milestone-proposed

11 years agoMerge "Pull Oslo log fix to enable root logger initialization" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:51 +0000 (12:09 +0000)]
Merge "Pull Oslo log fix to enable root logger initialization" into milestone-proposed

11 years agoMerge "Implement get_volume_stats in NFS driver" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:48 +0000 (12:09 +0000)]
Merge "Implement get_volume_stats in NFS driver" into milestone-proposed

11 years agoMerge "Switch all uses of 422 response code to 400." into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:46 +0000 (12:09 +0000)]
Merge "Switch all uses of 422 response code to 400." into milestone-proposed

11 years agoMerge "Fixes dettach volumes in Windows cinder plugin" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:44 +0000 (12:09 +0000)]
Merge "Fixes dettach volumes in Windows cinder plugin" into milestone-proposed

11 years agoMerge "Use self.configuration to support the multi-backend case" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:42 +0000 (12:09 +0000)]
Merge "Use self.configuration to support the multi-backend case" into milestone-proposed

11 years agoMerge "Fix typo in persona valid values" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:40 +0000 (12:09 +0000)]
Merge "Fix typo in persona valid values" into milestone-proposed

11 years agoMerge "Allow snapshot_delete for NFS/GlusterFS drivers" into milestone-proposed
Jenkins [Fri, 22 Mar 2013 12:09:38 +0000 (12:09 +0000)]
Merge "Allow snapshot_delete for NFS/GlusterFS drivers" into milestone-proposed

11 years agoPull Oslo log fix to enable root logger initialization
Zhiteng Huang [Wed, 13 Mar 2013 05:58:27 +0000 (13:58 +0800)]
Pull Oslo log fix to enable root logger initialization

Previous log module in Oslo doesn't initialize root logger, which results
in lacking of log message for non-openstack library (such as stevedore).
This patch pull latest log module from Oslo, which has recently merged a
change to enable root logger initialization.

Notice that this change also includes one log modules fix in Oslo which
'unignore' log_format setting.  As a result, one may experience log format
change when using devstack.  To get old log format back, simply assign
a NULL string (aka nothing) to 'log_format' configure option in cinder.conf.
For example, just append cinder.conf with one new line 'log_format = '.

Fix bug: # 1131322

Change-Id: I86396f15ca152512ce6d18d6d424a855b27f495e
(cherry picked from commit 2b66a382aae3e1c80342feb32549c427677d39c6)

11 years agoUpdates to OSAPI sizelimit middleware.
Dan Prince [Tue, 19 Mar 2013 23:37:47 +0000 (19:37 -0400)]
Updates to OSAPI sizelimit middleware.

Updates the OSAPI sizelimit middleware so that we use avoid calling
len on a request body which could cause a really large request
to get buffered into memory.

Also updates the middleware to return HTTP 413 which is a more
correct error code in this case (previously it returned just 400).

Fixes LP Bug #1131857.

Change-Id: Iff6cb0c24bc21e5a1d5dd4cf29acb0b4ee221708
(cherry picked from commit 3fe81851bab39a1466d8744b372b5a287b4db93d)

11 years agoImplement get_volume_stats in NFS driver
Mehdi Abaakouk [Fri, 8 Mar 2013 12:01:57 +0000 (13:01 +0100)]
Implement get_volume_stats in NFS driver

Use the already existing code (ie: _get_available_capacity) to
implement get_volume_stats in the nfs driver

Change the netapp nfs driver to use this new implementation
instead of the dumb one.

Fixes bug #1152501

Change-Id: Ie16d9628ba4b096c60966b4aa6192fbdcb9a4f20
(cherry picked from commit c47bf9bc3835d4399185376ac07920ef903d79e8)

11 years agoSwitch all uses of 422 response code to 400.
Matthew Treinish [Wed, 13 Mar 2013 17:28:10 +0000 (13:28 -0400)]
Switch all uses of 422 response code to 400.

The 422 response is normally only for WebDAV, and these types of
errors should normally return a 400 code, HTTPBadRequest. This
commit goes through all the remaining 422 codes and changes them
to 400 responses.

Fixes bug 1153807

Change-Id: I9bf49643763c2cb0ac585641056c85a060152e36
(cherry picked from commit adb8ba7bff2bc4e2657cf84e9f061433ff947a73)

11 years agoFixes dettach volumes in Windows cinder plugin
Pedro Navarro Perez [Tue, 12 Mar 2013 11:48:02 +0000 (04:48 -0700)]
Fixes dettach volumes in Windows cinder plugin

The patch fixes issues when desassigning target to initiators
in the terminate_connection method. The method now takes
the right parameter coming from provider location.

Change-Id: I2ea1ac7f46e3a24a6493af8eba46a113126e1117
Fixes: bug #1153968
(cherry picked from commit 6de6cfebd4398c9912eb1683c91226d5d27cf7e4)

11 years agoUse self.configuration to support the multi-backend case
zhangchao010 [Fri, 15 Mar 2013 15:14:39 +0000 (23:14 +0800)]
Use self.configuration to support the multi-backend case

Use self.configuration instead of using FLAGS directly to make
the driver work in a multi backend environment.
And remove three repeated lines:en = out.split('\r\n')

Fixes bug: 1154125

Change-Id: I6e08706104eabb71677ec8583b9abb9711553504
(cherry picked from commit 7817d12439a4c86d3015ce8e6a74f72804fdfd24)

11 years agoFix typo in persona valid values
Kurt Martin [Fri, 15 Mar 2013 21:40:10 +0000 (14:40 -0700)]
Fix typo in persona valid values

The 3PAR drivers have a persona extra spec that has a valid
values with a typo in it. The value '11 - VMWare' should be
"11 - VMware', note the lower case 'w'.

Fixes bug 1155781

Change-Id: I70ab255e1ec6a4b83437b072a7eb4fe11eafc710
(cherry picked from commit 0f353e794faac9f4a67d1628034d13507fc9785c)

11 years agoAllow snapshot_delete for NFS/GlusterFS drivers
Eric Harney [Mon, 18 Mar 2013 16:21:40 +0000 (12:21 -0400)]
Allow snapshot_delete for NFS/GlusterFS drivers

RemoteFsDriver should allow snapshot_delete, since snapshot_create
for NFS and GlusterFS volumes will create a snapshot in the error
state which cannot be deleted afterward.

snapshot_delete() should allow this to be removed rather than
throwing NotImplementedError.

Fixes bug: 1156686

Change-Id: I4307878fa97fbce5bd733a83fa172509e2fba8ce
(cherry picked from commit ea10f1b8291cb07962577699abe13648a4bdca58)

11 years agoFix Storwize/SVC LUN allocation with holes.
Avishay Traeger [Tue, 19 Mar 2013 07:42:06 +0000 (09:42 +0200)]
Fix Storwize/SVC LUN allocation with holes.

The Storwize/SVC driver should find the first unused LUN, but
continues searching, returning erroneous results.  Added 'break'
statement to fix.

Change-Id: Ibd95714e086a513a39fe9d20ffec57135dc5ec55
Fixes: bug 1157012
(cherry picked from commit e0878c86207d5ff5c2ebaa69eac454af545925ef)

11 years agoUpdate Cinder's latest copy of OSLO grizzly stable
Walter A. Boring IV [Wed, 20 Mar 2013 20:18:12 +0000 (13:18 -0700)]
Update Cinder's latest copy of OSLO grizzly stable

This patch updates all the files from oslo under
stable/grizzly but policy.py.  policy.py is a high risk
change at this date and it has lots of changes since the
last time we updated it.

Fixes bug #1157126

Change-Id: I399a1cd8474f718ed5196def90d2fea546fb01f5
(cherry picked from commit eae0264782818342c222c18b549e9cda354c867b)

11 years agoremove cinder-rtstool because of rtslib dep
Sean Dague [Tue, 19 Mar 2013 19:30:26 +0000 (15:30 -0400)]
remove cinder-rtstool because of rtslib dep

rtslib is AGPL, so cinder-rtstool is defacto AGPL by importing it.
Remove cinder-rtstool from the OpenStack repository.

Fixes bug #1157091

Change-Id: I30c9ee19d43107fa7f2e5e65d69049b8d69d2bdf
(cherry picked from commit b66c3361be2095186e19b0d44e49a8b2c48f7235)

11 years agoMerge "Fix _migrate_up in test_migrations"
Jenkins [Fri, 15 Mar 2013 13:33:05 +0000 (13:33 +0000)]
Merge "Fix _migrate_up in test_migrations"

11 years agoMerge "Switch to final 1.1.0 oslo.config release"
Jenkins [Fri, 15 Mar 2013 04:51:47 +0000 (04:51 +0000)]
Merge "Switch to final 1.1.0 oslo.config release"

11 years agoMerge "Compression/tier capabilities for Storwize/SVC."
Jenkins [Fri, 15 Mar 2013 03:55:10 +0000 (03:55 +0000)]
Merge "Compression/tier capabilities for Storwize/SVC."

11 years agoMerge "Fix ISCSIDriver rescan."
Jenkins [Thu, 14 Mar 2013 23:59:30 +0000 (23:59 +0000)]
Merge "Fix ISCSIDriver rescan."

11 years agoMerge "Fix 3PAR driver hiding existing host error"
Jenkins [Thu, 14 Mar 2013 22:59:47 +0000 (22:59 +0000)]
Merge "Fix 3PAR driver hiding existing host error"

11 years agoCount Snapshots towards volume/gigabyte quotas.
John Griffith [Mon, 11 Mar 2013 15:21:56 +0000 (09:21 -0600)]
Count Snapshots towards volume/gigabyte quotas.

Cinder has quotas and limits for volume-count and Gigabytes used,
however we were only counting volumes against these quotas.

This change introduces a snapshot-count limit and also counts
snapshots against this Gigabytes quota allowed for a Tenant.

Fixed bug: 1137927

Change-Id: Ib9b00b84b05597de9b5725a7f5898fe10a20b9d9

11 years agoFix 3PAR driver hiding existing host error
Walter A. Boring IV [Wed, 13 Mar 2013 21:35:16 +0000 (14:35 -0700)]
Fix 3PAR driver hiding existing host error

This fixes a problem with the 3par drivers where creating
a 3par host was failing but there was no message.  The driver
would fail to find the host after the creation failed and the
log entry would show that the host didn't exist.   The real
error was failing to create the host.

bug #1154700

Change-Id: I2267d958f10cc73c6c5f34d224ea3452a4402f18

11 years agocinder-manage does not print any version information
Davanum Srinivas [Thu, 14 Mar 2013 12:31:49 +0000 (08:31 -0400)]
cinder-manage does not print any version information

'cinder-manage --version' does not print anything. We need
to pass in the version information along with the argv and
project information

Change-Id: Ia826874cbbc3316226fb475646a0c146fd3a5955

11 years agoFix ISCSIDriver rescan.
Avishay Traeger [Thu, 14 Mar 2013 11:44:19 +0000 (13:44 +0200)]
Fix ISCSIDriver rescan.

Cinder fails to rescan iSCSI targets after running copy_image_to_volume
or copy_volume_to_image with the generic iSCSI implementation, due to
a missing comma.

Change-Id: I726e8da1f0221e47bae2593e03bc88a47c487814
Fixes: bug 1144591
11 years agoCompression/tier capabilities for Storwize/SVC.
Avishay Traeger [Wed, 13 Mar 2013 12:56:30 +0000 (14:56 +0200)]
Compression/tier capabilities for Storwize/SVC.

Compression and tiering support were not exported as capabilities,
and are important features.

Also fix a couple bugs introduced by
https://review.openstack.org/#/c/23830/

Change-Id: I41c304d0da89a050c0345b930b3f45741214b425
Fixes: bug 1146341
Fixed: bug 1155071

11 years agoMerge "Fix bugs for Huawei driver"
Jenkins [Wed, 13 Mar 2013 09:43:09 +0000 (09:43 +0000)]
Merge "Fix bugs for Huawei driver"

11 years agoFix _migrate_up in test_migrations
Chris Yeoh [Wed, 13 Mar 2013 01:53:53 +0000 (12:23 +1030)]
Fix _migrate_up in test_migrations

_migrate_up should always actually do a db upgrade whether or
not it is being tested with data or not

Change-Id: I28cbab36a5227903ff40a3243492b34d4b82a223

11 years agoSwitch to final 1.1.0 oslo.config release
Mark McLoughlin [Tue, 12 Mar 2013 16:33:53 +0000 (16:33 +0000)]
Switch to final 1.1.0 oslo.config release

Fixes bug #1128256

oslo.config has now been released to PyPI in time for Grizzly RC1 so
we can switch to using it directly.

Change-Id: I655f831718ae5f4e25e941ee206fe195214a9a91

11 years agoAdds a flag to set glance api version to call
Cian O'Driscoll [Mon, 11 Mar 2013 13:47:02 +0000 (13:47 +0000)]
Adds a flag to set glance api version to call

Allows a glance api verion to be set using a flag.
Cinder will generate a version of the glance client as per this
flag.

Fix bug: # 1152542

Change-Id: I80423f5d88e7ccf0614f89d3c15d983f0af9c333

11 years agoMerge "Fix bad request response code on extra_specs create."
Jenkins [Tue, 12 Mar 2013 07:36:26 +0000 (07:36 +0000)]
Merge "Fix bad request response code on extra_specs create."

11 years agoMerge "Storwize/SVC driver fix for multibackend scenario."
Jenkins [Tue, 12 Mar 2013 05:28:33 +0000 (05:28 +0000)]
Merge "Storwize/SVC driver fix for multibackend scenario."

11 years agoMerge "update error log arguements in filter scheduler"
Jenkins [Tue, 12 Mar 2013 00:05:41 +0000 (00:05 +0000)]
Merge "update error log arguements in filter scheduler"

11 years agoStorwize/SVC driver fix for multibackend scenario.
Avishay Traeger [Tue, 5 Mar 2013 09:23:01 +0000 (11:23 +0200)]
Storwize/SVC driver fix for multibackend scenario.

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.

Fixes bug: 1135391

Change-Id: I8d07346c03d1cf2479738f7161ee0a0cb9f518a0