]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoNow packaging Liberty rc2.
Thomas Goirand [Fri, 9 Oct 2015 09:41:54 +0000 (11:41 +0200)]
Now packaging Liberty rc2.

9 years agoMerge tag '7.0.0_rc2' into debian/liberty
Thomas Goirand [Fri, 9 Oct 2015 09:40:45 +0000 (11:40 +0200)]
Merge tag '7.0.0_rc2' into debian/liberty

Cinder liberty-rc2 milestone (7.0.0.0rc2)

9 years agoDefinitively fix config file generation.
Thomas Goirand [Thu, 8 Oct 2015 07:50:28 +0000 (07:50 +0000)]
Definitively fix config file generation.

9 years agoAdded upstream patch for fixing config file generation.
Thomas Goirand [Thu, 1 Oct 2015 20:27:07 +0000 (20:27 +0000)]
Added upstream patch for fixing config file generation.

9 years agoUsing upstream patch to fix cinder.conf generation.
Thomas Goirand [Thu, 8 Oct 2015 07:46:12 +0000 (09:46 +0200)]
Using upstream patch to fix cinder.conf generation.

9 years agoFix VMAX live migration problem
Xing Yang [Wed, 23 Sep 2015 15:22:43 +0000 (11:22 -0400)]
Fix VMAX live migration problem

Live migration fails for VMAX because the host is not taken into
account when determining whether a volume is masked or not. For
live migration it is necessary to know which host a volume is masked
to. This patch fixes the problem by checking which host the volume
is masked to.

Change-Id: I693e29f7b26145bd1fd357b7d98377e26bfdfed8
Closes-Bug: #1498964
(cherry picked from commit 794e27c78255c94084b54821d44a36fd8f2096d7)

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sat, 3 Oct 2015 06:22:46 +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: Ie155bc342c6f7af507c567577c97652a16d533c8

9 years agoMerge "Dell SC: cgsnapshot-delete doesn't actually delete" into stable/liberty
Jenkins [Fri, 2 Oct 2015 18:28:02 +0000 (18:28 +0000)]
Merge "Dell SC: cgsnapshot-delete doesn't actually delete" into stable/liberty

9 years agoMerge "Report *real* free capacity in Huawei driver" into stable/liberty
Jenkins [Fri, 2 Oct 2015 18:27:50 +0000 (18:27 +0000)]
Merge "Report *real* free capacity in Huawei driver" into stable/liberty

9 years agoMerge "Huawei driver add check before use a QoS" into stable/liberty
Jenkins [Fri, 2 Oct 2015 18:27:40 +0000 (18:27 +0000)]
Merge "Huawei driver add check before use a QoS" into stable/liberty

9 years agoMerge "Revert use of netapp_lib from NetApp Drivers" into stable/liberty
Jenkins [Fri, 2 Oct 2015 18:27:30 +0000 (18:27 +0000)]
Merge "Revert use of netapp_lib from NetApp Drivers" into stable/liberty

9 years agoMerge "Add placholder for migration backports in Liberty" into stable/liberty
Jenkins [Fri, 2 Oct 2015 18:17:03 +0000 (18:17 +0000)]
Merge "Add placholder for migration backports in Liberty" into stable/liberty

9 years agoFixed the default path for lock_path.
Thomas Goirand [Thu, 1 Oct 2015 20:00:48 +0000 (20:00 +0000)]
Fixed the default path for lock_path.

9 years agoOnly cinder v2 is needed, therefore deleting v1.
Thomas Goirand [Thu, 1 Oct 2015 19:55:50 +0000 (19:55 +0000)]
Only cinder v2 is needed, therefore deleting v1.

9 years agocinder-api also registering the volumev2 type.
Thomas Goirand [Thu, 1 Oct 2015 16:16:16 +0000 (16:16 +0000)]
cinder-api also registering the volumev2 type.

9 years agoFixes default cinder.conf as the generator is broken.
Thomas Goirand [Thu, 1 Oct 2015 16:10:15 +0000 (16:10 +0000)]
Fixes default cinder.conf as the generator is broken.

9 years agoDell SC: cgsnapshot-delete doesn't actually delete
Tom Swanson [Tue, 29 Sep 2015 15:26:48 +0000 (10:26 -0500)]
Dell SC: cgsnapshot-delete doesn't actually delete

dell_storagecenter_api.py was looking for the cgsnapshot for
cgsnapshot-delete via the wrong REST API call.  It was also only
looking for the first volume's snapshot rather than all snapshots
associated with a cgsnapshot.  It now locates the snapshots properly
and expires the associated replays on cgsnapshot-delete.

Tests updated appropriately.

Change-Id: I1e635db8b06d3d7a78573e6e8a2a4c25b7fb458d
Closes-Bug: #1500583
(cherry picked from commit e529e4d6cc71003c53126612dd869fa6fb23493a)

9 years agoUsing upstream config generator script.
Thomas Goirand [Tue, 29 Sep 2015 14:08:20 +0000 (14:08 +0000)]
Using upstream config generator script.

9 years agoAnd again, generation of config files.
Thomas Goirand [Tue, 29 Sep 2015 13:29:06 +0000 (13:29 +0000)]
And again, generation of config files.

9 years agoFix generation of config file again.
Thomas Goirand [Tue, 29 Sep 2015 13:25:26 +0000 (13:25 +0000)]
Fix generation of config file again.

9 years agoFixed cinder.conf generation.
Thomas Goirand [Tue, 29 Sep 2015 13:24:05 +0000 (13:24 +0000)]
Fixed cinder.conf generation.

9 years agoHuawei driver add check before use a QoS
Wilson Liu [Wed, 23 Sep 2015 07:04:33 +0000 (15:04 +0800)]
Huawei driver add check before use a QoS

One QoS in Huawei storage array can contain at most 64 LUNs.
Do a check before adding LUN to QoS, if the number of the
LUNs in the QoS is already equal or larger than 64, then
this QoS should not be used.

Closed-Bug: #1498773
Change-Id: I9dd78cc1378051ded135a885cfc9347d42977311
(cherry picked from commit 32099d547a2bb9c5f21de4592c5bf08272fcb14c)

9 years agoReport *real* free capacity in Huawei driver
Wilson Liu [Thu, 24 Sep 2015 08:52:31 +0000 (16:52 +0800)]
Report *real* free capacity in Huawei driver

When we query capacity of a storage pool on Huawei storage,
there are two items in the result: one is "USERFREECAPACITY"
and the another one is "DATASPACE". In fact the "DATASPACE"
is the *real* space we can use to create LUN, the
"USERFREECAPACITY" contains some metadata that we can not use
to store user data.

Closes-Bug: #1499227
Change-Id: I34a8c67dea2a7b7f5a2a693a65c9303b2cc3d972
(cherry picked from commit e28e87258351c4c0d261d7c04ce495ef73e1520c)

9 years agoRevert use of netapp_lib from NetApp Drivers
Goutham Pacha Ravi [Fri, 25 Sep 2015 05:52:43 +0000 (01:52 -0400)]
Revert use of netapp_lib from NetApp Drivers

This patch cleanly reverts the changes made via the
commit: e681ba2a99995dcd999e6539bb1222f8a1ac8adc
cleanly and mitigates the conflicts that would
occur with git-revert on the said commit.

The revert is solely for changes pertaining to the use
of the external library, netapp_lib. Minor code refactors
from the prior change are retained.

Unit test coverage has been increased for ZAPI and REST
interface code in netapp/dataontap/client/api.py and
netapp/eseries/client.py.

Closes-Bug: #1499334
Change-Id: Icead7e168e1c7187840de87c69365d26aedd5924
(cherry picked from commit ff81307ca4c796a66f4bd584b4633db07dcf2a16)

9 years agoAdd placholder for migration backports in Liberty
John Griffith [Thu, 3 Sep 2015 02:54:08 +0000 (20:54 -0600)]
Add placholder for migration backports in Liberty

Adding 5 placeholders for migration backports.

Change-Id: Id3c4efbeee8bb1d800d71576d9de66ae9deb315a
(cherry picked from commit 3c1d38882eca336bb7735ee8097d0236b2d94b1a)

9 years agocinder-api depends on python-openstackclient.
Thomas Goirand [Fri, 25 Sep 2015 11:24:23 +0000 (11:24 +0000)]
cinder-api depends on python-openstackclient.

9 years ago * Fixed (build-)depends for this release.
Thomas Goirand [Fri, 25 Sep 2015 08:07:05 +0000 (10:07 +0200)]
  * Fixed (build-)depends for this release.
  * Refresh patch.

9 years agoFixed (build-)depends for this release.
Thomas Goirand [Fri, 25 Sep 2015 08:05:29 +0000 (10:05 +0200)]
Fixed (build-)depends for this release.

9 years agoNow packaging Liberty rc1.
Thomas Goirand [Fri, 25 Sep 2015 08:01:28 +0000 (10:01 +0200)]
Now packaging Liberty rc1.

9 years agoMerge branch 'debian/liberty' of git+ssh://git.debian.org/git/openstack/cinder into...
Thomas Goirand [Fri, 25 Sep 2015 08:00:51 +0000 (10:00 +0200)]
Merge branch 'debian/liberty' of git+ssh://git.debian.org/git/openstack/cinder into debian/liberty

9 years agoMerge tag '7.0.0_rc1' into debian/liberty
Thomas Goirand [Fri, 25 Sep 2015 08:00:17 +0000 (10:00 +0200)]
Merge tag '7.0.0_rc1' into debian/liberty

Cinder liberty-rc1 milestone (7.0.0.0rc1)

Conflicts:
cinder/volume/drivers/zfssa/zfssaiscsi.py

9 years agoCleanup of Translations
Andreas Jaeger [Thu, 24 Sep 2015 19:14:13 +0000 (21:14 +0200)]
Cleanup of Translations

In preparation for the release, do some cleanups for translations.

Removes all po files that are partially translated. The translation
team has decided to exclude files with less than 66 % of translated
content. There is no content lost, all data is in the translation
server, we just remove it from the repository.

This updates also recreates pot (translation source files) to
reflect the state of the repository in case there was no recent
import for them.

This change needs to be done manually since the automatic import does
not handle some of these cases.

Change-Id: I7131dbf556627c5ad6fc237bab1e6b867f55c7f8

9 years agoMerge "Fix URL format in Huawei driver"
Jenkins [Wed, 23 Sep 2015 17:49:03 +0000 (17:49 +0000)]
Merge "Fix URL format in Huawei driver"

9 years agoMerge "Fixing create CG from Cgsnapshot bug in VNX driver"
Jenkins [Wed, 23 Sep 2015 06:31:27 +0000 (06:31 +0000)]
Merge "Fixing create CG from Cgsnapshot bug in VNX driver"

9 years agoMerge "Make rpc_client method private for VolumeCommands"
Jenkins [Wed, 23 Sep 2015 04:31:59 +0000 (04:31 +0000)]
Merge "Make rpc_client method private for VolumeCommands"

9 years agoMerge "Allow c-vol backends to start when some backends fail to load"
Jenkins [Wed, 23 Sep 2015 04:24:55 +0000 (04:24 +0000)]
Merge "Allow c-vol backends to start when some backends fail to load"

9 years agoFix URL format in Huawei driver
Wilson Liu [Wed, 23 Sep 2015 03:43:06 +0000 (11:43 +0800)]
Fix URL format in Huawei driver

Some of the URL format are not standard,
this patch will fix them.

Change-Id: I3caf49e6ca7f5f6f2caa1b56ba2dc2af2cafdcea
Close-Bug: #1498484

9 years agoMerge "Fix use of wrong storage pools for NetApp Drivers"
Jenkins [Tue, 22 Sep 2015 23:59:53 +0000 (23:59 +0000)]
Merge "Fix use of wrong storage pools for NetApp Drivers"

9 years agoMerge "Replace soft_delete in volume_type_access_remove"
Jenkins [Tue, 22 Sep 2015 22:28:50 +0000 (22:28 +0000)]
Merge "Replace soft_delete in volume_type_access_remove"

9 years agoMerge "Ignore Forbidden error on quotas-get for nested projects"
Jenkins [Tue, 22 Sep 2015 19:55:25 +0000 (19:55 +0000)]
Merge "Ignore Forbidden error on quotas-get for nested projects"

9 years agoAllow c-vol backends to start when some backends fail to load
Eric Harney [Mon, 21 Sep 2015 18:29:19 +0000 (14:29 -0400)]
Allow c-vol backends to start when some backends fail to load

Currently, if a c-vol backend fails to load due to an error in
the module startup process (like a volume driver's __init__ or
dependency import failure), the c-vol process halts completely.

Instead, catch that backend failure, log it, and allow other
backends in enabled_backends to still start up and run.

Note that this is not applicable for failures that allow
drivers to load and remain "uninitialized" -- this is for
failures that occur prior to that point.

Closes-Bug: #1497413

Change-Id: If183b9e3d21777cddf713c2dc88dc80ae7cfe01d

9 years agoFix use of wrong storage pools for NetApp Drivers
Goutham Pacha Ravi [Fri, 26 Jun 2015 16:32:06 +0000 (12:32 -0400)]
Fix use of wrong storage pools for NetApp Drivers

When using NetApp drivers, all available flexvols on
a datastore are being reported to the Cinder Scheduler
as available storage pools. This allows Cinder volumes
to be created on flexvols not designated for OpenStack.

This commit fixes the problem by delimiting which pools are
eligible for provisioning via a configuration parameter
'netapp_pool_name_search_pattern'. This allows
the Cinder drivers to operate against a restricted
set of storage containers.

DocImpact
Co-Authored-By: Rushil Chugh <rushil@netapp.com>
Co-Authored-By: Michael Price <michael.price@netapp.com>
Closes-Bug: #1493399
Change-Id: I7b6f2205470ecbbcb165889db19e1168117dd0b2

9 years agoMerge "Change ignore-errors to ignore_errors"
Jenkins [Tue, 22 Sep 2015 07:32:33 +0000 (07:32 +0000)]
Merge "Change ignore-errors to ignore_errors"

9 years agoMerge "Fix way of getting LUN id in Huawei driver"
Jenkins [Tue, 22 Sep 2015 02:22:35 +0000 (02:22 +0000)]
Merge "Fix way of getting LUN id in Huawei driver"

9 years agoMerge "Fix MITM vulnerability for Brocade FC SAN lookup"
Jenkins [Tue, 22 Sep 2015 02:19:54 +0000 (02:19 +0000)]
Merge "Fix MITM vulnerability for Brocade FC SAN lookup"

9 years agoMerge "NetApp volume/snapshot delete performance fix"
Jenkins [Mon, 21 Sep 2015 23:44:07 +0000 (23:44 +0000)]
Merge "NetApp volume/snapshot delete performance fix"

9 years agoMake rpc_client method private for VolumeCommands
Ivan Kolodyazhny [Mon, 21 Sep 2015 18:51:35 +0000 (21:51 +0300)]
Make rpc_client method private for VolumeCommands

"rpc_client" is not sub-command and should not be in the help for
'cinder-manage volume' command.

Change-Id: Ie94554b3fade09e32269c96fcb4a7d2b91062119
Closes-Bug: #1498136

9 years agoIgnore Forbidden error on quotas-get for nested projects
Ivan Kolodyazhny [Mon, 21 Sep 2015 15:15:31 +0000 (18:15 +0300)]
Ignore Forbidden error on quotas-get for nested projects

Keystone API v2 requires admin permissions for project_get method.
We ignore Forbidden exception for non-admin users.

Change-Id: Ia0a17a9377219d3bf92dbbfd6e88077209a22a95
Closes-Bug: #1491495

9 years agoChange ignore-errors to ignore_errors
Monty Taylor [Mon, 21 Sep 2015 14:25:17 +0000 (14:25 +0000)]
Change ignore-errors to ignore_errors

Needed for coverage 4.0

Change-Id: I2775006f79929f2e64a58f84c384e0587ff5ad24

9 years agoNetApp volume/snapshot delete performance fix
Tom Barron [Mon, 14 Sep 2015 21:38:40 +0000 (17:38 -0400)]
NetApp volume/snapshot delete performance fix

cDOT NFS NetApp drivers back cinder volumes with array-side files and
use array-side cloning techniques when creating snapshots and when
creating volumes from glance images.  Customers have experienced
performance issues on the array when deleting many of these in
in quick succession, especially for large volumes.

This commit addresses these performance issues by overriding parent
class volume and snapshot delete methods, which use OS "rm" command to
delete volume backing files, with methods that use DOT API to delete
these files, and which invoke the optimized file deletion engine
available in DOT 8.3.

Closes-bug: 1497258
Change-Id: I44428d0840f6584f93ca214a2a607869b345554c

9 years agoReplace soft_delete in volume_type_access_remove
Michal Dulko [Mon, 21 Sep 2015 13:58:01 +0000 (15:58 +0200)]
Replace soft_delete in volume_type_access_remove

This commit replaces oslo.db's soft_delete used in
volume_type_access_remove in db.api with a simple update setting
deleted column to True.

As deleted column is boolean it is represented in the DB by TINYINT,
which max value is 127. This introduces problems when removing records
with id higher than that, because soft_delete sets deleted column to the
value of id. This commit fixes the issue and adds unit tests for such
case.

Change-Id: I484e66125b5a29f490c070696b336be4a2693b3e
Closes-Bug: 1496747

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 21 Sep 2015 08:36:02 +0000 (08:36 +0000)]
Merge "Updated from global requirements"

9 years agoFix way of getting LUN id in Huawei driver
liuxinguo [Thu, 6 Aug 2015 04:08:54 +0000 (12:08 +0800)]
Fix way of getting LUN id in Huawei driver

Get the LUN id first from the volume['provider_location'],
and only if volume['provider_location'] is None, query the
backend to get the LUN id.

Also change function name "mapping_hostgroup_and_lungroup"
to "do_mapping".

Closes-Bug: #1482030
Change-Id: Ie94ea2284c572e842a64f962cc10b1a2b8145d3c

9 years agoFixing create CG from Cgsnapshot bug in VNX driver
Tina [Wed, 16 Sep 2015 03:38:03 +0000 (23:38 -0400)]
Fixing create CG from Cgsnapshot bug in VNX driver

When creating a consistency group from a cgsnapshot, VNX driver
didn't force a poll to the VNX system. This caused the creation
to fail because the out-of-date status was returned. This patch
forces a poll to the VNX system to get rid of this issue.

Change-Id: I710bd0ac2a6049a79fce0d552ad8fba2c9fbde67
Closes-Bug: #1496660

9 years agoMerge "Remove the unnecassary volume_api.get(context, volume_id)"
Jenkins [Sat, 19 Sep 2015 20:05:50 +0000 (20:05 +0000)]
Merge "Remove the unnecassary volume_api.get(context, volume_id)"

9 years agoMerge "Enable certificate verification during image copy"
Jenkins [Sat, 19 Sep 2015 19:50:18 +0000 (19:50 +0000)]
Merge "Enable certificate verification during image copy"

9 years agoMerge "Correctly report multiattach in Pure drivers"
Jenkins [Sat, 19 Sep 2015 15:02:32 +0000 (15:02 +0000)]
Merge "Correctly report multiattach in Pure drivers"

9 years agoDynamically create cinder.conf.sample
Kendall Nelson [Thu, 13 Aug 2015 15:17:36 +0000 (10:17 -0500)]
Dynamically create cinder.conf.sample

As it stands, the opts.py file that is passed into
oslo-config-generator isn't being generated dynamically
and the old way of generating the cinder.conf.sample is
dependent on oslo-incubator which Cinder is trying to
move away from. oslo-config-generator works differently
than oslo-incubator so a number of changes had to be made
in order to make this switch.

This patch adds the config directory to Cinder and in it
are two files:

    -generate_cinder_opts.py that will take the
     results of a grep command to create the opts.py
     file to be passed into oslo-config-generator.

    -cinder.conf which is the new configuration for
     oslo-config-generator. The file is inside the config
     directory to be consistent with other projects.

Some changes were made to the generate_sample.sh file in
order to give the base directories and target directories
to the generate_cinder_opts.py program.

tox.ini was edited to remove the checkonly option because
all that needs to happen in check_uptodate.sh is a check to
ensure that the cinder.conf.sample is actually being
generated with no issues.

All options were removed from the check_uptodate.sh
because they were unnecessary given the new, more simple
way of generating the cinder.conf.sample.

setup.cfg was also edited in order to add information
oslo-config-generator needs to run.

Co-Authored By: Jay Bryant <jsbryant@us.ibm.com>
Co-Authored By: Jacob Gregor <jgregor@us.ibm.com>

Change-Id: I643dbe5675ae9280e204f691781e617266f570d5
Closes-Bug: 1473768
Closes-Bug: 1437904
Closes-Bug: 1381563

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 18 Sep 2015 16:37:17 +0000 (16:37 +0000)]
Updated from global requirements

Change-Id: I0dbe12dc8517e72a4bf00e811ca68fb07dc822c8

9 years agoFix MITM vulnerability for Brocade FC SAN lookup
Ryan McNair [Thu, 27 Aug 2015 20:51:14 +0000 (20:51 +0000)]
Fix MITM vulnerability for Brocade FC SAN lookup

Refactor the Brocade FC SAN lookup service implementation to use
common SSH utilities which already avoid MITM vulnerabilities.
This is a follow-up to https://review.openstack.org/#/c/138526/
which reverted an incomplete fix for the MITM issues for Brocade.

Change-Id: I2d87b55f56f08208f0da11cac40682d51da5b536
Closes-Bug: #1391311

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 18 Sep 2015 02:13:03 +0000 (02:13 +0000)]
Merge "Imported Translations from Zanata"

9 years agoMerge "NetApp: Fix volume extend with E-Series"
Jenkins [Thu, 17 Sep 2015 21:07:37 +0000 (21:07 +0000)]
Merge "NetApp: Fix volume extend with E-Series"

9 years agoMerge "Fix netapp_enable_multiattach default for E-Series"
Jenkins [Thu, 17 Sep 2015 21:04:26 +0000 (21:04 +0000)]
Merge "Fix netapp_enable_multiattach default for E-Series"

9 years agoMerge "Attaching enhancement for EMC VNX driver"
Jenkins [Thu, 17 Sep 2015 21:02:06 +0000 (21:02 +0000)]
Merge "Attaching enhancement for EMC VNX driver"

9 years agoMerge "Fix cinder-all binary"
Jenkins [Thu, 17 Sep 2015 12:18:06 +0000 (12:18 +0000)]
Merge "Fix cinder-all binary"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Thu, 17 Sep 2015 06:19:43 +0000 (06:19 +0000)]
Imported Translations from Zanata

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

Change-Id: I438ad26c586f382ab669bea9fa2556ea0a40c189

9 years agoMerge "Fix issue of volume after host-assisted migration"
Jenkins [Thu, 17 Sep 2015 00:11:51 +0000 (00:11 +0000)]
Merge "Fix issue of volume after host-assisted migration"

9 years agoFix cinder-all binary
Ivan Kolodyazhny [Tue, 15 Sep 2015 22:01:37 +0000 (01:01 +0300)]
Fix cinder-all binary

1. Add rpc.init for cinder-api service
2. Add multi-backend support for cinder-volume service

Closes-Bug: #1496154
Change-Id: I91626bd74fc224302e131c5235030a02431a04c1

9 years agoMerge "Check for None on service's updated_at"
Jenkins [Wed, 16 Sep 2015 21:47:23 +0000 (21:47 +0000)]
Merge "Check for None on service's updated_at"

9 years agoMerge "Extra specs may not be in volume types"
Jenkins [Wed, 16 Sep 2015 20:36:11 +0000 (20:36 +0000)]
Merge "Extra specs may not be in volume types"

9 years agoMerge "Fix QoS keys not being available to scheduler"
Jenkins [Wed, 16 Sep 2015 20:34:18 +0000 (20:34 +0000)]
Merge "Fix QoS keys not being available to scheduler"

9 years agoNetApp: Fix volume extend with E-Series
Michael Price [Tue, 25 Aug 2015 22:36:44 +0000 (17:36 -0500)]
NetApp: Fix volume extend with E-Series

Thin provisioned volumes were being converted to thick provisioned
volumes by extend_volume. When thin provisioning support was added,
the extend_volume method was not updated to use the correct API
for performing the capacity expansion operation.

This patch changes the volume extension strategy when a volume is
thin provisioned to use the correct API. With a thick provisioned
volume, a clone will be created with the new capacity, and the old
volume removed, but a thin provisioned volume's capacity can simply
be expanded directly, because that is merely the capacity that the user
sees, as opposed to the backend provisioned capacity.

Closes-Bug: 1493874
Change-Id: Iec25f29381d5fba3409d1de83bf6816ae1a9ac22

9 years agoFix netapp_enable_multiattach default for E-Series
Michael Price [Wed, 2 Sep 2015 18:48:05 +0000 (13:48 -0500)]
Fix netapp_enable_multiattach default for E-Series

The E-Series driver erroneously changed the netapp_enable_multiattach
option to default to True. This option should default to False to
ensure backwards-compatibility with upgrades.

DocImpact
Closes-Bug: #1491580
Change-Id: Iafb4d80bd83c2de0a5b77178206c7f3028ac6554

9 years agoCheck for None on service's updated_at
Michal Dulko [Tue, 15 Sep 2015 13:52:57 +0000 (15:52 +0200)]
Check for None on service's updated_at

We weren't checking if service's updated_at is None when passing it to
timeutils.normalize_time which caused an exception. This commit adds
the check to cinder-manage and cinder-api (services and hosts). Also
regression unit tests are added.

Change-Id: Ia6ee28dc2cd20cece1e21d07692f47e3858d707d
Closes-Bug: 1495938

9 years agoFix issue of volume after host-assisted migration
peter_wang [Fri, 21 Aug 2015 05:33:44 +0000 (01:33 -0400)]
Fix issue of volume after host-assisted migration

In host-assisted migration, Cinder framework currently doesn't
update name_id and provider_location when the driver doesn't provide
name_id or provider_location in update_migrated_volume

This changes previous Cinder behavior which will update name_id and
provider_location anyway. Any operation against this volume will not
be successful; for example, volume deletion cannot delete it's
underlying LUN.

This fix will update name_id and provider_location if driver doesn't
return them.

Closes-Bug: #1487952
Change-Id: Ice72fc792f0ea8909c027e6df99cff9bbeef5e48

9 years agoMerge "Tests: Split VolumeTestCase into separate classes"
Jenkins [Wed, 16 Sep 2015 10:57:40 +0000 (10:57 +0000)]
Merge "Tests: Split VolumeTestCase into separate classes"

9 years agoMerge "Snapmirror targets should not be reported as pools"
Jenkins [Wed, 16 Sep 2015 10:57:29 +0000 (10:57 +0000)]
Merge "Snapmirror targets should not be reported as pools"

9 years agoMerge "Change check method for 'all_tenants'"
Jenkins [Wed, 16 Sep 2015 10:57:18 +0000 (10:57 +0000)]
Merge "Change check method for 'all_tenants'"

9 years agoMerge "Create CG needs extra specs"
Jenkins [Wed, 16 Sep 2015 10:55:09 +0000 (10:55 +0000)]
Merge "Create CG needs extra specs"

9 years agoAttaching enhancement for EMC VNX driver
Xi Yang [Wed, 9 Sep 2015 08:26:20 +0000 (04:26 -0400)]
Attaching enhancement for EMC VNX driver

Remove the lun list command after adding the lun into a storage
group. This could improve the performance of initialize connection.

Change-Id: Id49725f50cd0e7600feb2ffc98a5b1ef14bc531c
Closes-Bug: #1495806

9 years agoMerge "Local img-cache files ignored for image transfers"
Jenkins [Wed, 16 Sep 2015 05:14:05 +0000 (05:14 +0000)]
Merge "Local img-cache files ignored for image transfers"

9 years agoTests: Split VolumeTestCase into separate classes
Eric Harney [Mon, 13 Jul 2015 15:20:56 +0000 (11:20 -0400)]
Tests: Split VolumeTestCase into separate classes

Organize the large VolumeTestCase class into a few
subclasses.

Change-Id: I1538445533bc6c14668177443cbc8f676731896d

9 years agoMerge "Fix NetApp clone from glance failure"
Jenkins [Tue, 15 Sep 2015 19:26:46 +0000 (19:26 +0000)]
Merge "Fix NetApp clone from glance failure"

9 years agoLocal img-cache files ignored for image transfers
Mike Rooney [Mon, 31 Aug 2015 15:29:53 +0000 (11:29 -0400)]
Local img-cache files ignored for image transfers

The cDOT NFS driver will only attempt to use the local img-cache-*
files if the copy offload path is defined in the cinder.conf file.
This should be attempted regardless of copy-offload's configuration.

Change-Id: I29e19da7c1e083e9c76cbcea1f397deefe30b016
Closes-Bug: #1490641

9 years agoSnapmirror targets should not be reported as pools
Mike Rooney [Mon, 22 Jun 2015 17:58:12 +0000 (13:58 -0400)]
Snapmirror targets should not be reported as pools

Snapmirror targets that were being reported to the Cinder
scheduler as available pools are now no longer reported as such.

Change-Id: I04faa9d7c448b91e66192770b09db84df78a8ae1
Closes-Bug: #1468004

9 years agoChange check method for 'all_tenants'
liyuanyuan [Thu, 10 Sep 2015 05:52:00 +0000 (05:52 +0000)]
Change check method for 'all_tenants'

Replaced with calls to get_bool_param from utils,
so it supports any boolean value like the rest of the API methods.

APIImpact: The API will also allow to pass 'yes', 'no', 'y', 'n'
as valid boolean strings in addition.

Change-Id: I397b0dfb688e0e6278eac75978df28bf6f99d0a9
Closes-Bug: #1494130

9 years agoEnable certificate verification during image copy
Vipin Balachandran [Tue, 25 Aug 2015 11:36:16 +0000 (17:06 +0530)]
Enable certificate verification during image copy

The VMDK driver config options 'vmware_ca_file' and 'vmware_insecure'
are ignored while copying sparse or preallocated vmdk images to vCenter
datastores for volume creation. Therefore, the vCenter certificate is
not verified during image copy.

This patch sets appropriate parameters in the oslo.vmware API (for
copying images) call to enable vCenter certificate verification.

Closes-bug: #1493331
Change-Id: I04f6a6def9867a573258b0d37693b1824e415838

9 years agoMerge "Fix volume lookups in SolidFire template caching"
Jenkins [Tue, 15 Sep 2015 03:20:10 +0000 (03:20 +0000)]
Merge "Fix volume lookups in SolidFire template caching"

9 years agoFix NetApp clone from glance failure
Tom Barron [Thu, 10 Sep 2015 23:53:29 +0000 (19:53 -0400)]
Fix NetApp clone from glance failure

When glance and cinder are backed by the same NetApp DOT flexvol
container, exposed as an NFS share, a direct clone is attempted
of the backing files rather than a copy.  With the advent of
kilo 2015.1.1, this clone operation fails with the message:
"Image cloning unsuccessful ... need more than 2 values to unpack."

The issue here is that the clone path code is calling the parent
nfs class _is_share_eligible() method to see if there is enough
space on the destination flexvol and this method calls _get_capacity_info()
expecting a three-tuple to be returned.  However, commit
e52f304313efc695f7dd89c222041bffd53c131a deliberately changed the return
values of _get_capacity_info() within the NetApp drivers to return
a 2-tuple, based on API calls to obtain capacity information from
the NetApp storage arrays. That commit missed that this method
would also be invoked by the parent nfs class _is_share_eligible()
method, which expects a different signature.

The fix in this commit is to replace the call to the parent
_is_share_eligible() method with a more appropriate NetApp class
specific _share_has_space_for_clone() method.  This new method
uses the NetApp version of _get_capacity_info to get space information
from the arrays via NetApp apis and expects a 2-tuple to be returned
from this method.

Change-Id: Ib0c69e5ea7b32d17930fe0bdcdb9357fd4e4a244
Closes-bug: 1490845

9 years agoMerge "Fix usage of novaclient"
Jenkins [Tue, 15 Sep 2015 01:52:53 +0000 (01:52 +0000)]
Merge "Fix usage of novaclient"

9 years agoMerge "Remove driver.set_execute()"
Jenkins [Tue, 15 Sep 2015 01:50:39 +0000 (01:50 +0000)]
Merge "Remove driver.set_execute()"

9 years agoMerge "Storwize: Fix format string"
Jenkins [Mon, 14 Sep 2015 23:37:11 +0000 (23:37 +0000)]
Merge "Storwize: Fix format string"

9 years agoMerge "Fix order of arguments in assertEqual"
Jenkins [Mon, 14 Sep 2015 22:25:42 +0000 (22:25 +0000)]
Merge "Fix order of arguments in assertEqual"

9 years agoStorwize: Fix format string
Eric Harney [Mon, 14 Sep 2015 17:12:15 +0000 (13:12 -0400)]
Storwize: Fix format string

String accidentally used %{count}s instead of %(count)s.

Change-Id: Ibe54927f4847f947f3a3053150ee3593e04595ee

9 years agoFix usage of novaclient
Ivan Kolodyazhny [Fri, 11 Sep 2015 11:23:02 +0000 (14:23 +0300)]
Fix usage of novaclient

We should use 'client interface' for initialization of novaclient
instead of direct import of some specific client.

Change-Id: I51254e20151fe1d6771897e64a8d0bdf2d674d03
Closes-Bug: #1493576

9 years agoMerge "Check for empty attributes on SF volume"
Jenkins [Mon, 14 Sep 2015 16:25:55 +0000 (16:25 +0000)]
Merge "Check for empty attributes on SF volume"

9 years agoCheck for empty attributes on SF volume
John Griffith [Sun, 13 Sep 2015 14:52:53 +0000 (08:52 -0600)]
Check for empty attributes on SF volume

This should not happen, but; we should be more strict
about our dict reading/checking and always make sure
the key item actually comes back and exists.

In the case of volume['attributes'] we were always
assuming this to be present which should be "ok", but
it's better to verify if rather than assuming, so this
patch adds a simple verification step before trying to
fetch on volume['attributes'].

Change-Id: I37a134a735aaf043aed1230d57fe458bb3a60240
Closes-Bug: #1495247

9 years agoMerge "Add consistency group tests to test_volume_rpcapi"
Jenkins [Mon, 14 Sep 2015 07:14:26 +0000 (07:14 +0000)]
Merge "Add consistency group tests to test_volume_rpcapi"

9 years agoMerge "Remove empty rules from policies for API access"
Jenkins [Mon, 14 Sep 2015 06:56:15 +0000 (06:56 +0000)]
Merge "Remove empty rules from policies for API access"

9 years agoMerge "Huawei: fix multi REST-URLs bug"
Jenkins [Mon, 14 Sep 2015 06:51:55 +0000 (06:51 +0000)]
Merge "Huawei: fix multi REST-URLs bug"