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

8 years agoMerge "Fix the bug of can't get the desired image info"
Jenkins [Wed, 2 Dec 2015 04:39:27 +0000 (04:39 +0000)]
Merge "Fix the bug of can't get the desired image info"

8 years agoRemove deprecated LVM ISCSI and ISER Drivers
Sean McGinnis [Fri, 27 Nov 2015 21:18:50 +0000 (15:18 -0600)]
Remove deprecated LVM ISCSI and ISER Drivers

The LVMISCSIDriver and LVMISERDrivers were deprecated in the Kilo
release. This removes both drivers and related test code.

Any existing users of LVMDriver should switch to using the
LVMVolumeDriver and set the iscsi_helper to the desire iSCSI helper
(tgtadm, lioadm, or iseradm).

Some unit tests under these driver test classes were not actually
specific to these drivers. Relevant unit tests were moved to a
different test class if they looked useful.

Change-Id: I30aec59e639cdbbb50daa2caacc243518e593418

8 years agoDelete unused codes in rbd.retype
LisaLi [Thu, 12 Nov 2015 06:08:11 +0000 (06:08 +0000)]
Delete unused codes in rbd.retype

Before rbd.retype is called, encryption and host have
been checked so that encryptions are different and
host are same.
Meanwhile, as extra_spec is not used during the
rbd driver. As a result, even if they are different
rbd.retype can still return True which means no need
to do further migration.

Change-Id: Id025a51631676389203b8e3892a5826c834105ca
Closes-Bug: #1515493
Closes-Bug: #1514775

8 years agoMerge "EMC VMAX - Change naming convention for MV and SG for FAST"
Jenkins [Wed, 2 Dec 2015 02:38:22 +0000 (02:38 +0000)]
Merge "EMC VMAX - Change naming convention for MV and SG for FAST"

8 years agoMerge "Add some missing fields to Volume object"
Jenkins [Wed, 2 Dec 2015 02:38:11 +0000 (02:38 +0000)]
Merge "Add some missing fields to Volume object"

8 years agoMerge "Sheepdog: Optimization of error handling"
Jenkins [Wed, 2 Dec 2015 02:38:00 +0000 (02:38 +0000)]
Merge "Sheepdog: Optimization of error handling"

8 years agoMerge "Add retype in lvm driver"
Jenkins [Wed, 2 Dec 2015 02:37:49 +0000 (02:37 +0000)]
Merge "Add retype in lvm driver"

8 years agoMerge "Add Mitaka-1 release notes"
Jenkins [Wed, 2 Dec 2015 02:37:36 +0000 (02:37 +0000)]
Merge "Add Mitaka-1 release notes"

8 years agoMerge "xio: fix regression in authentication"
Jenkins [Wed, 2 Dec 2015 01:42:11 +0000 (01:42 +0000)]
Merge "xio: fix regression in authentication"

8 years agoMerge "Cleanup orphaned code in sqlalchemy API"
Jenkins [Wed, 2 Dec 2015 00:14:27 +0000 (00:14 +0000)]
Merge "Cleanup orphaned code in sqlalchemy API"

8 years agoMerge "Take into consideration races in XtremIOClient3"
Jenkins [Tue, 1 Dec 2015 20:43:32 +0000 (20:43 +0000)]
Merge "Take into consideration races in XtremIOClient3"

8 years agoNetApp: E-Series fix JSONDecodeError on first add
Michael Price [Thu, 12 Nov 2015 22:44:07 +0000 (16:44 -0600)]
NetApp: E-Series fix JSONDecodeError on first add

The NetApp E-Series driver would throw a JSONDecodeError on the
addition of a new storage-system. This would occur because a
JSON response was expected, but text/html was being returned as
the Content-Type when a storage-system has been added but is still
coming online.

This patch adds a retry to the driver startup to wait for an array
to come online. It also adds code to avoid the JSONDecodeError
and fail based on the HTTP Response's return code.

Change-Id: I405723039c7a0df10d39bd2eb961ee64d71c2d01

8 years agoAdd Mitaka-1 release notes
Sean McGinnis [Mon, 30 Nov 2015 19:50:01 +0000 (13:50 -0600)]
Add Mitaka-1 release notes

This adds release notes for changes up to the Mitaka-1
milestone for reno release note generation.

Change-Id: I8cd65b41994631d96c5d4cf4c0531a3c0f74149f

8 years agoMerge "Update compression license check"
Jenkins [Tue, 1 Dec 2015 18:27:34 +0000 (18:27 +0000)]
Merge "Update compression license check"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Tue, 1 Dec 2015 17:45:18 +0000 (17:45 +0000)]
Merge "Imported Translations from Zanata"

8 years agoxio: fix regression in authentication
Victor Stinner [Tue, 1 Dec 2015 10:00:03 +0000 (11:00 +0100)]
xio: fix regression in authentication

The change I75a5dee2fd1f8cf45dbf416b0353736a43efd8e8 replaced
base64.encodestring(auth_key)[:-1] with
oslo_serialization.base64.encode_as_text(auth_key)[:-1]. It's wrong
because base64.encodestring() adds '\n' to the output, wheras
oslo_serialization.base64.encode_as_text() doesn't add '\n'.

This change removes '[:-1]' to strip the newline, it's no more
needed.

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

8 years agoAdd some missing fields to Volume object
Szymon Wroblewski [Thu, 29 Oct 2015 11:45:06 +0000 (12:45 +0100)]
Add some missing fields to Volume object

Volume object was missing fields that were defined on
the SQLAlchemy model as relationships or backrefs such as
consistencygroup, glance_metadata and snapshots.
This commit adds fields representing these relationships.

Partial-Bug: 1509012
Co-Authored-By: Szymon Borkowski <szymon.borkowski@intel.com>
Change-Id: I2f4cae34833b6b97278adf2abb52cef44405c093

8 years agoMerge "Cleanup orphaned code from ceph backup driver"
Jenkins [Tue, 1 Dec 2015 14:35:55 +0000 (14:35 +0000)]
Merge "Cleanup orphaned code from ceph backup driver"

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

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

Change-Id: I3b3c0a26c4b16174e22b7a4d5b17a9b9195693cd

8 years agoMerge "Optimize "open" method with context manager"
Jenkins [Tue, 1 Dec 2015 05:48:25 +0000 (05:48 +0000)]
Merge "Optimize "open" method with context manager"

8 years agoMerge "Fix ZFSSA drivers' local cache bugs"
Jenkins [Tue, 1 Dec 2015 05:35:00 +0000 (05:35 +0000)]
Merge "Fix ZFSSA drivers' local cache bugs"

8 years agoMerge "Remove db access in VNX driver"
Jenkins [Tue, 1 Dec 2015 03:55:22 +0000 (03:55 +0000)]
Merge "Remove db access in VNX driver"

8 years agoMerge "Declare multiattach is True in Dell Eqlx driver"
Jenkins [Tue, 1 Dec 2015 03:36:25 +0000 (03:36 +0000)]
Merge "Declare multiattach is True in Dell Eqlx driver"

8 years agoAdd retype in lvm driver
LisaLi [Fri, 13 Nov 2015 02:09:03 +0000 (02:09 +0000)]
Add retype in lvm driver

During retype operation, it makes sure that volume
types have same encryption, and same backend qos
before moving on.

In lvm driver, no extra_spec and qos are used. As
a result, if retype a volume to same host, it just
needs to return True, and no needs to migrate the
volume.

Change-Id: Id6273046424190ee3e36dabd4bfcf69466bf23ad
Closes-Bug: #1515840

8 years agoMerge "Updated from global requirements"
Jenkins [Tue, 1 Dec 2015 00:32:45 +0000 (00:32 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Force releasenotes warnings to be treated as errors"
Jenkins [Mon, 30 Nov 2015 18:08:14 +0000 (18:08 +0000)]
Merge "Force releasenotes warnings to be treated as errors"

8 years agoMerge "Improve metadata update operations"
Jenkins [Mon, 30 Nov 2015 16:38:43 +0000 (16:38 +0000)]
Merge "Improve metadata update operations"

8 years agoTake into consideration races in XtremIOClient3
Gorka Eguileor [Mon, 30 Nov 2015 11:04:58 +0000 (12:04 +0100)]
Take into consideration races in XtremIOClient3

When working with FC and xtremio is using XtremIOClient3 on FC's
terminate_connection we can get VolumeBackendAPIException saying a
resource could not be found when we shouldn't.

The cause is that Client3 is open to race conditions on 2 methods,
find_lunmap and num_of_mapped_volumes, where a list of mappings is first
retrieved and then we iterate this list to retrieved additional info on
the mappings.

The race would happen if one of the mappings is removed from the backend
in the time it takes to retrieve the additional info after we have
retrieved the list.

This patch fixes this issue by ignoring any mappings that have been
removed and are now NotFound when retrieving additional information for
a mapping in those 2 methods.

This patch also fixes this kind of race problems on volume creation
since it uses find_lumap method.

Closes-Bug: #1521143
Change-Id: I40831e04093ff475395870a333211dd0cb60440f

8 years agoMerge "Add atomic conditional updates to objects"
Jenkins [Mon, 30 Nov 2015 15:42:30 +0000 (15:42 +0000)]
Merge "Add atomic conditional updates to objects"

8 years agoOptimize "open" method with context manager
xiexs [Sat, 28 Nov 2015 05:53:54 +0000 (13:53 +0800)]
Optimize "open" method with context manager

Replace the classic open() with opening context manager to open
files which is in the create_iscsi_target methods of volume targets.

Change-Id: I12e19801a21b1279308983fd0257dae9c9653641

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 29 Nov 2015 02:32:40 +0000 (02:32 +0000)]
Updated from global requirements

Change-Id: Ie81ad596ae6b473c90e01f91f293895532ca0756