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

11 years agoswift backup service checks version during restore
Stephen Mulcahy [Mon, 4 Mar 2013 16:10:34 +0000 (16:10 +0000)]
swift backup service checks version during restore

Modified swift backup service to check metadata version during restore
and raise an error if the backup version isn't a version that the
service knows how to handle. The versions which can be handled are
described in a dictionary mapping versions to methods which can handle
them. This will facilitate graceful handling of newer backup formats by
the swift backup service when we introduce changes.

Fixes bug: 1136174

Change-Id: Id7d05848fd448ce21f641e5cd6945477702cbe38

11 years agoMerge "Add some useful log to filter scheduler."
Jenkins [Sun, 3 Mar 2013 17:18:34 +0000 (17:18 +0000)]
Merge "Add some useful log to filter scheduler."

11 years agoAdd some useful log to filter scheduler.
John Griffith [Thu, 28 Feb 2013 18:34:07 +0000 (18:34 +0000)]
Add some useful log to filter scheduler.

When the filter scheduler is unable to find a suitable host to
deploy a volume on it simply logged a warning "not hosts found".
This isn't very helpful, so this patch adds some logging info as
far as why no valid host was available.  This just focuses on the
capacity filtering as that's where I've commonly seen this issue
particularly in tempest runs.

Also noticed that the get status was checking for "if Not capacity",
but this is wrong because free capacity==0 would be interpretted as
failing to get capacity.  Change this to "if is None".

Fixes bug: 1136147

Change-Id: Ia1ce508826ee69ae68a250ea68616909c59974e5

11 years agoMerge "Only use iscsi_helper config option if using LVMISCSIDriver"
Jenkins [Fri, 1 Mar 2013 08:10:33 +0000 (08:10 +0000)]
Merge "Only use iscsi_helper config option if using LVMISCSIDriver"

11 years agoMerge "Elevate context for delete volume with no host."
Jenkins [Fri, 1 Mar 2013 03:08:37 +0000 (03:08 +0000)]
Merge "Elevate context for delete volume with no host."

11 years agoMerge "Improved fail_reason for cinder-backup swift connection errors"
Jenkins [Fri, 1 Mar 2013 02:25:44 +0000 (02:25 +0000)]
Merge "Improved fail_reason for cinder-backup swift connection errors"

11 years agoElevate context for delete volume with no host.
John Griffith [Thu, 28 Feb 2013 19:01:39 +0000 (19:01 +0000)]
Elevate context for delete volume with no host.

So in the case of a volume that is placed in error state
on create and never actually deployed, the cinder.volume.api delete
call does a short cut call to db.destroy_volume which is fine because
all we have is a DB entry (scheduler never deployed the volume).

Unfortunately, this requires admin context, so just add an elevate
context to the db.destroy_volume call.

Fixes bug: 1084273

Change-Id: I0ef8bf4356047c385bef703b8dce7d5edf537bf6

11 years agoImproved fail_reason for cinder-backup swift connection errors
Stephen Mulcahy [Thu, 28 Feb 2013 12:11:39 +0000 (12:11 +0000)]
Improved fail_reason for cinder-backup swift connection errors

Modified swift backup service to catch socket errors when talking to
swift and raise a specific SwiftConnectionFailed exception in these
cases. This allows us to provide a more readable error message
detailing the problem connecting to swift to the end user when they
view the backup. Also reduced the default number of swift retries
so devstack environments fail faster - production environments can
tune these in cinder.conf.

Fixes bug: 1132791

Change-Id: Ibca744ea5adcbd31d068ac3d858bde6a4a0c9844

11 years agoMerge "Convert from using FLAGS directly in SF driver."
Jenkins [Thu, 28 Feb 2013 06:36:25 +0000 (06:36 +0000)]
Merge "Convert from using FLAGS directly in SF driver."

11 years agoConvert from using FLAGS directly in SF driver.
john-griffith [Fri, 22 Feb 2013 05:06:26 +0000 (22:06 -0700)]
Convert from using FLAGS directly in SF driver.

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.

This patch converts the driver and updates tests.

Fixes bug: 1131553

Change-Id: Id1a7c583894ac368bdcc61facc6f72300db320c7

11 years agoMerge "Improve logging for volume operations via manager"
Jenkins [Thu, 28 Feb 2013 02:33:03 +0000 (02:33 +0000)]
Merge "Improve logging for volume operations via manager"

11 years agoMerge "NetApp: Fix race condition in 7-mode iSCSI driver with DFM."
Jenkins [Wed, 27 Feb 2013 23:15:07 +0000 (23:15 +0000)]
Merge "NetApp: Fix race condition in 7-mode iSCSI driver with DFM."

11 years agoMerge "Fix query filter in volume_get_active_by_window()"
Jenkins [Wed, 27 Feb 2013 23:04:00 +0000 (23:04 +0000)]
Merge "Fix query filter in volume_get_active_by_window()"

11 years agoMerge "Fixes the provisioning on selected volumes for NetApp 7 mode."
Jenkins [Wed, 27 Feb 2013 22:47:23 +0000 (22:47 +0000)]
Merge "Fixes the provisioning on selected volumes for NetApp 7 mode."

11 years agoImprove logging for volume operations via manager
John Griffith [Wed, 27 Feb 2013 20:49:53 +0000 (20:49 +0000)]
Improve logging for volume operations via manager

A large percentage of the logging information was
being done using debug.  This change moves some
of the logging information to be info level and
also tries to add some consistency in terms of
the general create/delete operations.

This includes moving logging for the basic operations
into the manager and omitting the repetive messages from
the drivers.

Fixes bug: 1133131

Change-Id: I792efde67f30d637431ad2fa45714e50bf9c705d

11 years agoOnly use iscsi_helper config option if using LVMISCSIDriver
Eric Harney [Fri, 22 Feb 2013 16:27:29 +0000 (11:27 -0500)]
Only use iscsi_helper config option if using LVMISCSIDriver

_get_iscsi_properties checks for iscsi_helper == 'tgtadm',
but this is run for drivers other than LVMISCSIDriver.

Only change target_lun based on iscsi_helper if using
LVMISCSIDriver/ThinLVMVolumeDriver.

Change-Id: I8c63f8d4097682c875bbfdfade665fdacbcf8e22

11 years agoFix query filter in volume_get_active_by_window()
Ollie Leahy [Wed, 27 Feb 2013 18:30:38 +0000 (18:30 +0000)]
Fix query filter in volume_get_active_by_window()

Fixes LP bug #1131320

Change-Id: Iec51ecbe49a76e3a5b7374b04f20949c77c52984

11 years agoChanged to INFO level logging for main cinder-backup operations
Stephen Mulcahy [Wed, 27 Feb 2013 09:15:57 +0000 (09:15 +0000)]
Changed to INFO level logging for main cinder-backup operations

Changed create backup, restore backup and delete backup operations to
log key operations at INFO level instead of DEBUG level (so environments
like devstack see main operations by default).

Fixes bug: 1132788

Change-Id: I3b4600be8fbc1869054f81752c92936d55395185

11 years agoNetApp: Clean up lock file left behind by unit tests
Rushi Agrawal [Tue, 26 Feb 2013 12:15:57 +0000 (17:45 +0530)]
NetApp: Clean up lock file left behind by unit tests

The synchronization decorator added to the NetAppISCSIDriver class
creates a lock file named cinder/openstack/cinder-netapp_dfm
during the unit tests. This commit cleans it up.

Fixes bug 1135619

Change-Id: Iec41a0f23d4a1c6668bdcb451c2c02efd3f97500

11 years agoNetApp: Fix race condition in 7-mode iSCSI driver with DFM.
Rushi Agrawal [Wed, 27 Feb 2013 11:37:41 +0000 (06:37 -0500)]
NetApp: Fix race condition in 7-mode iSCSI driver with DFM.

A race condition was discovered in the driver while creating
or deleting multiple volumes in a very short interval of time
(can be reproduced by making successive API calls to Cinder).
This fix decorates the methods responsible for race condition
with a synchronized() decorator. The problem was with the
management software: DFM, and in principle, there should not
be two processes trying to modify the DFM dataset object at
the same time. This patch prevents from such a possibility.

Fixes bug 1091480

Change-Id: I11cfc8868171acec356f4140aba52b8078d109df

11 years agoMerge "XenAPINFS: Fix Volume always uploaded as vhd/ovf"
Jenkins [Mon, 25 Feb 2013 02:22:17 +0000 (02:22 +0000)]
Merge "XenAPINFS: Fix Volume always uploaded as vhd/ovf"

11 years agoMerge "allow run_tests.sh to report why it failed"
Jenkins [Sun, 24 Feb 2013 19:42:22 +0000 (19:42 +0000)]
Merge "allow run_tests.sh to report why it failed"

11 years agoMerge "Remove compat cfg wrapper"
Jenkins [Sat, 23 Feb 2013 22:32:48 +0000 (22:32 +0000)]
Merge "Remove compat cfg wrapper"

11 years agoupdate install_venv_common to handle bootstrapping
Sean Dague [Fri, 22 Feb 2013 20:02:57 +0000 (15:02 -0500)]
update install_venv_common to handle bootstrapping

old install_venv_common used oslo-config, which makes for bad
recursive dependencies, and we can't build a venv from a fresh
tree.

Change-Id: I09336d760842d4eb57f2b70fdfe19afaf6520a48

11 years agoallow run_tests.sh to report why it failed
Sean Dague [Fri, 22 Feb 2013 18:22:42 +0000 (13:22 -0500)]
allow run_tests.sh to report why it failed

the set -e was suppressing all the echo information about why
run_tests.sh was failing, which makes it quite hard to figure out
what is going on.

Change-Id: Ie210ee5b5e9ff0028a89da520580db7cd1d9f03a

11 years agoRemove compat cfg wrapper
Mark McLoughlin [Fri, 22 Feb 2013 17:25:07 +0000 (17:25 +0000)]
Remove compat cfg wrapper

This wrapper was there to allow oslo-config changes through the gate
while keystoneclient hadn't been updated.

Change-Id: I3d48673af58ae379e8e4d2c7fb4b4d81f3ed67dd

11 years agoMerge "Fix various exception paths"
Jenkins [Thu, 21 Feb 2013 18:26:48 +0000 (18:26 +0000)]
Merge "Fix various exception paths"

11 years agoXenAPINFS: Fix Volume always uploaded as vhd/ovf
Mate Lakat [Thu, 21 Feb 2013 17:10:42 +0000 (17:10 +0000)]
XenAPINFS: Fix Volume always uploaded as vhd/ovf

Fixes bug 1131291

copy_volume_to_image was always using the glance plugin to do the
upload, and was ignoring the users request. Thus the image was always
uploaded as vhd/ovf. This patch is using the image utils to fix the
generic case.

Change-Id: If12c3d175b3d4437305ac4d2f954a2a42ee3a3c1

11 years agoMerge "Fixed cinder-backup start errors seen with devstack"
Jenkins [Thu, 21 Feb 2013 15:55:46 +0000 (15:55 +0000)]
Merge "Fixed cinder-backup start errors seen with devstack"

11 years agoFixed cinder-backup start errors seen with devstack
Stephen Mulcahy [Thu, 21 Feb 2013 11:10:34 +0000 (11:10 +0000)]
Fixed cinder-backup start errors seen with devstack

Changes:
- Added cinder-backup to scripts in setup.py
- Added service_name to backup manager __init__
- Switched backup manager to using oslo.config
- Modified cinder-backup to use ProcessLauncher

Fixes bug: 1131147

Change-Id: I9b02d64def4ee892e9cfde4b4bcd50e5f9f9b707

11 years agoCinder devref doc cleanups
Tom Fifield [Thu, 21 Feb 2013 10:10:16 +0000 (21:10 +1100)]
Cinder devref doc cleanups

Way back when Cinder was inagurated as a separate project, the docs
directory from Nova was used as a seed for the one in the Cinder repo

This patch is simply cleaning out images and files which have no
relation to Cinder at all, and are at best extremely outdated when
applied to Nova.

Aside from the deletions which are mainly images, and files related
to the configuration of CloudPipe, there is one modification to
conf.py which simply removes a reference to a vmware doc that no
longer exists.

Change-Id: I2140035f98bd332f25d7dd7569993bcd960a869e

11 years agoFix various exception paths
Mate Lakat [Wed, 20 Feb 2013 15:34:05 +0000 (15:34 +0000)]
Fix various exception paths

Fixes bug 1130723

Some bugs were introduced in https://review.openstack.org/#/c/20514/
this patch fixes the discovered errors. It also removes volume_id
parameters from error messages.

Change-Id: I9ff75482fe2bc13dbb65e7d666035a13a19d5c98

11 years agoMerge "Implement metadata options for snapshots"
Jenkins [Thu, 21 Feb 2013 07:41:46 +0000 (07:41 +0000)]
Merge "Implement metadata options for snapshots"

11 years agoMerge "XenAPINFS: Create volume from image (generic)"
Jenkins [Thu, 21 Feb 2013 07:34:03 +0000 (07:34 +0000)]
Merge "XenAPINFS: Create volume from image (generic)"

11 years agoImplement metadata options for snapshots
John Griffith [Mon, 18 Feb 2013 23:39:06 +0000 (23:39 +0000)]
Implement metadata options for snapshots

This patch implements metadata for snapshots as well as
the ability to update/delete that metadata.

Implements blueprint: update-snap-metadata

Change-Id: Iec2b7a51cdc3dffad41f24807067cc6c8e7d5135

11 years agoMerge "Skip timestamp check if 'capabilities' is none"
Jenkins [Thu, 21 Feb 2013 05:26:30 +0000 (05:26 +0000)]
Merge "Skip timestamp check if 'capabilities' is none"

11 years agoMerge "Fix stale volume list for NetApp 7-mode ISCSI driver"
Jenkins [Thu, 21 Feb 2013 04:44:46 +0000 (04:44 +0000)]
Merge "Fix stale volume list for NetApp 7-mode ISCSI driver"

11 years agoMerge "Implement a basic backup-volume-to-swift service"
Jenkins [Thu, 21 Feb 2013 04:37:22 +0000 (04:37 +0000)]
Merge "Implement a basic backup-volume-to-swift service"

11 years agoSkip timestamp check if 'capabilities' is none
Mandell Degerness [Thu, 21 Feb 2013 02:59:44 +0000 (02:59 +0000)]
Skip timestamp check if 'capabilities' is none

fix bug: #1131011

Change-Id: I6266560627d03d95862a7f2c85ac63e2e9daef6b

11 years agoFix stale volume list for NetApp 7-mode ISCSI driver
Rushi Agrawal [Mon, 21 Jan 2013 16:01:48 +0000 (21:31 +0530)]
Fix stale volume list for NetApp 7-mode ISCSI driver

While contacting filer through DFM in order to create volume from
snapshot, the operation may fail with an error "No entry in LUN
table for volume". Although the LUN representing the volume was
created on the filer, the LUN list was not refreshed in time, which
 caused an error. This fix handles this situation for creating
volume from snapshots.

Note that this fix adds the requirement that the driver host and
DFM machine should be reasonably time-synchronized.

Fixes bug 1095633

Change-Id: I77fff4c36a3af72d28f2d01988a6067919093718

11 years agoMerge "Uses tempdir module to create/delete xml file"
Jenkins [Thu, 21 Feb 2013 01:19:09 +0000 (01:19 +0000)]
Merge "Uses tempdir module to create/delete xml file"

11 years agoMerge "Moved cinder_emc_config.xml.sample to emc folder"
Jenkins [Thu, 21 Feb 2013 01:19:02 +0000 (01:19 +0000)]
Merge "Moved cinder_emc_config.xml.sample to emc folder"

11 years agoImplement a basic backup-volume-to-swift service
Duncan Thomas [Wed, 20 Feb 2013 18:07:55 +0000 (18:07 +0000)]
Implement a basic backup-volume-to-swift service

Implements: blueprint volume-backups

This patch adds the new service, api and basic unit tests

Change-Id: Ibe02c680c5e9201d208c92e796e86ad76b4b54b3

11 years agoMerge "Add HUAWEI volume driver in Cinder"
Jenkins [Wed, 20 Feb 2013 22:48:40 +0000 (22:48 +0000)]
Merge "Add HUAWEI volume driver in Cinder"

11 years agoMerge "Better error handling around volume delete."
Jenkins [Wed, 20 Feb 2013 20:45:14 +0000 (20:45 +0000)]
Merge "Better error handling around volume delete."

11 years agoMerge "Bump the oslo-config version to address issues."
Jenkins [Wed, 20 Feb 2013 19:13:57 +0000 (19:13 +0000)]
Merge "Bump the oslo-config version to address issues."

11 years agoBetter error handling around volume delete.
Michael Basnight [Wed, 20 Feb 2013 16:12:03 +0000 (10:12 -0600)]
Better error handling around volume delete.

fixes bug 1130844

Change-Id: I6886bff24194c2ace3d7719b93b5ab79aa8a0e8d

11 years agoMoved cinder_emc_config.xml.sample to emc folder
Xing Yang [Wed, 20 Feb 2013 18:34:48 +0000 (13:34 -0500)]
Moved cinder_emc_config.xml.sample to emc folder

Vendor unique driver files should not be placed in /cinder/etc/cinder, but
should stay with the vendors driver.  Moved cinder_emc_config.xml.sample
to cinder/volume/drivers/emc folder.

Change-Id: I92151abdf46a3597ea94284b6dfcf611153cab19
Fixes: bug #1130496
11 years agoUses tempdir module to create/delete xml file
Xing Yang [Wed, 20 Feb 2013 18:22:59 +0000 (13:22 -0500)]
Uses tempdir module to create/delete xml file

The emc test in cinder is leaving behind its test generated
cinder_emc_config.xml file in /cinder/tests directory.  This
fix uses tempdir module to create the xml file and delete it
when tearDown is called.

Change-Id: I7fd1dda83a097d1122c58cd3ed723ed7f5de30d8
Fixes: bug #1130495
11 years agoAdd HUAWEI volume driver in Cinder
zhangchao010 [Tue, 19 Feb 2013 03:39:25 +0000 (11:39 +0800)]
Add HUAWEI volume driver in Cinder

This is an iSCSI driver.It supports HUAWEI OceanStor T and
Dorado series storage systems.The driver communicates with
storage systems based on SSH.

Implements: blueprint huawei-volume-driver
Change-Id: Ib3fd8ff636106e751789f6367a5b57bdaab316f4

11 years agoXenAPINFS: Create volume from image (generic)
Mate Lakat [Wed, 13 Feb 2013 10:48:34 +0000 (10:48 +0000)]
XenAPINFS: Create volume from image (generic)

Fixes bug 1130706

Related to blueprint xenapinfs-glance-integration

This patch enables users to use any images recognised by qemu-img to
create volumes on XenAPINFS.

Change-Id: I9dd8ec237309da82ec7f73db1acb48e5b7411c9e

11 years agoMerge "rbd: implement get_volume_stats()"
Jenkins [Wed, 20 Feb 2013 17:50:07 +0000 (17:50 +0000)]
Merge "rbd: implement get_volume_stats()"

11 years agoMerge "Add LIO configuration for iSCSI initiators"
Jenkins [Wed, 20 Feb 2013 17:38:28 +0000 (17:38 +0000)]
Merge "Add LIO configuration for iSCSI initiators"

11 years agoBump the oslo-config version to address issues.
john-griffith [Wed, 20 Feb 2013 17:16:15 +0000 (10:16 -0700)]
Bump the oslo-config version to address issues.

Cinder unit tests weren't running with b3, b4 has some
fixes that put things back on track.

Change-Id: I7f8b7e1ab688790577d5ea3e95b4b20c6e552fae

11 years agoEnsure volume exists before deleting.
Michael Basnight [Wed, 20 Feb 2013 16:12:03 +0000 (10:12 -0600)]
Ensure volume exists before deleting.

fixes bug 1130744

Change-Id: I39152dd1caa5ab1b2cfbae56eaec8c8fa309669c

11 years agoAdd LIO configuration for iSCSI initiators
Eric Harney [Tue, 5 Feb 2013 23:02:46 +0000 (18:02 -0500)]
Add LIO configuration for iSCSI initiators

LIO requires iSCSI initiator IQNs to be specified in an ACL to be
allowed to connect to the target. Currently this is only done for
the IQN of the initiator on the cinder-volume node.

This patch allows setting lio_initiator_iqns in cinder.conf to
provide access to other nodes.  (Remote Nova compute nodes.)

Change-Id: I7ddee542fcd3fba5b6f142ad15459c08cfedc9d2