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

11 years agoMerge "Update cinder-manage to use FLAGS.log_dir."
Jenkins [Wed, 20 Feb 2013 10:36:27 +0000 (10:36 +0000)]
Merge "Update cinder-manage to use FLAGS.log_dir."

11 years agoMerge "Add a volume driver in Cinder for Scality SOFS"
Jenkins [Wed, 20 Feb 2013 08:58:50 +0000 (08:58 +0000)]
Merge "Add a volume driver in Cinder for Scality SOFS"

11 years agoMerge "Handle maxclonepervolume/node limits in SF driver."
Jenkins [Wed, 20 Feb 2013 08:50:36 +0000 (08:50 +0000)]
Merge "Handle maxclonepervolume/node limits in SF driver."

11 years agorbd: implement get_volume_stats()
Josh Durgin [Wed, 20 Feb 2013 01:11:41 +0000 (17:11 -0800)]
rbd: implement get_volume_stats()

Report raw capacity because replication level may change, and the
cluster may be used by more than one service. If the command fails for
any reason, return unknown capacity.

Change-Id: If6871124301b51e4768ea64c4d8e5109e0804db8
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoMerge "Use oslo-config-2013.1b3"
Jenkins [Wed, 20 Feb 2013 07:02:31 +0000 (07:02 +0000)]
Merge "Use oslo-config-2013.1b3"

11 years agoMerge "Set rootwrap_config in cinder.conf sample."
Jenkins [Wed, 20 Feb 2013 06:16:46 +0000 (06:16 +0000)]
Merge "Set rootwrap_config in cinder.conf sample."

11 years agoHandle maxclonepervolume/node limits in SF driver.
John Griffith [Wed, 20 Feb 2013 04:34:01 +0000 (21:34 -0700)]
Handle maxclonepervolume/node limits in SF driver.

The SolidFire cluster has a max simultaneous clones per volume and node
limt that we weren't accounting for.  Add some logic to detect this situation
and loop until enough simultaneous clones are completed to allow processing
of the next one in line.

Fixes bug: 1129810

Change-Id: Id63c1b142a81df5d9d2c4e39fb821b03ebac63a2

11 years agoUse oslo-config-2013.1b3
Mark McLoughlin [Sun, 10 Feb 2013 23:55:24 +0000 (18:55 -0500)]
Use oslo-config-2013.1b3

The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Add dependency_links to setup.py so that oslo-config can be installed
from the tarball URL specified in pip-requires.

Remove the 'deps = pep8==1.3.3' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.

Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc

11 years agoMerge "Add a safe_minidom_parse_string function."
Jenkins [Wed, 20 Feb 2013 00:00:31 +0000 (00:00 +0000)]
Merge "Add a safe_minidom_parse_string function."

11 years agoMerge "HP 3PAR Fibre Channel Driver and iSCSI Updates"
Jenkins [Tue, 19 Feb 2013 23:07:14 +0000 (23:07 +0000)]
Merge "HP 3PAR Fibre Channel Driver and iSCSI Updates"

11 years agoMerge "Fibre Channel base class for Cinder drivers"
Jenkins [Tue, 19 Feb 2013 23:07:10 +0000 (23:07 +0000)]
Merge "Fibre Channel base class for Cinder drivers"

11 years agoMerge "Fix syntax error in cinder-volume-usage-audit"
Jenkins [Tue, 19 Feb 2013 23:05:16 +0000 (23:05 +0000)]
Merge "Fix syntax error in  cinder-volume-usage-audit"

11 years agoMerge "Fix create volume from image."
Jenkins [Tue, 19 Feb 2013 23:05:07 +0000 (23:05 +0000)]
Merge "Fix create volume from image."

11 years agoMerge "Update Storwize/SVC driver for Grizzly."
Jenkins [Tue, 19 Feb 2013 21:50:07 +0000 (21:50 +0000)]
Merge "Update Storwize/SVC driver for Grizzly."

11 years agoMerge "Skip tests if cinder is not installed"
Jenkins [Tue, 19 Feb 2013 21:29:06 +0000 (21:29 +0000)]
Merge "Skip tests if cinder is not installed"

11 years agoMerge "XenAPINFS: fix capacity reporting"
Jenkins [Tue, 19 Feb 2013 21:28:50 +0000 (21:28 +0000)]
Merge "XenAPINFS: fix capacity reporting"

11 years agoFix syntax error in cinder-volume-usage-audit
Ollie Leahy [Tue, 19 Feb 2013 17:54:59 +0000 (17:54 +0000)]
Fix syntax error in  cinder-volume-usage-audit

There was a syntax error in a print statement in cinder-volume-usage-audit
which caused the script to crash.

Fixes LP bug #1130266

Change-Id: If4b0102ec5218fc8347f97041ac65f633111c26f

11 years agoHP 3PAR Fibre Channel Driver and iSCSI Updates
Kurt Martin [Wed, 13 Feb 2013 21:55:43 +0000 (13:55 -0800)]
HP 3PAR Fibre Channel Driver and iSCSI Updates

This is the initial FC driver for the HP 3PAR array, along with some
3PAR iSCSI driver cleanup and changes in the HP 3PAR common class.
Summary of changes:
* Initial FC Driver for the Grizzly release (depends on the FC base class
  and nova FC changes https://review.openstack.org/#/c/19992/ &
  https://review.openstack.org/#/c/20003/)
* Updates to iSCSI Driver include volume type and create clone volume support
  as well as general cleanup(comments, copyright, minor bug fixes).
* The tests have been updated to add FC test and the file was renamed
  to reflect both FC and iSCSI 3PAR tests.
* Volume types added for the Grizzly release include cpg, snap_cpg, persona
  and provisioning(thin vs. full)

Partially Implements: blueprint fibre-channel-block-storage

Change-Id: Ie1c2e755aa1bcd5994ea4b02674718721b958e07

11 years agoFibre Channel base class for Cinder drivers
Kurt Martin [Wed, 13 Feb 2013 19:30:17 +0000 (11:30 -0800)]
Fibre Channel base class for Cinder drivers

This is the base class, FibreChannelDriver, for all fibre channel
drivers to extend. Currently, it has only initialize_connection
with comments, but this will be a place to put common functions
similar to the iSCSI base class.

This patch depends on the following nova and devstack changes
to be functional(both still in the review process but approved
for Grizzly):
https://review.openstack.org/#/c/19992/
https://review.openstack.org/#/c/20003/

This patch does not support copy_image_to_volume and
copy_volume_to_image in the Grizzly release. We'll revisit
this in Havana and add that support.

Partially Implements: blueprint fibre-channel-block-storage

Change-Id: I8bd28b8bd96deaec1db219457f407169ed172f69

11 years agoUpdate cinder-manage to use FLAGS.log_dir.
Dan Prince [Tue, 19 Feb 2013 17:46:03 +0000 (12:46 -0500)]
Update cinder-manage to use FLAGS.log_dir.

We no longer use FLAGS.logdir. This commit updates
cinder-manage to use the new FLAGS.log_dir option instead.

Fixes LP Bug #1130258.

Change-Id: Id5f1175ec83f0f0b677ab0d75b310fa054459319

11 years agoAdd a safe_minidom_parse_string function.
Dan Prince [Mon, 4 Feb 2013 02:54:33 +0000 (21:54 -0500)]
Add a safe_minidom_parse_string function.

Adds a new utils.safe_minidom_parse_string function and
updates external API facing Cinder modules to use it.
This ensures we have safe defaults on our incoming API XML parsing.

Internally safe_minidom_parse_string uses a ProtectedExpatParser
class to disable DTDs and entities from being parsed when using
minidom.

Fixes LP Bug #1100282.

Change-Id: Iff8340033c8e8db58184944a1bf705e16b8b3e03

11 years agoMerge "Install rtslib when installing cinder"
Jenkins [Tue, 19 Feb 2013 11:47:41 +0000 (11:47 +0000)]
Merge "Install rtslib when installing cinder"

11 years agoAdd a volume driver in Cinder for Scality SOFS
Jean-Marc Saffroy [Mon, 14 Jan 2013 11:19:52 +0000 (12:19 +0100)]
Add a volume driver in Cinder for Scality SOFS

Scality SOFS is a network filesystem mounted with FUSE, with most
options given in a configuration file. Given a mount point and a SOFS
configuration file as driver options, the Scality volume driver mounts
SOFS, and then creates, accesses and deletes volumes as regular
(sparse) files on SOFS.

Change-Id: I914714e8547a505109514e2072f9e258abca8bd4
Implements: blueprint scality-volume-driver

11 years agoFix create volume from image.
Mate Lakat [Mon, 18 Feb 2013 15:33:28 +0000 (15:33 +0000)]
Fix create volume from image.

Fix for bug 1129199

During creating a volume from an image, the volume status changed
from creating to active, skipping the download phase. This bug was most
likely introduced during:
https://review.openstack.org/20514
This patch fixes the issue by change image_location back to image_id at
the correct place.
This patch also fixes an error in the exception handling, and the update
of the volume status after creation.

Change-Id: Ib9b647031c029387b776c27f9233388bd2c67e9c

11 years agoXenAPINFS: fix capacity reporting
Mate Lakat [Mon, 18 Feb 2013 12:45:37 +0000 (12:45 +0000)]
XenAPINFS: fix capacity reporting

Fixes bug 1129056

XenAPINFS did not implement the get_volume_stats method, thus
CapacityFilter fitered out the host, thus no volume was scheduled. This
fix is working around this problem quickly, by reporting an 'unknown'
capacity.

Change-Id: I1dc5327e420a3316201318d52f602ced071d459b

11 years agoUpdate Storwize/SVC driver for Grizzly.
Avishay Traeger [Thu, 7 Feb 2013 19:50:31 +0000 (21:50 +0200)]
Update Storwize/SVC driver for Grizzly.

Includes FC support, create_cloned_volume, volume type support,
get_volume_stats, and minor bug fixes.

Change-Id: I13e3d7921c5127e6b4e0cbb4e91761e0249ec295

11 years agoSet rootwrap_config in cinder.conf sample.
John Griffith [Tue, 19 Feb 2013 00:11:44 +0000 (17:11 -0700)]
Set rootwrap_config in cinder.conf sample.

Remove the root_helper=sudo in cinder.conf.sample and
move to the rootwrap_config=/etc/cinder/rootwrap.conf as
the default.

Change-Id: Ib4bacf4d24993cb9506b51523a5ba44fe1f85d18

11 years agoMerge "Fix undef function call in test_migrations for py26"
Jenkins [Mon, 18 Feb 2013 23:34:03 +0000 (23:34 +0000)]
Merge "Fix undef function call in test_migrations for py26"

11 years agoSkip tests if cinder is not installed
Chuck Short [Mon, 18 Feb 2013 14:11:20 +0000 (08:11 -0600)]
Skip tests if cinder is not installed

Skipp test_restry_disabled and test_retry_attempt_one
if cinder is not installed.

Change-Id: Iccc36e2ce0f57b5fa67566e1da543f9888bf0f57
Signed-off-by: Chuck Short <chuck.short@canonical.com>
11 years agoMerge "Update cinder-volume to enable multi volume support"
Jenkins [Mon, 18 Feb 2013 20:47:15 +0000 (20:47 +0000)]
Merge "Update cinder-volume to enable multi volume support"

11 years agoMerge "Fix PEP8 violation (again)"
Jenkins [Mon, 18 Feb 2013 20:23:56 +0000 (20:23 +0000)]
Merge "Fix PEP8 violation (again)"

11 years agoFix undef function call in test_migrations for py26
Mike Perez [Mon, 18 Feb 2013 19:17:26 +0000 (11:17 -0800)]
Fix undef function call in test_migrations for py26

unittest does not have this function until later. This uses the already
imported cinder.test.skip_unless to accomplish the same result without
outputted error.

Change-Id: Id20add5a0d41e5d8cf6f8bc6aa0e547e5e386dab

11 years agoMerge "Sync latest cfg and log from oslo-incubator"
Jenkins [Mon, 18 Feb 2013 17:52:04 +0000 (17:52 +0000)]
Merge "Sync latest cfg and log from oslo-incubator"

11 years agoFix PEP8 violation (again)
Mate Lakat [Mon, 18 Feb 2013 17:31:14 +0000 (17:31 +0000)]
Fix PEP8 violation (again)

Change-Id: I91d8d4d879bfdffffe982aafa228c374506921df

11 years agoUpdate cinder-volume to enable multi volume support
Michael Basnight [Mon, 11 Feb 2013 21:54:45 +0000 (15:54 -0600)]
Update cinder-volume to enable multi volume support

* Added the service wrapper for multi binscripts
* Added a service_name to manager
* Added the configuration wrapper so the impls do not need
  to know if they are accessing config values from a option
  group or from the DEFAULT group
* Updated drivers to use the new configuration wrapper
* Added an example config set for multi backend
* Modified service to comply w/ common
* Added get_volume_stats to iscsi
* Added config for volume_backend_name

implements blueprint multi-volume-backends

Change-Id: Idb86ac5f1c06b9cd5061bef6a24f17727e9a58c1

11 years agoInstall rtslib when installing cinder
Chuck Short [Mon, 18 Feb 2013 14:03:32 +0000 (08:03 -0600)]
Install rtslib when installing cinder

It doesnt make sense to put rtslib in tools/test-requires
since it is not directly using the python module while running
the tests, since the tests use cinder-rtstool.

Change-Id: Ib39b91e25f22b4943ef17eee50967828f7460b25
Signed-off-by: Chuck Short <chuck.short@canonical.com>
11 years agoSync latest cfg and log from oslo-incubator
Mark McLoughlin [Mon, 21 Jan 2013 16:25:38 +0000 (16:25 +0000)]
Sync latest cfg and log from oslo-incubator

Main cfg change is:

  c5984ba Move logging config options into the log module

Logging changes include:

  c5984ba Move logging config options into the log module
  751c35b Verbose should not enable debug level logging
  edcdd25 Improve millisecond logging
  9e5912f Fix pep8 E125 errors.
  edf14e0 Enable millisecond logging by default
  9b81289 Allow nova and others to override some logging defaults
  90ada0e update deprecated stanza
  efba202 Adjust the logging_context_format_string.
  c8cf6f7 move nova.common.deprecated to openstack-common

Fixes bug #989269

Use new LOG.deprecated() in place of cinder.common.deprecated.warn().

Also pull this cinder/context.py change from nova:

  ce098cc Add user/tenant shim to RequestContext

to avoid issues caused by a s/user_id/user/ change in the context
logging format.

Change-Id: I3913ea54465658d93dc56e014dfe5d911b0541d6

11 years agoMerge "Handle 'infinite' and 'unknown' capacity in CapacityWeigher"
Jenkins [Mon, 18 Feb 2013 07:31:55 +0000 (07:31 +0000)]
Merge "Handle 'infinite' and 'unknown' capacity in CapacityWeigher"

11 years agoMerge "Update snapshot rest api to be consistent with volumes"
Jenkins [Mon, 18 Feb 2013 02:05:55 +0000 (02:05 +0000)]
Merge "Update snapshot rest api to be consistent with volumes"

11 years agoMerge "Add get_cluster_stats to SolidFire driver"
Jenkins [Sun, 17 Feb 2013 17:12:22 +0000 (17:12 +0000)]
Merge "Add get_cluster_stats to SolidFire driver"

11 years agoHandle 'infinite' and 'unknown' capacity in CapacityWeigher
Zhiteng Huang [Sun, 17 Feb 2013 08:32:04 +0000 (16:32 +0800)]
Handle 'infinite' and 'unknown' capacity in CapacityWeigher

This patch updates CapacityWeigher to transform 'infinite' and
'unknown' capacity reported by back-ends to float('inf').  They
are considered the same for sorting purpose.

Change-Id: Ic8f811227c9937c4e09eb8b77457ed7e9231be4e

11 years agoMerge "Add an ID to temporary volume snapshot object"
Jenkins [Sat, 16 Feb 2013 20:25:39 +0000 (20:25 +0000)]
Merge "Add an ID to temporary volume snapshot object"

11 years agoAdd get_cluster_stats to SolidFire driver
john-griffith [Sat, 16 Feb 2013 16:58:46 +0000 (09:58 -0700)]
Add get_cluster_stats to SolidFire driver

With the filter scheduler addition we added get_stats to the
drivers.  This provides the required data for the filtering
mechanisms and is called by the scheduler.

The change adds the required call in the driver and also adds
an update routine to it's init to populate this info on startup.
This also adds the fake api response so that the tests can perform
the init routine and get the data, while giving the added bonus of
testing the new functions at the same time.

Change-Id: Ia75e078f8e73883131cb1e68f6e6713fce1ab518

11 years agoMerge "Add GlusterFS volume driver"
Jenkins [Sat, 16 Feb 2013 16:38:15 +0000 (16:38 +0000)]
Merge "Add GlusterFS volume driver"

11 years agoMerge "Add LIO iSCSI backend support using python-rtslib"
Jenkins [Sat, 16 Feb 2013 14:42:41 +0000 (14:42 +0000)]
Merge "Add LIO iSCSI backend support using python-rtslib"

11 years agoMerge "rbd: update volume<->image copying"
Jenkins [Sat, 16 Feb 2013 10:54:33 +0000 (10:54 +0000)]
Merge "rbd: update volume<->image copying"

11 years agoMerge "Update EMC SMI-S Driver"
Jenkins [Sat, 16 Feb 2013 10:54:27 +0000 (10:54 +0000)]
Merge "Update EMC SMI-S Driver"

11 years agoMerge "Add an update option to run_tests.sh"
Jenkins [Sat, 16 Feb 2013 06:18:08 +0000 (06:18 +0000)]
Merge "Add an update option to run_tests.sh"

11 years agoMerge "Create a RemoteFsDriver class"
Jenkins [Sat, 16 Feb 2013 04:19:10 +0000 (04:19 +0000)]
Merge "Create a RemoteFsDriver class"

11 years agoMerge "Adding support for Coraid AoE SANs Appliances."
Jenkins [Sat, 16 Feb 2013 04:19:07 +0000 (04:19 +0000)]
Merge "Adding support for Coraid AoE SANs Appliances."

11 years agoMerge "Allow create_volume() to retry when exception happened"
Jenkins [Fri, 15 Feb 2013 21:38:33 +0000 (21:38 +0000)]
Merge "Allow create_volume() to retry when exception happened"

11 years agoAdding support for Coraid AoE SANs Appliances.
Jean-Baptiste RANSY [Fri, 8 Feb 2013 20:10:39 +0000 (21:10 +0100)]
Adding support for Coraid AoE SANs Appliances.

This driver provide support for Coraid hardware storage appliances
using AoE (ATA Over Ethernet) protocol.

Implements blueprint coraid-volume-driver

Reference to Nova patch libvirt-aoe :
https://review.openstack.org/21101

The following operations are supported :
-- Volume Creation with Volume Types
-- Volume Deletion
-- Volume Attach
-- Volume Detach
-- Snapshot Creation
-- Snapshot Deletion
-- Create Volume from Snapshot
-- Volume Stats

The driver only work when operating on EtherCloud ESM,
Coraid VSX and Coraid SRX Appliances.

Change-Id: I7c8dde0c99698b52c151a4db0fb1bb94d516db61

11 years agoAdd an update option to run_tests.sh
Matthew Treinish [Fri, 15 Feb 2013 19:14:54 +0000 (14:14 -0500)]
Add an update option to run_tests.sh

This commit adds an update option to run_tests.sh. This option
is used to rerun install_venv.py on an already installed venv.
This will then just update out of date packages with pip.

Change-Id: I96dc6940f536feb810d57b3316e9d712aa750d93