]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
8 years agoFix XtremIO multi cluster support
Shay Halsband [Thu, 28 Jan 2016 09:45:35 +0000 (11:45 +0200)]
Fix XtremIO multi cluster support

* By default all client4 calls are routed to API V2
* renamed request_typ to a clearer parameter name "method"

liberty-backport-potential

Change-Id: I2d4a0cb7caeec5377e623ae4e431cfb57d5a1fce
Closes-Bug: #1538984

8 years agoMerge "Pin RPC and object version to lowest running"
Jenkins [Sat, 30 Jan 2016 21:14:52 +0000 (21:14 +0000)]
Merge "Pin RPC and object version to lowest running"

8 years agoMerge "Report RPC and objects versions"
Jenkins [Sat, 30 Jan 2016 21:14:30 +0000 (21:14 +0000)]
Merge "Report RPC and objects versions"

8 years agoMerge "Add missing RPC calls versions to rpcapi modules"
Jenkins [Sat, 30 Jan 2016 20:26:48 +0000 (20:26 +0000)]
Merge "Add missing RPC calls versions to rpcapi modules"

8 years agoMerge "Remove invalid NetApp QoS keys"
Jenkins [Sat, 30 Jan 2016 07:12:56 +0000 (07:12 +0000)]
Merge "Remove invalid NetApp QoS keys"

8 years agoMerge "XtremIO: Set the location of a CA certificate"
Jenkins [Fri, 29 Jan 2016 20:52:30 +0000 (20:52 +0000)]
Merge "XtremIO: Set the location of a CA certificate"

8 years agoMerge "Storwize: Add force flag on vdisk mapping call"
Jenkins [Fri, 29 Jan 2016 18:42:42 +0000 (18:42 +0000)]
Merge "Storwize: Add force flag on vdisk mapping call"

8 years agoMerge "Adds HTTPS southbound connector for Brocade FC Zone Driver"
Jenkins [Fri, 29 Jan 2016 15:51:47 +0000 (15:51 +0000)]
Merge "Adds HTTPS southbound connector for Brocade FC Zone Driver"

8 years agoMerge "EMC VMAX - VMAX driver failing to remove zones"
Jenkins [Fri, 29 Jan 2016 15:50:04 +0000 (15:50 +0000)]
Merge "EMC VMAX - VMAX driver failing to remove zones"

8 years agoPin RPC and object version to lowest running
Michał Dulko [Thu, 14 Jan 2016 19:57:12 +0000 (20:57 +0100)]
Pin RPC and object version to lowest running

This commit adds detection and pinning to lowest RPC API version to all
rpcapi modules. The version pin is determined by a DB call done once per
service lifetime thanks to caching. Handling the compatibility is
guaranteed by oslo.messaging and our shims in rpcapi modules.

To achieve o.vo compatibility, a similar approach is implemented. Custom
oslo.messaging serializer is implemented that backports objects to the
lowest running version on sending.

During the process of upgrade it may happen that manager receives an
object in the version lower than current one. Handling of such
situations is up to the manager and it should do that explicitely by
checking obj.VERSION.

The patch also adds required methods to db.api and Service object.

Co-Authored-By: Thang Pham <thang.g.pham@gmail.com>
Change-Id: I649892da64f9734928a6cf0f004a369aa7aa375f
Partial-Implements: blueprint rpc-object-compatibility

8 years agoReport RPC and objects versions
Michał Dulko [Thu, 14 Jan 2016 18:37:18 +0000 (19:37 +0100)]
Report RPC and objects versions

While doing a rolling upgrade we will have services running in various
versions. In order to determine how to downgrade the RPC request and
payload (objects) to the lowest common version we need to actually
report versions of RPC servers (managers).

This commit implements such reporting in generic cinder.service module.
It is using DB columns that were merged in Liberty to save this
information.

To have a single version string identify a set of o.vo versions we need
to have dictionary with objects versions history. In that purpose a
dict-like CinderObjectVersionsHistory class and OBJ_VERSIONS instance of
it is added to cinder.objects.base. A unit test enforcing bumping the
versions is also included with the patch.

Change-Id: Ic3b57450e9d6f155a7eb805d224389f5f09eae18
Partial-Implements: blueprint rpc-object-compatibility

8 years agoAdd missing RPC calls versions to rpcapi modules
Michał Dulko [Wed, 13 Jan 2016 15:18:45 +0000 (16:18 +0100)]
Add missing RPC calls versions to rpcapi modules

Some RPC calls in rpcapi modules are not passing version indicators to
the RPC client. The RPC call version should be indicated explicitely
because otherwise it gets defaulted to the latest one or '1.0'. This
creates a set of problem in maintaining RPC API backward compatibility.

This commit changes these calls to point to the right versions according
to git history and version comments in rpcapi files.

Change-Id: Ib05d9748e18589df5a67f7b7ea668394cc8df769
Related-Blueprint: rpc-object-compatibility

8 years agoMerge "Run flake8 also on cinder/common"
Jenkins [Fri, 29 Jan 2016 05:43:09 +0000 (05:43 +0000)]
Merge "Run flake8 also on cinder/common"

8 years agoMerge "Add pagination support to consistency group"
Jenkins [Fri, 29 Jan 2016 05:42:00 +0000 (05:42 +0000)]
Merge "Add pagination support to consistency group"

8 years agoMerge "Fix update_consistencygroup log info"
Jenkins [Fri, 29 Jan 2016 05:21:42 +0000 (05:21 +0000)]
Merge "Fix update_consistencygroup log info"

8 years agoMerge "Fix laggard cisco FC zone client unit tests"
Jenkins [Fri, 29 Jan 2016 05:21:17 +0000 (05:21 +0000)]
Merge "Fix laggard cisco FC zone client unit tests"

8 years agoAdds HTTPS southbound connector for Brocade FC Zone Driver
Pradeep Sathasivam [Thu, 21 May 2015 15:01:29 +0000 (20:31 +0530)]
Adds HTTPS southbound connector for Brocade FC Zone Driver

Set ssl verify to False for HTTPS.

Marked 'principal_switch_wwn' parameter from the config options as
deprecated.

DocImpact

Implements: blueprint brocade-zone-driver-virtualfabrics-support

Change-Id: I0b40b520580eaa6821c0af29abc6d2497d884ad2

8 years agoMerge "Fix thin provisioning flags in NetApp drivers"
Jenkins [Thu, 28 Jan 2016 20:05:34 +0000 (20:05 +0000)]
Merge "Fix thin provisioning flags in NetApp drivers"

8 years agoMerge "Remove redundant definition of 'deleted'"
Jenkins [Thu, 28 Jan 2016 06:07:38 +0000 (06:07 +0000)]
Merge "Remove redundant definition of 'deleted'"

8 years agoMerge "Huawei: Add manage/unmanage snapshot support"
Jenkins [Thu, 28 Jan 2016 05:14:28 +0000 (05:14 +0000)]
Merge "Huawei: Add manage/unmanage snapshot support"

8 years agoRemove redundant definition of 'deleted'
Sergey Gotliv [Wed, 27 Jan 2016 06:20:09 +0000 (08:20 +0200)]
Remove redundant definition of 'deleted'

Remove redundant definition of class variable 'deleted' from
models.Volume because it's already defined in the parent class
CinderBase.

Change-Id: I9fcd9ff1b99a8e018043fe61cd06059681fdb266

8 years agoFix update_consistencygroup log info
huyang [Wed, 27 Jan 2016 03:54:06 +0000 (11:54 +0800)]
Fix update_consistencygroup log info

In update_consistencygroup function,
the log info is inappropriate, so fix it.

Change-Id: I0de0c3ebdcf9da2d6e975027ebba519869e84c3b
Closes-Bug: #1538391

8 years agoMerge "Fix NFS driver unit test docstring"
Jenkins [Tue, 26 Jan 2016 11:44:45 +0000 (11:44 +0000)]
Merge "Fix NFS driver unit test docstring"

8 years agoHuawei: Add manage/unmanage snapshot support
chenzongliang [Sat, 12 Dec 2015 09:11:55 +0000 (17:11 +0800)]
Huawei: Add manage/unmanage snapshot support

Add manage/unmanage snapshot support for Huawei
drivers. Also implement the required
manage_existing_snapshot_get_size function.

DocImpact
Implements: blueprint huawei-manage-unmanage-snapshot

Change-Id: I05f8a750a745498c879d8c734e661d778528258c

8 years agoMerge "Adds friendly zone name support"
Jenkins [Tue, 26 Jan 2016 00:42:41 +0000 (00:42 +0000)]
Merge "Adds friendly zone name support"

8 years agoMerge "Disallow transferring volume in consistency group"
Jenkins [Tue, 26 Jan 2016 00:42:10 +0000 (00:42 +0000)]
Merge "Disallow transferring volume in consistency group"

8 years agoMerge "fix NFS driver max_over_subscription_ratio typo"
Jenkins [Mon, 25 Jan 2016 23:54:45 +0000 (23:54 +0000)]
Merge "fix NFS driver max_over_subscription_ratio typo"

8 years agoMerge "Fixing HNAS XML parser"
Jenkins [Mon, 25 Jan 2016 23:54:27 +0000 (23:54 +0000)]
Merge "Fixing HNAS XML parser"

8 years agoMerge "Fix torpid coordinator unit tests"
Jenkins [Mon, 25 Jan 2016 22:45:13 +0000 (22:45 +0000)]
Merge "Fix torpid coordinator unit tests"

8 years agoMerge "NetApp ONTAP - Reapply API tracing"
Jenkins [Mon, 25 Jan 2016 22:44:48 +0000 (22:44 +0000)]
Merge "NetApp ONTAP - Reapply API tracing"

8 years agoMerge "Fix sluggish rbd unit tests"
Jenkins [Mon, 25 Jan 2016 22:43:14 +0000 (22:43 +0000)]
Merge "Fix sluggish rbd unit tests"

8 years agoFixing HNAS XML parser
Erlon R. Cruz [Tue, 17 Nov 2015 17:43:01 +0000 (15:43 -0200)]
Fixing HNAS XML parser

HNAS XML parser does not handles situations where the user
could accidentally insert a blank space in the parameter value
breaking the driver in execution time. With this fix, an
error is raised in the driver setup.

Closes-bug: #1537758
Change-Id: If553647563638a5c9a09441ad2ec40ed13a0ece2

8 years agoMerge "Set LVM driver default overprovisioning ratio to 1.0"
Jenkins [Sat, 23 Jan 2016 05:57:28 +0000 (05:57 +0000)]
Merge "Set LVM driver default overprovisioning ratio to 1.0"

8 years agoMerge "Fix xtremio slow unit tests"
Jenkins [Sat, 23 Jan 2016 05:23:12 +0000 (05:23 +0000)]
Merge "Fix xtremio slow unit tests"

8 years agoMerge "Adding action to policy.json"
Jenkins [Sat, 23 Jan 2016 04:57:09 +0000 (04:57 +0000)]
Merge "Adding action to policy.json"

8 years agoMerge "DRBD: Rename "dres" to avoid confusion with "res""
Jenkins [Sat, 23 Jan 2016 01:40:45 +0000 (01:40 +0000)]
Merge "DRBD: Rename "dres" to avoid confusion with "res""

8 years agoMerge "Tegile tests: Change volume size to int"
Jenkins [Sat, 23 Jan 2016 01:07:47 +0000 (01:07 +0000)]
Merge "Tegile tests: Change volume size to int"

8 years agoAdds friendly zone name support
Angela Smith [Mon, 9 Nov 2015 18:14:35 +0000 (10:14 -0800)]
Adds friendly zone name support

Added user friendly names for zones to include host and storage
names along with ids to easily identify the host and storage port
details.

This is done by extracting the host and storage name from connection
info object in the zone manager. The host and storage names are passed
to the zone drivers to form a friendly name. The method signature has
been changed which accepts host and storage name, with default as None.

Also added test cases to test this support. Changes have been made to
zone manager test code to accommodate the change in signature of some
methods.

Moved get_friendly_zone_name method to utils.py so that it can be used
by both cisco and brocade drivers

Changed cisco driver to accommodate host_name and storage_system
parameters in add/delete connection.

Implements: blueprint brocade-zone-driver-friendly-zone-names

Change-Id: I350493b96901675a1b8910d6104f31c7d677ebda

8 years agoMerge "Huawei: Refactor driver for the second time"
Jenkins [Fri, 22 Jan 2016 22:53:19 +0000 (22:53 +0000)]
Merge "Huawei: Refactor driver for the second time"

8 years agoEMC VMAX - VMAX driver failing to remove zones
Helen Walsh [Fri, 13 Nov 2015 00:42:49 +0000 (00:42 +0000)]
EMC VMAX - VMAX driver failing to remove zones

The population of the target_wwns and init_targ_map
should occur before the terminate_connection
and not after.

Closes-Bug: #1501938
Change-Id: I3a896a1fcdfd9c09a4c8fa5a1f7fb7253ff36715

8 years agoMerge "Return BadRequest for invalid Unicode names"
Jenkins [Fri, 22 Jan 2016 13:23:46 +0000 (13:23 +0000)]
Merge "Return BadRequest for invalid Unicode names"

8 years agoFix laggard cisco FC zone client unit tests
Tom Barron [Thu, 21 Jan 2016 03:44:48 +0000 (22:44 -0500)]
Fix laggard cisco FC zone client unit tests

The test_cisco_fc_zone_client_cli.py unit module tests methods
decorated by utils.retry, which does retries with exponential
backoffs, without mocking out time.sleep().  One test in this
suite takes about 10% of the total time to run all cinder unit
tests.

This commit mocks time.sleep() in two critical tests in this
module, yielding a 30x speedup in run-time for the module.

Closes-Bug: #1536457

Change-Id: I3a686b760e2049a1f0ae4f8ee5ccbb4fa974aa1f

8 years agoFix xtremio slow unit tests
Tom Barron [Thu, 21 Jan 2016 20:53:03 +0000 (15:53 -0500)]
Fix xtremio slow unit tests

This commit mocks out time.sleep() in the test_retry_request()
method of test_emc_xtremio.EMCXIODriverTestCase.

As documented in the accompanying bug, this yields about a 6X
speedup for this unit test suite.

Change-Id: I86647dce1fe8a6e8281ee3617fbc5e5c1332404d
Closes-Bug: #1536782

8 years agoFix sluggish rbd unit tests
Tom Barron [Thu, 21 Jan 2016 16:56:14 +0000 (11:56 -0500)]
Fix sluggish rbd unit tests

The rbd_test.py module tests methods decorated by utils.retry,
which does retries with exponential backoffs, without mocking out
time.sleep().

This commit mocks time.sleep(), yielding a 3x speedup, as documented
in the accompanying bug.

Closes-Bug: #1536717

Change-Id: I414629f09f397e44d3a5be794ef83658a4c1eec0

8 years agoFix torpid coordinator unit tests
Tom Barron [Thu, 21 Jan 2016 18:17:59 +0000 (13:17 -0500)]
Fix torpid coordinator unit tests

The test_coordination.py unit module tests a _reconnect() method
which does a randomly seeded exponential retry backoff.  This
retry/backoff mechanism introduces needless delay in unit test
runs.

This commit mocks out random.uniform, improving run time by about
a factor of nine, as documented in the accompanying bug.

Closes-Bug: #1536750

Change-Id: I83fafba17be99cbe972dfb60fe87dac6dc3756cf

8 years agoMerge "EMC VMAX - Incorrect SG selected on an VMAX3 attach"
Jenkins [Fri, 22 Jan 2016 11:19:40 +0000 (11:19 +0000)]
Merge "EMC VMAX - Incorrect SG selected on an VMAX3 attach"

8 years agoMerge "Replace assertEqual(*, None) with assertIsNone in tests"
Jenkins [Fri, 22 Jan 2016 11:19:14 +0000 (11:19 +0000)]
Merge "Replace assertEqual(*, None) with assertIsNone in tests"

8 years agoMerge "NexentaStor 5 NFS backend driver."
Jenkins [Fri, 22 Jan 2016 10:40:57 +0000 (10:40 +0000)]
Merge "NexentaStor 5 NFS backend driver."

8 years agoMerge "Check min config requirements for rbd driver"
Jenkins [Fri, 22 Jan 2016 05:47:45 +0000 (05:47 +0000)]
Merge "Check min config requirements for rbd driver"

8 years agoMerge "Added 'bootable volume' filter for non-admin user"
Jenkins [Thu, 21 Jan 2016 23:58:36 +0000 (23:58 +0000)]
Merge "Added 'bootable volume' filter for non-admin user"

8 years agoMerge "Reduce use of eval()"
Jenkins [Thu, 21 Jan 2016 23:54:50 +0000 (23:54 +0000)]
Merge "Reduce use of eval()"

8 years agoMerge "VMware: Fix release notes"
Jenkins [Thu, 21 Jan 2016 23:42:50 +0000 (23:42 +0000)]
Merge "VMware: Fix release notes"

8 years agoMerge "NetApp FC drivers should not set 'rw' access mode"
Jenkins [Thu, 21 Jan 2016 22:34:40 +0000 (22:34 +0000)]
Merge "NetApp FC drivers should not set 'rw' access mode"

8 years agoNetApp ONTAP - Reapply API tracing
Andrew Kerr [Thu, 21 Jan 2016 15:22:33 +0000 (10:22 -0500)]
NetApp ONTAP - Reapply API tracing

The NetApp ONTAP drivers had their API tracing inadvertently
removed when the netapp_lib changes were reverted.

This patch adds that tracing back in.

Closes-Bug: #1536683
Change-Id: I3c9f8fdc33e0e5128db41b497f54bd8ff07a8d85

8 years agoRun flake8 also on cinder/common
Gorka Eguileor [Thu, 21 Jan 2016 13:12:56 +0000 (14:12 +0100)]
Run flake8 also on cinder/common

Even though testenvs pep8 and pep8-constraints included cinder/common
directory to be processed by flake8, global configuration in flake8
secion was excluding common glob preventing the directory from being
checked.

This patch removes glob from flake8 exclude section, unnecessary
cinder/common inclusion when running flake8, and fixes
cinder/common/config.py.

If we had a common directory in our code root and wanted to exclude it,
glob should be ./common instead of just common like we had now.

Change-Id: Iefc64c02335ed9296bda323fdcb5688125fb4e77

8 years agoReplace assertEqual(*, None) with assertIsNone in tests
Einst Crazy [Wed, 6 Jan 2016 02:35:24 +0000 (10:35 +0800)]
Replace assertEqual(*, None) with assertIsNone in tests

Replace assertEqual(*, None) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: If62be1aa29fd420855f42d44865fbdcbab16bf70

8 years agoAdd pagination support to consistency group
wanghao [Wed, 30 Dec 2015 06:18:09 +0000 (14:18 +0800)]
Add pagination support to consistency group

In liberty release, we have added pagination to backups
and snapshots. There are still some work that hasn't been
done yet.
This patch adds pagination support to consistency groups.

APIImpact
Add pagination args like limit, marker, sort to query
consistency group.

DocImpact

Change-Id: I37602069e06cc99c9adbf45c2a981b0513a1be26
Implements: blueprint add-pagination-to-other-resource

8 years agoMerge "Refactor Windows drivers using os-win"
Jenkins [Thu, 21 Jan 2016 01:07:58 +0000 (01:07 +0000)]
Merge "Refactor Windows drivers using os-win"

8 years agoMerge "Add pagination support to volume type"
Jenkins [Thu, 21 Jan 2016 00:37:58 +0000 (00:37 +0000)]
Merge "Add pagination support to volume type"

8 years agoFix NFS driver unit test docstring
Tom Barron [Wed, 20 Jan 2016 20:40:31 +0000 (15:40 -0500)]
Fix NFS driver unit test docstring

This trivial commit fixes an incorrect docstring in
a unit test for the generic NFS driver.

Change-Id: I06adbc168501cd6214bc23194ee36c2873cb3cba

8 years agoMerge "Activate sparse copy for Netapp"
Jenkins [Wed, 20 Jan 2016 17:25:31 +0000 (17:25 +0000)]
Merge "Activate sparse copy for Netapp"

8 years agoMerge "NetApp ONTAP: Fix extending volume beyond lun geometry"
Jenkins [Wed, 20 Jan 2016 17:13:47 +0000 (17:13 +0000)]
Merge "NetApp ONTAP: Fix extending volume beyond lun geometry"

8 years agoMerge "Remove DB calls from Pure Volume Driver CG methods"
Jenkins [Wed, 20 Jan 2016 09:42:31 +0000 (09:42 +0000)]
Merge "Remove DB calls from Pure Volume Driver CG methods"

8 years agoAdding action to policy.json
Doug Schveninger [Sun, 3 Jan 2016 01:03:46 +0000 (19:03 -0600)]
Adding action to policy.json

After reviewing code found out the volume:create_snapshot policy.json
action is missing so added it to the policy.json file.

Closes-bug: #1530196

Change-Id: I2a0bf01bc465b0bcbe7ea0b7c65b90851ddfac2c

8 years agofix NFS driver max_over_subscription_ratio typo
Tom Barron [Fri, 15 Jan 2016 18:00:20 +0000 (13:00 -0500)]
fix NFS driver max_over_subscription_ratio typo

Change-Id: I3b8a23f9c5854500f8577c2b87818e9689e753b8

8 years agoMerge "Add cinder backup driver for Google Cloud Storage"
Jenkins [Tue, 19 Jan 2016 18:22:04 +0000 (18:22 +0000)]
Merge "Add cinder backup driver for Google Cloud Storage"

8 years agoMerge "API Middleware fault: Log exception type"
Jenkins [Tue, 19 Jan 2016 17:36:19 +0000 (17:36 +0000)]
Merge "API Middleware fault: Log exception type"

8 years agoAdded 'bootable volume' filter for non-admin user
Sheel Rana [Fri, 15 Jan 2016 20:23:49 +0000 (01:53 +0530)]
Added 'bootable volume' filter for non-admin user

During launch instance from Horizon, if non-admin
user selects volume as source for launching
instance, drop down list for volumes will also
show non-bootable volumes. It is wrong behaviour.

To fix this, 'bootable volume' search filter is
enabled so that only bootable volumes get
displayed in drop down list of volume.

APIImpact

DocImpact:Need to add bootable against
query_volume_filters in OpenStack Configuration
Reference

Closes-Bug: #1524450

Change-Id: If5bfbd73bbe02b13b76d7169ea16424493ac5fca

8 years agoSet LVM driver default overprovisioning ratio to 1.0
Eric Harney [Wed, 13 Jan 2016 15:29:50 +0000 (10:29 -0500)]
Set LVM driver default overprovisioning ratio to 1.0

This introduces a config option, 'lvm_max_over_subscription_ratio',
which allows overriding the global max_over_subscription_ratio.

This is needed because the way we handle configuration with
multi-backend does not allow setting a value which will be applied
to each LVM backend without manually setting it in each backend,
and it would be better to default to a safe overprovisioning
ratio for the LVM driver.  It is often used in smaller deployments
and POCs which may not have all of the capacity monitoring
infrastructure used with other drivers, so overprovisioning should
be an opt-in capability rather than opt-out.

Partial-Bug: #1472803
DocImpact: new config option lvm_max_over_subscription_ratio

Change-Id: I5a214462b573d00d26086512821b4f8cc1db4fc3

8 years agoTegile tests: Change volume size to int
Eric Harney [Tue, 19 Jan 2016 16:06:48 +0000 (11:06 -0500)]
Tegile tests: Change volume size to int

Defining volume size as a string is not correct, and
causes huge memory consumption when multiplied by
units.Gi in the driver.

Change-Id: Ib4cf13629b70dc1c517e4c12f29c62bb9c75adbf
Closes-Bug: #1535464

8 years agoMerge "NexentaStor 5 iSCSI backend driver."
Jenkins [Tue, 19 Jan 2016 14:43:10 +0000 (14:43 +0000)]
Merge "NexentaStor 5 iSCSI backend driver."

8 years agoMerge "Add Fujitsu ETERNUS DX Volume Driver (FC part)"
Jenkins [Tue, 19 Jan 2016 12:08:26 +0000 (12:08 +0000)]
Merge "Add Fujitsu ETERNUS DX Volume Driver (FC part)"

8 years agoMerge "Add finish_volume_migration to volume object"
Jenkins [Tue, 19 Jan 2016 11:12:42 +0000 (11:12 +0000)]
Merge "Add finish_volume_migration to volume object"

8 years agoVMware: Fix release notes
Vipin Balachandran [Tue, 19 Jan 2016 07:26:02 +0000 (23:26 -0800)]
VMware: Fix release notes

This patch fixes some typos in the VMware VMDK driver
release notes.

Change-Id: Ibe6ec3aa4ddbf29d303a92f8561d4a3587d9bedc

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Tue, 19 Jan 2016 07:05:15 +0000 (07:05 +0000)]
Merge "Imported Translations from Zanata"

8 years agoHuawei: Refactor driver for the second time
chenzongliang [Sat, 12 Dec 2015 09:11:55 +0000 (17:11 +0800)]
Huawei: Refactor driver for the second time

After a few new features being added into drivers,
we found it hard to maintain the code. For further working,
we need to refactor our code. The work contains the following:
1. Define a new class, named HuaweiConf, to parse xml config file.
   We used an external xml file to store SAN info.
   But we do config parsing anywhere in our code,
   even two different functions do the same parsing.
2. Adjust some function structures.
3. Rename some functions & variables.

DocImpact
Implements: blueprint refactor-huawei-driver
Change-Id: If935a38399809cf95848825344fb837bf04a7dd3

8 years agoMerge "NetApp eseries: report max_over_subscription_ratio correctly"
Jenkins [Mon, 18 Jan 2016 19:24:54 +0000 (19:24 +0000)]
Merge "NetApp eseries: report max_over_subscription_ratio correctly"

8 years agoAdd cinder backup driver for Google Cloud Storage
Nikesh [Wed, 13 Jan 2016 13:39:33 +0000 (19:09 +0530)]
Add cinder backup driver for Google Cloud Storage

Implement cinder backup driver for Google Cloud Storage.
It supports:
 - creating backup which is stored on Google Cloud Storage
 - restoring backup from Google cloud storage
 - incremental backup
 - independent of any volume backend

DocImpact
Implements: blueprint gcs-cinder-backup-driver
Depends-On: I04f2e3dee1f5e001ad2f1cce15893b0965c082d7

Change-Id: Id2951176ad636afa52208e78c0b678cf02b8fad2
Co-Authored-By: Sreedhar Varma<sreedharv@vedams.com>
Co-Authored-By: Lakshmi Narayana<lakshminarayanat@vedams.com>
8 years agoNexentaStor 5 iSCSI backend driver.
Alexey Khodos [Wed, 10 Jun 2015 22:45:12 +0000 (01:45 +0300)]
NexentaStor 5 iSCSI backend driver.

This patch implements a driver for NexentaStor 5 iSCSI backend.

DocImpact
Change-Id: I16af54cf1bb08c5742adb0a87f24edad1a097de7
Implements: blueprint nexentastor-5-cinder-iscsi-driver

8 years agoNexentaStor 5 NFS backend driver.
Alexey Khodos [Wed, 10 Jun 2015 17:29:07 +0000 (20:29 +0300)]
NexentaStor 5 NFS backend driver.

This patch implements a driver for NexentaStor 5 NFS backend.

DocImpact
Change-Id: I424970b20925bf3d2eec8d6e8f633d79e07a93cb
Implements: blueprint nexentastor-5-cinder-nfs-driver

8 years agoDRBD: Rename "dres" to avoid confusion with "res"
Philipp Marek [Fri, 15 Jan 2016 20:51:53 +0000 (21:51 +0100)]
DRBD: Rename "dres" to avoid confusion with "res"

Expand the "d(rbd)res(ource)" abbreviation.

Change-Id: I37eb7bc6c73436eafe948363538d9b77c01c0ccc

8 years agoEMC VMAX - Incorrect SG selected on an VMAX3 attach
Helen Walsh [Thu, 26 Nov 2015 15:29:06 +0000 (15:29 +0000)]
EMC VMAX - Incorrect SG selected on an VMAX3 attach

Use the default storage group for an SLO/Workload
combination and not the storage group that will be
part of the Masking View(contains the host name).

Change-Id: I195dd0113103930af6e54e19afeebf33f979e8fa
Closes-Bug: #1515176

8 years agoActivate sparse copy for Netapp
Marc Koderer [Mon, 18 Jan 2016 07:11:16 +0000 (08:11 +0100)]
Activate sparse copy for Netapp

Activating sparse copy of files since using
"volume migration" or "retype" the size of the resulting
file is larger than before. Due to the reason that the
sparse blocks in the file are copied over completely. This
is inefficient performance wise and wastes space on the
storage itself.

Closes bug: #1534649

Change-Id: I3be7baf0255d838e6f5e16302c85d318061f4004

8 years agoAdd Fujitsu ETERNUS DX Volume Driver (FC part)
Yusuke Hayashi [Wed, 6 Jan 2016 08:02:54 +0000 (17:02 +0900)]
Add Fujitsu ETERNUS DX Volume Driver (FC part)

As I explained in my blueprint,
this patch completes Fujitsu ETERNUS DX Volume Driver.
Fujitsu ETERNUS DX Volume Driver consists of two parts, iSCSI and FC.
The iSCSI part [1] had been reviewed and
thanks to the nice reviews, it's merged.
The iSCSI and FC parts have a lot of common codes,
and all the common codes are included in the iSCSI part.

[1] https://review.openstack.org/201500/

DocImpact
Implements: blueprint fujitsu-eternus-dx-driver
Change-Id: If61145ee999bffd82223a99a7d59de315a5ecd3b

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Mon, 18 Jan 2016 06:23:24 +0000 (06:23 +0000)]
Imported Translations from Zanata

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

Change-Id: I9fac5927f89f28c399b9870e029b7baf27eceb8f

8 years agoMerge "Remote unused iscsi_targets table"
Jenkins [Sun, 17 Jan 2016 23:34:41 +0000 (23:34 +0000)]
Merge "Remote unused iscsi_targets table"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Sun, 17 Jan 2016 01:09:46 +0000 (01:09 +0000)]
Updated from global requirements

Change-Id: Ia5570e89fd81f9cf4cae08628fda829c500e62e0

8 years agoMerge "Python 3: Replace reduce and xrange with six.moves"
Jenkins [Sat, 16 Jan 2016 13:42:32 +0000 (13:42 +0000)]
Merge "Python 3: Replace reduce and xrange with six.moves"

8 years agoMerge "Huawei: Add manage/unmanage volume support"
Jenkins [Sat, 16 Jan 2016 12:29:54 +0000 (12:29 +0000)]
Merge "Huawei: Add manage/unmanage volume support"

8 years agoMerge "Infrastructure to use the DRBD transport for NOVA"
Jenkins [Sat, 16 Jan 2016 12:23:58 +0000 (12:23 +0000)]
Merge "Infrastructure to use the DRBD transport for NOVA"

8 years agoMerge "EMC VMAX - Extend Volume for VMAX3"
Jenkins [Sat, 16 Jan 2016 09:17:06 +0000 (09:17 +0000)]
Merge "EMC VMAX - Extend Volume for VMAX3"

8 years agoMerge "ITRI DISCO cinder driver"
Jenkins [Sat, 16 Jan 2016 09:15:39 +0000 (09:15 +0000)]
Merge "ITRI DISCO cinder driver"

8 years agoDisallow transferring volume in consistency group
Accela Zhao [Sat, 16 Jan 2016 06:43:29 +0000 (22:43 -0800)]
Disallow transferring volume in consistency group

Currently, transferring a volume in a consistency group would
success. But consistency group is not designed to span multiple
tenants. If the accepted volume is attached to an instance, and
the original user try to delete the CG, it would fail and could
not find the attachment.

This patch fixes it by adding a check in transfer API accept. It
raises InvalidVolume exception if the volume being transferred
belongs to a consistency group.

Change-Id: I597d32a301a1ded87ba711de6168995b5f62c4d8
Closes-bug: #1499584

8 years agoReduce use of eval()
Eric Harney [Fri, 15 Jan 2016 21:52:56 +0000 (16:52 -0500)]
Reduce use of eval()

Calling eval() is less than ideal security practice,
and does not appear to be needed in these instances.
Convert to ast.literal_eval() which is a safer
mechanism for parsing inputs like this.

Change-Id: I102f28cfa2a643f36a4d4174cef09c6f7576a804

8 years agoRemote unused iscsi_targets table
Gorka Eguileor [Fri, 15 Jan 2016 16:17:44 +0000 (17:17 +0100)]
Remote unused iscsi_targets table

iscsi_targets table, ORM class IscsiTarget, and db methods are not
currently being used, so we can drop them.

Closes-Bug: #1534808
Change-Id: I5bd0013f8fbcce18c844a1b051c3d385176f7e5b

8 years agoITRI DISCO cinder driver
Thelo Gaultier [Fri, 4 Dec 2015 07:29:44 +0000 (15:29 +0800)]
ITRI DISCO cinder driver

    This commit adds a Cinder volume driver for ITRI DISCO product.
    The DISCO driver supports the following features:
    * Volume Create/Delete
    * Volume Attach/Detach
    * Snapshot Create/Delete
    * Create Volume from Snapshot
    * Get Volume Stats
    * Copy Image to Volume
    * Copy Volume to Image
    * Clone Volume
    * Extend volume

    Implements: blueprint disco-driver-cinder

This patchset also includes the unit tests.

New config options for the cinder driver were also added.
related nova patchset : https://review.openstack.org/253353
related os_brick patchset : https://review.openstack.org/253352

DocImpact
Change-Id: I0168af34364343246a2855bdbd4a9f5ed5b05438

8 years agoNetApp eseries: report max_over_subscription_ratio correctly
Eric Harney [Thu, 14 Jan 2016 17:27:59 +0000 (12:27 -0500)]
NetApp eseries: report max_over_subscription_ratio correctly

The scheduler is looking for a key named
"max_over_subscription_ratio".

Closes-Bug: #1534240

Change-Id: I12f7a6ae8592bc8bc3b7fe70b2ff9cc947dc57d3

8 years agoMerge "Base iSCSI initiator validation"
Jenkins [Fri, 15 Jan 2016 11:25:49 +0000 (11:25 +0000)]
Merge "Base iSCSI initiator validation"

8 years agoPython 3: Replace reduce and xrange with six.moves
Ankit Agrawal [Fri, 15 Jan 2016 09:56:56 +0000 (01:56 -0800)]
Python 3: Replace reduce and xrange with six.moves

1. Builtin function 'reduce' in Python 2 has been moved to standard
library module in Python 3 [1]. To make code compatible, replaced
reduce(expr) with six.moves.reduce(expr).
2. xrange is renamed to range in Python 3, replaced it with
six.moves.range
3. Added __bool__() method in FeatureState class to make it python 3
compatible because Python 3 calls the __bool__() method instead of
__nonzero__ when evaluating an instance in a boolean context.
4. Added this test case to tests-py3.txt.

[1] http://python3porting.com/stdlib.html#moved-builtins

Closes-Bug: 1530249
Change-Id: I376cd643b9f58358a3e147532dafe77a7325a114

8 years agoInfrastructure to use the DRBD transport for NOVA
Philipp Marek [Fri, 15 Jan 2016 10:22:38 +0000 (11:22 +0100)]
Infrastructure to use the DRBD transport for NOVA

Our DRBD block storage driver for Cinder can be used to make
Nova directly connect to the DRBD 9 storage servers, instead
of needing an iSCSI hop.

Please see
  http://drbd.linbit.com/users-guide-9.0/s-openstack-transport-protocol.html
for more details.

Change-Id: Ie26f10302cd8ce3fd06bc52dd4f431ead5a03c24
Implements: blueprint drbd-transport