]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMissing python-hacking (>= 0.8.0) build-dependency.
Thomas Goirand [Fri, 24 Jan 2014 08:35:47 +0000 (16:35 +0800)]
Missing python-hacking (>= 0.8.0) build-dependency.

10 years agoRefresh patch
Thomas Goirand [Fri, 24 Jan 2014 08:25:46 +0000 (16:25 +0800)]
Refresh patch

10 years agoFixed (build-)dependencies
Thomas Goirand [Fri, 24 Jan 2014 06:56:47 +0000 (14:56 +0800)]
Fixed (build-)dependencies

10 years agoNow packaging 2014.1~b2
Thomas Goirand [Fri, 24 Jan 2014 06:47:08 +0000 (14:47 +0800)]
Now packaging 2014.1~b2

10 years agoMerge tag '2014.1_b2' into debian/icehouse
Thomas Goirand [Fri, 24 Jan 2014 06:46:56 +0000 (14:46 +0800)]
Merge tag '2014.1_b2' into debian/icehouse

Cinder icehouse-2 milestone (2014.1.b2)

10 years agoMerge "Remove unused variable in restore_backup method"
Jenkins [Wed, 22 Jan 2014 15:59:37 +0000 (15:59 +0000)]
Merge "Remove unused variable in restore_backup method"

10 years agoMerge "Use oslo.rootwrap library instead of local copy"
Jenkins [Wed, 22 Jan 2014 05:45:16 +0000 (05:45 +0000)]
Merge "Use oslo.rootwrap library instead of local copy"

10 years agoMerge "Fix UnboundLocalError in TgtAdm.update_iscsi_target"
Jenkins [Wed, 22 Jan 2014 05:33:49 +0000 (05:33 +0000)]
Merge "Fix UnboundLocalError in TgtAdm.update_iscsi_target"

10 years agoMerge "Allow user to specify audit period."
Jenkins [Wed, 22 Jan 2014 03:45:42 +0000 (03:45 +0000)]
Merge "Allow user to specify audit period."

10 years agoMerge "Transfer creation doesn't support 'name' via xml"
Jenkins [Wed, 22 Jan 2014 03:45:34 +0000 (03:45 +0000)]
Merge "Transfer creation doesn't support 'name' via xml"

10 years agoMerge "Fix cross-import bug in cinder.db.sqlalchemy.api"
Jenkins [Wed, 22 Jan 2014 03:43:04 +0000 (03:43 +0000)]
Merge "Fix cross-import bug in cinder.db.sqlalchemy.api"

10 years agoMerge "Add Backup Service to 'cinder-all' script"
Jenkins [Wed, 22 Jan 2014 03:41:49 +0000 (03:41 +0000)]
Merge "Add Backup Service to 'cinder-all' script"

10 years agoMerge "Ensure hostnames are converted to IP for comparison."
Jenkins [Wed, 22 Jan 2014 03:38:33 +0000 (03:38 +0000)]
Merge "Ensure hostnames are converted to IP for comparison."

10 years agoMerge "Update host on driver retype"
Jenkins [Wed, 22 Jan 2014 03:36:08 +0000 (03:36 +0000)]
Merge "Update host on driver retype"

10 years agoMerge "Remove env from rootwrap filter"
Jenkins [Wed, 22 Jan 2014 02:08:51 +0000 (02:08 +0000)]
Merge "Remove env from rootwrap filter"

10 years agoMerge "Remove unused variable in os-extend api"
Jenkins [Tue, 21 Jan 2014 22:00:58 +0000 (22:00 +0000)]
Merge "Remove unused variable in os-extend api"

10 years agoMerge "Updates for version list to show correct references"
Jenkins [Tue, 21 Jan 2014 15:16:40 +0000 (15:16 +0000)]
Merge "Updates for version list to show correct references"

10 years agoMerge "Use loopingcall from openstack-common"
Jenkins [Tue, 21 Jan 2014 10:07:49 +0000 (10:07 +0000)]
Merge "Use loopingcall from openstack-common"

10 years agoMerge "Pull latest scheduler change from Oslo"
Jenkins [Tue, 21 Jan 2014 08:36:07 +0000 (08:36 +0000)]
Merge "Pull latest scheduler change from Oslo"

10 years agoMerge "Register EMC config options globally"
Jenkins [Mon, 20 Jan 2014 22:11:50 +0000 (22:11 +0000)]
Merge "Register EMC config options globally"

10 years agoUse oslo.rootwrap library instead of local copy
Thierry Carrez [Fri, 17 Jan 2014 10:28:17 +0000 (11:28 +0100)]
Use oslo.rootwrap library instead of local copy

Remove rootwrap code copied from oslo-incubator, make
cinder-rootwrap a console_script entrypoint pointing in
oslo.rootwrap instead.

Change-Id: I4e924bc9fccd7f5a8522ac38b7c6d29683990ea8
Implements: blueprint cinder-oslo-rootwrap

10 years agoFix UnboundLocalError in TgtAdm.update_iscsi_target
Yuriy Taraday [Sun, 19 Jan 2014 19:08:06 +0000 (23:08 +0400)]
Fix UnboundLocalError in TgtAdm.update_iscsi_target

Closes-Bug: #1270624
Change-Id: I74a057a9603c5d6aefaec6db62228352b739df56

10 years agoUpdate host on driver retype
Avishay Traeger [Sun, 12 Jan 2014 13:41:31 +0000 (15:41 +0200)]
Update host on driver retype

The volume's host was not updated on retype where the driver handled
the retype. Now update in all cases.

Change-Id: I64b72ae5617d1dacad8f37c4246ce0f079e015bb
Closes-Bug: #1268305

10 years agoMerge "Fix exception log msg in attach volume method"
Jenkins [Sun, 19 Jan 2014 07:35:56 +0000 (07:35 +0000)]
Merge "Fix exception log msg in attach volume method"

10 years agoMerge "Fix os.getlogin() problem with no tty"
Jenkins [Sun, 19 Jan 2014 01:07:49 +0000 (01:07 +0000)]
Merge "Fix os.getlogin() problem with no tty"

10 years agoRemove unused variable in restore_backup method
ling-yun [Fri, 17 Jan 2014 03:58:10 +0000 (11:58 +0800)]
Remove unused variable in restore_backup method

Variable err in restore_backup method is not being used, so remove this
'err ' variable.

Change-Id: I31f6da5fd55e025d6496aca76a1157ff5a167d9e
Closes-Bug: #1270034

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 agoAdd Backup Service to 'cinder-all' script
Zhiteng Huang [Fri, 17 Jan 2014 18:02:19 +0000 (02:02 +0800)]
Add Backup Service to 'cinder-all' script

Backup service is missing in 'cinder-all' script, this patch simply
add it so that this all-in-one script could launch all Cinder
Services.

Change-Id: I29c7355baabddd18a14fe9f97b71f58d24a033dc

10 years agoRemove env from rootwrap filter
Dirk Mueller [Thu, 16 Jan 2014 21:59:41 +0000 (22:59 +0100)]
Remove env from rootwrap filter

Allowing 'env' as a CommandFilter is similar to
allowing '/bin/bash', which makes all of rootwrap pointless.
Use EnvFilter instead. Change corresponding commands
that use env for setting C locale and adjust rootwrap
filters accordingly.

Several commands that output information that is
parsed as input by cinder change their behavior
based on the environment locale, which is depending
on local system settings. The code is however only
able to parse in C locale, so enforce that one.

Closes-Bug: #1269958

Change-Id: Ie1463e608c80204c7a8906efb95899a66aa733da

10 years agoMerge "GlusterFS: Synchronize additional operations"
Jenkins [Fri, 17 Jan 2014 15:23:07 +0000 (15:23 +0000)]
Merge "GlusterFS: Synchronize additional operations"

10 years agoMerge "Remove legacy config option 'connection_type'"
Jenkins [Fri, 17 Jan 2014 13:26:15 +0000 (13:26 +0000)]
Merge "Remove legacy config option 'connection_type'"

10 years agoMerge "Use a *args pass-in instead of a list one"
Jenkins [Fri, 17 Jan 2014 13:26:06 +0000 (13:26 +0000)]
Merge "Use a *args pass-in instead of a list one"

10 years agoMerge "LVM: update iscsi target on volume attach"
Jenkins [Fri, 17 Jan 2014 13:25:58 +0000 (13:25 +0000)]
Merge "LVM: update iscsi target on volume attach"

10 years agoAllow user to specify audit period.
Ollie Leahy [Thu, 12 Dec 2013 11:01:34 +0000 (11:01 +0000)]
Allow user to specify audit period.

The script 'cinder-volume-usage-audit' is generally run by cron to
generate volume and snapshot exists audit notifications that can be
consumed by ceilometer or other auditing systems. In this mode it sends
notifications for volumes that existed in the 'last completed audit
period' as calculated by cinder.utils.last_completed_audit_period()

However, it may sometimes be necessary to be able to send notifications
for audit periods other than than the last completed audit period. For
example if the host running the audit script was down for a period.

This patch provides three optional command line parameters to the script
cinder-volume-usage-audit. If no parameters are provided then the
operation of the script is unchanged. If parameters are provided then
they have the following effects:

--start_time specifies a date and time that is used in place of the
start of the last completed audit period.

--end_time specifies a date and time that is used in place of the end of
the last completed audit period.

--send_actions As well as sending exits notifications the script will
send any create or delete notifications that would have been sent during
the specified audit period.

Closes-Bug: #1259147

Change-Id: I0cfe963ea59d811ba4bac0bd3de31382a088b8c8

10 years agoFix exception log msg in attach volume method
ling-yun [Fri, 17 Jan 2014 02:49:58 +0000 (10:49 +0800)]
Fix exception log msg in attach volume method

Attach volume happened when volume's status is attaching or available, but
the exception msg only contain info about "available". So fix it.

Change-Id: I1caf83b94b3e4158eff88871a4187041a25e5d1c
Closes-Bug: #1270020

10 years agoRegister EMC config options globally
Dirk Mueller [Wed, 15 Jan 2014 17:23:40 +0000 (18:23 +0100)]
Register EMC config options globally

The registration allows the oslo sample config generator
to detect the config options and extract automatically
a config template.

Change-Id: Ib181d734dddbd9b6a664439286969b832d6536e7

10 years agoFix os.getlogin() problem with no tty
Koert van der Veer [Thu, 9 Jan 2014 20:18:50 +0000 (21:18 +0100)]
Fix os.getlogin() problem with no tty

Catch OSError(s) from  os.getlogin() and fall back to looking at
environment variables to figure out the user's name. The OSError
is thrown where there is no tty for the python process when
os.getlogin() is called.

Related-Bug: #1221491

Change-Id: I2bd735c9669ba9d25da108da44ea602f358b2dcc

10 years agoUpdates for version list to show correct references
Swapnil Kulkarni [Thu, 16 Jan 2014 07:58:31 +0000 (13:28 +0530)]
Updates for version list to show correct references

Updated views to consider version while creating href.
Updated fakes to consider version while creating fake href.
Updated some test cases in v2 api which were using v1 as
expected output

Change-Id: Ib05180041309ef75c3718924969bd2354d6d8b3a
Closes-Bug: #1261849

10 years agoFix cross-import bug in cinder.db.sqlalchemy.api
Dima Shulyak [Wed, 15 Jan 2014 12:44:19 +0000 (14:44 +0200)]
Fix cross-import bug in cinder.db.sqlalchemy.api

Cross import in cinder.sqlalchemy.db.api module breaks
if lazy loading of db backend is removed

In oslo.incubator db.api lazy loading was removed
Check this change for details https://review.openstack.org/#/c/55985/

Change-Id: I6a75afd0b9b55097ef76ad24c53e84339b527196

10 years agoPull latest scheduler change from Oslo
Zhiteng Huang [Thu, 2 Jan 2014 01:31:24 +0000 (09:31 +0800)]
Pull latest scheduler change from Oslo

The RetryFilter is now part of Oslo, although it's been renamed to
IgnoreAttemptedFilter.  Thanks to entry_point, we are able to maintain
backwards compatibility after pulling that commit from Oslo.

Commits in this change:
66fe978 2013-12-10 | Change IgnoreAttemptedHostFilter to expect 'retry' key (attempt-retry)
135dd00 2013-12-10 | Remove start index 0 in range()
45658e2 2013-12-09 | Fix violations of H302:import only modules
70004c6 2013-12-04 | Add IgnoreAttemptedHostsFilter to oslo
880acf7 2013-11-14 | Change capabilities filters to use resource type (capfilter_message)
06e9d98 2013-11-10 | Add some log messages to capabilities_filter.py
3970d46 2013-11-02 | Fix typos in oslo
8718763 2013-08-19 | Replace list with dict in AvailabilityZoneFilter.host_passes
c0d052a 2013-07-12 | python3: Add basic compatibility support.
e3545f8 2013-06-02 | Enable hacking H402 test
484a1df 2013-05-30 | Enable hacking H403 test
35660da 2013-05-30 | Enable hacking H401 test
5dcc43b 2013-05-05 | Break out common functionality for filters and weights
1f2aba5 2013-05-03 | Renames filter to base_filter and weight to base_weight

Change-Id: Ibeb685ef60e44cb6388fc460ee6a78255ed3dbae

10 years agoUse loopingcall from openstack-common
Eric Harney [Fri, 3 Jan 2014 22:24:47 +0000 (17:24 -0500)]
Use loopingcall from openstack-common

This removes cinder.utils.LoopingCall and uses the copy in
openstack-common instead.

Change-Id: Id76b89797dffcc65fbf37fd1442f221ff5bb4668

10 years agoUse a *args pass-in instead of a list one
Joshua Harlow [Tue, 14 Jan 2014 18:57:32 +0000 (10:57 -0800)]
Use a *args pass-in instead of a list one

Change-Id: Ieef972f413dcf444d26c15a02d1993acf7cbb079

10 years agoRemove unused variable in os-extend api
ling-yun [Thu, 9 Jan 2014 10:49:53 +0000 (18:49 +0800)]
Remove unused variable in os-extend api

Temp variable _val in _extend method is not being used, so remove this
'_val' variable.

Change-Id: I4a3f5e28d1882698a3efd116044c4fddff86c474
Closes-Bug: #1267423

10 years agoGlusterFS: Synchronize additional operations
Eric Harney [Fri, 10 Jan 2014 19:20:41 +0000 (14:20 -0500)]
GlusterFS: Synchronize additional operations

create_cloned_volume() and copy_volume_to_image() should also be
locked against other driver operations to prevent collisions
from concurrent updates of snapshot metadata or volume file data.

Closes-Bug: #1267983

Change-Id: Idd6158bfbe4dc049c33fa58b40d3d570fc244d01

10 years agoMove driver initialization check into the method
Flavio Percoco [Tue, 10 Dec 2013 11:31:50 +0000 (12:31 +0100)]
Move driver initialization check into the method

Volumes and backups managers' methods are decorated with
`require_initialized_driver` which checks whether the driver has been
initialized or not. The decorator fails with a `DriverNotInitialized`
exception if the driver hasn't been initialized.

This early failure leaves volumes and backups in a wrong status which is
not just confusing for the user but it also makes it difficult to do
anything with the resources after they've been left in a 'bogus' status.

For example, when a volume creation is requested, the volume is first
created in the database and its status is set to 'creating'. Then the
scheduler will pick an available volume node and send the task to it. If
the driver has not been initialized, the volume status will be left as
'creating' instead of 'error'.

This patch fixes that issue by moving the driver initialization check
into the various manager's methods. In some cases this check is done at
the very beginning of the method, in some others - either to avoid code
duplication or because the lines above the check made sense to be
executed first - this check is done later in the method.

Change-Id: I2610be6ba1aa7df417f1a1f7bb27af30273e4814
Closes-bug: #1242942

10 years agoUpdate cinder.conf.sample for keystoneclient change
Eric Harney [Mon, 13 Jan 2014 17:19:12 +0000 (12:19 -0500)]
Update cinder.conf.sample for keystoneclient change

A new version of python-keystoneclient adds the
"include_service_catalog" option, so the sample conf needs to be
updated.

Closes-Bug: #1268614

Change-Id: Ie6913e481caf61ee517c1c101565401fe33c60d6

10 years agoTransfer creation doesn't support 'name' via xml
wingwj [Sat, 14 Dec 2013 12:00:08 +0000 (20:00 +0800)]
Transfer creation doesn't support 'name' via xml

Change the transfer create XML deserializer to use 'name' rather than
'display_name'. This is in line with cinderclient and the json code.

Change-Id: I97ba0c4411fe4a151261ed2f657465951bcb9d7b
Closes-Bug: #1243613

10 years agoMerge "Switch to Oslo's config generator"
Jenkins [Mon, 13 Jan 2014 12:20:17 +0000 (12:20 +0000)]
Merge "Switch to Oslo's config generator"

10 years agoUpdated fr.po, new sv.po
Thomas Goirand [Mon, 13 Jan 2014 09:26:12 +0000 (17:26 +0800)]
Updated fr.po, new sv.po

10 years agoMerge "Print driver exception on retype"
Jenkins [Sun, 12 Jan 2014 21:24:51 +0000 (21:24 +0000)]
Merge "Print driver exception on retype"

10 years agoMerge "Fix Brick LVM test command parsing"
Jenkins [Sun, 12 Jan 2014 14:40:34 +0000 (14:40 +0000)]
Merge "Fix Brick LVM test command parsing"

10 years agoMerge "Drop Chance/SimpleScheduler Implementation"
Jenkins [Sun, 12 Jan 2014 13:51:25 +0000 (13:51 +0000)]
Merge "Drop Chance/SimpleScheduler Implementation"

10 years agoPrint driver exception on retype
Avishay Traeger [Sun, 12 Jan 2014 13:43:34 +0000 (15:43 +0200)]
Print driver exception on retype

If the driver raises an exception, make sure it is printed. Also change
the logging level from info to error because an exception should not be
thrown under normal conditions.

Change-Id: I003959c3f7c7667124ef61911587012fd4e1d667
Closes-Bug: #1268294

10 years agoMerge "Add bool_type dictionary to test_migrations"
Jenkins [Sun, 12 Jan 2014 12:28:40 +0000 (12:28 +0000)]
Merge "Add bool_type dictionary to test_migrations"

10 years agoMerge "Hiding postgresql password in connection string"
Jenkins [Sun, 12 Jan 2014 12:17:01 +0000 (12:17 +0000)]
Merge "Hiding postgresql password in connection string"

10 years agoMerge "Remove unused message from iogrp_data setup"
Jenkins [Sun, 12 Jan 2014 09:51:59 +0000 (09:51 +0000)]
Merge "Remove unused message from iogrp_data setup"

10 years agoMerge "Fixed a problem in iSCSI multipath"
Jenkins [Sat, 11 Jan 2014 17:21:10 +0000 (17:21 +0000)]
Merge "Fixed a problem in iSCSI multipath"

10 years agoMerge "3PAR: Raise Ex when del snapshot with depend vol"
Jenkins [Sat, 11 Jan 2014 14:13:40 +0000 (14:13 +0000)]
Merge "3PAR: Raise Ex when del snapshot with depend vol"

10 years agoMerge "Raise max header size to accommodate large tokens."
Jenkins [Fri, 10 Jan 2014 20:17:57 +0000 (20:17 +0000)]
Merge "Raise max header size to accommodate large tokens."

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 agoDrop Chance/SimpleScheduler Implementation
Zhiteng Huang [Thu, 2 Jan 2014 07:44:30 +0000 (15:44 +0800)]
Drop Chance/SimpleScheduler Implementation

This patch removes the implementation of ChanceScheduler and SimpleScheduler
as previous changes have made sure they are internally replaced by
FilterScheduler.

The "max_gigabytes" config option is deprecated and will leave it like that
for one more release before we can remove it.

DocImpact: "ChanceScheduler and SimpleScheduler have been deprecated and
their implementation have been removed from Cinder."

Implement bp: deprecate-chance-and-simple-schedulers

Change-Id: Ifb1cb25e3bb4cdf26fa3283336b83fce5c97141e

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 agoRemove unused message from iogrp_data setup
Lynxzh [Mon, 6 Jan 2014 03:45:33 +0000 (11:45 +0800)]
Remove unused message from iogrp_data setup

The iogrp_data is initialized during do_setup loaded.
The vdisk_count is originally used but later removed.
In ValueException raised, the variable is no longer required.
Remove this will give a clearer message when
ValueException raised.

Change-Id: Ib7b6c6a870ddd7932e8da1436d615f9ee458bd93
Closes-Bug: #1266321

10 years agoRemove legacy config option 'connection_type'
Zhiteng Huang [Wed, 8 Jan 2014 03:22:25 +0000 (11:22 +0800)]
Remove legacy config option 'connection_type'

'connection_type' is a legacy config option originated from Nova.
Nova used this option to specify underlying virtualization type for
compute service and had deprecated it (with 'compute_driver') in
Folsom and had it removed in later release.  In Cinder Folsom release,
the XenSMDriver in Cinder used this config option to verify the target
hypervisor but in Grizzly XenSMDriver has been renamed and refactored
and no longer used this config.  Therefore, this option is dead for
a long time, and should be removed.

Change-Id: I4d72f31302fa813df42e71224151148a9c4a76c7

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 ago3PAR: Raise Ex when del snapshot with depend vol
Ramy Asselin [Mon, 6 Jan 2014 23:26:07 +0000 (15:26 -0800)]
3PAR: Raise Ex when del snapshot with depend vol

Deleting a 3PAR snapshot can result in an HTTP Conflict error message,
such as when a volume is dependent on it.
Previously, this exception was not caught, and the state was set
to "Error_Deleting" with no recovery path.
The code was updated to catch this exception and raise a
SnapShotIsBusy exception with an appropriate error message.
The state reverts back to 'Available' allowing the user to try again
after removing the dependency.

Change-Id: Ibe8c5d581af10c85397c37993c49f8fc3bce8620
Closes-Bug: #1250249

10 years agoAdd bool_type dictionary to test_migrations
Jay S. Bryant [Mon, 6 Jan 2014 20:45:34 +0000 (14:45 -0600)]
Add bool_type dictionary to test_migrations

A number of MySQL migration tests fail because the test case
is verifying that an sqlalchemy.types.BOOLEAN column was created.
When the column type is checked, however, mysql reports the type as
sqlalchemy.dialects.mysql.TINYINT.  The mismatch causes numerous
test cases to fail for MySQL.

This creates a dictionary for each engine being tested to handle the
different boolean types.

postgresql and DB2 encounter similar issues.  Subsequent patches
will make the appropriate changes for those databases.

Change-Id: I81cb3c6feeacf887f1f473ec54414e0e215d2c24
Closes-bug: 1260126

10 years agoHiding postgresql password in connection string
galstrom21 [Tue, 7 Jan 2014 16:38:06 +0000 (10:38 -0600)]
Hiding postgresql password in connection string

Closes-Bug: #1266804
Change-Id: Iafc820d6201acf5b563b62bd9f20a715901f1ab4

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 agoFixed a problem in iSCSI multipath
Xing Yang [Mon, 6 Jan 2014 22:16:05 +0000 (17:16 -0500)]
Fixed a problem in iSCSI multipath

Multipathing during copy image to volume and copy volume to image
operations doesn't work properly if there are different targets
associated with different portals for a mulitpath device.

Change-Id: I65c93f3788020c944db0d3a55063a6415554ff11
Closes-Bug: #1266048

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 agoFix Brick LVM test command parsing
Eric Harney [Fri, 3 Jan 2014 17:44:33 +0000 (12:44 -0500)]
Fix Brick LVM test command parsing

The case reporting only one fake-volumes VG was never hit, which also
caused us to not test the lvcreate -T path.

Change-Id: If43d6aff5f90d6eca24b3df790d8ad3a86bfc8f3

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 agoRaise max header size to accommodate large tokens.
Shao Kai Li [Thu, 2 Jan 2014 05:51:41 +0000 (00:51 -0500)]
Raise max header size to accommodate large tokens.

The max header is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined

An equivalent fix will be required for all projects which use
eventlet.wsgi.

Copied from https://review.openstack.org/#/c/33362/

Closes-Bug: 1190149

Change-Id: I3fcb196b25a7a477b799c8dfa2ff5115977ca06d

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"