]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoEnsure hostnames are converted to IP for comparison.
Bob Callaway [Fri, 10 Jan 2014 16:15:07 +0000 (11:15 -0500)]
Ensure hostnames are converted to IP for comparison.

Also switch to using getaddrinfo for IPv6 compliance
vs gethostbyname.

Change-Id: I1a194eae514a65bff56488571c05457bfa660c02
Closes-Bug: 1267667

10 years agoMerge "VMDK:Using host mount info for datastore selection"
Jenkins [Fri, 10 Jan 2014 09:26:04 +0000 (09:26 +0000)]
Merge "VMDK:Using host mount info for datastore selection"

10 years agoMerge "Fix sheepdog copy_image_to_volume method"
Jenkins [Fri, 10 Jan 2014 06:06:37 +0000 (06:06 +0000)]
Merge "Fix sheepdog copy_image_to_volume method"

10 years agoMerge "Fix sqlalchemy bug in transfer_get_all_by_project"
Jenkins [Fri, 10 Jan 2014 04:25:31 +0000 (04:25 +0000)]
Merge "Fix sqlalchemy bug in transfer_get_all_by_project"

10 years agoFix sqlalchemy bug in transfer_get_all_by_project
Ollie Leahy [Thu, 19 Dec 2013 16:11:29 +0000 (16:11 +0000)]
Fix sqlalchemy bug in transfer_get_all_by_project

Because of incorrect use of the sqlalchemy methods joinedload and filter,
incorrect lists of volume transfers were being returned by
transfer_get_all_by_project().

Change-Id: I378a512611591eec896edd5f217e75f9ff0f8ad3
Closes-Bug: 1262432

10 years agoFix sheepdog copy_image_to_volume method
john-griffith [Wed, 8 Jan 2014 23:21:41 +0000 (16:21 -0700)]
Fix sheepdog copy_image_to_volume method

The sheepdog driver fails when trying to
create volume from image due to a bug in
SheepdogDriver.copy_image_to_volume.

The utils.convert method is being passed the
tempfile object, but should only be passed
the name of the tempfile.

Change-Id: I6b261d29895bf9c2c30b2d95d74e5be58b8e9b10
Closes-Bug: 1261941

10 years agoNFS/GlusterFS: Skip incorrectly formatted shares
Eric Harney [Mon, 9 Dec 2013 20:34:39 +0000 (15:34 -0500)]
NFS/GlusterFS: Skip incorrectly formatted shares

Shares should always be of the form address:/volume.  If they are
not (i.e., are missing the '/'), then skip them and issue a warning
message.  This will prevent us from sending incorrect connection_info
dicts to Nova.

Closes-Bug: #1267253

Change-Id: Ic40cd0cdc862b44b0a7d3e5b1d7c4fee8ea1b28d

10 years agoMerge "Modify default prefix for solidfire account"
Jenkins [Wed, 8 Jan 2014 18:06:53 +0000 (18:06 +0000)]
Merge "Modify default prefix for solidfire account"

10 years agoMerge "Fix downgrade in 002_quota_class.py for MySQL"
Jenkins [Wed, 8 Jan 2014 06:16:47 +0000 (06:16 +0000)]
Merge "Fix downgrade in 002_quota_class.py for MySQL"

10 years agoMerge "Fix the invalid argument of webob.exc.HTTPBadRequest"
Jenkins [Wed, 8 Jan 2014 06:11:22 +0000 (06:11 +0000)]
Merge "Fix the invalid argument of webob.exc.HTTPBadRequest"

10 years agoMerge "Removed deprecated config option hp3par_domain"
Jenkins [Wed, 8 Jan 2014 06:11:19 +0000 (06:11 +0000)]
Merge "Removed deprecated config option hp3par_domain"

10 years agoMerge "Add ability to modify volume type"
Jenkins [Wed, 8 Jan 2014 05:03:29 +0000 (05:03 +0000)]
Merge "Add ability to modify volume type"

10 years agoModify default prefix for solidfire account
john-griffith [Tue, 31 Dec 2013 16:04:05 +0000 (09:04 -0700)]
Modify default prefix for solidfire account

The SolidFire driver creates a unique account at volume
creation composed of <cinderhost-tenantID>.This is fine
until one tries to implement HA Cinder or moves their
Cinder node to another machine.

This patch changes the default setting to be an empty string
(ie no prefix), but still allows backward compatability by setting
the config option to 'hostname'.

DocImpact: Changes default for account-prefix, for backwards compatability
use the non-default 'hostname'

Change-Id: I500ea14c1b4e9e3efd51c035cc3c4e6232da9dd6
Closes-Bug: 1265208

10 years agoMerge "Adding helpful URL links to README.rst and HACKING.rst"
Jenkins [Tue, 7 Jan 2014 21:11:33 +0000 (21:11 +0000)]
Merge "Adding helpful URL links to README.rst and HACKING.rst"

10 years agoMerge "Update V2 API to return detailed volume information on create"
Jenkins [Tue, 7 Jan 2014 04:37:46 +0000 (04:37 +0000)]
Merge "Update V2 API to return detailed volume information on create"

10 years agoFix the invalid argument of webob.exc.HTTPBadRequest
KIYOHIRO ADACHI [Thu, 26 Dec 2013 07:09:01 +0000 (16:09 +0900)]
Fix the invalid argument of webob.exc.HTTPBadRequest

webob.exc.HTTPBadRequest() does not have a parameter 'reason'.

Change-Id: I65103ce72849e921150c4d098993fa523f53fe3a
Closes-Bug: #1264223

10 years agoAdd ability to modify volume type
Avishay Traeger [Tue, 3 Sep 2013 13:06:27 +0000 (16:06 +0300)]
Add ability to modify volume type

This patch adds the volume retype operation, which allows a user to
change a given volume's type.

When retyping, the scheduler checks if the volume's current host can
accept the new type (i.e., it checks if the host passes the filters when
using the new type). If the current host is suitable, its manager is
called which calls upon the driver to change the volume's type.

There are two cases where a retype operation may require migrating the
volume:
1. The volume's current host cannot accept the new type
2. The volume's driver cannot perform the retype operation

In case of a migration, a volume with the new type is created, and the
data is migrated to it.

Volume migrations resulting from retype can be controlled by passing a
policy, which can be either:
1. 'never': Never migrate (the retype fails if migration is required)
   (default)
2. 'on-demand': Migrate when necessary

This version will cause retype operations to fail if the current and
new volume types have different:
1. QoS settings that are enforced by the front-end for in-use volumes.
2. encryption settings.

Subsequent patches can address these cases.

DocImpact

Change-Id: I2dc99b4fa64d611d2bb936fc3890ca334e08bb55
Implements: blueprint volume-retype

10 years agoFix downgrade in 002_quota_class.py for MySQL
Jay S. Bryant [Mon, 6 Jan 2014 18:44:26 +0000 (12:44 -0600)]
Fix downgrade in 002_quota_class.py for MySQL

Downgrade in the script 002_quota_class.py is failing for MySQL
because there is an attempt to delete the quota_classes table
while the reservations table still has a foreign key defined.
The foreign key causes the delete of the quota_classes table to fail.

This change is based upon commit 8328fc46d783f4ec9286eededafa91afae89cba0
which makes a similar change to 018_add_qos_specs.py .

Change-Id: I81844a2da4fb3b831f1f9dead3634e82f54e559e
Closes-bug: 1265944

10 years agoRemoved deprecated config option hp3par_domain
Kurt Martin [Mon, 6 Jan 2014 17:06:18 +0000 (09:06 -0800)]
Removed deprecated config option hp3par_domain

The hp3par_domain config option was deprecated in the Havana release.
This just removes it from the code, test and config sample file
for the Icehouse release.

DocImpact

Change-Id: Ib3820cfc1b0db8a8b5755ac59d30691ce832fcea

10 years agoMerge "Replace Simple/Chance Scheduler with FilterScheduler"
Jenkins [Mon, 6 Jan 2014 02:06:17 +0000 (02:06 +0000)]
Merge "Replace Simple/Chance Scheduler with FilterScheduler"

10 years agoMerge "removed unused context in check_*** methods"
Jenkins [Sun, 5 Jan 2014 00:07:59 +0000 (00:07 +0000)]
Merge "removed unused context in check_*** methods"

10 years agoMerge "add 'force' verification in _volume_upload_image"
Jenkins [Sun, 5 Jan 2014 00:04:43 +0000 (00:04 +0000)]
Merge "add 'force' verification in _volume_upload_image"

10 years agoMerge "LVM: Fix "intialized" typo in warning msg"
Jenkins [Sat, 4 Jan 2014 23:24:24 +0000 (23:24 +0000)]
Merge "LVM: Fix "intialized" typo in warning msg"

10 years agoUpdate V2 API to return detailed volume information on create
Swapnil Kulkarni [Sat, 4 Jan 2014 07:24:13 +0000 (12:54 +0530)]
Update V2 API to return detailed volume information on create

Current implementation returns only summary information, so
cinderclient requires additional GET call to get details.
Updated the api to return the details by default so the GET in
cinderclient can be removed.

Closes-Bug: #1265893

Change-Id: I56d4d79c4a942d8bf53318e46737674dc0bf9b56

10 years agoLVM: Fix "intialized" typo in warning msg
Eric Harney [Sat, 4 Jan 2014 14:22:43 +0000 (09:22 -0500)]
LVM: Fix "intialized" typo in warning msg

Change-Id: I3b07b30840835a46c165fc360522b268229f5e50

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 4 Jan 2014 06:13:42 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I6aef6484cc40f233cfce2c6cd36c7e16039e1903

10 years agoMerge "GlusterFS: Use correct base argument when deleting attached snaps"
Jenkins [Sat, 4 Jan 2014 06:07:28 +0000 (06:07 +0000)]
Merge "GlusterFS: Use correct base argument when deleting attached snaps"

10 years agoMerge "Removed copyright from empty files"
Jenkins [Sat, 4 Jan 2014 03:45:38 +0000 (03:45 +0000)]
Merge "Removed copyright from empty files"

10 years agoMerge "Remove unused fake_flags"
Jenkins [Sat, 4 Jan 2014 02:32:55 +0000 (02:32 +0000)]
Merge "Remove unused fake_flags"

10 years agoremoved unused context in check_*** methods
ling-yun [Fri, 3 Jan 2014 08:51:50 +0000 (16:51 +0800)]
removed unused context in check_*** methods

Input parameter 'context' of Check_*** methods(check_attach,
check_detach, _check_metadata_properties, _check_volume_availability)
in cinder/volume/api.py are not being used, so remove this 'context'
parameter.

Change-Id: I314f662f2fe54a6b073181ff5c0f0214e9ef822a
Closes-bug: #1265725

10 years agoMerge "Reduce the redundant variable declarations"
Jenkins [Fri, 3 Jan 2014 09:09:11 +0000 (09:09 +0000)]
Merge "Reduce the redundant variable declarations"

10 years agoadd 'force' verification in _volume_upload_image
ling-yun [Fri, 3 Jan 2014 07:56:05 +0000 (15:56 +0800)]
add 'force' verification in _volume_upload_image

_volume_upload_image API should only support to upload 'in-use' volume to
image when assign 'force' parameter as true value. Now
_volume_upload_image API does not do verification for 'force' parameter,
so we can upload 'in-use' volume to image when assign 'force' parameter
with string value 'false' or 'false111'. This patch add verification for
'force' parameter.

Change-Id: I9e1d0e517d0ff97c136903dd6e50a305e18651f3
Closes-Bug: #1265718

10 years agoMerge "Add additional metadata as key-value pairs in 3PAR"
Jenkins [Fri, 3 Jan 2014 00:42:14 +0000 (00:42 +0000)]
Merge "Add additional metadata as key-value pairs in 3PAR"

10 years agoLVM: Activate Thin Pool LV upon initialization
Eric Harney [Fri, 13 Dec 2013 15:39:09 +0000 (10:39 -0500)]
LVM: Activate Thin Pool LV upon initialization

If the LVM thin pool is not active, space calculation fails,
as data_percent is not known.  Activate the pool upon initialization,
since we intend to use it anyway.

Slightly refactors _get_thin_pool_free_space so that it is clear
which missing/unexpected value is breaking things if a similar error
occurs for some other reason.

Closes-Bug: #1260773

Change-Id: I7cb187746c1ac297b82254c6efa37ba1c5fbb3e1

10 years agoGlusterFS: Use correct base argument when deleting attached snaps
Eric Harney [Thu, 19 Dec 2013 00:11:44 +0000 (19:11 -0500)]
GlusterFS: Use correct base argument when deleting attached snaps

When deleting the most recent snapshot, the 'file_to_merge' field
which translates into the base= field for libvirt's blockRebase
call in Nova must be set depending on whether other snapshots exist.

If there are no other snapshots, base = None, which results in
libvirt clearing the qcow2 backing file pointer for the active
disk image.

If there are other snapshots, pass the parent of the file being
deleted as the new base file.  The snapshot info pointer for the
prior base file must also be updated in this case.

Closes-Bug: #1262880
Change-Id: If7bc8259b031d0406346caafb8f688e65a38dba6

10 years agoRemoved copyright from empty files
Matt Fischer [Thu, 2 Jan 2014 02:31:20 +0000 (19:31 -0700)]
Removed copyright from empty files

According to policy change in HACKING:
http://docs.openstack.org/developer/hacking/#openstack-licensing
empty files should no longer contain copyright notices.

Change-Id: I031098958938e2301986949ad4659c5a7eb41561
Partial-Bug: #1262424

10 years agoRemove unused fake_flags
Zhiteng Huang [Thu, 2 Jan 2014 01:17:32 +0000 (09:17 +0800)]
Remove unused fake_flags

fake_flags.py should have been removed in change
I3424d0a401b3ef7a3254d3e913263554361a52ff but somehow it's left
untouched in that change.  This module has been replaced by
cinder/tests/conf_fixture.py, and shouldn't be around anymore.

Change-Id: Ied840b95253d998c1b3326c1dde9d469fa783c85

10 years agoMerge "Only reverify backing lun when create backing lun"
Jenkins [Tue, 31 Dec 2013 20:14:05 +0000 (20:14 +0000)]
Merge "Only reverify backing lun when create backing lun"

10 years agoMerge "Output Strings of bin/*.py should support i18n"
Jenkins [Tue, 31 Dec 2013 20:13:57 +0000 (20:13 +0000)]
Merge "Output Strings of bin/*.py should support i18n"

10 years agoMerge "Add AllocatedCapacityWeigher"
Jenkins [Tue, 31 Dec 2013 19:59:03 +0000 (19:59 +0000)]
Merge "Add AllocatedCapacityWeigher"

10 years agoMerge "Remove dynamic default on sf_account_prefix"
Jenkins [Tue, 31 Dec 2013 16:31:24 +0000 (16:31 +0000)]
Merge "Remove dynamic default on sf_account_prefix"

10 years agoMerge "Remove vim header"
Jenkins [Tue, 31 Dec 2013 16:31:21 +0000 (16:31 +0000)]
Merge "Remove vim header"

10 years agoReplace Simple/Chance Scheduler with FilterScheduler
Zhiteng Huang [Tue, 31 Dec 2013 07:00:52 +0000 (15:00 +0800)]
Replace Simple/Chance Scheduler with FilterScheduler

This patch replaces SimpleScheduler and ChanceScheduler with
FilterScheduler. Scheduler manager is changed so that when it
detects 'scheduler_driver' is set to SimpleScheduler or
ChanceScheduler, it changes underlying scheduler driver to
FilterScheduler, and then host manager will use a pre-defined
combination of filters & weighers to keep scheduler behavior *MOSTLY*
the same as its old counterparts.

To simulate ChanceScheduler/SimpleScheduler, 'AvailabilityZoneFilter',
'CapacityFilter' and 'CapabilitiesFilter' are chosen to filter
out hosts that isn't in the target AZ, doesn't have sufficient
capacity and doesn't support needed capabilities. And newly
added 'ChanceWeigher' will randomly pick a host from hosts
that passes above filters - just like ChanceScheduler does;
for SimpleScheduler, 'AllocatedCapacityWeigher' will sort hosts
with their 'allocated_capacity' - the one allocates the least
is the winner by default.

So the two new weigher, 'ChanceWeigher' and 'AllocatedCapacityWeigher'
are the key FilterScheduler to act identical when choosing
back-ends to serve requests. The 3 filters on the other hand,
are essential to make sure this 'new' Simple/Chance Scheduler can
support volume types, encryption and QoS.

Partially implements bp: deprecate-chance-and-simple-schedulers

Change-Id: I0538b9692a23af6457ed463447fea8e564570848

10 years agoReduce the redundant variable declarations
ls1175 [Tue, 31 Dec 2013 07:54:17 +0000 (15:54 +0800)]
Reduce the redundant variable declarations

The method create() in /cinder/api/v2/volumes.py has two redundant
variable declarations: image_href = None image_uuid = None
These should be reduced

Change-Id: If3798d4bd96998707d7a5f87ece95ed8c93cc042
Closes-bug: #1265148

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 31 Dec 2013 06:13:49 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I7b845f52864b6764f518edba463086cee195d7fd

10 years agoRemove vim header
DennyZhang [Wed, 25 Dec 2013 04:37:04 +0000 (22:37 -0600)]
Remove vim header

No need to set tabstop tons of times, this can be set in your vimrc
file instead.

More disucssion:
http://openstack.10931.n7.nabble.com/Remove-vim-modelines-td21780.html

Partial-Bug: #1229324
Change-Id: Ib3a31c8819ee1950d72f7da5627593623d351560

10 years agoMerge "Redundant size check in volume restore api"
Jenkins [Mon, 30 Dec 2013 20:18:20 +0000 (20:18 +0000)]
Merge "Redundant size check in volume restore api"

10 years agoMerge "Empty files shouldn't contain copyright nor license"
Jenkins [Mon, 30 Dec 2013 20:18:11 +0000 (20:18 +0000)]
Merge "Empty files shouldn't contain copyright nor license"

10 years agoRedundant size check in volume restore api
ling-yun [Wed, 25 Dec 2013 08:03:27 +0000 (16:03 +0800)]
Redundant size check in volume restore api

In cinder volume restore api, we do twice size check when restore volume
with a given volume uuid. It's necessary to remove the redundant check.

Change-Id: I8f240b2c0d1014d212ff56c2c9b5e193f9d552bd
Closes-Bug: #1264053

10 years agoAdd AllocatedCapacityWeigher
Zhiteng Huang [Wed, 11 Dec 2013 13:46:38 +0000 (21:46 +0800)]
Add AllocatedCapacityWeigher

AllocatedCapacityWeigher is a weigher that weigh hosts by their
allocated capacity. The main purpose of this weigher is to simulate
the SimpleScheduler's behavior, which sorts hosts by the size of
all volumes on them.  So by allocated capacity, it equals to the
sum of size of all volumes on target host.

In order to keep track of 'allocated' capacity, host state is updated
to add a 'allocated_capacity_gb' attribute to record the value, which
means each back-end must report one extra stats to scheduler.
Fortunately, the 'allocated' capacity we are interested in here is
pure Cinder level capacity, the volume manager can take all the burden
to calculate this value without having to query back-ends. The volume
manager does the initial calculation in init_host() by the time when it
has to query all existing volumes from DB for ensure_export(). After
initial calculation, volume manager/scheduler will keep track of every
new request that changes 'allocated_capacity' and make sure this value
is up to date.

!DriverImpact! Cinder driver developers, please read on:

This patch contains a change that might IMPACT volume drivers: volume
manager now uses 'stats' attribute to save 'allocated_capacity_gb'.
And this information will be merged with those stats drivers provide
as a whole for scheduler to consume.  If you plan to report any form
of allocated space other than the apparent Cinder level value, (e.g.
actual capacity allocated), Please choose a key name other than
'allocated_capacity_gb', otherwise it will *OVERWRITE* the value volume
manager has calculated and confuse scheduler.

Partially implements bp: deprecate-chance-and-simple-schedulers

Change-Id: I306230b8973c2d1ad77bcab14ccde68e997ea816

10 years agoMerge "Handle terminate_connection() exception in volume manager"
Jenkins [Sun, 29 Dec 2013 09:38:37 +0000 (09:38 +0000)]
Merge "Handle terminate_connection() exception in volume manager"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 28 Dec 2013 06:14:19 +0000 (06:14 +0000)]
Imported Translations from Transifex

Change-Id: Ic024fd0bef15147662612ed49b28133019d68aed

10 years agoAdding helpful URL links to README.rst and HACKING.rst
chadlung [Sat, 28 Dec 2013 01:29:17 +0000 (19:29 -0600)]
Adding helpful URL links to README.rst and HACKING.rst

Change-Id: Id9d3606616993c50bf6ab29880efa495999b9ce4

10 years agoHandle terminate_connection() exception in volume manager
ling-yun [Tue, 24 Dec 2013 03:45:16 +0000 (11:45 +0800)]
Handle terminate_connection() exception in volume manager

Due to the fact that we sometimes need to manually terminate a volume's
connection through volume api, it's possile that these backend drivers
throw exceptions while doing that. Currently exceptions are bubbled up to
volume API not being handled. This patch logs exception in volume manager
and then raises VolumeBackendAPIException to caller.

Change-Id: If809f97998f52516af09ec21b3052b67d3a62f36
Closes-bug: #1263820

10 years agoEmpty files shouldn't contain copyright nor license
DennyZhang [Wed, 25 Dec 2013 04:36:15 +0000 (22:36 -0600)]
Empty files shouldn't contain copyright nor license

http://docs.openstack.org/developer/hacking/#openstack-licensing

Partial-Bug: #1262424
Change-Id: Ib4d35e85ed23581f4a27a1daca8664180751f6f1

10 years agoBugfix missing foreign key removal for mysql
Alan Meadows [Thu, 26 Dec 2013 19:12:37 +0000 (11:12 -0800)]
Bugfix missing foreign key removal for mysql

Downgrading the cinder schema fails when running 018_add_qos_specs.py
under MySQL. The upgrade path of this schema patch adds the foreign
key volume_types_ibfk_1 on table volume_types, and the downgrade does
not correspondingly remove it before attempting to drop the
qos_specs_id column.  This update removes the foreign key when
the engine is mysql prior to dropping the column.

Change-Id: Ibd3b35ad3b0bd41ad04ab7aeeb28c3ba7e5d255d
Closes-Bug: #1264360

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 26 Dec 2013 18:14:52 +0000 (18:14 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Add qos_specs support to solidfire driver"
Jenkins [Thu, 26 Dec 2013 17:52:58 +0000 (17:52 +0000)]
Merge "Add qos_specs support to solidfire driver"

10 years agoMerge "Handle initialize_connection() exception in volume manager"
Jenkins [Thu, 26 Dec 2013 17:48:52 +0000 (17:48 +0000)]
Merge "Handle initialize_connection() exception in volume manager"

10 years agoMerge "Fix spelling errors"
Jenkins [Thu, 26 Dec 2013 17:44:26 +0000 (17:44 +0000)]
Merge "Fix spelling errors"

10 years agoFix spelling errors
skudriashev [Sat, 21 Dec 2013 23:04:28 +0000 (01:04 +0200)]
Fix spelling errors

Spelling errors fixed in comments and log messages.

Change-Id: I8ce4899fbb22136ce6d03e1796fc01d929f35562

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 26 Dec 2013 06:13:45 +0000 (06:13 +0000)]
Imported Translations from Transifex

Change-Id: I8f2b51a5c5c58fa8c64899091e726139f93967d1

10 years agoAdd additional metadata as key-value pairs in 3PAR
Sivaramakrishna Garimella [Mon, 9 Dec 2013 05:41:13 +0000 (11:11 +0530)]
Add additional metadata as key-value pairs in 3PAR

Track status of openstack volumes on 3PAR through
additional metadata added as key-value pairs. During volume attach
and detach, corresponding instance metadata is updated onto the
cinder volumes.

Change-Id: Iea8d2f26555e6be60001bf73755cae42446afec6
Closes-Bug: #1258033

10 years agoMerge "Set volume_dd_blocksize configurable on per-driver basis"
Jenkins [Mon, 23 Dec 2013 18:46:36 +0000 (18:46 +0000)]
Merge "Set volume_dd_blocksize configurable on per-driver basis"

10 years agoHandle initialize_connection() exception in volume manager
Zhiteng Huang [Mon, 2 Dec 2013 09:05:08 +0000 (17:05 +0800)]
Handle initialize_connection() exception in volume manager

Due to the fact that several drivers require backend communication to fetch
connection information for a volume, it's possile that these driver throw
exceptions while doing that.  Currently exceptions can bubble up to volume
API not being handled.  This patch logs exception in volume manager and
then raises VolumeBackendAPIException to caller.

Change-Id: Ib3cc152e04ba029dd835a64b0cfb0a77b8a6828e
Closes-bug: 1256804

10 years agoMerge "Service launcher method docstring corrected"
Jenkins [Mon, 23 Dec 2013 15:51:15 +0000 (15:51 +0000)]
Merge "Service launcher method docstring corrected"

10 years agoOutput Strings of bin/*.py should support i18n
ling-yun [Wed, 4 Dec 2013 07:22:57 +0000 (15:22 +0800)]
Output Strings of bin/*.py should support i18n

Many more output strings in cinder/bin/*.py don't support i18n,
which should be fixed as visible message.

Change-Id: I863c09a0a398b99360e5a080091e320b594d4024
Closes-Bug: #1257613

10 years agoMerge "Fix and enable gating on F401"
Jenkins [Mon, 23 Dec 2013 08:16:41 +0000 (08:16 +0000)]
Merge "Fix and enable gating on F401"

10 years agoAdd qos_specs support to solidfire driver
John Griffith [Sat, 21 Dec 2013 00:33:23 +0000 (17:33 -0700)]
Add qos_specs support to solidfire driver

We've added a new qos_specs object to Cinder that allows creation
and management of qos settings separate from volume-types.
Now instead of embedding the qos info in the extra-specs of the
volume-type we associate the desired qos-spec to a volume-type.

This change implements the capability of the SolidFire driver to
take advantage of that feature.

Change-Id: I215bd0cff0c0a91c106de27eea9ec2b91689a46e
Implements: blueprint add-qosspecs-support-to-solidfire-driver

10 years agoService launcher method docstring corrected
skudriashev [Fri, 20 Dec 2013 22:02:09 +0000 (00:02 +0200)]
Service launcher method docstring corrected

* Launcher run_server method parameter in docstring
  renamed to match actual argument name.

Change-Id: Ic7934dd540a026141f525ea8ea6f976f959c7ea2

10 years agoFix QoS information in initialize_connection() result
Zhiteng Huang [Wed, 11 Dec 2013 15:56:14 +0000 (23:56 +0800)]
Fix QoS information in initialize_connection() result

Currently the entire QoS information (if any) is included in the result of
initialize_connection() even if the consumer of the QoS is 'back-end'. Also
the format for QoS specs also is changed so that front-end (Nova) can
parse correctly. Add unit test to cover initialize_connection().

Closes-bug: 1259957

DocImpact

Change-Id: Ibc5e92cc1ddf6404e5b234ef524698feae282eec

10 years agoFix and enable gating on F401
Dirk Mueller [Fri, 13 Dec 2013 12:29:12 +0000 (13:29 +0100)]
Fix and enable gating on F401

Do not allow unused imports in modules, and remove those
that are currently unused.

Change-Id: I7600b1cce22eaef87633f98a89db2086a3ec2b55

10 years agoOnly reverify backing lun when create backing lun
ling-yun [Fri, 20 Dec 2013 02:55:18 +0000 (10:55 +0800)]
Only reverify backing lun when create backing lun

In TgtAdm, we alway do twice _verify_backing_lun whether backing lun
exists or not.
If backing lun exists, it doesn't need to call _verify_backing_lun
function again.
It only needs reverify whether backing lun exists or not when recreate
backing lun.

Change-Id: Ic11d778362540df307056a1adcba932e571b7d20
Closes-Bug: #1262958

10 years agoSet volume_dd_blocksize configurable on per-driver basis
Ann Kamyshnikova [Thu, 10 Oct 2013 12:37:16 +0000 (16:37 +0400)]
Set volume_dd_blocksize configurable on per-driver basis

Allow volume_dd_blocksize config option to be configurable on a
per-driver basis.
This allows drivers used in multi-backend configurations
to define their own values. We port this to the LVM and block_device
drivers here but it can easily be ported to others as and when
needed.

DocImpact

partially implement bp: per-driver-config-for-utils-functions

Change-Id: Ice9e815f18e5ebf3727aab7d3a221acacb710cd4

10 years agoMerge "Add exception logging if flow creation fails"
Jenkins [Wed, 18 Dec 2013 07:19:23 +0000 (07:19 +0000)]
Merge "Add exception logging if flow creation fails"

10 years agoMerge "Do not clone non-raw images in rbd backend"
Jenkins [Wed, 18 Dec 2013 00:39:23 +0000 (00:39 +0000)]
Merge "Do not clone non-raw images in rbd backend"

10 years agoMerge "Fix and enable gating on H402"
Jenkins [Wed, 18 Dec 2013 00:21:24 +0000 (00:21 +0000)]
Merge "Fix and enable gating on H402"

10 years agoAdd exception logging if flow creation fails
Joshua Harlow [Tue, 17 Dec 2013 23:20:02 +0000 (15:20 -0800)]
Add exception logging if flow creation fails

If the create_XYZ_flow fails in being created
its useful to log exactly what the error was in
detail (instead of trapping it and only raising
a generic error). The more detailed error shows
what the real problem was during the flows
construction (which usually is some larger
problem).

Change-Id: I9cd6b8e2c6298d8791ba3063be78f9b4c4a7c5d0

10 years agoMerge "make delete recovery messages debug level"
Jenkins [Tue, 17 Dec 2013 17:12:16 +0000 (17:12 +0000)]
Merge "make delete recovery messages debug level"

10 years agoRemove dynamic default on sf_account_prefix
Dirk Mueller [Thu, 12 Dec 2013 17:05:31 +0000 (18:05 +0100)]
Remove dynamic default on sf_account_prefix

A dynamic default makes it difficult to generate
a proper cinder.conf.sample template. Make it
default to the hostname when the option is unset
or left at default.

DocImpact: default of sf_account_prefix changed to "None", which
however preserves behavior of a previously unset option: use
the current hostname.

Change-Id: Ic90305bd93ae0156c37e32012cdc32848192de07

10 years agoMerge "Fix KeyError while generating a WSGI response"
Jenkins [Tue, 17 Dec 2013 13:15:02 +0000 (13:15 +0000)]
Merge "Fix KeyError while generating a WSGI response"

10 years agomake delete recovery messages debug level
Sean Dague [Tue, 17 Dec 2013 12:29:46 +0000 (07:29 -0500)]
make delete recovery messages debug level

lvm.delete has recovery logic within it to do a second attempt
if it should fail the first time. It is currently however logging
those second attempts at error and warn levels. However, as this
is normal flow these should be debug level instead.

This is currently causing a few resets in the gate because this
is a non whitelisted error.

Change-Id: Ie684331d9d97c089ec23569d06981e90eb7f6a67
Closes-Bug: #1261731

10 years agoMerge "Remove unused code from volume manager (reset_stats)"
Jenkins [Tue, 17 Dec 2013 08:45:49 +0000 (08:45 +0000)]
Merge "Remove unused code from volume manager (reset_stats)"

10 years agoMerge "Pylint fixes for Brick iSCSI/LVM"
Jenkins [Tue, 17 Dec 2013 08:33:28 +0000 (08:33 +0000)]
Merge "Pylint fixes for Brick iSCSI/LVM"

10 years agoMerge "Pylint fixes for GlusterFS driver"
Jenkins [Tue, 17 Dec 2013 08:33:25 +0000 (08:33 +0000)]
Merge "Pylint fixes for GlusterFS driver"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 17 Dec 2013 05:02:38 +0000 (05:02 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "3PAR FC: add ability to add WWNs to host"
Jenkins [Tue, 17 Dec 2013 04:41:14 +0000 (04:41 +0000)]
Merge "3PAR FC: add ability to add WWNs to host"

10 years agoMerge "Use mock for scheduler tests"
Jenkins [Tue, 17 Dec 2013 03:58:29 +0000 (03:58 +0000)]
Merge "Use mock for scheduler tests"

10 years agoMerge "[Netapp/Nexenta] Move registration of config options"
Jenkins [Tue, 17 Dec 2013 03:47:42 +0000 (03:47 +0000)]
Merge "[Netapp/Nexenta] Move registration of config options"

10 years agoMerge "Adds unit tests for drivers.rbd.RBDImageIOWrapper"
Jenkins [Tue, 17 Dec 2013 00:39:52 +0000 (00:39 +0000)]
Merge "Adds unit tests for drivers.rbd.RBDImageIOWrapper"

10 years agoRemove unused code from volume manager (reset_stats)
Eric Harney [Mon, 16 Dec 2013 22:50:49 +0000 (17:50 -0500)]
Remove unused code from volume manager (reset_stats)

self._last_volume_stats appears to be unused, now that we don't
use _volume_stats_changed().  This means reset_stats() also does
nothing.

This triggered a pylint 'attribute-defined-outside-init' warning.

Change-Id: I4c4f7497e72f726f3430f90df61188bf2f1073c1

10 years agoPylint fixes for GlusterFS driver
Eric Harney [Mon, 16 Dec 2013 22:44:02 +0000 (17:44 -0500)]
Pylint fixes for GlusterFS driver

Remove unused 're' import
Remove unused parameter for _create_snapshot()

Change-Id: I40411b6206d282ae07c905faa44dcccecb45c120

10 years agoPylint fixes for Brick iSCSI/LVM
Eric Harney [Mon, 16 Dec 2013 22:29:32 +0000 (17:29 -0500)]
Pylint fixes for Brick iSCSI/LVM

Fixes a few of the more straightforward pylint errors
in these files.  (anomalous-backslash-in-string,
attribute-defined-outside-init, and bad-indentation)

Change-Id: Ic131717a83fe182fe578b63eccf364d300a8989c

10 years ago3PAR FC: add ability to add WWNs to host
Jim Branen [Fri, 6 Dec 2013 23:32:53 +0000 (15:32 -0800)]
3PAR FC: add ability to add WWNs to host

When a host is created on the HP 3PAR array,
at initialize connection time, the host is
created with all WWNs provided in the connector
structure. However, the driver did not have
the ability to add new WWNs after a host is created.

This patch adds the ability to add WWNs to a
host, at initialize connection time, if a new
WWN is provided in the connector structure.

Change-Id: I6fd8a5511f83d5460da30ff5558a3e95964a95f5
Closes-bug: 1258229

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 16 Dec 2013 06:14:18 +0000 (06:14 +0000)]
Imported Translations from Transifex

Change-Id: I2554bd4a076f855c8f2026d98ecb649b35edcbf8

10 years agoAdjust import order according to PEP8 imports rule
Jay Lau [Sat, 14 Dec 2013 15:54:16 +0000 (10:54 -0500)]
Adjust import order according to PEP8 imports rule

This patch just adjust import order to follow PEP8 imports rule.
See http://www.python.org/dev/peps/pep-0008/#imports

Imports should be grouped in the following order:
1) Standard library imports
2) Related third party imports
3) Local application/library specific imports

Change-Id: Ifa3f219207b02d60e757e17c42dae1fef2f628fe

10 years agoDo not clone non-raw images in rbd backend
Dmitry Borodaenko [Wed, 27 Nov 2013 22:33:00 +0000 (14:33 -0800)]
Do not clone non-raw images in rbd backend

RBD backend only supports booting from images in raw format. A volume
that was cloned from an image in any other format is not bootable. The
RBD driver will consider non-raw images to be uncloneable to trigger
automatic conversion to raw format.

Includes conversion of the corresponding unit test to use mock (instead
of mox) and expanded comments and error messages based on change #58893
by Edward Hope-Morley.

Change-Id: I5725d2f7576bc1b3e9b874ba944ad17d33a6e2cb
Closes-Bug: #1246219
Closes-Bug: #1247998

10 years agoAdds unit tests for drivers.rbd.RBDImageIOWrapper
Edward Hope-Morley [Sat, 14 Dec 2013 22:52:52 +0000 (22:52 +0000)]
Adds unit tests for drivers.rbd.RBDImageIOWrapper

Change-Id: Id256ec6ed20c1f52eb67cf5a807f67b01a641962
Closes-bug: 1238614

10 years agoMerge "GlusterFS: Complete snapshot_delete when info doesn't exist"
Jenkins [Sun, 15 Dec 2013 08:38:17 +0000 (08:38 +0000)]
Merge "GlusterFS: Complete snapshot_delete when info doesn't exist"

10 years agoMerge "Remove test that was no longer used for long"
Jenkins [Sun, 15 Dec 2013 08:38:12 +0000 (08:38 +0000)]
Merge "Remove test that was no longer used for long"