]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMerge "IBM Storwize driver: Retype the volume with correct empty QoS"
Jenkins [Tue, 30 Sep 2014 17:35:55 +0000 (17:35 +0000)]
Merge "IBM Storwize driver: Retype the volume with correct empty QoS"

10 years agoOpen Kilo development
Thierry Carrez [Tue, 30 Sep 2014 07:25:09 +0000 (09:25 +0200)]
Open Kilo development

Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: I326741949e338537388f020442aa026ea4673b92

10 years agoMerge "VMware: cinder-volume create_session fail at retry"
Jenkins [Tue, 30 Sep 2014 05:06:02 +0000 (05:06 +0000)]
Merge "VMware: cinder-volume create_session fail at retry"

10 years agoMerge "Fix race condition in ISCSIConnector disconnect_volume"
Jenkins [Tue, 30 Sep 2014 04:33:12 +0000 (04:33 +0000)]
Merge "Fix race condition in ISCSIConnector disconnect_volume"

10 years agoMerge "Adds openSUSE support for developer documentation"
Jenkins [Tue, 30 Sep 2014 02:00:10 +0000 (02:00 +0000)]
Merge "Adds openSUSE support for developer documentation"

10 years agoMerge "Remove unused py33 tox env"
Jenkins [Mon, 29 Sep 2014 22:02:24 +0000 (22:02 +0000)]
Merge "Remove unused py33 tox env"

10 years agoFix race condition in ISCSIConnector disconnect_volume
Patrick East [Mon, 29 Sep 2014 17:54:22 +0000 (10:54 -0700)]
Fix race condition in ISCSIConnector disconnect_volume

The list of devices returned by driver.get_all_block_devices() will
sometimes contain broken symlinks as the SCSI device has been deleted
but the udev rule for the symlink has not yet completed.

Adding in a check to os.path.exists() will ensure that we will not
consider the broken symlinks as an “in use” device.

Change-Id: Ibb869e10976f894f9e18e9edec6739c2c3bea68c
Closes-Bug: #1375382

10 years agoAdds openSUSE support for developer documentation
Alberto Planas [Mon, 29 Sep 2014 15:25:10 +0000 (17:25 +0200)]
Adds openSUSE support for developer documentation

Add information for openSUSE as developer platform.

Change-Id: I3d5429f78b06cd38b10756570acea96fb23ed021

10 years agoIBM Storwize driver: Retype the volume with correct empty QoS
Vincent Hou [Fri, 12 Sep 2014 08:10:02 +0000 (16:10 +0800)]
IBM Storwize driver: Retype the volume with correct empty QoS

* Currently for Storwzie driver, if the new type does not have QoS
configurations, the old QoS configurations remain in the volume after
retyping it. It should be retyped into a volume with empty QoS for the
Storwize driver.
* Refactor three dicts into one for better maintainance of the QoS keys
for Storwize driver.

DocImpact

Change-Id: I2b2801a4ef72ef02c11392ed00b56f5263a8a7e4
Closes-Bug: #1368595

10 years agoVMware:Unquote folder name for folder exists check
Vipin Balachandran [Thu, 14 Aug 2014 09:39:40 +0000 (15:09 +0530)]
VMware:Unquote folder name for folder exists check

vCenter server escapes special characters in the folder name using URL
encoding and returns back the encoded string while querying. This causes
the check for folder existence to return false. Therefore, folder
creation is reattempted which eventually fails. This patch fixes the
problem by decoding the folder name returned by vCenter before
comparison.

Change-Id: I40aa6f42ea0d85fbfcb40970c55b20e13ea46522
Closes-Bug: #1356794

10 years agoMerge "Add required spaces in log messages"
Jenkins [Mon, 29 Sep 2014 06:26:28 +0000 (06:26 +0000)]
Merge "Add required spaces in log messages"

10 years agoVMware: cinder-volume create_session fail at retry
Johnson Koil Raj [Fri, 26 Sep 2014 18:37:47 +0000 (00:07 +0530)]
VMware: cinder-volume create_session fail at retry

cinder-volume exits with an exception while accessing a None
object during retry of create session failure.

Closes-Bug: #1374585

Change-Id: I1d8dd034e9c6eb7568cf6f243a203df7de1777da

10 years agoMerge "IBM Storwize:Failed to retype from non-type to replication enable"
Jenkins [Sun, 28 Sep 2014 02:24:35 +0000 (02:24 +0000)]
Merge "IBM Storwize:Failed to retype from non-type to replication enable"

10 years agoMerge "NetApp fix for controller preferred path"
Jenkins [Sat, 27 Sep 2014 22:24:46 +0000 (22:24 +0000)]
Merge "NetApp fix for controller preferred path"

10 years agoMerge "Fix running unit tests with coverage"
Jenkins [Sat, 27 Sep 2014 22:24:37 +0000 (22:24 +0000)]
Merge "Fix running unit tests with coverage"

10 years agoMerge "VMware: Add storage profile related unit tests"
Jenkins [Sat, 27 Sep 2014 22:24:28 +0000 (22:24 +0000)]
Merge "VMware: Add storage profile related unit tests"

10 years agoMerge "VMware: Relocate volume to compliant datastore"
Jenkins [Sat, 27 Sep 2014 22:24:20 +0000 (22:24 +0000)]
Merge "VMware: Relocate volume to compliant datastore"

10 years agoMerge "VMware: Implement retype for VMDK driver"
Jenkins [Sat, 27 Sep 2014 22:24:11 +0000 (22:24 +0000)]
Merge "VMware: Implement retype for VMDK driver"

10 years agoMerge "VMware: Improve datastore selection logic"
Jenkins [Sat, 27 Sep 2014 22:18:53 +0000 (22:18 +0000)]
Merge "VMware: Improve datastore selection logic"

10 years agoMerge "Failed to re-detach volume when volume detached."
Jenkins [Sat, 27 Sep 2014 22:18:43 +0000 (22:18 +0000)]
Merge "Failed to re-detach volume when volume detached."

10 years agoFixing format for log messages
ArkadyKanevsky [Wed, 27 Aug 2014 21:47:37 +0000 (16:47 -0500)]
Fixing format for log messages

code_cleanup_batching for EQL driver
Follow log essage format for i18n - http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages

Closes-Bug: 1362337

Change-Id: Ic3726f725efa4d29204e8530a8f191b801a4aac8

10 years agoUpdate /etc/cinder/cinder.conf.sample for memcache
Jay S. Bryant [Thu, 25 Sep 2014 20:58:41 +0000 (15:58 -0500)]
Update /etc/cinder/cinder.conf.sample for memcache

It appears that an update to keystone middleware earlier today
added options for memcache_secret_key, memcache_pool_dead_retry,
memcache_pool_maxsize, memcache_pool_socket_timeout,
memcache_pool_unused_timeout, memcache_pool_conn_get_timeout and
memcache_use_advanced_pool.  The commit that added these options
was: a7beb50b38be5c3dd4c44d68ad79d1bb206dab6b - "Add an optional
advanced pool of memcached clients".

This has once again caused the check_uptodate.sh script to fail.

This patch updates cinder.sample.conf .

Change-Id: Ibcf19ccc81a56a9a3e795022e3e07bc061fa9401
Closes-bug: 1374154

10 years agoMerge "Fix unnecessary WSGI worker warning at API startup"
Jenkins [Thu, 25 Sep 2014 13:39:02 +0000 (13:39 +0000)]
Merge "Fix unnecessary WSGI worker warning at API startup"

10 years agoVMware: Relocate volume to compliant datastore
Vipin Balachandran [Wed, 27 Aug 2014 14:56:34 +0000 (20:26 +0530)]
VMware: Relocate volume to compliant datastore

During attach to a nova instance, the backing VM corresponding to the
volume is relocated only if the nova instance's ESX host cannot access
the backing's current datastore. The storage profile is ignored and
the volume's virtual disk might end up in a non-compliant datastore.
This patch fixes the problem by checking storage profile compliance of
the current datastore.

Change-Id: I3865654e219c05dcec3aaab07c4cee0658fe181e
Closes-Bug: #1301348

10 years agoFailed to re-detach volume when volume detached.
Rick Chen [Wed, 24 Sep 2014 09:08:52 +0000 (17:08 +0800)]
Failed to re-detach volume when volume detached.

When first request command detach the volume, but the back-end
storage state is in-processing or busy. Next retry command will
got the error code that describe the volume already detached.

Change-Id: If340980ab2dcc844398254ff368ca6b78ca40ff6
Closes-Bug: 1373317

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 25 Sep 2014 05:12:02 +0000 (05:12 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Add unit test to cinder cgsnapshot api"
Jenkins [Wed, 24 Sep 2014 18:12:37 +0000 (18:12 +0000)]
Merge "Add unit test to cinder cgsnapshot api"

10 years agoMerge "Downgrade 'infinite' and 'unknown' capacity in weigher"
Jenkins [Wed, 24 Sep 2014 18:08:53 +0000 (18:08 +0000)]
Merge "Downgrade 'infinite' and 'unknown' capacity in weigher"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 24 Sep 2014 06:04:09 +0000 (06:04 +0000)]
Imported Translations from Transifex

Change-Id: If1cff4924585a11e5545cd8f3b206d574f5a4558

10 years agoIBM Storwize:Failed to retype from non-type to replication enable
TaoBai [Thu, 18 Sep 2014 08:49:47 +0000 (11:49 +0300)]
IBM Storwize:Failed to retype from non-type to replication enable

It used none as volume type to create replication. Storwize Driver
did not check whether it's none.
Change to use new type to create replication.

Closes-bug: #1369815

Change-Id: I78501e1d3558bd6c3e6e1abb0c312cec7d11efd4

10 years agoMerge "DB migration 25->24 failed when dropping column"
Jenkins [Wed, 24 Sep 2014 03:30:22 +0000 (03:30 +0000)]
Merge "DB migration 25->24 failed when dropping column"

10 years agoMerge "Fix confusing exception message in NetApp iscsi driver"
Jenkins [Wed, 24 Sep 2014 03:23:29 +0000 (03:23 +0000)]
Merge "Fix confusing exception message in NetApp iscsi driver"

10 years agoMerge "Fix ssh_host_key_file default in help and config.sample.conf"
Jenkins [Tue, 23 Sep 2014 21:22:36 +0000 (21:22 +0000)]
Merge "Fix ssh_host_key_file default in help and config.sample.conf"

10 years agoFix unnecessary WSGI worker warning at API startup
Jay S. Bryant [Fri, 19 Sep 2014 17:46:21 +0000 (12:46 -0500)]
Fix unnecessary WSGI worker warning at API startup

There was a bug in WSGIService in the way that it was
checking the osapi_volume_workers option.  It was using
getattr() to see if the option was set, if not it was supposed
to set the value to processutils.get_worker_count().  This,
however, never happened because getattr interpreted the default
'None' value to be a value.  So, on any system with no value set
the self.workers < 1 check would be hit and a warning would be
output.

Nova had changed their approach to this option to avoid this
problem.  This patch pulls Nova's approach into Cinder for
consistency.  Cinder will now use processutils.get_worker_count()
if no option is set in /etc/cinder/cinder.conf and when the user sets
osapi_volume_workers to 0.  A negative value will cause an
InvalidInput exception to be thrown.

Unittests have been added for this functionality.

Change-Id: I4ec2fdd0d19195cccffd63cdd1af1b9ca9884c7d
Closes-bug: #1367454

10 years agoMerge "Remove XenAPI driver"
Jenkins [Tue, 23 Sep 2014 16:36:27 +0000 (16:36 +0000)]
Merge "Remove XenAPI driver"

10 years agoMerge "Set socket options in correct way"
Jenkins [Tue, 23 Sep 2014 10:39:53 +0000 (10:39 +0000)]
Merge "Set socket options in correct way"

10 years agoRemove XenAPI driver
Bob Ball [Mon, 22 Sep 2014 15:29:00 +0000 (16:29 +0100)]
Remove XenAPI driver

The XenAPI driver does not have known users and does not meet
the minimum requirements for Cinder drivers.

This patch removes the driver from the tree.

Closes-bug: 1372836

Change-Id: I2123b2d52180bbdffe90c458f115c67f50dfd5e9

10 years agoAdd required spaces in log messages
abhishekkekane [Tue, 23 Sep 2014 07:26:56 +0000 (00:26 -0700)]
Add required spaces in log messages

Added required spaces in between two words for log messages.

cinder/volume/drivers/huawei/huawei_t.py validate_connector method.
cinder/transfer/api.py accept method.
cinder/brick/initiator/linuxscsi.py flush_device_io method.

Closes-Bug: #1372788
Change-Id: Ia0ab72d930c1b9099dd2796032b7b2b0b857bad5

10 years agoFix ssh_host_key_file default in help and config.sample.conf
Mark Sturdevant [Tue, 23 Sep 2014 05:45:14 +0000 (22:45 -0700)]
Fix ssh_host_key_file default in help and config.sample.conf

The commit message and the actual default say the default value for
ssh_host_key_file is $state_path/ssh_known_hosts, but the
config.conf.sample and the config opts help say it is
"$state_path/known_hosts".

Fix the help and config.conf.sample to match the actual default.

Closes-Bug: 1372765
Change-Id: I51a2918155a27afcf48eda01f32774ce0d346d06

10 years agoDowngrade 'infinite' and 'unknown' capacity in weigher
Zhiteng Huang [Thu, 18 Sep 2014 22:02:55 +0000 (15:02 -0700)]
Downgrade 'infinite' and 'unknown' capacity in weigher

When FilterScheduler was first introduced into Cinder, drivers were
required for the first time to report capacity. Some drivers preferred
to report 'infinite' or 'unknown' capacity because they were doing
thin-provisioning or the total capacity kept increasing. Now that we
have better support for thin-provisioning and we do find unrealistic
capacity couldn't do us any good in making optimal scheduling decision,
because 'infinite' and 'unknown' would always have the highest weight
when the weight multiplier is positive, which in most cases it is.

Drivers are expected to avoid sending 'infinite' 'unknown' capacity
anymore, instead, should report an actual real number for total/free
capacity.

This fix doesn't fix the driver, instead a small tweak is added to
CapacityWeigher in order to downgrade those drivers who report
'infinite' or 'unknown' as free capacity.  In particular, those who
report 'infinite'/'unknown' free capacity will be adjusted to be the
one has lowest weight, no matter in 'spreading' (weight multiplier>0)
or 'stacking' (weight multiplier<0) mode.

DocImpact

Change-Id: Ied087386a1a2f43e6a77499a817d5c637ef448f6
Partial-bug: #1350638

10 years agoRemove unused py33 tox env
Jeremy Stanley [Mon, 22 Sep 2014 12:40:43 +0000 (12:40 +0000)]
Remove unused py33 tox env

Based on review comments in https://review.openstack.org/118771 it's
apparent that Cinder is quite a ways from Py3K support, and
developers are not expected to run the py33 tox env. Rather than add
more envs for later Python interpreter versions which will be
equally broken, just remove it for now.

Change-Id: I2bcc345bb62c0e08677fbf70b722b6a841650e53

10 years agoMerge "Typo "asscoiated" should be "associated""
Jenkins [Mon, 22 Sep 2014 11:04:37 +0000 (11:04 +0000)]
Merge "Typo "asscoiated" should be "associated""

10 years agoAdd unit test to cinder cgsnapshot api
Haiwei Xu [Wed, 17 Sep 2014 05:58:20 +0000 (14:58 +0900)]
Add unit test to cinder cgsnapshot api

This patch adds unit tests to cgsnapshot create api,
in case cgsnapshot is invalid or can not be found.

Change-Id: I6ec73b8db413e5c085f8a48830f5e1446c2d7240

10 years agoMerge "Allow scheduler pool information to be retrieved"
Jenkins [Sun, 21 Sep 2014 14:15:13 +0000 (14:15 +0000)]
Merge "Allow scheduler pool information to be retrieved"

10 years agoMerge "Timeout triggers failures running tempest for ZFSSA driver."
Jenkins [Sun, 21 Sep 2014 13:38:28 +0000 (13:38 +0000)]
Merge "Timeout triggers failures running tempest for ZFSSA driver."

10 years agoDB migration 25->24 failed when dropping column
Xing Yang [Sat, 20 Sep 2014 22:23:11 +0000 (18:23 -0400)]
DB migration 25->24 failed when dropping column

"cinder-manage db sync 24" failed when dropping column cgsnapshot_id
from the snapshots table.

The reason that drop column failed was because of the foreign key
constraint. MySQL cannot drop column until the foreign key constraint
is removed. So the solution is to remove the foreign key first, and
then drop the column. This affects the cgsnapshot_id column in the
snapshots table and the consistencygroup_id column in the volumes table.

Change-Id: I89d5016be450ec91c7a7b1c42803add3f62c88df
Closes-Bug: #1368213

10 years agoAllow scheduler pool information to be retrieved
Zhiteng Huang [Mon, 8 Sep 2014 21:42:39 +0000 (14:42 -0700)]
Allow scheduler pool information to be retrieved

With pool support added to Cinder, now we are kind of in an awkward
situation where we require admin to input exact location for volumes
to-be managed (imported) or migrated, which must have pool info, but
there is no way to find out what pools are there for backends except
looking at the scheduler log.  That causes bad user experience, and
thus is a bug from UX POV.

This change simply adds a new admin-api extension to allow admin to
fetch all the pool information from scheduler cache (memory), which
closes the gap for end users.

This extension provides two level of pool information: names only or
detailed information:

Pool name only:
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools

Detailed Pool info:
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools
\?detail\=True

Closes-bug: #1364279

Change-Id: I445d4e472c83db2f2d8db414de139c87d09f8fda

10 years agoMerge "Increase the 3PAR hostname length"
Jenkins [Sat, 20 Sep 2014 13:03:59 +0000 (13:03 +0000)]
Merge "Increase the 3PAR hostname length"

10 years agoMerge "Revert iSCSI Target objects as independent objects"
Jenkins [Sat, 20 Sep 2014 01:18:17 +0000 (01:18 +0000)]
Merge "Revert iSCSI Target objects as independent objects"

10 years agoIncrease the 3PAR hostname length
Walter A. Boring IV [Thu, 18 Sep 2014 19:03:46 +0000 (12:03 -0700)]
Increase the 3PAR hostname length

The latest 3PAR firmware supports a hostname of 31 characters.
This patch increases the hostname on the 3PAR from 23 characters to
31.

The driver currently has a fallback mechanism in place for detecting
existing hosts.   This handles the case where upgrading from
Icehouse to Juno where Icehouse hosts have a limit of 23 characters.

Change-Id: I171e54b2e03a4ae11d2bf07c9c48febab268ce84
Closes-Bug: 1371242

10 years agoTimeout triggers failures running tempest for ZFSSA driver.
Juan Zuluaga [Tue, 16 Sep 2014 15:09:02 +0000 (11:09 -0400)]
Timeout triggers failures running tempest for ZFSSA driver.

Adding a property to setup the RESTAPI connection timeout with
ZFS Storage Appliance, allow tempest to pass with slower network links.

DocImpact: New config parameter is added to allow configuring timeout value.
Closes-Bug: #1369136

Change-Id: I8de19f56a18106324ed414cf41ee2323de639359

10 years agoMerge "Add tests for consistency groups DB migration"
Jenkins [Fri, 19 Sep 2014 08:27:21 +0000 (08:27 +0000)]
Merge "Add tests for consistency groups DB migration"

10 years agoMerge "HP 3PAR drivers should not claim to have 'infinite' space"
Jenkins [Fri, 19 Sep 2014 04:31:24 +0000 (04:31 +0000)]
Merge "HP 3PAR drivers should not claim to have 'infinite' space"

10 years agoMerge "HP 3PAR: Allow retype when the old snapshot CPG (3PAR pool) is None"
Jenkins [Fri, 19 Sep 2014 02:43:29 +0000 (02:43 +0000)]
Merge "HP 3PAR: Allow retype when the old snapshot CPG (3PAR pool) is None"

10 years agoMerge "Verify requested size in volume.api create"
Jenkins [Fri, 19 Sep 2014 02:42:15 +0000 (02:42 +0000)]
Merge "Verify requested size in volume.api create"

10 years agoMerge "Fix a problem with 'volume list' when 'all_tenants=0'"
Jenkins [Thu, 18 Sep 2014 22:26:03 +0000 (22:26 +0000)]
Merge "Fix a problem with 'volume list' when 'all_tenants=0'"

10 years agoHP 3PAR drivers should not claim to have 'infinite' space
Mark Sturdevant [Sun, 14 Sep 2014 00:04:27 +0000 (17:04 -0700)]
HP 3PAR drivers should not claim to have 'infinite' space

The HP 3PAR drivers report 'infinite' space when there is not a limit
set on the CPG. In this case, it would be better to at least use the
free space estimate of the array instead of 'infinite'.

Change-Id: I8c34ea3982fe61a1b6fa01245ca6da23ca5b8b7b
Closes-Bug: 1369057

10 years agoAdd tests for consistency groups DB migration
Xing Yang [Thu, 18 Sep 2014 20:50:58 +0000 (16:50 -0400)]
Add tests for consistency groups DB migration

The consistency group patch added 2 new DB migration versions:
025 and 026. However, there were no unit tests to support them in
cinder/tests/test_migrations.py. This patch added missing tests.

Change-Id: I670825980fddd4b6dc400e5a17e1003ad47ace1a
Closes-Bug: #1370756

10 years agoVerify requested size in volume.api create
John Griffith [Thu, 18 Sep 2014 03:16:18 +0000 (21:16 -0600)]
Verify requested size in volume.api create

Currently we're not checking that the input value requested
for size on volume create is valid, but taskflow portion of
the code expects it to be and as a result when it receives invalid
input we litter the logs with Trace messages.

This patch adds a check that verifies that if we pass in a
size to create_volume in the volume.api that it is in fact
an int or a string representation of an int.

Worst commit ever

Change-Id: I81bf515360eacf63e6f3cdb672ec7f37001aa4fb
Closes-Bug: 1370773

10 years agoTypo "asscoiated" should be "associated"
Rafael Rivero [Thu, 18 Sep 2014 18:30:01 +0000 (11:30 -0700)]
Typo "asscoiated" should be "associated"

Misspelling of "associated" found in docstring of the method
update_host in class VolumeCommands.

Change-Id: I813c3f776a1555924b99bc8022de727b838ee947

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 18 Sep 2014 13:58:41 +0000 (13:58 +0000)]
Updated from global requirements

Change-Id: I948862c12267ac530c5aa136ac490b134b81d41d

10 years agoSet socket options in correct way
abhishekkekane [Fri, 12 Sep 2014 09:40:31 +0000 (02:40 -0700)]
Set socket options in correct way

Currently socket options, socket.SO_REUSEADDR and socket.SO_KEEPALIVE
are set only if SSL is enabled.
The above socket options should be set no matter SSL is enabled or not.

Closes-Bug: #1369418

Change-Id: Ia5f6603918bda40be9965387bf464c581449d912

10 years agoMerge "Some tcp configuration paramters are ignored"
Jenkins [Thu, 18 Sep 2014 12:56:34 +0000 (12:56 +0000)]
Merge "Some tcp configuration paramters are ignored"

10 years agoMerge "Stop using intersphinx"
Jenkins [Thu, 18 Sep 2014 06:49:17 +0000 (06:49 +0000)]
Merge "Stop using intersphinx"

10 years agoHP 3PAR: Allow retype when the old snapshot CPG (3PAR pool) is None
Mark Sturdevant [Fri, 12 Sep 2014 21:03:28 +0000 (14:03 -0700)]
HP 3PAR: Allow retype when the old snapshot CPG (3PAR pool) is None

A common provisioning group (CPG) is a virtual pool of logical disks.
A volume is stored in a CPG. The volume's snapshots may be stored in
the same CPG or in a separate CPG. In 3PAR this is the "snapCPG".

Before the 3PAR driver supported "manage", the snapCPG was never None in
OpenStack because when we create volumes, we explicitly default snapCPG
to match the volume CPG unless otherwise specified. So, the original
retype pre-checks raised an exception if this unexpected case occurred
and a unit test was provided for that exception.

Now that we support manage_existing(), it should be a valid use case
to manage an existing volume created outside of OpenStack with a snapCPG
set to None. Unfortunately, when we applied volume-type settings to this
volume we would hit that old exception.

That exception has been removed.

Removing it required the following changes:

1. When retype pre-checks validate the domain of the new snapCPG, it
   will not use the optional old snapCPG. Instead it will compare the
   new snapCPG domain with the old volume CPG domain. This satisfies
   the requirement that domains cannot be mixed and avoids the need
   to have an old snapCPG setting.

2. Remove the no longer used old_snap_cpg parameter and remove the
   code that raised an exception "if not old_snap_cpg".

3. Remove the unit test that was just to test that obsolete exception.

4. Adjust the exiting test_retype_across_snap_cpg_domains to
   verify that a snapCPG domain that does not match the volume
   CPG domain will still raise Invalid3PARDomain

Change-Id: Icd2c66898ef64f81116df102f5529a8da30c14d5
Closes-Bug: 1368927

10 years agoMerge "Remove executable bits on various files"
Jenkins [Thu, 18 Sep 2014 03:08:36 +0000 (03:08 +0000)]
Merge "Remove executable bits on various files"

10 years agoMerge "Updated from global requirements"
Jenkins [Thu, 18 Sep 2014 02:50:24 +0000 (02:50 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Sync latest strutils from oslo-incubator for mask_password fix"
Jenkins [Wed, 17 Sep 2014 23:34:21 +0000 (23:34 +0000)]
Merge "Sync latest strutils from oslo-incubator for mask_password fix"

10 years agoMerge "Use right body for test_create_missing_specs_name"
Jenkins [Wed, 17 Sep 2014 22:34:39 +0000 (22:34 +0000)]
Merge "Use right body for test_create_missing_specs_name"

10 years agoMerge "Volume types need to be specified when creating CG"
Jenkins [Wed, 17 Sep 2014 20:11:10 +0000 (20:11 +0000)]
Merge "Volume types need to be specified when creating CG"

10 years agoMerge "Getting iscsi_ip_address from cinder.conf"
Jenkins [Wed, 17 Sep 2014 18:30:42 +0000 (18:30 +0000)]
Merge "Getting iscsi_ip_address from cinder.conf"

10 years agoMerge "Handle config file with newlines and whitespaces"
Jenkins [Wed, 17 Sep 2014 18:30:33 +0000 (18:30 +0000)]
Merge "Handle config file with newlines and whitespaces"

10 years agoMerge "Check replication status failed for non-replication"
Jenkins [Wed, 17 Sep 2014 17:07:36 +0000 (17:07 +0000)]
Merge "Check replication status failed for non-replication"

10 years agoNetApp fix for controller preferred path
Navneet Singh [Thu, 27 Feb 2014 07:39:03 +0000 (13:09 +0530)]
NetApp fix for controller preferred path

This patch optimizes the data path by choosing
the preferred path to access the volume by selecting
the controller owning the volume.

Closes-Bug: #1365881

Change-Id: I7069111dfd22d4fca92615b5730854f6d696ec13

10 years agoVMware: Add storage profile related unit tests
Vipin Balachandran [Fri, 22 Aug 2014 13:58:23 +0000 (19:28 +0530)]
VMware: Add storage profile related unit tests

This patch adds missing unit tests related to storage profiles.

Change-Id: I8819437617d813fbabdb79dcdcaa529e8a30796a

10 years agoCheck replication status failed for non-replication
TaoBai [Tue, 16 Sep 2014 08:14:16 +0000 (11:14 +0300)]
Check replication status failed for non-replication

Need to check self.replication whether is None before the
function get_replication_status be called.

Closes-bug: #1365392

Change-Id: I6f6939a98091e40537f2355bb716b4b3205845e2

10 years agoVMware: Implement retype for VMDK driver
Vipin Balachandran [Fri, 8 Aug 2014 12:50:51 +0000 (18:20 +0530)]
VMware: Implement retype for VMDK driver

This patch adds support for retype operation in the VMDK driver.

The VMDK driver uses the extra spec keys 'vmware:vmdk_type' and
'vmware:storage_profile' to determine the disk provisioning type
and storage policy of the backing VM. Currently it is not possible
to change the disk provisioning type or storage policy after volume
creation. With retype support, user can change the disk provisioning
type and storage policy by changing the volume's type to another type
with extra spec keys set to desired values.

Closes-Bug: #1275682
Partial-Bug: #1288254

Change-Id: If4b868af7b91373b2b36fd5cd2f0dda12d604d99

10 years agoVMware: Improve datastore selection logic
Vipin Balachandran [Fri, 22 Aug 2014 13:53:11 +0000 (19:23 +0530)]
VMware: Improve datastore selection logic

The current datastore selection logic is not modularized and difficult
to extend. The retype API implementation has a requirement to specify
hard anti-affinity requirement with the current backing datastore. Some
of the bug fixes also need to specify hard affinity with one or more
datastore types. To support such requirements and to enable future
extensions, this patch introduces a new module which contains datastore
selection logic. The existing code for datastore selection is reused as
much as possible. The dependency on existing datastore selection logic
will be removed in a separate patch.

The current datastore selection iterates over a list of hosts, for each
host, queries the connected valid datastores and tries to select a
suitable datastore. The filtering is based on space, storage profile,
number of connected hosts and space utilization. The space utilization
is used only for breaking ties. If a suitable datastore is found, further
processing of list of hosts is skipped, which could result in uneven space
utilization. To solve this, the new selection logic introduces a requirement
called 'preferred_utilization_threshold' which can be exposed as a driver
config option.

Partial-bug: #1275682
Partial-bug: #1301943
Partial-bug: #1293955

Change-Id: I17e90aa09a303fbb8d4ad90037f440c8c4e7d072

10 years agoSync latest strutils from oslo-incubator for mask_password fix
James Carey [Tue, 16 Sep 2014 14:13:51 +0000 (14:13 +0000)]
Sync latest strutils from oslo-incubator for mask_password fix

This sync pulls in:
   1131b56 Enable mask_password to handle byte code strings

This is the only update since the last sync:
   beca4db Sync latest strutils from oslo-incubator

This is needed to fix a delete volume failure when processutils
calls mask_password with a byte code string.

Change-Id: Ie8a8c8e26abc0e387830bc9246e9a44913ae9b24
Closes-bug: #1368527

10 years agoRemove executable bits on various files
Eric Harney [Tue, 16 Sep 2014 15:01:51 +0000 (11:01 -0400)]
Remove executable bits on various files

During the Juno cycle we landed a number of commits
making files executable that shouldn't be.

Change-Id: If2c5279b263b35526a41f4f026386b75329ff9a7

10 years agoMerge "Avoid using the disk cache on volume initialisation"
Jenkins [Tue, 16 Sep 2014 14:22:14 +0000 (14:22 +0000)]
Merge "Avoid using the disk cache on volume initialisation"

10 years agoMerge "HP 3PAR configurable ssh-host-key-policy"
Jenkins [Tue, 16 Sep 2014 13:26:23 +0000 (13:26 +0000)]
Merge "HP 3PAR configurable ssh-host-key-policy"

10 years agoFix a problem with 'volume list' when 'all_tenants=0'
Ian Govett [Tue, 16 Sep 2014 11:32:49 +0000 (07:32 -0400)]
Fix a problem with 'volume list' when 'all_tenants=0'

This change checks the value of 'all_tenants' and returns a list of volumes
for all tenants when 'all_tenants' is 1 (or True). A tenant-specific volume
list is returned when 'all_tenants' is 0 (or False).

An InvalidInput exception is thrown if the 'all_tenants' value is not 0, 1,
True, or False (case insensitive).

Provided new unit tests for the get_all api which check the all_tenants, and
limits parameters.

Fixed pep8 compliance test fails with code being improperly indented, and
changed calls using str() to use six.text_type()

Change-Id: If0b8c343ee7e4e05c9aec89241458dbdf2e4734b
Closes-Bug: #1342046

10 years agoIBMNAS: Remove call to set r/w permissions to all
Nilesh Bhosale [Sun, 24 Aug 2014 07:36:29 +0000 (13:06 +0530)]
IBMNAS: Remove call to set r/w permissions to all

During cinder volume create operation from a volume snapshot or
from an existing volume (volume clone operation), the ibmnas
driver sets 'rw' permissions to all, which is unnecessary and
also poses security concerns.
Fixing this issue, removing the calls to set rw permissions to
all during these operations and adding a call to set 'rw'
permissions only to the owner to make sure even if umask is set
at the filesystem level, which might deny 'rw' access to the owner
we explicitely set the required permissions on the volume file.

Change-Id: I0e5ba9262a298e088f7724ddeda3537afa4b023e
Closes-Bug: #1367238

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 15 Sep 2014 16:58:10 +0000 (16:58 +0000)]
Updated from global requirements

Change-Id: Ie85ed9ad591edc3e38352fe0c7ee751a43557a38

10 years agoMerge "Fix help for running specified unit tests"
Jenkins [Mon, 15 Sep 2014 08:28:25 +0000 (08:28 +0000)]
Merge "Fix help for running specified unit tests"

10 years agoMerge "Don't clear _mounted_shares list in remoteFS while updating"
Jenkins [Mon, 15 Sep 2014 04:04:13 +0000 (04:04 +0000)]
Merge "Don't clear _mounted_shares list in remoteFS while updating"

10 years agoGetting iscsi_ip_address from cinder.conf
Xing Yang [Sun, 14 Sep 2014 23:50:01 +0000 (19:50 -0400)]
Getting iscsi_ip_address from cinder.conf

In the current version (2.0) of the VMAX driver, we retrieve iSCSI IP
addresses dynamically from SMI-S. However, we ran into situations where
we can't get them reliably during testing. The fix is to get this
information from cinder.conf, just like in version 1.0.

Change-Id: If474f44e99cc45592bacfdec9e1eb2fa48c41e68
Closes-Bug: #1369355

10 years agoHandle config file with newlines and whitespaces
Xing Yang [Sat, 13 Sep 2014 00:16:56 +0000 (20:16 -0400)]
Handle config file with newlines and whitespaces

EMC VMAX driver does not handle newlines and whitespaces
consistently in the XML config file. This patch addressed
this issue.

Change-Id: I45f61f167feee9174ba2bc3229695b680f8e946d
Closes-Bug: #1364232

10 years agoMerge "Add reset-state function for backups"
Jenkins [Sun, 14 Sep 2014 09:16:30 +0000 (09:16 +0000)]
Merge "Add reset-state function for backups"

10 years agoMerge "VMware: Remove redundant extend disk API call"
Jenkins [Sun, 14 Sep 2014 05:21:29 +0000 (05:21 +0000)]
Merge "VMware: Remove redundant extend disk API call"

10 years agoMerge "Destroy Datera export target after detach"
Jenkins [Sun, 14 Sep 2014 05:07:45 +0000 (05:07 +0000)]
Merge "Destroy Datera export target after detach"

10 years agoVolume types need to be specified when creating CG
Xing Yang [Sat, 6 Sep 2014 17:32:02 +0000 (13:32 -0400)]
Volume types need to be specified when creating CG

When creating a consistency group, the scheduler will find a backend that
supports all input volume types. If volume types are not provided, the
default_volume_type in cinder.conf will be used, however, this could cause
inconsistent behavior in a user environment where the default_volume_type
is defined in some places but not in others. This fix removed the use of
default_volume_type for CG creation, added a check to verify that volume
types are provided when creating a CG.

When creating a volume and adding it to a CG, we need to make sure a
volume type is provided as well.

Change-Id: I078d4fdd8d92529e853be16272ad74d1e130f712
Closes-Bug: #1366371

10 years agoMerge "EMC VNX Direct Driver Consistency Group support"
Jenkins [Sat, 13 Sep 2014 17:28:03 +0000 (17:28 +0000)]
Merge "EMC VNX Direct Driver Consistency Group support"

10 years agoMerge "coraid: fix snapshot deletion"
Jenkins [Sat, 13 Sep 2014 17:26:55 +0000 (17:26 +0000)]
Merge "coraid: fix snapshot deletion"

10 years agoMerge "Add test case for volume_types.py"
Jenkins [Sat, 13 Sep 2014 17:24:56 +0000 (17:24 +0000)]
Merge "Add test case for volume_types.py"

10 years agoMerge "fix a small typo in development.environment.rst"
Jenkins [Sat, 13 Sep 2014 17:13:54 +0000 (17:13 +0000)]
Merge "fix a small typo in development.environment.rst"

10 years agoMerge "Log an error on nfs mount failure"
Jenkins [Sat, 13 Sep 2014 15:53:05 +0000 (15:53 +0000)]
Merge "Log an error on nfs mount failure"

10 years agoMerge "Netapp drivers support for pool-aware scheduling"
Jenkins [Sat, 13 Sep 2014 15:52:56 +0000 (15:52 +0000)]
Merge "Netapp drivers support for pool-aware scheduling"

10 years agoMerge "Fixing leaking sessions in 3PAR on attach/detach"
Jenkins [Sat, 13 Sep 2014 15:44:03 +0000 (15:44 +0000)]
Merge "Fixing leaking sessions in 3PAR on attach/detach"