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

8 years agoMerge "Fix ChunkedBackupDriver _create_container"
Jenkins [Fri, 15 Jan 2016 08:24:26 +0000 (08:24 +0000)]
Merge "Fix ChunkedBackupDriver _create_container"

8 years agoMerge "LeftHand: Implement v2 replication (managed)"
Jenkins [Fri, 15 Jan 2016 08:22:51 +0000 (08:22 +0000)]
Merge "LeftHand: Implement v2 replication (managed)"

8 years agoBase iSCSI initiator validation
Ivan Kolodyazhny [Thu, 14 Jan 2016 17:04:10 +0000 (19:04 +0200)]
Base iSCSI initiator validation

Validate that iSCSI initiator is string

Change-Id: I2309c70e1d937b1897a0e4f85a9255a9abe15169
Closes-Bug: #1534199

8 years agoFix ChunkedBackupDriver _create_container
Gorka Eguileor [Thu, 14 Jan 2016 14:35:15 +0000 (15:35 +0100)]
Fix ChunkedBackupDriver _create_container

Current _create_container method in ChunkedBackupDriver is not behaving
as expected.

According to update_container_name docstring the method should return
None if the container name that comes in to the driver is to be used,
but code was using backup_default_container instead.

Also, if None is returned by update_container_name the logging will
report that it will be using None instead of the name that it will be
really using.

If update_container_name returns the same value we already have in the
DB, driver will unnecessarily update the DB.

This patch fixes all this.

Change-Id: I2aeac37f5533b6bf0c10dd6bfe45224a25f39ea6
Closes-Bug: #1534182

8 years agoMerge "Enable trim/discard in SolidFire's driver"
Jenkins [Thu, 14 Jan 2016 06:24:21 +0000 (06:24 +0000)]
Merge "Enable trim/discard in SolidFire's driver"

8 years agoMerge "Allow host and instance_uuid at attach"
Jenkins [Thu, 14 Jan 2016 05:45:09 +0000 (05:45 +0000)]
Merge "Allow host and instance_uuid at attach"

8 years agoMerge "Handling Invalid argument iflag=direct in dd"
Jenkins [Wed, 13 Jan 2016 22:11:51 +0000 (22:11 +0000)]
Merge "Handling Invalid argument iflag=direct in dd"

8 years agoMerge "Dell SC: Adding logging to httpclient"
Jenkins [Wed, 13 Jan 2016 20:32:13 +0000 (20:32 +0000)]
Merge "Dell SC: Adding logging to httpclient"

8 years agoHuawei: Add manage/unmanage volume support
Wilson Liu [Fri, 30 Oct 2015 04:43:43 +0000 (12:43 +0800)]
Huawei: Add manage/unmanage volume support

Add manage/unmanage volume support for Huawei
drivers. Also implement the required
manage_existing_get_size function.

DocImpact
Implements: blueprint huawei-support-manage-volume
Change-Id: I964d49b9979b710bca445c2d209099dcea64d3da

8 years agoMerge "Report discard support for Dell SC connections"
Jenkins [Wed, 13 Jan 2016 02:35:28 +0000 (02:35 +0000)]
Merge "Report discard support for Dell SC connections"

8 years agoDell SC: Adding logging to httpclient
Tom Swanson [Tue, 12 Jan 2016 19:28:45 +0000 (13:28 -0600)]
Dell SC: Adding logging to httpclient

Added url and payload logging to REST calls in the
HttpClient class of the Dell Storage Center Cinder
driver.

Change-Id: Iedf915a8678698721e05a938712339e7715b333e

8 years agoLeftHand: Implement v2 replication (managed)
Alex O'Rourke [Mon, 23 Nov 2015 18:43:13 +0000 (10:43 -0800)]
LeftHand: Implement v2 replication (managed)

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

At this time, only periodic mode is supported with LeftHand arrays.

extra_spec value 'replication:sync_period' will specify the sync period
for the volume type. If it is not provided, it will be defaulted to 1800
seconds, or 30 minutes. 'replication:retention_count' determines how
many snapshots will be kept on the primary system. The maximum is 50,
and if the value is not specified, it defaults to 5.
'replication:remote_retention_count' determines how many snapshots will
be kept on the secondary system. The maximum is 50, and if the value is
not specified, it defaults to 5.

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

[lefthand]
hpelefthand_api_url = https://10.10.10.10:8081/lhos
hpelefthand_username = user
hpelefthand_password = pass
hpelefthand_clustername = mgm-cluster-name-1
volume_backend_name = lefthand
volume_driver = cinder.volume.drivers.hpe.hpe_lefthand_iscsi.\
                HPELeftHandISCSIDriver

[lefthandrep]
hpelefthand_api_url = https://11.11.11.11:8081/lhos
hpelefthand_username = user
hpelefthand_password = pass
hpelefthand_clustername = mgm-cluster-name-2
volume_backend_name = lefthandrep
volume_driver = cinder.volume.drivers.hpe.hpe_lefthand_iscsi.\
                HPELeftHandISCSIDriver
replication_device = managed_backend_name:alex-devstack@lefthand#lefthand,
                     target_device_id:lh-id,
                     hpelefthand_api_url:https://10.10.10.10:8081/lhos,
                     hpelefthand_username:user,
                     hpelefthand_password:pass,
                     hpelefthand_clustername:mgm-cluster-name-1

Change-Id: I97959e78b71042642a9f36fc2cd8a4ad3c73f135
Implements: blueprint hp-lefthand-v2-replication
DocImpact

8 years agoEnable trim/discard in SolidFire's driver
Chris Morrell [Thu, 7 Jan 2016 23:06:22 +0000 (23:06 +0000)]
Enable trim/discard in SolidFire's driver

Pretty straight forward change to set a flag in the connection info
returned from initialize_connection. This change will work pending
upcoming Nova code reviews, as trim/discard support has been supported
by SolidFire since its inception.

Followed the Cinder Liberty spec titled
'cinder-backend-report-discard' for this change.

Change-Id: I667bb27cf4be7cfe7d403c9603c40bf20db9491e

8 years agoMerge "Re-add Nexenta drivers"
Jenkins [Tue, 12 Jan 2016 18:53:44 +0000 (18:53 +0000)]
Merge "Re-add Nexenta drivers"

8 years agoMerge "Execute mount.nfs check as root"
Jenkins [Tue, 12 Jan 2016 15:35:12 +0000 (15:35 +0000)]
Merge "Execute mount.nfs check as root"

8 years agoRe-add Nexenta drivers
Mikhail Khodos [Wed, 9 Dec 2015 17:19:16 +0000 (09:19 -0800)]
Re-add Nexenta drivers

Drivers were removed due to lack of CI.

Refactored iSCSI to use single target/tg with multiple zvols.
Migrated unit tests to use mock.
Added releasenotes.

DocImpact
Implements: blueprint nexentastor-4-cinder-drivers
Change-Id: I2ff4c79573322a9c0cd473a9d413e1fcdbe55ee0

8 years agoMerge "3PAR: Adding volume checks to manage snapshot API"
Jenkins [Tue, 12 Jan 2016 08:41:43 +0000 (08:41 +0000)]
Merge "3PAR: Adding volume checks to manage snapshot API"

8 years agoMerge "Add ConsistencyGroupStatus enum field"
Jenkins [Tue, 12 Jan 2016 08:37:24 +0000 (08:37 +0000)]
Merge "Add ConsistencyGroupStatus enum field"

8 years agoMerge "Dell SC: Implements Replication V2"
Jenkins [Mon, 11 Jan 2016 21:49:42 +0000 (21:49 +0000)]
Merge "Dell SC: Implements Replication V2"

8 years agoHandling Invalid argument iflag=direct in dd
Sheel Rana [Mon, 11 Jan 2016 20:06:46 +0000 (01:36 +0530)]
Handling Invalid argument iflag=direct in dd

During volume/snapshot create/delete operations,
dd command is used to clear contents of disk.

Before invoking dd, it is checked if iflag=direct
supports dd or not by executing dd command with
iflag=direct and if=/dev/zero combination.
But this always results in invalid argument
error.

Handling for this argument is done to eliminate
unnecessary call to dd command when it is used
with iflag=direct and if=/dev/zero combination
to check if this argument supports dd or not.

Closes-Bug: #1270362

Change-Id: Ic6dd029ca1a339076e491c38ef3c69315497f189

8 years agoExecute mount.nfs check as root
Tom Patzig [Mon, 11 Jan 2016 19:55:01 +0000 (20:55 +0100)]
Execute mount.nfs check as root

Currently the existence of 'mount.nfs' is checked with a
non-root user, in this case cinder. This results, for example on SUSE,
in the error:

      NfsException: mount.nfs is not installed

Because mount.nfs is located under /sbin, unprivileged users do not
have /sbin in their PATH to search for executables.
This change switches the parameter run_as_root to true, to find
the binary in privileged directories, as well.

Change-Id: Id1dcc9a7653f1317532da2eb83aa1ecbb5cf5ec8
Closes-Bug: #1510150

8 years agoReport discard support for Dell SC connections
Sean McGinnis [Fri, 8 Jan 2016 14:43:35 +0000 (08:43 -0600)]
Report discard support for Dell SC connections

Add reporting of discard in the properties returned from
initialize_connection. Dell SC arrays support trim/discard
with no special configuration needed, so this can always
be set to true.

Change-Id: Ib0136369e230b5219b2b3994d17b6b31a9aba69f

8 years agoAdd ConsistencyGroupStatus enum field
Slade Baumann [Mon, 28 Dec 2015 16:44:34 +0000 (10:44 -0600)]
Add ConsistencyGroupStatus enum field

This change adds a new enum and field, ConsistencyGroupStatus and
ConsistencyGroupStatusField, that will hold the constants for the
'status' field of the ConsistencyGroup object. This enum and field
are based off the base oslo.versionedobjects enum and field. This
also changes over the ConsistencyGroup object to use the new field
(and bumps the version so newer versions know to enforce
valid values). Finally, all uses of strings for comparison and
assignment to this field are changed over to use the constants
defined within the enum.

Change-Id: Icee2727f0a550541876c63b6e7340acf3de553c8
Implements:  bp cinder-object-fields

8 years ago3PAR: Adding volume checks to manage snapshot API
Anthony Lee [Tue, 22 Dec 2015 21:57:37 +0000 (13:57 -0800)]
3PAR: Adding volume checks to manage snapshot API

Updated the checks in the HPE 3PAR manage snapshot API to use
the volume object for comparison. Also added new checks to
prevent un/managing of snapshots from/to volumes that have a
status of 'failed-over' for replication status.

This is a follow-up patch for:
https://review.openstack.org/#/c/253760/

Implements: blueprint 3par-manage-unmanage-snapshot
Change-Id: Ie187e67d9eec2121d6ccad5667c6d9fc73f98ce3

8 years agoMerge "Wrong usage of "an" in the mesages:"
Jenkins [Mon, 11 Jan 2016 14:39:13 +0000 (14:39 +0000)]
Merge "Wrong usage of "an" in the mesages:"

8 years agoAllow host and instance_uuid at attach
Walter A. Boring IV [Mon, 11 Jan 2016 11:43:09 +0000 (03:43 -0800)]
Allow host and instance_uuid at attach

This patch removes the restriction on passing both
host name and instance_uuid during os-attach call.

Change-Id: I2a66920a76d3abfd6da384d2dd963f054ce61c03
Partial-Bug: #1471278

8 years agoMerge "Removes the Violin 6000 FC and iSCSI drivers"
Jenkins [Sun, 10 Jan 2016 00:20:00 +0000 (00:20 +0000)]
Merge "Removes the Violin 6000 FC and iSCSI drivers"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sat, 9 Jan 2016 06:45:19 +0000 (06:45 +0000)]
Imported Translations from Zanata

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

Change-Id: I24be2764ad32a58fe4d1097a7a6d5976b4f7dfda

8 years agoMerge "Fix tox -e fast8"
Jenkins [Sat, 9 Jan 2016 00:43:12 +0000 (00:43 +0000)]
Merge "Fix tox -e fast8"

8 years agoMerge "Updated from global requirements"
Jenkins [Fri, 8 Jan 2016 21:53:25 +0000 (21:53 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Replace deprecated library function os.popen() with subprocess"
Jenkins [Fri, 8 Jan 2016 20:14:07 +0000 (20:14 +0000)]
Merge "Replace deprecated library function os.popen() with subprocess"

8 years agoFix tox -e fast8
Eric Harney [Tue, 5 Jan 2016 16:14:45 +0000 (11:14 -0500)]
Fix tox -e fast8

This currently doesn't report failures.

Also restrict files tested to HEAD~1..HEAD
instead of HEAD~2..HEAD.

Change-Id: I4983db5594fc2746eb28ec87a74d5d0ba27c9aaf

8 years agoMerge "Remove duplicate keys from dictionary"
Jenkins [Fri, 8 Jan 2016 14:26:03 +0000 (14:26 +0000)]
Merge "Remove duplicate keys from dictionary"

8 years agoMerge "Remove API races from delete methods"
Jenkins [Fri, 8 Jan 2016 08:18:43 +0000 (08:18 +0000)]
Merge "Remove API races from delete methods"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 8 Jan 2016 06:50:03 +0000 (06:50 +0000)]
Updated from global requirements

Change-Id: I32eed7e02a645b3bbce43f4c864d645e413bd2dd

8 years agoRemoves the Violin 6000 FC and iSCSI drivers
Vasanthi Thirumalai [Thu, 7 Jan 2016 18:09:05 +0000 (10:09 -0800)]
Removes the Violin 6000 FC and iSCSI drivers

The 6000 series of arrays are no longer supported. They are now replaced
by the more recent 7000 series of arrays. Therefore, the 6000 drivers
are removed from here to free up the much needed CI resources.

DocImpact
Implements: blueprint vmem-remove-6000-drivers
Change-Id: I4de63edd6dbc10d2c0c2bfd935d7bc4430075105

8 years agoMerge "Enable consisgroups in SolidFire driver"
Jenkins [Fri, 8 Jan 2016 00:24:05 +0000 (00:24 +0000)]
Merge "Enable consisgroups in SolidFire driver"

8 years agoMerge "Fix delete_snapshot error case in Pure driver"
Jenkins [Thu, 7 Jan 2016 22:41:59 +0000 (22:41 +0000)]
Merge "Fix delete_snapshot error case in Pure driver"

8 years agoDell SC: Implements Replication V2
Tom Swanson [Thu, 12 Nov 2015 21:09:55 +0000 (15:09 -0600)]
Dell SC: Implements Replication V2

This patch implements cinder Replication version 2 in the
Dell Storage Center Cinder driver.

Adds the check_result function to standardize the logging of
Dell SC Rest API errors.

Updated all todos to TODOs.

Updated all exceptions to standard formatting.  (data=msg,
reason=msg, etc.)

Added support for replicating the active replay. This is
via extra spec replication:activereplay. Replication only
replicates the most current replay. Replicating the active
replay means that the destination will be as current as
possible.

Added support for replay profiles. This is via the extra
spec storagetype:replayprofiles. Currently replication profiles
are specified by the user preferences. These can now be set
by extra spec which means by volume type.

Added release note.

Change-Id: I6e4fee07deffb9e2f86c5c514a0bcf85b37d57a1
Implements: blueprint dell-sc-replication-v2

8 years agoMerge "Wrong usage of "an" in the mesages: an service"
Jenkins [Thu, 7 Jan 2016 10:59:13 +0000 (10:59 +0000)]
Merge "Wrong usage of "an" in the mesages: an service"

8 years agoEnable consisgroups in SolidFire driver
Chris Morrell [Fri, 18 Dec 2015 21:52:47 +0000 (21:52 +0000)]
Enable consisgroups in SolidFire driver

This patch enables Consistency Group support in the SolidFire driver.
SolidFire group snapshots are what is used to provide consistent
snapshots on the backend.

A variety of helpers were used to wrap the API requests, meanwhile
other helpers were utilized to jump through the necessary hoops to
adopt the SolidFire API/group snapshots for use in consistency groups.
Because the SolidFire array does not create logical groupings of
volumes as consistency groups, there are a lot of no-ops used to
satisfy the necessary Cinder functions as specified in driver.py.
In-line comments attempt to clarify this. In short, a lot of searching
is needed to create consistency groups on the fly per request.

Change-Id: I82a8b2b6f2db4fca0c1cac892e323eae59c6b98c

8 years agoMerge "Constant defined for sqlAlchemy VARCHAR & INTEGER"
Jenkins [Wed, 6 Jan 2016 21:30:40 +0000 (21:30 +0000)]
Merge "Constant defined for sqlAlchemy VARCHAR & INTEGER"

8 years agoMerge "Change minimum 3PAR API version for replication"
Jenkins [Wed, 6 Jan 2016 21:04:43 +0000 (21:04 +0000)]
Merge "Change minimum 3PAR API version for replication"

8 years agoMerge "Optimize 3PAR array ID retrieval"
Jenkins [Wed, 6 Jan 2016 21:03:23 +0000 (21:03 +0000)]
Merge "Optimize 3PAR array ID retrieval"

8 years agoMerge "Add metadata aliases to Volume object"
Jenkins [Wed, 6 Jan 2016 20:25:43 +0000 (20:25 +0000)]
Merge "Add metadata aliases to Volume object"

8 years agoMerge "Fix grammatical mistake in defining articles."
Jenkins [Wed, 6 Jan 2016 18:20:12 +0000 (18:20 +0000)]
Merge "Fix grammatical mistake in defining articles."

8 years agoReplace deprecated library function os.popen() with subprocess
Harshada Mangesh Kakad [Thu, 31 Dec 2015 09:55:48 +0000 (01:55 -0800)]
Replace deprecated library function os.popen() with subprocess

os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I4d0044c110c32f87ac0316a7e665e2bb9ea88813
Partial-Bug: #1529836

8 years agoMerge "Scality SOFS: don't always read /proc/mounts twice"
Jenkins [Wed, 6 Jan 2016 16:24:21 +0000 (16:24 +0000)]
Merge "Scality SOFS: don't always read /proc/mounts twice"

8 years agoMerge "Don’t log warnings for image cache when disabled"
Jenkins [Wed, 6 Jan 2016 16:10:08 +0000 (16:10 +0000)]
Merge "Don’t log warnings for image cache when disabled"

8 years agoConstant defined for sqlAlchemy VARCHAR & INTEGER
Sheel Rana [Wed, 6 Jan 2016 09:17:19 +0000 (14:47 +0530)]
Constant defined for sqlAlchemy VARCHAR & INTEGER

sqlalchemy.types.VARCHAR and sqlalchemy.types.INTEGER are defined
and used as VARCHAR_TYPE and INTEGER_TYPE respectively in
cinder/tests/unit/test_migrations.py.

Change-Id: I3ed83f270843e93d3d1f730d6eaf2320e8269743
Closes-Bug: #1528989

8 years agoMerge "Remove name_id when creating volume with cache enabled"
Jenkins [Wed, 6 Jan 2016 04:11:24 +0000 (04:11 +0000)]
Merge "Remove name_id when creating volume with cache enabled"

8 years agoMerge "Allow replicated volumes to be recoverable"
Jenkins [Wed, 6 Jan 2016 01:31:23 +0000 (01:31 +0000)]
Merge "Allow replicated volumes to be recoverable"

8 years agoMerge "Re-enabled hacking checks for H105"
Jenkins [Tue, 5 Jan 2016 21:47:21 +0000 (21:47 +0000)]
Merge "Re-enabled hacking checks for H105"

8 years agoChange minimum 3PAR API version for replication
Alex O'Rourke [Mon, 4 Jan 2016 21:03:52 +0000 (13:03 -0800)]
Change minimum 3PAR API version for replication

Currently, the primary and all secondary 3PAR arrays must have an API
version of 1.4.2 or higher and all be on the same version. This is
changed to require version 1.5.0 or higher and does not force all
arrays to be on the same version.

Change-Id: Ie6cc19f3bc4939e1ad15b64140a21bab1bc27fc7

8 years agoOptimize 3PAR array ID retrieval
Alex O'Rourke [Mon, 4 Jan 2016 17:06:10 +0000 (09:06 -0800)]
Optimize 3PAR array ID retrieval

Currently, we are making a call to the 3PAR array every time the
common driver is initialized, which is inefficient considering the
call is already made in get_volume_stats. Instead of making the call
every time, we can pass in the driver stats to common's do_setup and
use the array ID from there.

If the stats are not yet available, we will ask the array directly for
the ID.

Change-Id: Iff065cd9debfc899b1d88475c63c7b2cb1e5e1b6

8 years agoAdd metadata aliases to Volume object
Michał Dulko [Thu, 19 Nov 2015 18:36:27 +0000 (19:36 +0100)]
Add metadata aliases to Volume object

When writing Volume object we've renamed some fields from SQLAlchemy
model. This included volume_metadata (renamed to metadata) and
volume_admin_metadata (renamed to admin_metadata) and
volume_glance_metadata (recently added as glance_metadata). Some code
were relying on old names. As right now we're in the transitional phase
it's hard to tell if driver method will get versioned object or old
SQLAlchemy object.

To mitigate that and mimic old SQLAlchemy object behavior on versioned
object we should add properties to serve as aliases for older names.

This commit also fixes the tests for EMC VNX that were blocking the
patch. Tests were setting volume_metadata property on volume object,
which actually had no effect without this patch.

Another thing done is moving overriding __contains__ from
CinderObjectDictCompat to CinderObject class to solve MRO issue because
both of these classes were defining __contains__ method.

Change-Id: I79e24c5ad20f17bb6b21b2d47f955afde47d9794
Closes-Bug: 1529877
Related-Bug: 1516903

8 years agoMerge "Add Fujitsu ETERNUS DX Volume Driver (again)"
Jenkins [Tue, 5 Jan 2016 13:57:02 +0000 (13:57 +0000)]
Merge "Add Fujitsu ETERNUS DX Volume Driver (again)"

8 years agoRe-enabled hacking checks for H105
David Sariel [Tue, 5 Jan 2016 08:37:42 +0000 (10:37 +0200)]
Re-enabled hacking checks for H105

Following the upgrade to hacking version 0.10.0 the H105 issues were
ignored. There was a note left in tox.ini to clean up the H105 issues
and to re-enable the check.

Updated tox.ini to re-enable the check of H105 and fixed corresponding
pep8 issues. This way Cinder aligns rows with Nova, Neutron, Glance etc
that have H105 enabled.

Closes-Bug: 1531104
Change-Id: I2da70cbeb838f16ec8479284dda9d7c62566dace

8 years agoMerge "Updated "deleted" column of volume_type_access"
Jenkins [Tue, 5 Jan 2016 08:18:46 +0000 (08:18 +0000)]
Merge "Updated "deleted" column of volume_type_access"

8 years agoDon’t log warnings for image cache when disabled
Patrick East [Mon, 4 Jan 2016 20:02:50 +0000 (12:02 -0800)]
Don’t log warnings for image cache when disabled

Right now we do a check for the internal tenant and log a warning before
we check to see if the cache is even turned on for that backend. We
should be only checking for the internal tenant if the image cache has
been configured for the backend.

In addition we shouldn’t log a warning for this since there is already
a warning for the internal context when we try and create it if it is
not configured correctly… to reduce the warning spam this change
switches the log message to an info level.

Change-Id: Iddc4648543d268a4b3b8d557c94c4d2876654e22
Closes-Bug: #1530964

8 years agoFix grammatical mistake in defining articles.
Alan [Mon, 4 Jan 2016 06:10:46 +0000 (01:10 -0500)]
Fix grammatical mistake in defining articles.

Wrong usage of word 'an' in defining articles, it should be
"a volume" instead of "an volume".

Change-Id: Iad4e7dcfbdcec568fc6a6f70b04d47a344f703e0

8 years agoScality SOFS: don't always read /proc/mounts twice
Jordan Pittier [Fri, 27 Nov 2015 17:32:21 +0000 (18:32 +0100)]
Scality SOFS: don't always read /proc/mounts twice

If the Scale Out FS is correcty mounted and found in /proc/mounts
then there's no need to read /proc/mounts again.

Change-Id: I8fa33cc80d2491d98986053f678cdf7983132bf9

8 years agoAdd BackupStatus enum field
Ryan Rossiter [Fri, 11 Dec 2015 20:28:02 +0000 (20:28 +0000)]
Add BackupStatus enum field

This change adds a new enum and field, BackupStatus and
BackupStatusField, that will hold the constants for the 'status' field
of the Backup object. This enum and field are based off the base
oslo.versionedobjects enum and field. This also changes over the Backup
object to use the new field (and bumps the version so newer versions
know to enforce valid values). Finally, all uses of strings for
comparison and assignment to this field are changed over to use the
constants defined within the enum.

Change-Id: I3df71e361f2bd37417133a4c1189e37466ed0b56
Implements: bp cinder-object-fields

8 years agoMerge "Updates consistency group for ibm svc driver"
Jenkins [Mon, 4 Jan 2016 04:12:38 +0000 (04:12 +0000)]
Merge "Updates consistency group for ibm svc driver"

8 years agoMerge "Updated from global requirements"
Jenkins [Sat, 2 Jan 2016 18:38:45 +0000 (18:38 +0000)]
Merge "Updated from global requirements"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 1 Jan 2016 20:27:26 +0000 (20:27 +0000)]
Updated from global requirements

Change-Id: I07e575fe6f4d26f23372846fce78a84055a7f7d3

8 years agoFix issue with flake8 check and full paths
Marc Koderer [Fri, 1 Jan 2016 19:03:45 +0000 (20:03 +0100)]
Fix issue with flake8 check and full paths

Currently hacking check_explicit_underscore_import is dependent
on a relative file path. A call of "flake8 ." works fine but
"flake8 $PWD" doesn't which shouldn't be any difference.

Change-Id: I7d40bbb771f96d28db38db69939de5e5993f3e9b
Closes-bug: #1530460

8 years agoMerge "Add backref relationships to ConsistencyGroup obj"
Jenkins [Thu, 31 Dec 2015 20:06:56 +0000 (20:06 +0000)]
Merge "Add backref relationships to ConsistencyGroup obj"

8 years agoMerge "Fix creating volume by snapshot for GPFS driver"
Jenkins [Thu, 31 Dec 2015 20:06:47 +0000 (20:06 +0000)]
Merge "Fix creating volume by snapshot for GPFS driver"

8 years agoMerge "Fix race conditions in migration 061"
Jenkins [Thu, 31 Dec 2015 20:06:38 +0000 (20:06 +0000)]
Merge "Fix race conditions in migration 061"

8 years agoMerge "Replace use of mox with mock in test_nfs"
Jenkins [Thu, 31 Dec 2015 16:50:11 +0000 (16:50 +0000)]
Merge "Replace use of mox with mock in test_nfs"

8 years agoFix race conditions in migration 061
Michał Dulko [Thu, 31 Dec 2015 13:34:30 +0000 (14:34 +0100)]
Fix race conditions in migration 061

Migration 061 is supposed to add new `data_timestamp` field and populate
it with value of `created_at` column. This was done by selecting all the
backups and doing updates one-by-one. As it wasn't done in transaction
solution was prone to race condition when a new backup is added while
running the migration. This means that this migration could cause
problems when running in live environment. With blueprint
online-schema-upgrades we want to make Cinder able to perform migrations
live.

A solution is to change this statement to a single DB query which
updates all the rows. This commit also removes unnecessary update to
snapshot_id added there. As this column is nullable it will by default
be NULL, so there's no need to set it manually to that value.

As before and after this commit the migration does logically the same,
this should be safe even if someone is doing inter-release deployments.

An alternative would be to simply add transaction to the update step in
the migration, but that would effectively lock the table for longer
period of time than atomic one-query update.

Closes-Bug: 1530358
Change-Id: Ib8733c096a3dbe2bad00beaf5734936ffcddda33

8 years agoReplace use of mox with mock in test_nfs
Yuriy Nesenenko [Tue, 29 Dec 2015 16:30:24 +0000 (18:30 +0200)]
Replace use of mox with mock in test_nfs

This patch replaces the remaining cases of mox with mock in test_nfs.py

Change-Id: I1867e4b4dd0d111776b5f5d60b1eff42309ff8ab
Partial-Implements: blueprint mox-to-mock-conversion
Closes-Bug: 1284160

8 years agoUpdated "deleted" column of volume_type_access
Sheel Rana [Thu, 24 Dec 2015 05:31:12 +0000 (11:01 +0530)]
Updated "deleted" column of volume_type_access

Below changes are done in this commit:

a. replaced update()
update() is replaced with oslo.db's soft_delete() used in
volume_type_access_remove() function of sqlalchemy.db.api to keep
value of "id" in "deleted" column during volume type access remove
operation.
This bug will be solved after this change.

b. updated db schema
db schema of volume_type_projects if updated.
As tinyint can store maximum 127, "deleted" column type is modified
tinyint->integer so that it can store more than 128 entries in it.

c. release notes
release notes added to prohibit addition or deletion of
volume_type_access to a project during update operation.

UpgradeImpact
Closes-Bug: #1518363

Change-Id: I638a202dfb2b4febf1d623683de22df3b6dc2615

8 years agoMerge "Small refactoring in test_admin_actions.py"
Jenkins [Wed, 30 Dec 2015 10:36:02 +0000 (10:36 +0000)]
Merge "Small refactoring in test_admin_actions.py"

8 years agoAdd Fujitsu ETERNUS DX Volume Driver (again)
Yusuke Hayashi [Tue, 6 Oct 2015 16:50:32 +0000 (01:50 +0900)]
Add Fujitsu ETERNUS DX Volume Driver (again)

This driver supports FUJITSU Storage ETERNUS DX.
The volume driver for ETERNUS DX dropped at Kilo,
because we could not prepare 3rd party CI until deadline (Kilo-3).
I upload it again for Mitaka release.

[Supported Protocol]
 - iSCSI

[Supported Feature]
 - 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

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

8 years agoMerge "Add volume driver for Tegile IntelliFlash array"
Jenkins [Tue, 29 Dec 2015 23:40:01 +0000 (23:40 +0000)]
Merge "Add volume driver for Tegile IntelliFlash array"

8 years agoMerge "Replace use of mox with mock in test_rbd"
Jenkins [Tue, 29 Dec 2015 21:11:38 +0000 (21:11 +0000)]
Merge "Replace use of mox with mock in test_rbd"

8 years agoMerge "Rebrand HP XP driver to now be HPE"
Jenkins [Tue, 29 Dec 2015 17:49:38 +0000 (17:49 +0000)]
Merge "Rebrand HP XP driver to now be HPE"

8 years agoMerge "Fix some warnings about 'unused variable' for XIO"
Jenkins [Tue, 29 Dec 2015 17:00:49 +0000 (17:00 +0000)]
Merge "Fix some warnings about 'unused variable' for XIO"

8 years agoAdd backref relationships to ConsistencyGroup obj
Michał Dulko [Thu, 22 Oct 2015 16:25:22 +0000 (18:25 +0200)]
Add backref relationships to ConsistencyGroup obj

ConsistencyGroup object was missing relationships that were defined on
the SQLAlchemy model as backrefs. This includes volumes and cgsnapshots
fields. This commit adds fields representing these relationships.

Change-Id: Ia74997ddfed1e472874b6892c2fcaa208b7a9a3c
Partial-Bug: 1509012

8 years agoMerge "Misspelling in message"
Jenkins [Tue, 29 Dec 2015 12:14:09 +0000 (12:14 +0000)]
Merge "Misspelling in message"

8 years agoMisspelling in message
april [Mon, 28 Dec 2015 13:55:39 +0000 (21:55 +0800)]
Misspelling in message

Misspelling in the message:
"commited immediately to the DB"
Should be "committed immediately to the DB"

Totally 4 occasions in Cinder base code

Change-Id: I3ae84e7680fe4da721047cd9a0e2d94ec426795f

8 years agoFix some warnings about 'unused variable' for XIO
Javeme [Tue, 29 Dec 2015 06:57:14 +0000 (14:57 +0800)]
Fix some warnings about 'unused variable' for XIO

Fix some warnings about 'unused variable' in xio driver and xio unit test.

Change-Id: Iab5d81800330e13f72705f8e689bb6b8f5126761

8 years agoUpdates consistency group for ibm svc driver
Xiaoqin Li [Sun, 20 Dec 2015 13:27:35 +0000 (05:27 -0800)]
Updates consistency group for ibm svc driver

The changes are:
1. ability to modify a consistecy group (update_consistencygroup)
2. ability to create a consistency group from a cgsnapshot or from
   another consistency group (create_consistencygroup_from_src)

DocImpact
Change-Id: Ibdf60ca50d6ee2d25ed51b8f0adbb64ff2a3d17c
Implements: bp ibm-storwize-cg-updates