]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
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

11 years agoMerge "Do not use prefix to lookup host in Storwize/SVC."
Jenkins [Mon, 11 Mar 2013 21:27:25 +0000 (21:27 +0000)]
Merge "Do not use prefix to lookup host in Storwize/SVC."

11 years agoFix bad request response code on extra_specs create.
Matthew Treinish [Mon, 11 Mar 2013 20:51:24 +0000 (16:51 -0400)]
Fix bad request response code on extra_specs create.

This commit changes the error response on a bad body from 422 to 400 for
an extra spec create request.

Fixes bug 1090356

Change-Id: I7925bbd53fb9647440532b206feee3421fb9f38b

11 years agoFix bugs for Huawei driver
zhangchao010 [Mon, 4 Mar 2013 16:07:41 +0000 (00:07 +0800)]
Fix bugs for Huawei driver

This fixes two bugs for Huawei iscsi driver.
(1)If firstly we map LUN 1(just not LUN 0) to host,we can also
find LUN 0 mapped,whose device path is '-'.Then we will failed
to map a real LUN 0.So,we avoid mapping LUN 0 to host by setting
every volume's host LUN ID larger than 0,instead of generating it
automatically.
(2)Check valid size of resource pools when creating snapshot and
make sure it larger than 1 GB.

Fixes bug: 1135618
Fixes bug: 1136980
Change-Id: I412e78bf84c95cb51431c45cc084e9ec6a8efb78

11 years agoMerge "Update oslo rpc libraries"
Jenkins [Mon, 11 Mar 2013 11:54:52 +0000 (11:54 +0000)]
Merge "Update oslo rpc libraries"

11 years agoDo not use prefix to lookup host in Storwize/SVC.
Avishay Traeger [Thu, 7 Mar 2013 17:18:54 +0000 (19:18 +0200)]
Do not use prefix to lookup host in Storwize/SVC.

Currently, the Storwize/SVC driver creates a host name prefix for host
objects on the back-end, and uses that to look up hosts. However, if a
host was already created with a different name (for example, manually
by an admin), the host creation operation will fail, as a host with
that connection information already exists. Instead, we look up a host
based on available connection information.

Fixes bug: 1149072

Change-Id: I336dbea85bfaf928a550a15d177e2b9b0ffd38bf

11 years agoupdate error log arguements in filter scheduler
xiaoxi_chen [Mon, 11 Mar 2013 03:06:21 +0000 (11:06 +0800)]
update error log arguements in filter scheduler

There's one log issue in filter scheduler fell off radar in previous
fix, this change closes the gap.

Fixes: bug #1130867
Change-Id: I78def31bd9ff4349cd1332cb96ef6311ce9eac20

11 years agoMerge "LIO iSCSI initiator ACL auto-config"
Jenkins [Mon, 11 Mar 2013 05:45:06 +0000 (05:45 +0000)]
Merge "LIO iSCSI initiator ACL auto-config"

11 years agoMerge "Fix a few bugs for LeftHand Grizzly"
Jenkins [Sun, 10 Mar 2013 06:37:18 +0000 (06:37 +0000)]
Merge "Fix a few bugs for LeftHand Grizzly"

11 years agoMerge "Fix calling setUp() method of superclass from tearDown method."
Jenkins [Sun, 10 Mar 2013 06:36:57 +0000 (06:36 +0000)]
Merge "Fix calling setUp() method of superclass from tearDown method."

11 years agoMerge "Removing flags in RBD in favor of configuration"
Jenkins [Sun, 10 Mar 2013 06:05:13 +0000 (06:05 +0000)]
Merge "Removing flags in RBD in favor of configuration"

11 years agoMerge "Fix volume capacity reporting"
Jenkins [Sun, 10 Mar 2013 05:38:21 +0000 (05:38 +0000)]
Merge "Fix volume capacity reporting"

11 years agoUpdate oslo rpc libraries
Michael J Fork [Fri, 8 Mar 2013 05:59:23 +0000 (05:59 +0000)]
Update oslo rpc libraries

Update oslo rpc libraries to capture changes, primarly motivated
by secret=True flag on password config options. Skipping broken,
invalid test case while working on correct fix.

Change-Id: Ibb979189b4a6215f307cb49e4a17070ffc7f0f51

11 years agoRemove/update unused log arguements in manager
Mike Perez [Sat, 9 Mar 2013 08:40:39 +0000 (00:40 -0800)]
Remove/update unused log arguements in manager

Fixes: bug #1130867
Change-Id: I6f9a9c33530e92fa9ce22bd44ef7c40f7e355b04

11 years agoRemoving flags in RBD in favor of configuration
Mike Perez [Sat, 9 Mar 2013 07:46:33 +0000 (23:46 -0800)]
Removing flags in RBD in favor of configuration

Not needed since we're using configuration for multi-backend support.

Change-Id: I9634fca5d09ca84ef793e330def13176265dac31

11 years agoLIO iSCSI initiator ACL auto-config
Eric Harney [Thu, 28 Feb 2013 23:14:11 +0000 (18:14 -0500)]
LIO iSCSI initiator ACL auto-config

Currently, IQNs of remote nova compute nodes must be specified in
cinder.conf for them to be added to LIO's ACLs for LUNs.

This change will handle this at volume-attach time instead.

Change-Id: I278ce737042b15bd4d100d331564c1377bac0c55

11 years agoFix a few bugs for LeftHand Grizzly
Walter A. Boring IV [Fri, 8 Mar 2013 00:19:14 +0000 (16:19 -0800)]
Fix a few bugs for LeftHand Grizzly

This patch fixes a few issues with the LH driver.
1) attach wasn't working because there was no host
created.
2) get_volume_stats didn't exist.
3) fixed the unit tests to work with the new config
access.

Bug 1062508
Bug 1150663

Change-Id: I6f80c3d5c70b64ca6496e50fedcb6b3ca0e2be43

11 years agoUpdate tox.ini to support RHEL 6.x.
Dan Prince [Thu, 7 Mar 2013 18:07:56 +0000 (13:07 -0500)]
Update tox.ini to support RHEL 6.x.

In order to support running unit tests on RHEL 6.x we need to patch
eventlet with contrib/redhat-eventlet.patch. We already
have support for this in the tools/install_venv_common.py but we
need to make a couple changes to allow tox to consume this:

1) Sync in the latest intall_venv_common.py from oslo. This changes
 patch to use the -N option (ignore already applied patches) and
 makes it safe to call the patching function more than once.

2) Add a new patch_tox_venv.py script in tools.

3) Update tox.ini to call patch_tox_venv.py before it runs tests and
 coverage.

NOTE: This will hopefully go away eventually once this patch lands:

 https://bitbucket.org/eventlet/eventlet/issue/89/add-a-timeout-argument-to-subprocesspopen#comment-3342969

Change-Id: I3e2b07c3f718e4aede5c5f231ff0cdb7721ec885

11 years agoFix volume capacity reporting
Christoph Kassen [Wed, 6 Mar 2013 18:37:42 +0000 (19:37 +0100)]
Fix volume capacity reporting

cinder-volume crashes when the decimal point is not represented by a dot
but by a comma instead. This crash happens for example with the de_DE
locale.

This change replaces any comma appearing in the vgs command output with
a dot.

Test case added.

Fixes: bug #1151684
Change-Id: I831055fb7fd206a8560688ec4c25d766e92ee0f0

11 years agoMerge "Pull newly merged Olso update for 'is' operator"
Jenkins [Fri, 8 Mar 2013 05:54:41 +0000 (05:54 +0000)]
Merge "Pull newly merged Olso update for 'is' operator"

11 years agoPull newly merged Olso update for 'is' operator
Zhiteng Huang [Fri, 8 Mar 2013 08:54:03 +0000 (16:54 +0800)]
Pull newly merged Olso update for 'is' operator

A recent update to common/scheduler/filters/extra_specs_ops.py in
Oslo added new 'is' operator to allow Boolean check. The original
commit message was:

"Boolean values for capabilities don't work because extra_specs are
all converted to unicode. The scheduler will then check, for example,
if the boolean 'True' is equal to the unicode string 'True', and will
always return False. This patch allows admins to specify '<is> True'
in extra_specs, which will compare successfully to boolean True."

Notice extra_specs_ops now relies on strutils from Olso, so this
change pull strutils from Oslo as well.

Fix bug: # 1146306

Change-Id: I83adf707c30274a3862aa8034e72c3361fd19952

11 years agoMerge "NetApp bug fix for multibackend scenario."
Jenkins [Fri, 8 Mar 2013 05:02:50 +0000 (05:02 +0000)]
Merge "NetApp bug fix for multibackend scenario."

11 years agoMerge "Mark configuration option netapp_password secret"
Jenkins [Fri, 8 Mar 2013 01:38:56 +0000 (01:38 +0000)]
Merge "Mark configuration option netapp_password secret"

11 years agoUse nose and openstack nose plugin.
Monty Taylor [Mon, 11 Feb 2013 19:57:27 +0000 (13:57 -0600)]
Use nose and openstack nose plugin.

It's a little silly since we're working on removing nose for testr,
but it turns out that the old test run wrapper was in use here, which was
causing all sorts of havoc.

Change-Id: Ib6e31547ec4921f91b6253a1798cb04ca6930c87

11 years agoExit run_tests with the result code of the test runner.
James E. Blair [Thu, 7 Mar 2013 16:55:00 +0000 (08:55 -0800)]
Exit run_tests with the result code of the test runner.

Change-Id: Ie117e258c3ce78080ab55715daa8cf14f9967ce4

11 years agoMerge "Fix Storwize/SVC storage_protocol reporting."
Jenkins [Thu, 7 Mar 2013 07:23:20 +0000 (07:23 +0000)]
Merge "Fix Storwize/SVC storage_protocol reporting."

11 years agoMark configuration option netapp_password secret
Michael J Fork [Thu, 7 Mar 2013 07:10:18 +0000 (07:10 +0000)]
Mark configuration option netapp_password secret

Mark netapp_password configuration option with secret flag.

fixes bug 1151510

Change-Id: I4b04ae610f61c30e8d061b2be710bb48d7afae66

11 years agoMerge "Fix 3PAR drivers to work in multi-backend mode."
Jenkins [Thu, 7 Mar 2013 06:45:50 +0000 (06:45 +0000)]
Merge "Fix 3PAR drivers to work in multi-backend mode."

11 years agoMerge "Add get_volume_stats in the sheepdog driver."
Jenkins [Thu, 7 Mar 2013 01:29:40 +0000 (01:29 +0000)]
Merge "Add get_volume_stats in the sheepdog driver."

11 years agoMerge "Switch to oslo.config."
Jenkins [Wed, 6 Mar 2013 17:13:52 +0000 (17:13 +0000)]
Merge "Switch to oslo.config."

11 years agoMerge "NetApp: Fix for snapshot not deleted in error state."
Jenkins [Wed, 6 Mar 2013 07:07:24 +0000 (07:07 +0000)]
Merge "NetApp: Fix for snapshot not deleted in error state."

11 years agoAdd get_volume_stats in the sheepdog driver.
Wenhao Xu [Sat, 2 Mar 2013 17:19:08 +0000 (01:19 +0800)]
Add get_volume_stats in the sheepdog driver.

1. Allow sheepdog driver to report capabilities to the scheduler.
2. add the initial test_sheepdog.py

Fixes Bug #1140162

Change-Id: I6fb1fb6714ab4ae9878b593e6eee0a94d95ef29f

11 years agoSwitch to oslo.config.
Dan Prince [Wed, 6 Mar 2013 03:29:35 +0000 (22:29 -0500)]
Switch to oslo.config.

The oslo-config package has been renamed. Switch to the new
version. (should fix SmokeStack).

Change-Id: Ic8cc9f53b7c4713e7bce7db47ad2021912d3b5db

11 years agoMerge "sync oslo changes for setup / version"
Jenkins [Wed, 6 Mar 2013 03:15:47 +0000 (03:15 +0000)]
Merge "sync oslo changes for setup / version"

11 years agoFix calling setUp() method of superclass from tearDown method.
Rushi Agrawal [Wed, 6 Mar 2013 00:00:39 +0000 (05:30 +0530)]
Fix calling setUp() method of superclass from tearDown method.

In test_netapp.py, the tearDown function was calling setUp of
superclass instead of calling tearDown of superclass. Fixed it
here.

Change-Id: Iab65e60193edcd47d09d7788b0951ef66d816e38

11 years agoMerge "Fixes issues found in /os-hosts API"
Jenkins [Tue, 5 Mar 2013 23:56:35 +0000 (23:56 +0000)]
Merge "Fixes issues found in /os-hosts API"

11 years agoFix 3PAR drivers to work in multi-backend mode.
Walter A. Boring IV [Thu, 28 Feb 2013 18:06:02 +0000 (10:06 -0800)]
Fix 3PAR drivers to work in multi-backend mode.

The 3PAR drivers weren't updated when the multi backend
patch landed on G3 day.  This patch implements the new config
mechanism to accessing FLAGS, so that it works when an admin
has multiple drivers active.

This fixes
bug 1131346

Change-Id: Icc5475d15bfd0fa14aae12ab8a8370a894e46857

11 years agoFixed copy image to volume and clone volume.
Xing Yang [Sun, 3 Mar 2013 05:06:29 +0000 (00:06 -0500)]
Fixed copy image to volume and clone volume.

This patch fixed the following issues in EMC driver found during G3 testing:
1. VNX array has two storage processors and it is doing load balancing when
attaching a LUN to a host. The storage processor used to attach a LUN to a
host is different from the one discovered by the driver sometimes, causing
Copy Image to Volume to fail.
2. The clone relationship is removed after a volume is successfully
cloned. However, this happens too soon sometimes before the cloned volume
is fully synced with the source volume.  The fix is to wait until it is
fully synced.

Change-Id: I5b8fab263723c47faf30b950a611c5bde7f29092
Fixes: bug #1135221
11 years agoFixes issues found in /os-hosts API
Fei Long Wang [Sun, 3 Mar 2013 08:48:22 +0000 (16:48 +0800)]
Fixes issues found in /os-hosts API

There are some issues found in Cinder /os-hosts API:

1) Bracket in the wrong spot in Cinder HostController show method
There is an erroneous bracket on the following line in the show method
that should be at the end of the response:
   'total_volume_gb': str(sum)},

2) XML Attributes Missing for List/Index method in Cinder HostController
The HostIndexTemplate class specifies mapping for "host" and "topic"
attributes rather than any of the ones that are actually returned from
the index method.

3) XML Serialization is commented for Cinder HostController show method

Fixes Bug: 1139984

Change-Id: I881e80b5e109ed6ddcc4f7c4bf5749ab6dca563d

11 years agoFix Storwize/SVC storage_protocol reporting.
Avishay Traeger [Tue, 5 Mar 2013 08:00:11 +0000 (10:00 +0200)]
Fix Storwize/SVC storage_protocol reporting.

The Storwize/SVC driver supports both FC and iSCSI protocols
simultaneously. Therefore, 'storage_protocol' should be defined as a
list of enabled protocols, not simply 'iSCSI'. The extra_specs
key-value would then be, for example, storage_protocol='<in> iSCSI'
or storage_protocol='<in> FC'.

Fixes bug: 1142196

Change-Id: Ib99a6d4e4e61d07ddb4f173c13fe7e9f5482fa2b

11 years agosync oslo changes for setup / version
Sean Dague [Mon, 4 Mar 2013 20:10:02 +0000 (15:10 -0500)]
sync oslo changes for setup / version

this fixes the fact that run_tests.sh wouldn't work in a venv with
a clean cinder checkout. Yay for fixing being able to run tests.

Fixes bug #1125416

Change-Id: Ic341c3b878cc566f8d2f6a3b2c9d1fa62fc52261