]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "Add parsing to extra-specs key check"
Jenkins [Wed, 17 Apr 2013 21:56:11 +0000 (21:56 +0000)]
Merge "Add parsing to extra-specs key check"

11 years agoMerge "Add capabilities reporting to ThinLVM driver"
Jenkins [Wed, 17 Apr 2013 00:03:22 +0000 (00:03 +0000)]
Merge "Add capabilities reporting to ThinLVM driver"

11 years agoMerge "Add missing space to "volumes already consumed" message"
Jenkins [Tue, 16 Apr 2013 19:32:24 +0000 (19:32 +0000)]
Merge "Add missing space to "volumes already consumed" message"

11 years agoMerge "NetApp: Fix failing NetApp tests"
Jenkins [Tue, 16 Apr 2013 19:26:31 +0000 (19:26 +0000)]
Merge "NetApp: Fix failing NetApp tests"

11 years agoMerge "Use a SSH pool to manage SSH connection"
Jenkins [Tue, 16 Apr 2013 19:12:01 +0000 (19:12 +0000)]
Merge "Use a SSH pool to manage SSH connection"

11 years agoAdd missing space to "volumes already consumed" message
Eric Harney [Tue, 16 Apr 2013 14:37:30 +0000 (10:37 -0400)]
Add missing space to "volumes already consumed" message

Change-Id: I48728def59ecb2f139fa523cfe429aab076bfa88

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

11 years agoNetApp: Fix failing NetApp tests
Rushi Agrawal [Thu, 11 Apr 2013 14:01:37 +0000 (19:31 +0530)]
NetApp: Fix failing NetApp tests

The tests were failing due to an upgrade in the testing framework
(possibly due to upgrade of nose package from 1.2.1 to 1.3.0).
The actual reason was a bug in the suds client. A simple
workaround is utilised here, which sets the logging level of a
suds file to INFO instead of DEBUG.

Some 'FutureWarning' warnings from the test output were also
fixed.

Change-Id: Ia67476c23bffa91264cf79f6a26944b450c4f4fc

11 years agoUse VERSION var for volume_stats version (Gluster/NFS)
Eric Harney [Fri, 12 Apr 2013 20:47:34 +0000 (16:47 -0400)]
Use VERSION var for volume_stats version (Gluster/NFS)

Establish a formal version number to help with maintenance.

Change-Id: Iffe1a6f809ec9385c7407efac25ca39eff0d1329

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

11 years agoUse a SSH pool to manage SSH connection
zhangchao010 [Thu, 4 Apr 2013 00:45:21 +0000 (08:45 +0800)]
Use a SSH pool to manage SSH connection

Use a SSH pool to hold all SSH clients.It allows 4 SSH clients
at most to connect to the SSH server at the same time.
This patchset also enables every SSH client connect to the other
controller when they failed to connect to the current controller.
For example,failed to A,then to B,or,failed to B,then to A.

Fixes bug: 1162251
Change-Id: I86f7f684639034be97ddf2031e61ac6bf3a196ad

11 years agoMerge "new cinder.conf.sample and fix extract_opts.py"
Jenkins [Thu, 11 Apr 2013 19:56:44 +0000 (19:56 +0000)]
Merge "new cinder.conf.sample and fix extract_opts.py"

11 years agoMerge "Fix incompatible Storwize/SVC commands."
Jenkins [Thu, 11 Apr 2013 19:14:06 +0000 (19:14 +0000)]
Merge "Fix incompatible Storwize/SVC commands."

11 years agonew cinder.conf.sample and fix extract_opts.py
Darren Birkett [Thu, 11 Apr 2013 07:46:10 +0000 (08:46 +0100)]
new cinder.conf.sample and fix extract_opts.py

Fixes bug: #1167329

Change-Id: I09ce8f00c84a5a04d6e4274914fed102f19381e1

11 years agoMerge "fix default config option types"
Jenkins [Thu, 11 Apr 2013 04:55:56 +0000 (04:55 +0000)]
Merge "fix default config option types"

11 years agoMerge "Add service list functionality cinder-manage"
Jenkins [Thu, 11 Apr 2013 04:46:20 +0000 (04:46 +0000)]
Merge "Add service list functionality cinder-manage"

11 years agoMerge "Clean up attach/detach tests."
Jenkins [Thu, 11 Apr 2013 04:45:27 +0000 (04:45 +0000)]
Merge "Clean up attach/detach tests."

11 years agofix default config option types
Darren Birkett [Wed, 10 Apr 2013 12:34:01 +0000 (13:34 +0100)]
fix default config option types

Change-Id: I4bea0b5e12d229b0d9188e10c70996a5606aa970
Fixes: bug #1167318
11 years agoFix incompatible Storwize/SVC commands.
Avishay Traeger [Wed, 10 Apr 2013 08:24:45 +0000 (11:24 +0300)]
Fix incompatible Storwize/SVC commands.

Inconsistencies in the command line syntax between Storwize/SVC
models and firmware versions caused driver failures. This patch
makes commands compatible to fix driver crashes on the V3700 and
controllers with firmware version 6.3.

Change-Id: I51d5b97afa5419cdbf488f9e4e4597d22bb22f20
Fixes: bug 1163754
Fixed: bug 1163964

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
11 years agoAdd service list functionality cinder-manage
Stephen Mulcahy [Fri, 5 Apr 2013 10:29:13 +0000 (10:29 +0000)]
Add service list functionality cinder-manage

Adds functionality similar to nova-manage service list
to cinder-manage.

Change-Id: I9bcd6dcb551dbced2cfd6fcf0e63ffe4bb8754e8

11 years agoMerge "Don't hard code AUTH_ into the swift backup url"
Jenkins [Mon, 8 Apr 2013 17:12:38 +0000 (17:12 +0000)]
Merge "Don't hard code AUTH_ into the swift backup url"

11 years agoMerge "Reformat openstack-common.conf"
Jenkins [Mon, 8 Apr 2013 12:35:54 +0000 (12:35 +0000)]
Merge "Reformat openstack-common.conf"

11 years agoClean up attach/detach tests.
Avishay Traeger [Mon, 8 Apr 2013 09:19:32 +0000 (12:19 +0300)]
Clean up attach/detach tests.

The code tested by test_preattach_status_volume was moved, and the
test no longer tested anything relevant (i.e., instead of checking
that the volume is 'attached', the test was changed to test for
'available' since the attach code was moved). This patch, therefore,
deletes that test.

Further, test_run_attach_detach_volume called database functions for
attaching and detaching. This patch changes those calls to call
higher-level functions which in turn call the database functions. This
gives better code coverage and gives the tests more meaning.

Change-Id: If688fe6a14940148b5792256c8507803e8cde901

11 years agoMerge "Prevent create volume from snapshot with bad size"
Jenkins [Mon, 8 Apr 2013 05:00:08 +0000 (05:00 +0000)]
Merge "Prevent create volume from snapshot with bad size"

11 years agoMerge "Sync with oslo-incubator copy of setup.py"
Jenkins [Mon, 8 Apr 2013 04:20:57 +0000 (04:20 +0000)]
Merge "Sync with oslo-incubator copy of setup.py"

11 years agoMerge "Clean up started volume services in tests."
Jenkins [Mon, 8 Apr 2013 04:17:26 +0000 (04:17 +0000)]
Merge "Clean up started volume services in tests."

11 years agoReformat openstack-common.conf
Zhongyue Luo [Sun, 7 Apr 2013 10:12:52 +0000 (18:12 +0800)]
Reformat openstack-common.conf

Use the new 'module' option in openstack-common.conf which is a
multi-string option, allowing each module name to be placed on a
separate line.

This makes it much easier to review changes to the modules list.

Change-Id: I2b5c56dbf941b272bd89b0dbe6f651196d90944f

11 years agoSync with oslo-incubator copy of setup.py
Davanum Srinivas [Mon, 8 Apr 2013 00:38:08 +0000 (20:38 -0400)]
Sync with oslo-incubator copy of setup.py

Keep up with the changes to the master copy

Change-Id: I6b87762a25f11c2548cd8df548a217295b8129d4

11 years agoMerge "Allow deletion of backups where the service is None"
Jenkins [Sun, 7 Apr 2013 12:17:00 +0000 (12:17 +0000)]
Merge "Allow deletion of backups where the service is None"

11 years agoMerge "Fixed a volume creation re-schedule error"
Jenkins [Sun, 7 Apr 2013 08:30:46 +0000 (08:30 +0000)]
Merge "Fixed a volume creation re-schedule error"

11 years agoMerge "Implement get_volume_stats for GlusterFS driver"
Jenkins [Sun, 7 Apr 2013 03:28:10 +0000 (03:28 +0000)]
Merge "Implement get_volume_stats for GlusterFS driver"

11 years agoMerge "Fix cinder-manage backup list to work with uuids"
Jenkins [Sun, 7 Apr 2013 02:59:56 +0000 (02:59 +0000)]
Merge "Fix cinder-manage backup list to work with uuids"

11 years agoMerge "Remove update_volume_status log message from NFS driver"
Jenkins [Sun, 7 Apr 2013 02:51:38 +0000 (02:51 +0000)]
Merge "Remove update_volume_status log message from NFS driver"

11 years agoDon't hard code AUTH_ into the swift backup url
Michael Kerrin [Fri, 5 Apr 2013 15:33:06 +0000 (15:33 +0000)]
Don't hard code AUTH_ into the swift backup url

Instead make it configurable as part of the backup_swift_url option

Change-Id: I32019d8d4af2f8876da3807a5af3f0b921456935

11 years agoRemove update_volume_status log message from NFS driver
Eric Harney [Fri, 5 Apr 2013 14:50:31 +0000 (10:50 -0400)]
Remove update_volume_status log message from NFS driver

The manager logs an INFO message when this action occurs already,
and it not called by anyone else, so don't log twice:

INFO [cinder.volume.manager] Updating volume status
DEBUG [cinder.volume.drivers.nfs] Updating volume status

Change-Id: Id99be0c0e50837c2b59963d983b9a7db3d25919a

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

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

11 years agoAllow deletion of backups where the service is None
Stephen Mulcahy [Thu, 4 Apr 2013 16:10:16 +0000 (16:10 +0000)]
Allow deletion of backups where the service is None

If a backup is created while both cinder-backup and rabbitmq
are not running, backup records are created in the database with a
service entry of None.

There is no actual backup data created on the service, since the service
isn't running. This fix allows removal of these records without an error
when a delete backup request is received.

This fix also ensures backup status is set to error in the event of
an exception during a delete.

Fixes bug #1162908

Change-Id: I5771747a00a70621f7cc101f8c1da2f613e83cdf

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

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

11 years agoPrevent create volume from snapshot with bad size
Jean-Baptiste RANSY [Sat, 30 Mar 2013 14:25:29 +0000 (15:25 +0100)]
Prevent create volume from snapshot with bad size

Prevent to create a volume from a snapshot with a volume size less
than the snapshot size.

Check if a volume size is specified that it is less than
the snapshot size.

Raise a exception if it's lesser.

Fixes bug 1161841

Change-Id: Ic1afbfb025ce0b3906c35c6c50a71734d74a9851

11 years agoMerge "Add du to rootwrap filters"
Jenkins [Wed, 3 Apr 2013 20:40:33 +0000 (20:40 +0000)]
Merge "Add du to rootwrap filters"

11 years agoMerge "Change format of some judgments"
Jenkins [Wed, 3 Apr 2013 20:40:01 +0000 (20:40 +0000)]
Merge "Change format of some judgments"

11 years agoAdd du to rootwrap filters
Eric Harney [Wed, 3 Apr 2013 19:31:49 +0000 (15:31 -0400)]
Add du to rootwrap filters

Setting "nfs_disk_util=du" or "glusterfs_disk_util=du" will use
du instead of df for space calculation, but du is not allowed by
rootwrap.

Change-Id: I35522d40f97ea14cacf2637603f06a15810a0b36

11 years agoMerge "Fix IBM copyright strings"
Jenkins [Wed, 3 Apr 2013 09:50:38 +0000 (09:50 +0000)]
Merge "Fix IBM copyright strings"

11 years agoChange format of some judgments
zhangchao010 [Tue, 26 Mar 2013 14:10:19 +0000 (22:10 +0800)]
Change format of some judgments

Because "not volume" will be True if volume id is 0.It can not
distinguish 0 from None.The same to some other judgments where
variable value may be 0.

This patch also does the following changes:
Deletes check storagepool in function _check_conf_file and adds
check default iscsi target IP in function initialize_connection.
Moves create host group from do_setup to initialize_connection.
Changes _get_login_info to be _update_login_info.

Fixes bug: 1160340
Change-Id: I0434b587d57c783f10d5724c4c66aea5df0b32e5

11 years agoMerge "remove deprecated assert_unicode sqlalchemy attribute"
Jenkins [Wed, 3 Apr 2013 05:40:47 +0000 (05:40 +0000)]
Merge "remove deprecated assert_unicode sqlalchemy attribute"

11 years agoMerge "Add availability_zone to the volume and snapshot notifications"
Jenkins [Wed, 3 Apr 2013 05:37:58 +0000 (05:37 +0000)]
Merge "Add availability_zone to the volume and snapshot notifications"

11 years agoMerge "Remove InvalidPortRange exception"
Jenkins [Wed, 3 Apr 2013 05:09:33 +0000 (05:09 +0000)]
Merge "Remove InvalidPortRange exception"

11 years agoRemove InvalidPortRange exception
Eric Harney [Tue, 2 Apr 2013 20:06:56 +0000 (16:06 -0400)]
Remove InvalidPortRange exception

The InvalidPortRange exception seems to be left over from the
initial split from Nova.

Change-Id: Ife03ac70f6ba80273c1c21e8d2c509b480a6fe80

11 years agoAdd availability_zone to the volume and snapshot notifications
Michael Kerrin [Thu, 28 Mar 2013 15:41:10 +0000 (15:41 +0000)]
Add availability_zone to the volume and snapshot notifications

Change-Id: I27b6dde68a1618a02c2309f007ead9dd1f04879e

11 years agoThrow InvalidSnapshot for failed snap delete
Eric Harney [Tue, 2 Apr 2013 13:23:05 +0000 (09:23 -0400)]
Throw InvalidSnapshot for failed snap delete

When delete is called for a snapshot not in the "available" or
"error" state, throw an InvalidSnapshot exception rather than
InvalidVolume.

Change-Id: I47f55b3357d75b5c0c9a704aaf693f4764fd112c

11 years agoremove deprecated assert_unicode sqlalchemy attribute
Pádraig Brady [Tue, 2 Apr 2013 13:44:51 +0000 (14:44 +0100)]
remove deprecated assert_unicode sqlalchemy attribute

Removing this enables use with sqlalchemy 0.8.0
The deprecation is described upstream at:
http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html#change-ad44af79c886d1bb283042deb64f9cbe

Change-Id: I305bfdbcd3c3669c41318ea34115624f729b3909

11 years agoFix IBM copyright strings
Kurt Taylor [Tue, 2 Apr 2013 13:33:30 +0000 (09:33 -0400)]
Fix IBM copyright strings

Update IBM copyright strings to one consistant format

Change-Id: I848f2bf64376b4e9496d8f54ae52321a6c4a4314

11 years agoMerge "REST session validity not checked in get_volume_info"
Jenkins [Sun, 31 Mar 2013 15:26:46 +0000 (15:26 +0000)]
Merge "REST session validity not checked in get_volume_info"

11 years agoMerge "Add snapshot events to the cinder notification"
Jenkins [Sun, 31 Mar 2013 06:10:19 +0000 (06:10 +0000)]
Merge "Add snapshot events to the cinder notification"

11 years agoREST session validity not checked in get_volume_info
Larry Matter [Thu, 28 Mar 2013 23:29:38 +0000 (16:29 -0700)]
REST session validity not checked in get_volume_info

The fix for bug 1157242 introduced a new bug in Coraid cinder driver
_get_volume_info that the login session is not checked for
validity/timeout.  This change addressesthat issue for all
methods in the CoraidRESTClient class.

Fixes bug 1160459

Change-Id: Ib2d7ebbf3ef8ec35071f51c6168eb9b3af9405e6

11 years agoMerge "getLogger should be called after logging is configured"
Jenkins [Fri, 29 Mar 2013 18:29:24 +0000 (18:29 +0000)]
Merge "getLogger should be called after logging is configured"

11 years agoMerge "Mark sql_connection with secret flag"
Jenkins [Fri, 29 Mar 2013 12:06:51 +0000 (12:06 +0000)]
Merge "Mark sql_connection with secret flag"

11 years agoEnforce exclusive options snapshot-id, source-volid and image-id
Stephen Mulcahy [Thu, 28 Mar 2013 15:46:16 +0000 (15:46 +0000)]
Enforce exclusive options snapshot-id, source-volid and image-id

Fixed checks in api that volume create receives only one of
snapshot-id, source-volid or image-id.

Fixes bug #1161437

Change-Id: Ibe5ca4bb81e69b0f8e1abe1c2cffe587dc10e3ca

11 years agoAdd snapshot events to the cinder notification
Michael Kerrin [Thu, 28 Mar 2013 13:05:01 +0000 (13:05 +0000)]
Add snapshot events to the cinder notification

Added and tested snapshot.create.start & snapshot.create.end
on creation of a new snapshot

Added and tested snapshot.delete.start & snapshot.delete.end
on the deletion of a snapshot

Change-Id: Ic3c1cc8949109149c59cf106a24b4eb0d8ba5580

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

11 years agoMerge "Use the local configuration in the nfs drivers"
Jenkins [Thu, 28 Mar 2013 07:20:36 +0000 (07:20 +0000)]
Merge "Use the local configuration in the nfs drivers"

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

11 years agoMerge "Fix bug with 3PAR host entry in wrong domain"
Jenkins [Wed, 27 Mar 2013 05:56:27 +0000 (05:56 +0000)]
Merge "Fix bug with 3PAR host entry in wrong domain"

11 years agoMerge "Fix quota updating when admin deletes common user's volume"
Jenkins [Wed, 27 Mar 2013 00:45:11 +0000 (00:45 +0000)]
Merge "Fix quota updating when admin deletes common user's volume"

11 years agoMerge "Remove unused tools/rfc.sh"
Jenkins [Tue, 26 Mar 2013 17:51:50 +0000 (17:51 +0000)]
Merge "Remove unused tools/rfc.sh"

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

11 years agoMerge "Add the volume and snapshot gigabytes together."
Jenkins [Mon, 25 Mar 2013 22:19:44 +0000 (22:19 +0000)]
Merge "Add the volume and snapshot gigabytes together."

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.

Change-Id: Ic4bfa1aee3a4b6a7588be3678ac033a1b13e2b18

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

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

11 years agoMerge "Make dd block size user configurable"
Jenkins [Mon, 25 Mar 2013 16:58:50 +0000 (16:58 +0000)]
Merge "Make dd block size user configurable"

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

11 years agoMerge "CoraidDriver: support users that are not admin"
Jenkins [Sun, 24 Mar 2013 18:16:55 +0000 (18:16 +0000)]
Merge "CoraidDriver: support users that are not admin"

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

11 years agoMerge "Fixes Cinder REST API /volumes issue"
Jenkins [Sun, 24 Mar 2013 09:56:27 +0000 (09:56 +0000)]
Merge "Fixes Cinder REST API /volumes issue"

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

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

11 years agoFix bug with 3PAR host entry in wrong domain
Walter A. Boring IV [Fri, 22 Mar 2013 21:31:15 +0000 (14:31 -0700)]
Fix bug with 3PAR host entry in wrong domain

This patch exposes a more acurate exception message
when a user has created a manual host entry on a
3PAR system that is in an incorrect 3PAR domain than
the domain that is configured for the 3PAR driver.

The bug complained that it couldn't find a VLUN, when the
actual problem was the host existed in the wrong 3PAR domain.

Fixes bug #1158991

Change-Id: I3f92e59ae43a10a0788d97d987785b6520f9f1be

11 years agoMerge "Fixed attach volume for EMC SMI-S iSCSI driver"
Jenkins [Fri, 22 Mar 2013 20:39:12 +0000 (20:39 +0000)]
Merge "Fixed attach volume for EMC SMI-S iSCSI driver"

11 years agoMerge "Snapshot reservation sync calls wrong resource."
Jenkins [Fri, 22 Mar 2013 20:33:13 +0000 (20:33 +0000)]
Merge "Snapshot reservation sync calls wrong resource."

11 years agoMerge "Fetch volume_types by uuid and not by name in v2"
Jenkins [Fri, 22 Mar 2013 16:52:44 +0000 (16:52 +0000)]
Merge "Fetch volume_types by uuid and not by name in v2"

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

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

11 years agoMerge "CoraidDriver: typo in _login exception handler"
Jenkins [Fri, 22 Mar 2013 15:47:29 +0000 (15:47 +0000)]
Merge "CoraidDriver: typo in _login exception handler"

11 years agoMerge "CoraidDriver: do not call login from __init__"
Jenkins [Fri, 22 Mar 2013 15:47:27 +0000 (15:47 +0000)]
Merge "CoraidDriver: do not call login from __init__"

11 years agoMerge "Extend param2id() to work with uuids"
Jenkins [Fri, 22 Mar 2013 14:59:53 +0000 (14:59 +0000)]
Merge "Extend param2id() to work with uuids"

11 years agoUse the local configuration in the nfs drivers
Mehdi Abaakouk [Fri, 22 Mar 2013 09:26:09 +0000 (10:26 +0100)]
Use the local configuration in the nfs drivers

Fixes bug 1158681

Change-Id: If797a5d3241d6129a8fefea1222b723f03f86452

11 years agoMerge "Updates to OSAPI sizelimit middleware."
Jenkins [Fri, 22 Mar 2013 03:43:06 +0000 (03:43 +0000)]
Merge "Updates to OSAPI sizelimit middleware."

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

11 years agoMerge "Switch all uses of 422 response code to 400."
Jenkins [Thu, 21 Mar 2013 14:11:52 +0000 (14:11 +0000)]
Merge "Switch all uses of 422 response code to 400."

11 years agoClean up started volume services in tests.
Avishay Traeger [Thu, 21 Mar 2013 13:08:04 +0000 (15:08 +0200)]
Clean up started volume services in tests.

The test_preattach_status_volume test was failing due to state left by
another test. The interim solution was to skip the aforementioned test.
I tracked down the problem to 4 tests in test_admin_actions.py that
call self.start_service('volume', host='test'), and don't stop the
service. Stopping it in all 4 tests solves the problem.

HOWEVER, I don't know why these started services caused this particular
test to fail. I am still working to figure that out, but maybe someone
has an idea.

Change-Id: I2a5caaae9f61e7c7617c934917a10cf1cf3c0db6
Fixes: bug 1153108
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

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

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

11 years agoMerge "Remove the log spam generated by the NetApp driver unit tests."
Jenkins [Thu, 21 Mar 2013 04:21:00 +0000 (04:21 +0000)]
Merge "Remove the log spam generated by the NetApp driver unit tests."

11 years agoMerge "Update Cinder's latest copy of OSLO grizzly stable"
Jenkins [Thu, 21 Mar 2013 03:26:28 +0000 (03:26 +0000)]
Merge "Update Cinder's latest copy of OSLO grizzly stable"