]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
8 years agoRemove downgrade migrations
Ivan Kolodyazhny [Thu, 17 Dec 2015 11:15:57 +0000 (13:15 +0200)]
Remove downgrade migrations

According to cross project spec[1] downgrade migrations should be removed.

[1] I622f89fe63327d44f9b229d3bd9e76e15acbaa7a

Implements blueprint: no-downward-sql-migration

Change-Id: I111cdb4bba361de5da0ce7db8144965c947ada41

8 years agoMerge "Check backup service before backup delete"
Jenkins [Thu, 17 Dec 2015 04:28:13 +0000 (04:28 +0000)]
Merge "Check backup service before backup delete"

8 years agoMerge "EMC VMAX - get_short_host_name not called in find_device_number"
Jenkins [Wed, 16 Dec 2015 22:44:05 +0000 (22:44 +0000)]
Merge "EMC VMAX - get_short_host_name not called in find_device_number"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Wed, 16 Dec 2015 06:24:58 +0000 (06:24 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I96a96b35d20ab2c47ab4f2163e8c99f3e38f8838

8 years agoMerge "Implement refresh() for cinder objects"
Jenkins [Tue, 15 Dec 2015 22:16:32 +0000 (22:16 +0000)]
Merge "Implement refresh() for cinder objects"

8 years agoMerge "Skip check whether volume is local if it's None"
Jenkins [Tue, 15 Dec 2015 22:15:24 +0000 (22:15 +0000)]
Merge "Skip check whether volume is local if it's None"

8 years agoMerge "Volume migration: add 'name_id' as valid skippable field"
Jenkins [Tue, 15 Dec 2015 21:54:39 +0000 (21:54 +0000)]
Merge "Volume migration: add 'name_id' as valid skippable field"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Tue, 15 Dec 2015 21:09:39 +0000 (21:09 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Sheepdog: Fix a problem about multi backend"
Jenkins [Tue, 15 Dec 2015 20:52:33 +0000 (20:52 +0000)]
Merge "Sheepdog: Fix a problem about multi backend"

8 years agoSkip check whether volume is local if it's None
peter_wang [Mon, 14 Dec 2015 03:37:41 +0000 (22:37 -0500)]
Skip check whether volume is local if it's None

When force deleting a consistency group containing volumes,
manager.py tries to extract host field to check whether the volume
is local to this cinder node before deleting the volume.

Above logic is invalid if host field of faulted volume is None.

This fix will bypass above check to allow deletion of the volume.

Change-Id: I477c80c21c0b554b69c6222fb4fb0461813ac2bb
Closes-Bug: 1524195

8 years agoMerge "Implement snapshots-related features for Block Device Driver"
Jenkins [Tue, 15 Dec 2015 07:21:49 +0000 (07:21 +0000)]
Merge "Implement snapshots-related features for Block Device Driver"

8 years agoMerge "Add synchronization in Block Device driver"
Jenkins [Tue, 15 Dec 2015 07:21:26 +0000 (07:21 +0000)]
Merge "Add synchronization in Block Device driver"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Tue, 15 Dec 2015 06:27:06 +0000 (06:27 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I06c4f233036c6d019011eeded2ea767beb4cdb92

8 years agoMerge "Refactor cinder.utils.is_valid_boolstr"
Jenkins [Tue, 15 Dec 2015 06:00:40 +0000 (06:00 +0000)]
Merge "Refactor cinder.utils.is_valid_boolstr"

8 years agoImplement refresh() for cinder objects
Thang Pham [Tue, 24 Nov 2015 04:12:03 +0000 (20:12 -0800)]
Implement refresh() for cinder objects

The following patch implements the refresh functionality
in cinder objects.  Instead of calling get_by_id() to get
the latest object attributes, refresh() can be called.
With this change, delete_volume() was updated to use
volume.refresh().

Change-Id: If0573f1c44c2e67c9a8cbd88dda45310a02e3272
Partial-Implements: blueprint cinder-objects

8 years agoMerge "Updated from global requirements"
Jenkins [Tue, 15 Dec 2015 03:23:04 +0000 (03:23 +0000)]
Merge "Updated from global requirements"

8 years agoEMC VMAX - get_short_host_name not called in find_device_number
Helen Walsh [Tue, 1 Dec 2015 22:38:33 +0000 (22:38 +0000)]
EMC VMAX - get_short_host_name not called in find_device_number

The get_short_host_name needs to be called in find_device_number.
There are 2 reasons for this:
1. Sometimes the full host name is contained in the
   connector['host'] object.
2. When the short host name still exceeds 38 characters,
   it must be truncated, in order to guarantee a "contains string"
   match between the host and the masking view name.

Change-Id: I9631f33eafe2cfb64388d8e19c6ed8d1e948a6fa
Closes-Bug: #1520635

8 years agoMerge "Deprecated tox -downloadcache option removed"
Jenkins [Mon, 14 Dec 2015 18:51:07 +0000 (18:51 +0000)]
Merge "Deprecated tox -downloadcache option removed"

8 years agoImplement snapshots-related features for Block Device Driver
Yuriy Nesenenko [Thu, 3 Dec 2015 17:47:16 +0000 (19:47 +0200)]
Implement snapshots-related features for Block Device Driver

This patch adds the create_snapshot, create_volume_from_snapshot
and delete_snapshot methods to Block Device driver.

Related blueprint: block-device-driver-minimum-features-set

Change-Id: If86dca417234ea2c58fbce4e30a1626b288de3f6

8 years agoRefactor cinder.utils.is_valid_boolstr
Gorka Eguileor [Mon, 14 Dec 2015 15:02:20 +0000 (16:02 +0100)]
Refactor cinder.utils.is_valid_boolstr

Method is_valid_boolstr is currently doing 8 different checks against
the same variable.  This patch refactors this method to be more pythonic
by using the in operator.

Change-Id: If77c3a80a5698685aa67120bcee2e223584f5d16

8 years agoAdd synchronization in Block Device driver
Yuriy Nesenenko [Thu, 3 Dec 2015 14:28:31 +0000 (16:28 +0200)]
Add synchronization in Block Device driver

Multiple calls can get the same device. This patch adds synchronization
to create_volume, delete_volume and create_cloned_volume to avoid race
conditions. The delete_volume method is modified to avoid code duplication
in the implementation of delete_snapshot method for snapshot in the next
patch. Also it adds update provider_location and host to mark device as
used to avoid race with other threads. It uses object notation instead
of dict notation to a volume and snapshot.

Change-Id: I0b8fb28dde367c3f34dd0b6b9d98372cfff65d45
Closes-Bug: #1335904

8 years agoMerge "Fix invalid cache image-volume creation"
Jenkins [Mon, 14 Dec 2015 13:22:56 +0000 (13:22 +0000)]
Merge "Fix invalid cache image-volume creation"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 14 Dec 2015 12:30:04 +0000 (12:30 +0000)]
Updated from global requirements

Change-Id: I89449c4a8a4a4e440c0bf8a6db0126f5cd15f0e6

8 years agoMerge "Recognize extra fields in CinderObjectDictCompat"
Jenkins [Mon, 14 Dec 2015 11:42:45 +0000 (11:42 +0000)]
Merge "Recognize extra fields in CinderObjectDictCompat"

8 years agoMerge "Replace use of mox with mock in test_solidfire"
Jenkins [Mon, 14 Dec 2015 06:33:41 +0000 (06:33 +0000)]
Merge "Replace use of mox with mock in test_solidfire"

8 years agoMerge "EMC VMAX - Fix for randomly selecting a portgroup"
Jenkins [Mon, 14 Dec 2015 06:33:31 +0000 (06:33 +0000)]
Merge "EMC VMAX - Fix for randomly selecting a portgroup"

8 years agoVolume migration: add 'name_id' as valid skippable field
Vincent Hou [Mon, 14 Dec 2015 06:08:54 +0000 (22:08 -0800)]
Volume migration: add 'name_id' as valid skippable field

New Versioned Objects expect 'name_id' as a valid input, which
is able to change '_name_id' as well, so this patch adds
'name_id' into the fields, which are going to skip for the
creation of the target volume during migration.

Change-Id: I91e3bc05607243aef020f461a467e9ecb956544f
Closes-Bug: #1525781

8 years agoFix invalid cache image-volume creation
John Griffith [Sat, 12 Dec 2015 18:32:57 +0000 (18:32 +0000)]
Fix invalid cache image-volume creation

During the volume ref creation in clone_image_volume
we were including a _name_id attribute which is invalid
in the base olso object.  The result is silent failure
for a key error. Note that the comments for the column
in the db specifcally state "do not call directly".
The variable is also denoted as private by the _ prefix.

Fix this by just popping the "_name_id' attribute.

In addition there were a number of things that needed
some cleanup:
1. Don't iterate over list of tuples to get K/V for dict
   Just use Dict(xxxx)
2. Don't use delete dict.key
   This isn't safe, because if the key DNE you'll get a key exception
   Instead use pop which is safe if key DNE
3. Add an error message when this fails, because currently the logs
   don't give an operation a chance of knowing it failed, let alone
   an opportunity to debug it

Finally the cache volume creation is still calling the db
directly and doing a resource create as opposed to
using the new volume object create handler.  I went ahead
and converted this to use objects, however that resulted in
breaking two of the volume-->image unit tests that use cinder
as a glance backend.

I've opened bug 1525773 for those issues and added a skip
to the tests in question.

Change-Id: Ieda40c1111d4d4d69488944eb332962eb9658266
Closes-Bug: #1525452

8 years agoMerge "Remove eventlet WSGI functionality"
Jenkins [Mon, 14 Dec 2015 02:11:31 +0000 (02:11 +0000)]
Merge "Remove eventlet WSGI functionality"

8 years agoMerge "NetApp: E-Series fix JSONDecodeError on first add"
Jenkins [Mon, 14 Dec 2015 02:11:16 +0000 (02:11 +0000)]
Merge "NetApp: E-Series fix JSONDecodeError on first add"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Sun, 13 Dec 2015 14:28:30 +0000 (14:28 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Storwize: add config option to control flash copy rate"
Jenkins [Sun, 13 Dec 2015 07:43:46 +0000 (07:43 +0000)]
Merge "Storwize: add config option to control flash copy rate"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sun, 13 Dec 2015 06:22:42 +0000 (06:22 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ie5fd8669db11a66c7b1fefedaad85ea3ef94bf7e

8 years agoRemove eventlet WSGI functionality
Marian Horban [Wed, 2 Sep 2015 12:35:50 +0000 (08:35 -0400)]
Remove eventlet WSGI functionality

This commit removes eventlet WSGI server and starts using
generic eventlet WSGI server from oslo.service library.
The change where the wsgi functionality was added to
oslo.service can be referenced here:
If8840168f10cc3561f4f01e6d456d6b4fd1de8b5.

DocImpact

Depends-on: If8840168f10cc3561f4f01e6d456d6b4fd1de8b5
Implements blueprint: reusing-wsgi-from-oslo.service
Closes-Bug: #1499658

Change-Id: Iea8af7b4a569fedc99e126524f18f98097c95a6d

8 years agoDeprecated tox -downloadcache option removed
Ondřej Nový [Fri, 11 Dec 2015 20:06:14 +0000 (21:06 +0100)]
Deprecated tox -downloadcache option removed

Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I5376fa4891a1a1f469af36d850b4045d24590aec

8 years agoFix for showing default quotas to non-admin user
Szymon Borkowski [Fri, 11 Dec 2015 11:20:03 +0000 (12:20 +0100)]
Fix for showing default quotas to non-admin user

Earlier, when non-admin user wanted to get quotas for his own
projects, if there were no custom quota values set, the API
used to return zero values.

Change-Id: I753af89aa5aae5ad20abe48441df3dbd02b8e05e
Closes-Bug: 1523928

8 years agoMerge "Retype functionality in Tintri driver"
Jenkins [Fri, 11 Dec 2015 03:20:39 +0000 (03:20 +0000)]
Merge "Retype functionality in Tintri driver"

8 years agoMerge "VNX: Fix issue in deleting cg/cgsnapshot"
Jenkins [Fri, 11 Dec 2015 03:03:16 +0000 (03:03 +0000)]
Merge "VNX: Fix issue in deleting cg/cgsnapshot"

8 years agoMerge "Use wild card for passing env variable"
Jenkins [Fri, 11 Dec 2015 02:06:43 +0000 (02:06 +0000)]
Merge "Use wild card for passing env variable"

8 years agoMerge "Check context before returning cached value"
Jenkins [Thu, 10 Dec 2015 22:25:21 +0000 (22:25 +0000)]
Merge "Check context before returning cached value"

8 years agoMerge "Add validation for volume_type of volume object"
Jenkins [Thu, 10 Dec 2015 20:51:16 +0000 (20:51 +0000)]
Merge "Add validation for volume_type of volume object"

8 years agoMerge "Fix non-migration swap with error"
Jenkins [Thu, 10 Dec 2015 20:28:37 +0000 (20:28 +0000)]
Merge "Fix non-migration swap with error"

8 years agoMerge "XtremIO: fix iscsi chap discovery bug"
Jenkins [Thu, 10 Dec 2015 18:34:16 +0000 (18:34 +0000)]
Merge "XtremIO: fix iscsi chap discovery bug"

8 years agoUse wild card for passing env variable
Manjeet Singh Bhatia [Thu, 10 Dec 2015 15:37:34 +0000 (15:37 +0000)]
Use wild card for passing env variable

Change-Id: Ia8908941d5619d8c79fa7373c63ff37725fcc4f5

8 years agoRecognize extra fields in CinderObjectDictCompat
Michał Dulko [Thu, 19 Nov 2015 16:50:20 +0000 (17:50 +0100)]
Recognize extra fields in CinderObjectDictCompat

We're still in the process of transitioning to the object notation in a
lot of places and that's why we've decided to keep specialized get in
CinderObjectDictCompat. This one wasn't looking at aliases (properties)
from obj_extra_fields. This commit fixes that and adds a unit test for
this method.

We should eventually stop using it, but for Mitaka this will make a lot
of things easier.

Change-Id: I1df610bedffdeae56444ce0a40f8fb48216e91b7
Related-Bug: 1516903

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Thu, 10 Dec 2015 06:21:04 +0000 (06:21 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Id780e343cc582168bfa2554e25513e94475d776b

8 years agoMerge "Use Cinder API v2 for Rally scenarios"
Jenkins [Thu, 10 Dec 2015 04:33:38 +0000 (04:33 +0000)]
Merge "Use Cinder API v2 for Rally scenarios"

8 years agoVNX: Fix issue in deleting cg/cgsnapshot
peter_wang [Tue, 8 Dec 2015 08:18:31 +0000 (03:18 -0500)]
VNX: Fix issue in deleting cg/cgsnapshot

If user deletes a cg/cgsnapshot quickly after its creation,
driver would report 'not found' warning, and return success
for the deletion, but actually, the object underlying the VNX
is not deleted.

This fix tries to wait the cg and cg snapshot to be available
to make sure it's eligible for deletion.

liberty-backport-potential
Closes-Bug: 1499615
Change-Id: Ifae57b9e95e01b1789a37ac7c03e9aad65cd50f7

8 years agoAdd validation for volume_type of volume object
Mitsuhiro Tanino [Mon, 7 Dec 2015 22:05:24 +0000 (17:05 -0500)]
Add validation for volume_type of volume object

During copy_volume_to_image(), this tries to return
volume['volume_type'] attribute in a volume object, but
if the volume does not have a volume type, this would
trigger a db call which raise an 404 not found error.

Volume object should check volume_type_id at first and
then decide whether returning volume_type or None to
avoid VolumeTypeNotFound exception.

Also this change includes LOG.info messages fix to show
right behavior of copy_volume_to_image().

Change-Id: Id2372621962406282eece2bcbc56c242f9dff8a0
Closes-Bug: #1523362

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 9 Dec 2015 21:55:16 +0000 (21:55 +0000)]
Updated from global requirements

Change-Id: I115d45ba9f112ea8824eb7686cb1af69fadc72ff

8 years agoRetype functionality in Tintri driver
apoorvad [Wed, 9 Dec 2015 17:42:21 +0000 (09:42 -0800)]
Retype functionality in Tintri driver

At this point default retype behavior is as follows. If a volume changes
type on the same backend then that volume will be migrated. Since Tintri
VMstore does not differentiate between volume types, we can avoid this
migration by implementing retype functionality.

Change-Id: I40b28327e13821d6fb45f89b15267b21ed4c2e8c
closes-bug: 1524435

8 years agoMerge "Python 3: fix a lot of tests"
Jenkins [Wed, 9 Dec 2015 18:06:39 +0000 (18:06 +0000)]
Merge "Python 3: fix a lot of tests"

8 years agoFix non-migration swap with error
Ryan McNair [Wed, 9 Dec 2015 15:29:27 +0000 (15:29 +0000)]
Fix non-migration swap with error

The fix I242c2c7c4a7197bbce04d0b3d75688f989ea1fd5 for non-migration
swap volume caused drivers which don't support volume swapping,
e.g. Ceph, to put the volumes in an incorrect state (additional
details can be found in bug #1489744 report).  This patch adds an
additional check to ensure no errors occurred during the swap before
it completes the volume status updates, as well a test-case for
the non-migration swap scenario.

Change-Id: Ic2fddbcb12b4c9d251f9c3aab08a73e12d4d73e2
Closes-Bug: #1489744

8 years agoReplace use of mox with mock in test_solidfire
John Griffith [Wed, 9 Dec 2015 07:03:37 +0000 (00:03 -0700)]
Replace use of mox with mock in test_solidfire

Noticed we still had some old usage of mox, replace
the remaining cases of mox with mock in test_solidfire.py

Change-Id: I27c1b4ab04f401765a2ca4eb0ffe4d22da73af4e

8 years agoMerge "Update migrate_volume API to use versionedobjects"
Jenkins [Wed, 9 Dec 2015 05:52:03 +0000 (05:52 +0000)]
Merge "Update migrate_volume API to use versionedobjects"

8 years agoMerge "Dynamically Pull Out Option Sections"
Jenkins [Wed, 9 Dec 2015 02:41:32 +0000 (02:41 +0000)]
Merge "Dynamically Pull Out Option Sections"

8 years agoMerge "Volume driver for Coho Data storage solutions"
Jenkins [Wed, 9 Dec 2015 02:40:50 +0000 (02:40 +0000)]
Merge "Volume driver for Coho Data storage solutions"

8 years agoMerge "3PAR: Implement v2 replication (managed)"
Jenkins [Wed, 9 Dec 2015 02:25:13 +0000 (02:25 +0000)]
Merge "3PAR: Implement v2 replication (managed)"

8 years agoMerge "XtremIO: fix missing multiattach flag"
Jenkins [Wed, 9 Dec 2015 01:53:57 +0000 (01:53 +0000)]
Merge "XtremIO: fix missing multiattach flag"

8 years agoCheck context before returning cached value
Dave McCowan [Mon, 7 Dec 2015 19:25:24 +0000 (14:25 -0500)]
Check context before returning cached value

The key manager caches the value of barbican client to be reused,
saving an extra call to keystone.  The cached value is only
applicable to the current context, so the context must be checked
before returning the cached value.

Change-Id: Ib10909a098fb2cd070129c239b6d3b95edc8fea0
Closes-Bug: #1523646

8 years agoMerge "Fix StrOpts with integer defaults"
Jenkins [Tue, 8 Dec 2015 08:06:21 +0000 (08:06 +0000)]
Merge "Fix StrOpts with integer defaults"

8 years ago3PAR: Implement v2 replication (managed)
Alex O'Rourke [Thu, 29 Oct 2015 22:04:32 +0000 (15:04 -0700)]
3PAR: Implement v2 replication (managed)

This patch implements the managed side of v2 replication in the HPE
3PAR driver.

Both sync and periodic replication modes are supported. Each
replication_device entry should have a replication_mode value set
to sync|periodic.

A volume type extra_spec value of replication:mode
should also be set. If replication:mode is periodic,
replication:sync_period should be set as well. Which replication_device
entry(s) are used is determined by the value of replication:mode set for
each volume type.

cinder.conf should have the replication config group (3parfcrep)
and at least one other target group (3parfc) as such:

[3parfcrep]
hpe3par_api_url = http://10.10.10.10:8008/api/v1
hpe3par_username = user
hpe3par_password = pass
hpe3par_debug = False
san_ip = 10.10.10.10
san_login = user
san_password = pass
volume_backend_name = 3parfcrep
hpe3par_cpg = REMOTE_COPY_CPG2
volume_driver = cinder.volume.drivers.hpe.hpe_3par_fc.HPE3PARFCDriver
replication_device = managed_backend_name:alex-devstack@3parfc#REMOTE_COPY_DEST2,
                     replication_mode:periodic,target_device_id:eos7,
                     cpg_map:REMOTE_COPY_CPG2:REMOTE_COPY_DEST2,
                     hpe3par_api_url:http://11.11.11.11:8008/api/v1,hpe3par_username:user,
                     hpe3par_password:pass,san_ip:11.11.11.11,san_login:user,
                     san_password:pass

[3parfc]
hpe3par_api_url = http://11.11.11.11:8008/api/v1
hpe3par_username = user
hpe3par_password = pass
hpe3par_debug = False
san_ip = 11.11.11.11
san_login = user
san_password = pass
volume_backend_name = 3parfc
hpe3par_cpg = REMOTE_COPY_DEST2
volume_driver = cinder.volume.drivers.hpe.hpe_3par_fc.HPE3PARFCDriver

Change-Id: Ie965349af719eaacc287a17c9720ad65464002c0
Implements: blueprint hp-3par-v2-replication
DocImpact

8 years agoUse Cinder API v2 for Rally scenarios
Ivan Kolodyazhny [Mon, 7 Dec 2015 16:23:12 +0000 (18:23 +0200)]
Use Cinder API v2 for Rally scenarios

Cinder API v1 is deprecated so it feels good to test API v2 only to
decrease gating time.

Closes-Bug: #1523583
Change-Id: I91a233e8423ba878ed33b7d89812a416cbacdc95

8 years agoCheck backup service before backup delete
Nate Potter [Tue, 17 Nov 2015 16:50:24 +0000 (16:50 +0000)]
Check backup service before backup delete

Right now, if a user tries to delete a backup and the cinder-backup
service is down, the backup status will be error and no message will
be provided to the user. This patch will add a check to see that the
service is running before issuing the rpcapi cast to delete the backup,
and inform the user that the service is down if the check fails. However,
it is still possible with this fix for the service to go down during the
time between the check and when the backup is actually deleted.

Change-Id: Ia9914bfaae8ed9b6972953fc1e78c4471fa1661a
Closes-bug: #1321519

8 years agoPython 3: fix a lot of tests
Cyril Roelandt [Wed, 2 Dec 2015 15:15:43 +0000 (16:15 +0100)]
Python 3: fix a lot of tests

As of this commit, the following tests should now be working with Python 3:

- cinder.tests.unit.api.contrib.test_cgsnapshots
- cinder.tests.unit.api.contrib.test_scheduler_hints
- cinder.tests.unit.api.contrib.test_snapshot_actions
- cinder.tests.unit.api.contrib.test_snapshot_manage
- cinder.tests.unit.api.contrib.test_snapshot_unmanage
- cinder.tests.unit.api.contrib.test_volume_encryption_metadata
- cinder.tests.unit.api.contrib.test_volume_host_attribute
- cinder.tests.unit.api.contrib.test_volume_manage
- cinder.tests.unit.api.contrib.test_volume_migration_status_attribute
- cinder.tests.unit.api.contrib.test_volume_tenant_attribute
- cinder.tests.unit.api.contrib.test_volume_unmanage
- cinder.tests.unit.api.v2.test_volumes

Most changes in this patch:
- make sure that Request.body is set to bytes;
- replace jsonutils.dumps with jsonutils.dump_as_bytes;
- replace json.loads with oslo_serialization.jsonutils.loads;
- replace dict.iteritems with dict.items.

Partial-Implements: blueprint cinder-python3
Change-Id: Icbb96ff84b7012b58f7296eea4fbcd620e081614

8 years agoEMC VMAX - Fix for randomly selecting a portgroup
Helen Walsh [Sun, 8 Nov 2015 20:38:34 +0000 (20:38 +0000)]
EMC VMAX - Fix for randomly selecting a portgroup

Before now the utils function was always returning the first
portgroup in the list.  This fix ensures a port group is
randomly selected from the list, where more than one value
is in the list.

Closes-Bug: #1501919
Change-Id: I49020a192f62bc75bca26ea0d206e9ed7c700195

8 years agoVolume driver for Coho Data storage solutions
Bardia Keyoumarsi [Wed, 18 Nov 2015 00:07:41 +0000 (16:07 -0800)]
Volume driver for Coho Data storage solutions

This patch introduces Coho Data volume driver along with unit tests.

Implements: blueprint coho-cinder-driver

DocImpact
Documentation for setting up the Coho driver and enabling it
in Cinder will be provided in a separate patch.

Change-Id: I06a66d10add9132d0f3afca054d68094ddfb4da0
Signed-off-by: Bardia Keyoumarsi <bardia.keyoumarsi@cohodata.com>
8 years agoMerge "Address potential races in SolidFire VAG"
Jenkins [Sun, 6 Dec 2015 20:39:39 +0000 (20:39 +0000)]
Merge "Address potential races in SolidFire VAG"

8 years agoXtremIO: fix iscsi chap discovery bug
Shay Halsband [Thu, 19 Nov 2015 14:42:46 +0000 (16:42 +0200)]
XtremIO: fix iscsi chap discovery bug

* The set and get parameters for discovery auth have different
  names and caused a confusion that led to a bug, fixed in this
  commit.
* Add unit test to make sure the right parameters are used

Change-Id: I8e61394ba5109f2a6c7018855f8b85133bc76412
Closes-Bug: #1518945

8 years agoXtremIO: fix missing multiattach flag
Shay Halsband [Tue, 1 Dec 2015 07:21:11 +0000 (09:21 +0200)]
XtremIO: fix missing multiattach flag

* add missing multiattach flag from capabilities

Change-Id: I46bcf503e741063979528ecc96d4810a23f8fc05
Closes-Bug: 1521498

8 years agoFix StrOpts with integer defaults
Sean McGinnis [Sat, 5 Dec 2015 18:19:52 +0000 (12:19 -0600)]
Fix StrOpts with integer defaults

A couple config options sneaked in defined as strings but
really expecting integer values. This causes errors with the
latest oslo.config that expects the appropriate type.

This patch changes these instances to be the expected IntOpt.

Change-Id: I449c1f0057d6f4afabfb8b71040427dbcb0ca4ee

8 years agoDynamically Pull Out Option Sections
Kendall Nelson [Fri, 4 Dec 2015 00:10:39 +0000 (18:10 -0600)]
Dynamically Pull Out Option Sections

Previously in the generation of the opts.py file, the option groups
were hard coded. Now, they are pulled out as the lines are parsed.
If a group doesn't already exist in the dictionary it gets added and
then the options are added to the section. If the group already exists,
the options are added to the proper section as you would expect, and if
the options being registered don't have a group, they are added to the
default section.

This patch also moves the check for a non-zero exit code from
oslo-config-generator to the right location in the file.  This
logic had been put too late in the file and was not catching
oslo-config-generator failures as it should have been.

Change-Id: I59c8067e8091d8bb212e3609f3a174ddc287707e

8 years agoMerge "Use proper config option to connect to keystone"
Jenkins [Fri, 4 Dec 2015 21:47:50 +0000 (21:47 +0000)]
Merge "Use proper config option to connect to keystone"

8 years agoMerge "Remove version per M-1 release instructions"
Jenkins [Fri, 4 Dec 2015 05:21:34 +0000 (05:21 +0000)]
Merge "Remove version per M-1 release instructions"

8 years agoMerge "Adding devref about genconfig"
Jenkins [Fri, 4 Dec 2015 01:43:20 +0000 (01:43 +0000)]
Merge "Adding devref about genconfig"

8 years agoMerge "Remove deprecated LVM ISCSI and ISER Drivers"
Jenkins [Thu, 3 Dec 2015 23:04:41 +0000 (23:04 +0000)]
Merge "Remove deprecated LVM ISCSI and ISER Drivers"

8 years agoMerge "VMware: Unit test refactoring (image to vol - 2/2)"
Jenkins [Thu, 3 Dec 2015 23:03:46 +0000 (23:03 +0000)]
Merge "VMware: Unit test refactoring (image to vol - 2/2)"

8 years agoMerge "VMware: Replace mox with mock"
Jenkins [Thu, 3 Dec 2015 21:09:34 +0000 (21:09 +0000)]
Merge "VMware: Replace mox with mock"

8 years agoMerge "VMware: Unit test refactoring (image to vol - 1/2)"
Jenkins [Thu, 3 Dec 2015 20:59:24 +0000 (20:59 +0000)]
Merge "VMware: Unit test refactoring (image to vol - 1/2)"

8 years agoAddress potential races in SolidFire VAG
Chris Morrell [Wed, 2 Dec 2015 22:27:37 +0000 (22:27 +0000)]
Address potential races in SolidFire VAG

While building the initial volume access group solution I realized there were
race conditions present. This patch attempts to address those by being far
more careful during VAG creation and removal. Tracking multiattach volume
detaches around VAG volume removal introduced all sorts of future race
conditions so instead multiattach volumes are treated differently and are only
removed from VAGs on volume removal. Not ideal but it'll get the job done.

Think I covered all the new branches with unit tests. Complexity was introduced
but it should be worth it due to the safety that was also introduced.

Change-Id: I80034cdf759295c8d379c02ed9e42659590b41a9

8 years agoUpdate migrate_volume API to use versionedobjects
Thang Pham [Tue, 29 Sep 2015 14:12:35 +0000 (07:12 -0700)]
Update migrate_volume API to use versionedobjects

The following patch updates migrate_volume,
migrate_volume_completion, and update_migrated_volume
APIs to use volume versionedobjects.  Changes were
made to be backwards compatible with older RPC clients.
It only includes changes to the core cinder code.
Changes in the drivers are left to each driver
maintainer to update.

Note that this patch DOES NOT try to use object dot
notation everywhere, since it would increase the
size of the patch.  Instead, it will be done in
subsequent patches.

Change-Id: I21fe68193c934a7ef3688274ab35f664a08cac7e
Partial-Implements: blueprint cinder-objects
Closes-Bug: #1521085

8 years agoStorwize: add config option to control flash copy rate
Gerald McBrearty [Fri, 20 Nov 2015 21:15:29 +0000 (15:15 -0600)]
Storwize: add config option to control flash copy rate

When creating a flash copy of a vdisk during a clone
or a snapshot operation the svcinfo mkfcmap operation
allows the specification of a copy rate for the flash copy.
The default copy rate is 50. The issue with 50 is it not
always an acceptable default copy rate for a particular
operator. Some operators want it slower but some want to
increase the default copy rate.

Adding a configuration option storwize_svc_flashcopy_rate
to allow an operator to specify the default flash copy
rate to be used when starting a vdisk flash copy on a
clone or snapshot operation.

DocImpact

Change-Id: Iffa50cf934f5d340a1f24ed3cfea8381b6dd6630
Closes-Bug: 1517185

8 years agoRemove version per M-1 release instructions
Sean McGinnis [Thu, 3 Dec 2015 02:39:08 +0000 (20:39 -0600)]
Remove version per M-1 release instructions

http://lists.openstack.org/pipermail/openstack-dev/2015-November/080692.html

Change-Id: I4b86c46c8fee6edad8e450c7b9f1606ff62af64e
Depends-on: Icce2f139b5ae88eab294f6547df766f9eceb03a6

8 years agoUse proper config option to connect to keystone
Szymon Borkowski [Tue, 1 Dec 2015 13:12:03 +0000 (14:12 +0100)]
Use proper config option to connect to keystone

Earlier, quotas used to authenticate to endpoint from not required
option located in keymgr.encryption_auth_url. Now, the required
auth_uri option from config file is used to authenticate to
keystone.

Co-Authored-By: Michal Dulko <michal.dulko@intel.com>
Change-Id: I1076527704f8def2c6755c060df49232e5ebe805
Closes-Bug: 1516085

8 years agoMerge "Robustify writing iscsi target persistence file"
Jenkins [Thu, 3 Dec 2015 08:21:23 +0000 (08:21 +0000)]
Merge "Robustify writing iscsi target persistence file"

8 years agoMerge "Add a FakeGateDriver"
Jenkins [Thu, 3 Dec 2015 05:12:17 +0000 (05:12 +0000)]
Merge "Add a FakeGateDriver"

8 years agoMerge "LIO: Handle initiator IQNs as case insensitive"
Jenkins [Thu, 3 Dec 2015 03:00:38 +0000 (03:00 +0000)]
Merge "LIO: Handle initiator IQNs as case insensitive"

8 years agoRobustify writing iscsi target persistence file
Mitsuhiro Tanino [Fri, 25 Sep 2015 16:38:23 +0000 (10:38 -0600)]
Robustify writing iscsi target persistence file

With the current code, it's possible to end up with a zero-size
persistence file (or even corruption of the contents) if the
process gets killed or the system takes a power outage.

Switch to a "write to temp file and rename" model for writing the
persistence file.  This will make it more robust against unclean
process termination or unclean system shutdown.

Change-Id: Ic4fdb5a9f6f622b2ab9658f7d4206e4c8ca55046
Closes-Bug: #1499795

8 years agoMerge "Fix dictionary key error"
Jenkins [Wed, 2 Dec 2015 23:18:55 +0000 (23:18 +0000)]
Merge "Fix dictionary key error"

8 years agoMerge "Port Windows drivers to Python 3"
Jenkins [Wed, 2 Dec 2015 23:11:36 +0000 (23:11 +0000)]
Merge "Port Windows drivers to Python 3"

8 years agoAdding devref about genconfig
Kendall Nelson [Wed, 2 Dec 2015 20:59:33 +0000 (14:59 -0600)]
Adding devref about genconfig

This adds a description of the generation of opts.py and
cinder.conf.sample, the commands to generate them, and the scripts
that do the work generating them.

Change-Id: I6217e81acb9ee49c66cd510d55b40e1fd6fc3b3b

8 years agoLIO: Handle initiator IQNs as case insensitive
Eric Harney [Tue, 1 Dec 2015 23:14:17 +0000 (18:14 -0500)]
LIO: Handle initiator IQNs as case insensitive

If there is a mismatch in case between the stored
initiator IQN in the LIO ACL vs. the IQN provided
in a later call, rtstool would fail to find the
existing ACL.

Compare IQNs in a case insensitive manner to ensure
they will always match as intended.  (Refer to RFC
3720 section 3.2.6.1 for details on this.)

Closes-Bug: #1522053

Change-Id: I6f535f3f4fbfcbbb49da30cffb08d17b3cac778a

8 years agoFix dictionary key error
Tomas Hancock [Wed, 2 Dec 2015 15:07:05 +0000 (15:07 +0000)]
Fix dictionary key error

The key 'multipath' was being referenced in the 'connector' dictionary
in initialize_connection(), even though the key was not always set.

Change-Id: Ia3c7640a24ebe9bedec3402f6cefb7e457c66ecd
Closes-Bug: #1522062

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Wed, 2 Dec 2015 16:15:09 +0000 (16:15 +0000)]
Merge "Imported Translations from Zanata"

8 years agoVMware: Replace mox with mock
Vipin Balachandran [Wed, 25 Nov 2015 13:34:48 +0000 (19:04 +0530)]
VMware: Replace mox with mock

This patch replaces usages of mox with mock in the VMDK driver unit tests.
It also refactors the unit tests for copy_volume_to_image so that those
tests test only a single method.

Closes-Bug: #1261097
Change-Id: I50925a3aed1df12a283e9ec20f2bc2add1aad162

8 years agoVMware: Unit test refactoring (image to vol - 2/2)
Vipin Balachandran [Tue, 24 Nov 2015 12:04:12 +0000 (17:34 +0530)]
VMware: Unit test refactoring (image to vol - 2/2)

There are cases where a single test tests multiple methods. This
patch refactors the unit tests for the following methods in the
vmdk module to fix this issue:
   * _create_virtual_disk_from_preallocated_image
   * _create_virtual_disk_from_sparse_image
   * _fetch_stream_optimized_image

There will be follow-up patches to fix the remaining unit tests.

Change-Id: I6b738f08b89e518c78a26a934fead42cc86e0c24
Depends-On: Icd2c3d506647b7b9405d83612433fea735d13cc9

8 years agoVMware: Unit test refactoring (image to vol - 1/2)
Vipin Balachandran [Tue, 24 Nov 2015 12:00:44 +0000 (17:30 +0530)]
VMware: Unit test refactoring (image to vol - 1/2)

There are cases where a single test tests multiple methods. This
patch refactors the unit tests for the following methods in the
vmdk module to fix this issue:
   * copy_image_to_volume
   * _create_volume_from_non_stream_optimized_image

There will be follow-up patches to fix the remaining unit tests.

Change-Id: Icd2c3d506647b7b9405d83612433fea735d13cc9

8 years agoMerge "Fix typo in LIO terminate_connection error msg"
Jenkins [Wed, 2 Dec 2015 11:47:50 +0000 (11:47 +0000)]
Merge "Fix typo in LIO terminate_connection error msg"

8 years agoMerge "Delete unused codes in rbd.retype"
Jenkins [Wed, 2 Dec 2015 10:36:28 +0000 (10:36 +0000)]
Merge "Delete unused codes in rbd.retype"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Wed, 2 Dec 2015 06:26:12 +0000 (06:26 +0000)]
Imported Translations from Zanata

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I88351b055df8fe0f973b9cf48b1276981ef07a2e