]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoFixed wait for job completion in VMAX driver
Xing Yang [Sun, 7 Dec 2014 19:57:27 +0000 (14:57 -0500)]
Fixed wait for job completion in VMAX driver

The VMAX driver used non-thread-safe variables in the wait for job
completion routines, resulting in failures or timeouts during concurrent
operations. This patch fixed the problem.

Closes-Bug: #1393568
Change-Id: I444b961a6543886da35fb44127b1cf7c509ce8d8

9 years agoMerge "Fix HNAS driver confusing error message"
Jenkins [Wed, 17 Dec 2014 08:45:10 +0000 (08:45 +0000)]
Merge "Fix HNAS driver confusing error message"

9 years agoMerge "Added volume type description for volume type API"
Jenkins [Wed, 17 Dec 2014 07:59:57 +0000 (07:59 +0000)]
Merge "Added volume type description for volume type API"

9 years agoMerge "Correct default service_name for nova_catalog*_info config option"
Jenkins [Wed, 17 Dec 2014 07:08:59 +0000 (07:08 +0000)]
Merge "Correct default service_name for nova_catalog*_info config option"

9 years agoMerge "Fix 3PAR driver hang on SSH calls"
Jenkins [Wed, 17 Dec 2014 07:02:11 +0000 (07:02 +0000)]
Merge "Fix 3PAR driver hang on SSH calls"

9 years agoMerge "ZFSSA iSCSI driver should support extra specs"
Jenkins [Wed, 17 Dec 2014 04:43:33 +0000 (04:43 +0000)]
Merge "ZFSSA iSCSI driver should support extra specs"

9 years agoAdded volume type description for volume type API
Gloria Gu [Fri, 5 Dec 2014 01:59:10 +0000 (17:59 -0800)]
Added volume type description for volume type API

- Added the following APIs and tests for volume type
* update volume type
PUT http://<openstackhost>:8776/v2/${tenant_id}/types/${vol_type_id}
body
{
    "volume_type": {
      "description":"updated_desc"
    }
}
** user can update description.
** if update description, descripiton can be empty spaces.
** description can not be None
** only admin can access this API

*get default volume type
GET http://<openstackhost>:8776/v2/${tenant_id}/types/default
** if default_volume_type is specified in cinder.conf and is valid,
the default volume type will be returned.
** if default_volume_type is not specified in cinder.conf or is not
valid, it will return 404 with a message saying default volume type
can not be found.

- Updated the following APIs and tests for volume type
* create volume type should take description as an option.
* list volume types or get one volume type will include description for
volume type if the description is not None.

- Upgraded the database cinder on table volume_types to include
the description. database upgrade/downgrade scripts and tests
are added.

- update API should send a notification to the message bus when
updating succeeds or fails.

- as of 12/5/2014, had to rebase with master which has volume type
access change, I also fixed the tests in that area in order to get
the unit tests pass.

Implements: blueprint volume-type-description
Change-Id: I3100a8f74fa1c0cc8d9293bf30e17b6ac4c72edb

9 years agoMerge "Delete default volume size 100M in drivers"
Jenkins [Wed, 17 Dec 2014 02:13:23 +0000 (02:13 +0000)]
Merge "Delete default volume size 100M in drivers"

9 years agoMerge "Added UUID as primary key for Encryption model"
Jenkins [Wed, 17 Dec 2014 02:10:55 +0000 (02:10 +0000)]
Merge "Added UUID as primary key for Encryption model"

9 years agoMerge "Add the StorPool block storage driver."
Jenkins [Tue, 16 Dec 2014 22:45:40 +0000 (22:45 +0000)]
Merge "Add the StorPool block storage driver."

9 years agoMerge "Symantec NFS cinder driver"
Jenkins [Tue, 16 Dec 2014 22:40:24 +0000 (22:40 +0000)]
Merge "Symantec NFS cinder driver"

9 years agoMerge "Remove commented out code from cinder/test.py"
Jenkins [Tue, 16 Dec 2014 22:11:50 +0000 (22:11 +0000)]
Merge "Remove commented out code from cinder/test.py"

9 years agoMerge "Add Support for Dell Storage Center"
Jenkins [Tue, 16 Dec 2014 22:06:21 +0000 (22:06 +0000)]
Merge "Add Support for Dell Storage Center"

9 years agoAdded UUID as primary key for Encryption model
Ivan Kolodyazhny [Thu, 4 Sep 2014 10:24:12 +0000 (13:24 +0300)]
Added UUID as primary key for Encryption model

volume_type_id could not be used as PK because
soft deletes are using for Encryption

Change-Id: I5c4423da4442f2458417dc3492750412a74ebe09
Closes-Bug: #1316540

9 years agoMerge "Send the notifications to the Ceilometer for backup service"
Jenkins [Tue, 16 Dec 2014 21:03:12 +0000 (21:03 +0000)]
Merge "Send the notifications to the Ceilometer for backup service"

9 years agoMerge "DB migration tests"
Jenkins [Tue, 16 Dec 2014 19:55:54 +0000 (19:55 +0000)]
Merge "DB migration tests"

9 years agoMerge "Ensure that lun_id is an int for NetApp Drivers"
Jenkins [Tue, 16 Dec 2014 19:15:13 +0000 (19:15 +0000)]
Merge "Ensure that lun_id is an int for NetApp Drivers"

9 years agoMerge "First version of Cinder driver for Quobyte USP"
Jenkins [Tue, 16 Dec 2014 18:57:46 +0000 (18:57 +0000)]
Merge "First version of Cinder driver for Quobyte USP"

9 years agoMerge "RemoteFS: Move Nova snapshot code into RemoteFSSnapDriver"
Jenkins [Tue, 16 Dec 2014 18:52:08 +0000 (18:52 +0000)]
Merge "RemoteFS: Move Nova snapshot code into RemoteFSSnapDriver"

9 years agoFix 3PAR driver hang on SSH calls
Kurt Martin [Mon, 15 Dec 2014 23:14:42 +0000 (15:14 -0800)]
Fix 3PAR driver hang on SSH calls

In removing the 3PAR driver local file locks, part of the fix included
making a new SSH connection for each call in the hp3parclient as
oppose to leaving a connection open. Older hp3parclients(3.1.1 and
later) will result in the SSH calls hanging at driver initilization time.

This patch will now check against the correct minimum hp3parclient version
and remove the need for checking of the SSH args version since the minimum
hp3parclient is now greater than 3.1.1
Closes-Bug: #1402115

Change-Id: Ic162a1a469e85fa36501d4de245fe16738d3aefa

9 years agoDelete default volume size 100M in drivers
Anton Arefiev [Mon, 15 Dec 2014 10:33:38 +0000 (12:33 +0200)]
Delete default volume size 100M in drivers

There is check: if volume size == 0 we set default value to 100M,
it uses only in tests and it's little bit confusing.Use code only
for tests in drivers is bad practice.

Also the create volume flow already won't let user to create
a volume  with size 0. So it was decided to remove this check.

Change-Id: I620ae8fff4634c60a02329f22d1a0343b27aa955

9 years agoSend the notifications to the Ceilometer for backup service
Vincent Hou [Thu, 3 Jul 2014 03:32:11 +0000 (23:32 -0400)]
Send the notifications to the Ceilometer for backup service

* Add the notification send-out for create_backup, delete_backup
  and restore_backup.
* Add the progress notification to Swift backup service.

DocImpact

Change-Id: I9835073a39aa8b2ffbec12d84147cce027ff731b
implements-bp: backup-notification

9 years agoAdd the StorPool block storage driver.
Peter Pentchev [Wed, 3 Dec 2014 12:49:23 +0000 (14:49 +0200)]
Add the StorPool block storage driver.

StorPool is distributed data storage software running on standard x86
servers.  StorPool aggregates the performance and capacity of all drives
into a shared pool of storage distributed among the servers.  Within
this storage pool the user creates thin-provisioned volumes that are
exposed to the clients as block devices.  StorPool consists of two parts
wrapped in one package - a server and a client.  The StorPool server
allows a hypervisor to act as a storage node, while the StorPool client
allows a hypervisor node to access the storage pool and act as a compute
node.  In OpenStack terms the StorPool solution allows each hypervisor
node to be both a storage and a compute node simultaneously.

To make full use of StorPool's native network communication protocol,
the Nova compute nodes will need to use the StorPool libvirt volume
attachment driver, nova.virt.libvirt.storpool.LibvirtStorPoolVolumeDriver.

DocImpact
Change-Id: I64adbca724a52771b68e4838749f8896e6e56019
Implements: blueprint storpool-block-driver

9 years agoRemove commented out code from cinder/test.py
Jay S. Bryant [Mon, 15 Dec 2014 21:10:51 +0000 (15:10 -0600)]
Remove commented out code from cinder/test.py

There was a line of code left from previous development that
was left commented out.  This change removes the unnecessary
line of code.

Change-Id: I8a78e051e946f4cad7ec4b26d1a590a7e97cb613

9 years agoFix HNAS driver confusing error message
Erlon R. Cruz [Thu, 11 Dec 2014 10:46:31 +0000 (08:46 -0200)]
Fix HNAS driver confusing error message

The error message shown when the parser finds a parser error
says, 'file not found' which causes confusion on the user when
he/she needs to debug the real cause o the problem. This patch fix
this by testing first if the file exist and then throwing a
proper error message.

Closes-Bug: #1402775
Change-Id: I91c7a24d5da37735787e8fc0da544c8ba8204884

9 years agoAdd unit test for commit 22abe9081
Matt Riedemann [Mon, 15 Dec 2014 19:23:42 +0000 (11:23 -0800)]
Add unit test for commit 22abe9081

Commit 22abe9081 fixed a bug in commit d7bd65e8e which we could have
found the first time with a simple unit test.

This change adds the unit test to cover that new error handling block.

Related-Bug: #1398078

Change-Id: I86d2fd477f3ae5590c5f079a4c806d1f50eb96d0

9 years agoMerge "Convert mox to mock: tests/compute/test_nova.py"
Jenkins [Mon, 15 Dec 2014 18:18:30 +0000 (18:18 +0000)]
Merge "Convert mox to mock: tests/compute/test_nova.py"

9 years agoAdd Support for Dell Storage Center
Tom Swanson [Wed, 3 Dec 2014 19:24:39 +0000 (13:24 -0600)]
Add Support for Dell Storage Center

This driver implements cinder FC and iSCSI volume drivers.
The file dell_storagecenter_api.py is called to interface with the
Dell Storage Center backend via a REST interface.
Dell_storagecenter_common.py is the base class implementation with
dell_storagecenter_fc.py and dell_storagecenter_iscsi.py being providing
fc and iscsi specific support respectivly.

https://bugs.launchpad.net/cinder/+bug/1398951

Implements: blueprint dell-storage-center-block-storage-driver
Change-Id: Ic483e54b40349ede20e078c6406f5bab8d7d7cc2

9 years agoEnsure that lun_id is an int for NetApp Drivers
Rushil Chugh [Tue, 18 Nov 2014 19:37:17 +0000 (14:37 -0500)]
Ensure that lun_id is an int for NetApp Drivers

Various NetApp drivers were treating the lun_id as a string
rather than an int.  This was causing attempts to mount NetApp
volumes to Hyper-V nodes to fail as they were checking an integer
type against a unicode type which would fail.

This change casts result_lun to an integer after the value has
gone through the ssh injection attack check.  This way Hyper-V
is able to verify if the found LUN is the target LUN, enabling
mounting of NetApp volumes to Hyper-V.

This change also refactors initialize_connection into some helper
methods so as to enable simpler unit testing of the patchset.

Closes-bug: 1372808

Change-Id: I308b3b2dff315ec33451fb45a30ecd53d5d4c353

9 years agoSymantec NFS cinder driver
sarat inuguri [Sun, 10 Aug 2014 19:56:38 +0000 (12:56 -0700)]
Symantec NFS cinder driver

Changes to support Symantec Storage Foundation Clustered File
System High Availability via NFS Cinder driver.

cert results at:
https://bugs.launchpad.net/cinder/+bug/1402147

implements: blueprint symantec-nfs-cinder-driver
Change-Id: Ie4b4785b7c93246147c8d9e6a172621f454301ae

9 years agoDB migration tests
Ivan Kolodyazhny [Wed, 29 Oct 2014 13:52:54 +0000 (15:52 +0200)]
DB migration tests

Refactored migration tests to use OpportunisticTestCase, removed
unused code and ``test_migrations.conf`` file.

The main feature of this approach is to create a new database with
random name for each migration test.  This will avoid migration tests of
race conditions and reduce tests intersection. After this change, database
``openstack_citest`` will be used only for initial connection to the database.

``test_migrations.conf`` file not required anymore, because we create test
database for migration test, so we no longer need to keep database credentials.

Implements blueprint: db-migration-tests
Related-bug: #1266595
Change-Id: I4febd485ff53936b636947c86773a23724e24c65

9 years agoConvert mox to mock: tests/compute/test_nova.py
Bala Gopal Raj [Fri, 12 Dec 2014 09:30:43 +0000 (04:30 -0500)]
Convert mox to mock: tests/compute/test_nova.py

Replace mox testing library by mock in the file
cinder/tests/compute/test_nova.py

Implements: blueprint mox-to-mock-conversion
Change-Id: Ic819afb4391708a0afebe4fc2855c93e3cb3f4c4

9 years agoCorrect default service_name for nova_catalog*_info config option
Trung Trinh [Mon, 15 Dec 2014 06:23:34 +0000 (20:23 +1400)]
Correct default service_name for nova_catalog*_info config option

The default service_name in config option (nova_catalog_info and
nova_catalog_admin_info) was mistakenly put as 'nova'. Consequently,
it is impossible to invoke novaclient APIs from Cinder code without
changing the default value of those config options.

The correct service_name defined in Keystone's config file
"/etc/keystone/default_catalog.templates" is:
catalog.RegionOne.compute.name = Compute Service.

This change replaces 'nova' with 'Compute Service' for default value
of 'nova_catalog*_info' config options.

Change-Id: Idee3585a08efa1d6af1f4ee2b74e8cefb05cc54f
Closes-Bug: 1401800

9 years agoMerge "Fix use of invalid variable in tgt exists check"
Jenkins [Sun, 14 Dec 2014 05:25:00 +0000 (05:25 +0000)]
Merge "Fix use of invalid variable in tgt exists check"

9 years agoMerge "FibreChannel drivers for NetApp Data ONTAP storage controllers"
Jenkins [Sun, 14 Dec 2014 02:25:48 +0000 (02:25 +0000)]
Merge "FibreChannel drivers for NetApp Data ONTAP storage controllers"

9 years agoFibreChannel drivers for NetApp Data ONTAP storage controllers
Clinton Knight [Thu, 9 Oct 2014 14:56:25 +0000 (10:56 -0400)]
FibreChannel drivers for NetApp Data ONTAP storage controllers

This patch adds FibreChannel support to NetApp's Cinder drivers
for Data ONTAP (7-mode and Cluster-mode).  The drivers make full
use of Cinder's FibreChannel zone manager.

Implements blueprint add-fibre-channel-support-to-netapp-drivers
Change-Id: Ifbda275e4a60dda144a169ef00a4ea5e548dfa03

9 years agoFirst version of Cinder driver for Quobyte USP
Silvan Kaiser [Wed, 26 Nov 2014 16:29:01 +0000 (17:29 +0100)]
First version of Cinder driver for Quobyte USP

Supported Operations are:
- Create Volume
- Delete Volume
- Attach Volume
- Detach Volume
- Extend Volume
- Create Snapshot
- Delete Snapshot
- List Snapshots
- Create Volume from Snapshot
- Create Volume from Image
- Create Volume from Volume (Clone)
- Create Image from Volume

The driver uses a file-based interface to access the configured
Quobyte volume. Therefore, the driver is similar to the existing
drivers NFS and GlusterFS.

Due to the similarities, I reused the snapshot code from the GlusterFS
driver. Gluster, thanks for that! I've kept the "Red Hat" copyright in
the header to credit you properly.

All driver functions are covered by unit tests. Snapshot tests were
taken over from test_glusterfs.py. New tests are written using "Mock"
instead of "mox".

Certification tests: https://bugs.launchpad.net/cinder/+bug/1401471

Implements: blueprint quobyte-usp-driver
Change-Id: I7ca13e28b000d7a07c2baecd5454e50be4c9640b

9 years agoFix use of invalid variable in tgt exists check
John Griffith [Wed, 3 Dec 2014 17:44:49 +0000 (10:44 -0700)]
Fix use of invalid variable in tgt exists check

I added a check for tgt already exists here:
https://review.openstack.org/#/c/138173/

But, that was wrong, the err value is never going to be
set because of the exception.  This should have inspected
the exception object and checked against it.

So this patch makes it do what it was supposed to do.

Change-Id: I8c184bf1684c8592a36f749cdcb5493f6b65e52b

9 years agoRemove an unused variable in volume/manager.py
huangtianhua [Fri, 12 Dec 2014 02:49:49 +0000 (10:49 +0800)]
Remove an unused variable in volume/manager.py

The 'old_reservations' variable defined in a exception handling block in 'retype' method is never used, this change removes it.

Change-Id: Iaf39ea31bcbd31a90b621b6f33b6aa799f425744

9 years agoMerge "Report better capacity info for a limitless 3par cpg"
Jenkins [Thu, 11 Dec 2014 05:20:29 +0000 (05:20 +0000)]
Merge "Report better capacity info for a limitless 3par cpg"

9 years agoMerge "VMware: Fix datastore selection with single host"
Jenkins [Thu, 11 Dec 2014 05:19:58 +0000 (05:19 +0000)]
Merge "VMware: Fix datastore selection with single host"

9 years agoReport better capacity info for a limitless 3par cpg
Gloria Gu [Wed, 10 Dec 2014 01:56:09 +0000 (17:56 -0800)]
Report better capacity info for a limitless 3par cpg

This change has the following improvement:

1. Uses getCPGAvailableSpace from hp3parclient to report
free_capapcity for a limitless cpg.

2. Uses cpg's SDUsage.usedMiB + UsrUsage.usedMiB + free_capacity
to calculate the total_capacity for a limitless cpg. This is the
best we can do for a limitless cpg.

Closes-Bug: #1398651
Change-Id: I62f446786360c61288a788be29d1daa6e409c7b1

9 years agoVMware: Fix datastore selection with single host
Vipin Balachandran [Wed, 10 Dec 2014 07:11:08 +0000 (12:41 +0530)]
VMware: Fix datastore selection with single host

Currently, the select_datastore method is called with an empty list of
ESX hosts. This causes the method to retrieve all the hosts in vCenter
as candidates for selecting a datastore. The reference to a retrieved
host is stored in attribute 'obj'. Some of the future bug fixes will
need to invoke this method with reference to a single ESX host. Such
invocations will fail with attribute error: 'val instance has no
attribute 'obj''. This patch fixes the attribute error.

Closes-Bug: #1401052
Change-Id: Ib4f48d2ebfbfa3a9ce6a402300d41351548932ef

9 years agoMerge "Use pbr entry_points to setup the cinder scripts"
Jenkins [Wed, 10 Dec 2014 05:33:02 +0000 (05:33 +0000)]
Merge "Use pbr entry_points to setup the cinder scripts"

9 years agoMerge "Improve testing of cinder/utils.py"
Jenkins [Tue, 9 Dec 2014 21:31:37 +0000 (21:31 +0000)]
Merge "Improve testing of cinder/utils.py"

9 years agoMerge "Fix _get_disk_of_partition edgecase in utils"
Jenkins [Tue, 9 Dec 2014 21:31:00 +0000 (21:31 +0000)]
Merge "Fix _get_disk_of_partition edgecase in utils"

9 years agoAdd support for backup encryption metadata
Brianna Poulos [Fri, 29 Aug 2014 21:19:29 +0000 (17:19 -0400)]
Add support for backup encryption metadata

This modification allows the encryption key UUID field, which
has been added to the volume table, to remain valid when encrypted
volumes are backed up and then restored, which enables the restored
volume to be accessible and encrypted.  This is related to patch
https://review.openstack.org/#/c/39573/, except that it uses the
backup metadata support recently added in patch
https://review.openstack.org/#/c/51900/ rather than modifying the
backup api.

Change-Id: Ib91f8275271e6bd4f2d9e17499d16ec13bca2b84
Implements: blueprint backup-support-for-encrypted-volumes
DocImpact

9 years agoRemoteFS: Move Nova snapshot code into RemoteFSSnapDriver
Eric Harney [Mon, 8 Dec 2014 17:50:33 +0000 (12:50 -0500)]
RemoteFS: Move Nova snapshot code into RemoteFSSnapDriver

Implements bp: remotefs-snaps

Change-Id: I2e92322ff9c80de123dc281f790a7c2a89c4d62e

9 years agoImplementing the use of _L’x’/i18n markers
Mike Mason [Thu, 4 Dec 2014 09:17:57 +0000 (09:17 +0000)]
Implementing the use of _L’x’/i18n markers

Placing the _Lx markers back into the code. No other cleaner solution has
has been implemented. Patches will be submitted in a series of sub
directories and in a fashion that is manageable.
eighth commit of this kind
This is the last run through to pick up the ones that were missed

Change-Id: Ifd9d647175a840939bf01fa3bcecfa6384965e3b
Closes-Bug: #1384312

9 years agoMerge "Updated from global requirements"
Jenkins [Mon, 8 Dec 2014 23:46:14 +0000 (23:46 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Fixes intermittent NFS driver mount failure"
Jenkins [Mon, 8 Dec 2014 22:41:04 +0000 (22:41 +0000)]
Merge "Fixes intermittent NFS driver mount failure"

9 years agoMerge "Inherit RequestContext from oslo"
Jenkins [Mon, 8 Dec 2014 21:44:40 +0000 (21:44 +0000)]
Merge "Inherit RequestContext from oslo"

9 years agoMerge "NetApp fix vol migration unusability"
Jenkins [Mon, 8 Dec 2014 19:12:36 +0000 (19:12 +0000)]
Merge "NetApp fix vol migration unusability"

9 years agoMerge "Fix 3PAR driver attach error when host name missing"
Jenkins [Mon, 8 Dec 2014 17:46:59 +0000 (17:46 +0000)]
Merge "Fix 3PAR driver attach error when host name missing"

9 years agoFixes intermittent NFS driver mount failure
Tom Barron [Wed, 26 Nov 2014 21:01:14 +0000 (16:01 -0500)]
Fixes intermittent NFS driver mount failure

During cinder volume driver initialization, NFS drivers often
fail to mount the NFS share backing their volumes, complaining
that the share in question is 'busy or already mounted'.

This commit introduces a retry loop around the ensure_mounted()
call inside set_nas_security_options() so that if there is contention
between volume process and backup process mounting the same share
the driver will not be stopped from loading.

Change-Id: I672433c1c31f420e5dcdbe565db3bb29af3abe7b
Closes-bug: 1395823

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 8 Dec 2014 16:17:14 +0000 (16:17 +0000)]
Updated from global requirements

Change-Id: I305473aa6a64ea685a7e23aace3c91df983e8fb5

9 years agoUse pbr entry_points to setup the cinder scripts
Thang Pham [Fri, 20 Jun 2014 04:30:36 +0000 (00:30 -0400)]
Use pbr entry_points to setup the cinder scripts

The following patch changes how cinder scripts are
installed and unit tested. This patch moves all the
cinder scripts from bin into cinder/cmd and creates
entry_points for those scripts in setup.cfg. When
cinder is installed, these scripts will be installed
under /usr/local/bin by pbr.

DocImpact: 'host' config option for multiple-storage backends
in cinder.conf is renamed to 'backend_host' in order to avoid
a naming conflict with the 'host' to locate redis
Change-Id: If82cf0c58d765bf79dbf721ca95c10a468940cab
Implements: blueprint unit-test-cases-for-cinder-scripts

9 years agoMerge "Fix a clone volume problem in VMAX driver"
Jenkins [Mon, 8 Dec 2014 05:32:21 +0000 (05:32 +0000)]
Merge "Fix a clone volume problem in VMAX driver"

9 years agoZFSSA iSCSI driver should support extra specs
Juan Zuluaga [Thu, 13 Nov 2014 15:46:37 +0000 (10:46 -0500)]
ZFSSA iSCSI driver should support extra specs

Support for extra specs at volume creation time,
would allow more flexibility to create custom volumes.
The following scoped keys are supported:
-zfssa:volblocksize
-zfssa:sparse
-zfssa:compression
-zfssa:logbias

Closes-Bug: #1379403
DocImpact

Change-Id: I8768d07f19147dc2544bebc0dbf3392313838e8f

9 years agoMerge "Allow HostState to handle empty capabilities"
Jenkins [Sun, 7 Dec 2014 19:44:07 +0000 (19:44 +0000)]
Merge "Allow HostState to handle empty capabilities"

9 years agoMerge "Improve unit tests for cinder/volume/utils.py"
Jenkins [Sun, 7 Dec 2014 19:39:28 +0000 (19:39 +0000)]
Merge "Improve unit tests for cinder/volume/utils.py"

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 7 Dec 2014 17:16:17 +0000 (17:16 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Remove the cinder.conf.sample file"
Jenkins [Sun, 7 Dec 2014 16:31:29 +0000 (16:31 +0000)]
Merge "Remove the cinder.conf.sample file"

9 years agoMerge "Fix for typo in Purity Host create/delete methods in PureISCSIDriver"
Jenkins [Sun, 7 Dec 2014 15:41:40 +0000 (15:41 +0000)]
Merge "Fix for typo in Purity Host create/delete methods in PureISCSIDriver"

9 years agoMerge "VMware: Add missing storage profile requirement"
Jenkins [Sun, 7 Dec 2014 15:34:38 +0000 (15:34 +0000)]
Merge "VMware: Add missing storage profile requirement"

9 years agoRemove the cinder.conf.sample file
John Griffith [Fri, 5 Dec 2014 04:03:04 +0000 (21:03 -0700)]
Remove the cinder.conf.sample file

We removed the conf_uptodate checks however we didn't
remove the cinder.conf.sample file, but we should.

Now that we're not checking it, it's guaranteed that it will
most certainly be "wrong".  So, this patch removes it, we'll
update the README.conf.sample file if/when we have an auto
published version available.

Change-Id: I0a04f82a843ce795ec7518b58a3677ce3f2a314d

9 years agoFix for typo in Purity Host create/delete methods in PureISCSIDriver
Patrick East [Fri, 5 Dec 2014 23:25:21 +0000 (15:25 -0800)]
Fix for typo in Purity Host create/delete methods in PureISCSIDriver

When refactoring the string manipulation methods there was a typo
introduced in:

https://git.openstack.org/cgit/openstack/cinder/commit/?
id=1ebe1bddd0a02e9efaa05c8ec9d71a299b6877e1

That change modified the methods to create/delete hosts in purity. The
REST API url was incorrectly pointing to /host/<host_name>/volume
instead of /host/<host_name>

This commit fixes the url and adds in unit tests to prevent this type of
regression in the future.

Change-Id: Iba24fc0a36e01e1d163b398bf32c41fbb9103861
Closes-Bug: 1399820

9 years agoFix a clone volume problem in VMAX driver
Xing Yang [Fri, 5 Dec 2014 22:55:28 +0000 (17:55 -0500)]
Fix a clone volume problem in VMAX driver

If the source volume contains meta members of different sizes,
create cloned volume will fail with error "ERROR_FAMILY_NOT_SUPPORTED".
This patched fixed this problem.

Change-Id: I92e7e8b56e3a21644aa2bff3288c1bdc80d45cc6
Closes-Bug: #1391205

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 5 Dec 2014 23:59:27 +0000 (23:59 +0000)]
Updated from global requirements

Change-Id: I8f8b1d782549d72e1ff0e42ae36fc271f7eeea04

9 years agoFix 3PAR driver attach error when host name missing
Anthony Lee [Thu, 4 Dec 2014 23:46:53 +0000 (15:46 -0800)]
Fix 3PAR driver attach error when host name missing

In some cases an error was being thrown by the 3PAR driver
when the 'name' property returned from queryHost was
missing.  This change adds a check so that the driver
reacts properly when this occurs.  Also removed an unneeded
warning output that was still in the FC driver.

This patch is related to this merged bug fix:
https://review.openstack.org/#/c/138212/

Closes-Bug: 1398206
Change-Id: I6593dc68616f55496c42d625968adfc684f98032

9 years agoNetApp fix vol migration unusability
Navneet Singh [Sun, 21 Sep 2014 22:48:48 +0000 (04:18 +0530)]
NetApp fix vol migration unusability

This patch fixes the volume migration related issue
in which the volume became unusable after successfull inbound
migration due to volume id usage instead of name_id.

Closes-bug: #1370098

Change-Id: Iacb14ea07890859b5cf8a27c150aa5f6e8a98777

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 5 Dec 2014 18:30:12 +0000 (18:30 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 5 Dec 2014 16:43:55 +0000 (16:43 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Add ability to zfssa driver to create multiple initiator groups"
Jenkins [Fri, 5 Dec 2014 16:35:27 +0000 (16:35 +0000)]
Merge "Add ability to zfssa driver to create multiple initiator groups"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 5 Dec 2014 16:32:54 +0000 (16:32 +0000)]
Updated from global requirements

Change-Id: I9b0933979b0df44d8ccd46699ee58acdda2df14b

9 years agoMerge "Remove lio_initiator_iqns"
Jenkins [Fri, 5 Dec 2014 16:20:28 +0000 (16:20 +0000)]
Merge "Remove lio_initiator_iqns"

9 years agoMerge "Workflow documentation is now in infra-manual"
Jenkins [Fri, 5 Dec 2014 15:15:49 +0000 (15:15 +0000)]
Merge "Workflow documentation is now in infra-manual"

9 years agoAllow HostState to handle empty capabilities
Zhiteng Huang [Fri, 5 Dec 2014 10:01:53 +0000 (18:01 +0800)]
Allow HostState to handle empty capabilities

In some cases, where the capabilities reported from driver is
emtpy, scheduler would raise exception thus unable to correctly
handle scheduling request even when other backend candidates are
able to fulfill the request.  This change does some modifications
to HostState so that it is able to handle empty capabilities.

Change-Id: Icb6522852d427dea3fbd1ec4b4cc94a184d3669d
Fixes-bug: #1398875

9 years agoInherit RequestContext from oslo
Adrien Vergé [Wed, 26 Nov 2014 14:24:46 +0000 (15:24 +0100)]
Inherit RequestContext from oslo

In the long-term, OpenStack projects should use oslo.context as the base
class for their custom contexts. This enables the use of
application-agnostic tools, e.g. global logging configurations. See
http://specs.openstack.org/openstack/oslo-specs/specs/juno/app-agnostic-logging-parameters.html

This patch syncs the latest context module from oslo-incubator and use
it as the base class for Cinder RequestContext. The goal is to clean up
Cinder code, and to be ready for the first oslo.context release.

Change-Id: Iba9354b402de556ca6e55e7c17dd6f3f1624d72d
Related-bug: #1210261

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 5 Dec 2014 06:07:50 +0000 (06:07 +0000)]
Imported Translations from Transifex

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

Change-Id: I67452a3d8b63d83f0c72411e3e1397623be3f530

9 years agoWorkflow documentation is now in infra-manual
Jeremy Stanley [Fri, 5 Dec 2014 03:30:35 +0000 (03:30 +0000)]
Workflow documentation is now in infra-manual

Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: I1e0c546a72c75193e8c742c02dc189d178a0312c

9 years agoRemove the check_uptodate conf checks
John Griffith [Thu, 4 Dec 2014 20:38:59 +0000 (13:38 -0700)]
Remove the check_uptodate conf checks

We recently removed the checkupdate tests for sample.conf
here Ie4e25a8cd36782007a8934cc4573632f5215c2b1

To stop gating on this as it's just a big fat
pain when external libs change.

Instead, we'll start generating this in an external
job and publishing somewhere.

Funny thing though, we actually have a direct call in
run_tests.sh as well.

This patch removes the second call in run_tests.sh

Change-Id: Iaef411e254186fbba80c21903d6f94538a808d93

9 years agoMerge "Add cinder support for IBM FlashSystem."
Jenkins [Thu, 4 Dec 2014 20:58:43 +0000 (20:58 +0000)]
Merge "Add cinder support for IBM FlashSystem."

9 years agoMerge "Revert "Fix Brocade FC SAN lookup MITM vulnerability""
Jenkins [Thu, 4 Dec 2014 19:25:19 +0000 (19:25 +0000)]
Merge "Revert "Fix Brocade FC SAN lookup MITM vulnerability""

9 years agoImprove unit tests for cinder/volume/utils.py
git-harry [Thu, 4 Dec 2014 15:48:12 +0000 (15:48 +0000)]
Improve unit tests for cinder/volume/utils.py

This commit increases the unit test coverage of cinder/volume/utils.py.
It also replaces tests using mox or stubout.

Change-Id: Idb06b37c803d94bb33b0df9d19ced8b330def2ad

9 years agoMerge "Bring cinder up-to-date with new oslo libraries"
Jenkins [Thu, 4 Dec 2014 05:38:51 +0000 (05:38 +0000)]
Merge "Bring cinder up-to-date with new oslo libraries"

9 years agoRemove lio_initiator_iqns
Eric Harney [Thu, 9 Oct 2014 20:26:18 +0000 (16:26 -0400)]
Remove lio_initiator_iqns

This is a holdover from the initial LIO implementation
which did not manage ACLs sufficiently.  This is
unneeded now and handled by:
67dd248 LIO iSCSI initiator ACL auto-config

DocImpact: remove lio_initiator_iqns cfg opt

Closes-Bug: #1390383

Change-Id: I3b7fe4765c1c568a6a7713f86cadece52b130911

9 years agoBring cinder up-to-date with new oslo libraries
Jay S. Bryant [Wed, 3 Dec 2014 18:20:05 +0000 (12:20 -0600)]
Bring cinder up-to-date with new oslo libraries

New versions of the oslo libraries have been released and
this has broken Cinder in the gate.  The first issue is
causing all unit tests to fail with the message:

"NoSuchOptError: no such option: fake_rabbit"

This was due to commit bcb3b23b8f6e7d01e38fdc031982558711bb7586
removing that option from oslo/messaging/_drivers/impl_rabbit.py .
We were trying to set that option in cinder/tests/conf_fixture.py .
I have removed that code.

Second, the update has made etc/cinder.conf.sample go out of date
again.  I am merging the changes to bring it back up to date.

This change also disables execution of check_uptodate.sh execution
from the gate.

Change-Id: Ie4e25a8cd36782007a8934cc4573632f5215c2b1

9 years agoMerge "Use object.property instead of object.dump()['property']"
Jenkins [Wed, 3 Dec 2014 18:26:05 +0000 (18:26 +0000)]
Merge "Use object.property instead of object.dump()['property']"

9 years agoVMware: Add missing storage profile requirement
Vipin Balachandran [Thu, 27 Nov 2014 14:55:42 +0000 (20:25 +0530)]
VMware: Add missing storage profile requirement

If a storage profile is part of a volume type, it should be used as a
requirement for datastore selection-- only datastores which satisfy the
storage profile should be used for backing VM creation. Currently in
retype API, if storage profiles in old and new volume types are same,
it is not passed as a requirement. Hence, the backing VM corresponding
to the volume might end up in a datastore which doesn't satisfy the
storage profile. This patch fixes the problem.

Closes-Bug: #1398293
Change-Id: I49161e9fc5a8f2749ee6097fa5a136b78dfcf3ab

9 years agoMerge "Volume type access extension"
Jenkins [Wed, 3 Dec 2014 05:14:31 +0000 (05:14 +0000)]
Merge "Volume type access extension"

9 years agoUse object.property instead of object.dump()['property']
Andy Grover [Thu, 9 Oct 2014 23:08:13 +0000 (16:08 -0700)]
Use object.property instead of object.dump()['property']

Less verbose and requires less work for the library.

Change-Id: Ied2196b548c91324fdfce39ec4f8801e59da4f6c

9 years agoMerge "NetApp 7mode NFS driver doesn't honor netapp_vfiler option"
Jenkins [Wed, 3 Dec 2014 03:29:52 +0000 (03:29 +0000)]
Merge "NetApp 7mode NFS driver doesn't honor netapp_vfiler option"

9 years agoMerge "Fix 3PAR drivers attempt to locate existing host"
Jenkins [Wed, 3 Dec 2014 00:26:42 +0000 (00:26 +0000)]
Merge "Fix 3PAR drivers attempt to locate existing host"

9 years agoNetApp 7mode NFS driver doesn't honor netapp_vfiler option
Andrew Kerr [Mon, 1 Dec 2014 21:32:02 +0000 (16:32 -0500)]
NetApp 7mode NFS driver doesn't honor netapp_vfiler option

This patch fixes the NetApp 7mode NFS driver to register and use
the netapp_vfiler option if it is configured in cinder.conf.

DocImpact
Change-Id: I4db42d2521d7e6018f4f7ad0c4ab13441871675e
Closes-Bug: 1381716

9 years agoRevert "Fix Brocade FC SAN lookup MITM vulnerability"
Jay S. Bryant [Tue, 2 Dec 2014 20:35:06 +0000 (14:35 -0600)]
Revert "Fix Brocade FC SAN lookup MITM vulnerability"

This reverts commit ab4f57212683baec45d5b682bdd3952ff58249ed.

The change is being reverted as it broke the Brocade FC SAN lookup
functionality.  The change uses configuration options from
ssh_utils that are not initialized when the Brocade driver is
run causing an exception to be thrown complaining that
CONF.ssh_hosts_key_file is used before it is initialized.

The right solution is to change the Brocade driver to use ssh_utils to
make SSH connections.

Conflicts:

cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py

Change-Id: I7814c3da9c0e6fcf3143969e74304a48cafcb3d1
Closes-bug: 1398488

9 years agoAdd ability to zfssa driver to create multiple initiator groups
amoturi [Wed, 8 Oct 2014 04:32:28 +0000 (00:32 -0400)]
Add ability to zfssa driver to create multiple initiator groups

Currently the zfssa driver only support one initiator group. This
is causing broken scsi devices when detaching volumes from instances.
This fix adds support for configuring multiple initiator groups.

Closes-Bug: #1378390
DocImpact

Change-Id: Ib3262ebd40e9c2ff2f36d0a7b1b5b3506ed3acc1

9 years agoImprove testing of cinder/utils.py
git-harry [Tue, 2 Dec 2014 17:41:20 +0000 (17:41 +0000)]
Improve testing of cinder/utils.py

This commit increases code coverage of cinder/utils.py as well as
removing any use of mox and replacing tests that are more functional in
nature with tests more focussed on testing the function in
cinder/utils.py.

Change-Id: I57bb589fa728d715f07aadc4abd0e27670a3a5b6

9 years agoFix rpc initialization of cinder-manager volume
Mehdi Abaakouk [Tue, 2 Dec 2014 09:04:54 +0000 (10:04 +0100)]
Fix rpc initialization of cinder-manager volume

VolumeCommands.rpc_client is a property, so when the oslo.config argparser
introspect the class VolumeCommands at module loading time, it launch the
method. But the method depends on a initialized oslo.config.cfg.CONF object,
but this one is not yet initialized.

So don't use python property, to initialize the rpc_client correctly.

No test because of bug: #1398401

Change-Id: I2c2f0be6e7a9d0866f063d98e1f8213f62fb9f92
Closes-bug: #1398319

9 years agoMerge "Remove driver compatibility in volume manager"
Jenkins [Tue, 2 Dec 2014 08:35:55 +0000 (08:35 +0000)]
Merge "Remove driver compatibility in volume manager"