]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoReplace assertEquals with assertEqual - 2/2
Zhongyue Luo [Fri, 16 Aug 2013 01:55:54 +0000 (09:55 +0800)]
Replace assertEquals with assertEqual - 2/2

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

This patch replaces the remaining assertEquals to assertEqual

Change-Id: I4e726ce414382e0d5bf982fad20363d61e00967a

11 years agoReplace assertEquals with assertEqual - 1/2
Zhongyue Luo [Sat, 7 Sep 2013 07:57:20 +0000 (15:57 +0800)]
Replace assertEquals with assertEqual - 1/2

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

This patch is a mere sed replace of one-liner assertEquals to assertEqual.

grep -lR "assertEquals(" cinder/tests/* | \
xargs sed -ri 's/(\W+self.assertEqual)s(.+)(\)$)/\1\2\3/'

Change-Id: I4feea94d53afa866af9b7e14bd80345fa7276e75

11 years agoMerge "Utilize assertIsInstance"
Jenkins [Sat, 7 Sep 2013 07:40:52 +0000 (07:40 +0000)]
Merge "Utilize assertIsInstance"

11 years agoMerge "Utilizes assertIsNotNone"
Jenkins [Sat, 7 Sep 2013 06:40:30 +0000 (06:40 +0000)]
Merge "Utilizes assertIsNotNone"

11 years agoMerge "Remove deprecated assert_() usage"
Jenkins [Sat, 7 Sep 2013 06:39:44 +0000 (06:39 +0000)]
Merge "Remove deprecated assert_() usage"

11 years agoMerge "fix inconsistent i18n log message"
Jenkins [Sat, 7 Sep 2013 06:37:26 +0000 (06:37 +0000)]
Merge "fix inconsistent i18n log message"

11 years agoMerge "Fix error casting value to float in lvm.py"
Jenkins [Sat, 7 Sep 2013 04:22:24 +0000 (04:22 +0000)]
Merge "Fix error casting value to float in lvm.py"

11 years agoFix error casting value to float in lvm.py
Haomai Wang [Fri, 6 Sep 2013 13:37:01 +0000 (21:37 +0800)]
Fix error casting value to float in lvm.py

Special locale setting may result in that "vgs" command output different
results. Such as:

$ LC_NUMERIC='es_ES.UTF-8' sudo vgs
VG #PV #LV #SN Attr VSize VFree
vg_eharney 1 6 1 wz--n- 465,25g 12,97g

Fix bug 1219963

Change-Id: Ibe79d5ce673738d8e37f86de9106ab347c21bd52

11 years agoFixes misuse of assertTrue in test scripts
Zhongyue Luo [Fri, 6 Sep 2013 04:10:28 +0000 (12:10 +0800)]
Fixes misuse of assertTrue in test scripts

Misuse of assertTrue in places where assertEqual should be used.

If assertTrue is used instead of assertEquals, the test will always pass
if the first argument's boolean cast is True. The second argument
passed to assertTrue() will be regarded as the error message
when the assertion fails. Using assertEqual will actually check
if two arguments are same value.

Fixes bug #1221517

Change-Id: I68f614164803729ea26e65f8868b0031e724d324

11 years agoUtilizes assertIsNotNone
Zhongyue Luo [Fri, 6 Sep 2013 04:01:26 +0000 (12:01 +0800)]
Utilizes assertIsNotNone

Using assertTrue and the 'is not' operator to test if an element
is not None is too python2.4. Our unit testing framework supports
assertIsNotNone, included from python 2.7, which was created
for these types of tests.

Change-Id: I25c3f2b144357a3f86625deb8e324d78c20b9ce4

11 years agoMerge "Fix brick remotefs dependency on cinder"
Jenkins [Fri, 6 Sep 2013 03:04:09 +0000 (03:04 +0000)]
Merge "Fix brick remotefs dependency on cinder"

11 years agoUtilize assertIsInstance
Zhongyue Luo [Fri, 30 Aug 2013 11:50:26 +0000 (20:50 +0900)]
Utilize assertIsInstance

Using assertTrue and the 'isinstance' function to test
if an object is in an instance of some class is too python2.4.
Our unit testing framework supports assertIsInstance which was created
for these types of tests. Let's use assertIsInstance for these tests.

Change-Id: I2c931a52ae20f072f53210bf3dedb47127b413c0

11 years agoRemove deprecated assert_() usage
Zhongyue Luo [Fri, 30 Aug 2013 14:12:29 +0000 (22:12 +0800)]
Remove deprecated assert_() usage

The method assert_() is an alias of assertTrue() and
is deprecated since python 2.7

http://docs.python.org/2/library/unittest.html#deprecated-aliases

This removes all assert_() uses.

Change-Id: I9f55c442cc2416a7aa2dac569d1750f723d95184

11 years agoMerge "Added copy-on-write support for all RBD cloning"
Jenkins [Fri, 6 Sep 2013 00:34:00 +0000 (00:34 +0000)]
Merge "Added copy-on-write support for all RBD cloning"

11 years agoFix brick remotefs dependency on cinder
Walter A. Boring IV [Thu, 5 Sep 2013 17:00:13 +0000 (10:00 -0700)]
Fix brick remotefs dependency on cinder

This patch moves an exception from cinder.exception
into brick.exception to fix an import in remotefs.

Fixes Bug #1221309

Change-Id: I9b060c1e1129b3fe30145227712d0234e0f42504

11 years agoRemove quota fetch race condition
Cory Stone [Thu, 5 Sep 2013 16:27:27 +0000 (11:27 -0500)]
Remove quota fetch race condition

When displaying quotas, we shouldn't pull the latest resources
just to convert the results to the dict.

Closes-Bug: #1220436

Change-Id: Id01a310481353b272e103643d053957b65cd4ce3

11 years agoMerge "Fix tuple usage error"
Jenkins [Thu, 5 Sep 2013 15:32:02 +0000 (15:32 +0000)]
Merge "Fix tuple usage error"

11 years agoAdded copy-on-write support for all RBD cloning
Edward Hope-Morley [Mon, 12 Aug 2013 16:46:38 +0000 (17:46 +0100)]
Added copy-on-write support for all RBD cloning

Up till now we only had copy-on-write for cloning from snapshot. This
change optionally allows clone from volume to use copy-on-write
instead of a doing a full copy each time. This should increase speed
and reduce nearterm storage consumtion but could introduce some new
risks e.g. excessively long clone chains and flatten storms. To avoid
this, a new config option has been providedons are provided -
rbd_max_clone_depth - which allows the user to limit the depth of a
chain of clones i.e.

    a->b->c->d as opposed to a->b
                              ->c
                              ->d

This will avoid flatten storms by breaking chains as they are formed
and at an early, predefined stage.

A second option - rbd_clone_from_volume_force_copy - allows the user
to use a full copy as before i.e. disable COW for volume clones.

Implements: blueprint use-copy-on-write-for-all-volume-cloning
Fixes: bug #1209199
Change-Id: Ia4a8a10c797cda2cf1ef3a2e9bd49f8c084ec977

11 years agoMerge "This adds a README to brick"
Jenkins [Thu, 5 Sep 2013 11:24:37 +0000 (11:24 +0000)]
Merge "This adds a README to brick"

11 years agoMerge "VMDK copy_image_to_volume and copy_volume_to_image"
Jenkins [Thu, 5 Sep 2013 10:00:29 +0000 (10:00 +0000)]
Merge "VMDK copy_image_to_volume and copy_volume_to_image"

11 years agoVMDK copy_image_to_volume and copy_volume_to_image
Subramanian Neelakantan [Fri, 23 Aug 2013 12:19:17 +0000 (17:49 +0530)]
VMDK copy_image_to_volume and copy_volume_to_image

Implemented copy_image_to_volume that creates a new volume backing (vm) and
copies over the vmdk file from the glance image. Only glance images of disk
format 'vmdk' can be used to create a volume using this driver.

Also implemented copy_volume_to_image that creates a new glance image using
the volume's vmdk file. The steps involved are to take a snapshot of volume
vmdk, take a copy of this read only file and upload to glance.

Cleaned up docstrings as pointed out in earlier reviews.

Added timeout to avoid blocking wait on read/write threads and also fixed a
bug to upload image from copy of vmdk instead of from original vmdk during
upload to glance.

Implements: blueprint vmware-vmdk-cinder-driver
Change-Id: I00d22861f4e01ae0862dbf4b60af314c475b7d38

11 years agoThis adds a README to brick
Walter A. Boring IV [Wed, 4 Sep 2013 18:39:52 +0000 (11:39 -0700)]
This adds a README to brick

We need to let folks know where brick is
currently being maintained for the Havana
release and where to file defects.
Once this simple patch lands, we'll pull this into
the Nova patch.

(fix hacking violation in commit message for the 2nd
time on this patch. To prevent it from blocking the
merge queue on feature freeze day.)

PLEASE DON'T +A PATCHES UNTIL THEY PASS JENKINS CHECK

Change-Id: I5c4569c1c09751d53817ee9577581e530a3a8352

11 years agoFix tuple usage error
Joshua Harlow [Wed, 4 Sep 2013 19:20:54 +0000 (12:20 -0700)]
Fix tuple usage error

The exc_info is just a tuple (captured in taskflow)
and isn't itself a callable object so we should not
need to use it like one to extract the exception type
and value.

Fixes bug #1220867

Change-Id: Ie27d004bad4053baa2ac8eb84bb8b7cdc05a954d

11 years agoFixes brick Nova pep8 violation for lvm.py
Walter A. Boring IV [Wed, 4 Sep 2013 18:27:17 +0000 (11:27 -0700)]
Fixes brick Nova pep8 violation for lvm.py

Running pep8 tests in Nova gives a violation
in lvm.py for not importing a module.  This
is a simple fix to import the module itself
instead of only importing a function in the
module.

Fixes bug #1220849

Change-Id: Idc603dcfab18601dd4246c623d34be5933434f84

11 years agofix inconsistent i18n log message
Kun Huang [Wed, 4 Sep 2013 16:36:48 +0000 (00:36 +0800)]
fix inconsistent i18n log message

An inconsistent example:
    imessage = _("Invalid metadata") + ": %(reason)s"
This is not consistent i18n usage. In most of cases, we use _() for
whole string instead of leaving something out.

More than inconsistent, some text in leaving strings may be not
translated, for example, ':' in English is different ':' in Chinese.

Change-Id: I00e690021c44f1debbe034cc0837a07b292ffd1b
Closes-Bug: #1220813

11 years agoMerge "Use tempfile and cleanup in windows unit test"
Jenkins [Wed, 4 Sep 2013 15:27:18 +0000 (15:27 +0000)]
Merge "Use tempfile and cleanup in windows unit test"

11 years agoMerge "Add view builder to QoS specs API extension"
Jenkins [Wed, 4 Sep 2013 15:27:16 +0000 (15:27 +0000)]
Merge "Add view builder to QoS specs API extension"

11 years agoMerge "Fixes cinder-volume service startup on Windows"
Jenkins [Wed, 4 Sep 2013 15:27:13 +0000 (15:27 +0000)]
Merge "Fixes cinder-volume service startup on Windows"

11 years agoMerge "QEMU-assisted-snapshots for GlusterFS volumes"
Jenkins [Wed, 4 Sep 2013 15:22:37 +0000 (15:22 +0000)]
Merge "QEMU-assisted-snapshots for GlusterFS volumes"

11 years agoMerge "extract 'limits.' to constant for ratelimiting logic"
Jenkins [Wed, 4 Sep 2013 14:41:24 +0000 (14:41 +0000)]
Merge "extract 'limits.' to constant for ratelimiting logic"

11 years agoQEMU-assisted-snapshots for GlusterFS volumes
Eric Harney [Mon, 19 Aug 2013 04:21:54 +0000 (00:21 -0400)]
QEMU-assisted-snapshots for GlusterFS volumes

Coordinate with Nova to create and delete snaphots for
GlusterFS volumes that are attached to VMs.

Cinder is responsible for creating a QCOW2 file which Nova
will activate in the VM's snapshot chain when a snapshot is
created.

When a snapshot is deleted, Cinder will request for Nova to
perform a block commit/rebase operation to logically delete
the snapshot from the QCOW2 chain.

Implements blueprint qemu-assisted-snapshots

Change-Id: I4a7f0c1bc08d88b0f75d119168dd2077487a62a0

11 years agoAdd view builder to QoS specs API extension
Zhiteng Huang [Fri, 30 Aug 2013 14:28:52 +0000 (22:28 +0800)]
Add view builder to QoS specs API extension

Add view builder for qos_specs.create(), index(), show() and associations()
to in order to make the response more easier to be consumed by client.

This patch also:
  fixed circular reference error when raising HTTP exception.
  fixed some typo in debug message and removed unused imports.

fix bug: # 1219016

Change-Id: I107888e6b4dac8eb5f1b45a87721a7b5efc45632

11 years agoMerge "Add features to Zadara Storage Cinder driver"
Jenkins [Wed, 4 Sep 2013 01:43:34 +0000 (01:43 +0000)]
Merge "Add features to Zadara Storage Cinder driver"

11 years agoMerge "Set vg_thin_pool to pool name instead of pool_path"
Jenkins [Wed, 4 Sep 2013 01:43:32 +0000 (01:43 +0000)]
Merge "Set vg_thin_pool to pool name instead of pool_path"

11 years agoAdd features to Zadara Storage Cinder driver
Vladimir Popovski [Fri, 16 Aug 2013 04:34:54 +0000 (04:34 +0000)]
Add features to Zadara Storage Cinder driver

- move to Zadara APIs 13.07
- added support for extend volume
- added support for create/delete snapshot
- added support for create clones from volumes and snaps
- added support for multi-backend
- added volume stats
- added tests

Implements: blueprint zadara-cinder-driver-update

Change-Id: Iad5908a50980c59df2d8d4702743a0b99f82f9b7

11 years agoUse tempfile and cleanup in windows unit test
John Griffith [Tue, 3 Sep 2013 22:33:24 +0000 (22:33 +0000)]
Use tempfile and cleanup in windows unit test

The unit test test_windows was setting and creating
a directory c://iSCSIVirtualDisks in the root path
and even worse wasn't deleting it on cleanup.

This patch converts that to use tempfile and also
adds an shutil.rmtree to the teardown method to clean
up all the junk it creates.

Fixes bug: 1219950

Change-Id: Ibd071c9c3ae9a02f26c85a09e8bc6619d8c73a37

11 years agoMerge "Adds Nexenta NFS driver"
Jenkins [Tue, 3 Sep 2013 21:07:26 +0000 (21:07 +0000)]
Merge "Adds Nexenta NFS driver"

11 years agoMerge "Add volume driver for Huawei HVS storage system"
Jenkins [Tue, 3 Sep 2013 20:04:56 +0000 (20:04 +0000)]
Merge "Add volume driver for Huawei HVS storage system"

11 years agoMerge "New update_snapshot_status API"
Jenkins [Tue, 3 Sep 2013 20:04:42 +0000 (20:04 +0000)]
Merge "New update_snapshot_status API"

11 years agoMerge "Fix errors in volume usage audit script"
Jenkins [Tue, 3 Sep 2013 18:27:55 +0000 (18:27 +0000)]
Merge "Fix errors in volume usage audit script"

11 years agoMerge "Increase test coverage for cinder.utils"
Jenkins [Tue, 3 Sep 2013 18:27:53 +0000 (18:27 +0000)]
Merge "Increase test coverage for cinder.utils"

11 years agoAdds Nexenta NFS driver
Mikhail Khodos [Wed, 14 Aug 2013 18:18:12 +0000 (11:18 -0700)]
Adds Nexenta NFS driver

Implements: blueprint nexenta-nfs-volume-driver

Change-Id: I369ce83113cf05b1cd2ecf86d5f6fd25eed12d85

11 years agoSet vg_thin_pool to pool name instead of pool_path
Flaper Fesp [Tue, 3 Sep 2013 16:26:42 +0000 (18:26 +0200)]
Set vg_thin_pool to pool name instead of pool_path

create_thin_pool is setting vg_thin_pool to the pool path instead of the
pool_name. This makes volumes creation fail when the create_thin_pool
method is called. This happens because create_volume builds the pool
path itself as create_thin_pool does.

Keeping the pool name in vg_thin_pool instead of the path makes more
sense and allows it to be used in other places in the brick. Also, most
commands return both vg_name and pool_name separated.

Change-Id: Ibf5cd746fc050eab5ce6aff13dd70c1e8066b228
Closes-Bug: #1220286

11 years agoFixes cinder-volume service startup on Windows
Lucian Petrut [Mon, 2 Sep 2013 15:20:21 +0000 (18:20 +0300)]
Fixes cinder-volume service startup on Windows

The Windows service fails due to missing non-blocking IO features
in eventlet. This fix adds a conditional path on Windows to execute
the service accordingly.

Fixes bug: #1219896

Change-Id: I74f662e736e3a5fe58a383d172780a691a2b36c7

11 years agoextract 'limits.' to constant for ratelimiting logic
Seif Lotfy [Tue, 3 Sep 2013 14:46:34 +0000 (14:46 +0000)]
extract 'limits.' to constant for ratelimiting logic

based on the equal nova code at
https://review.openstack.org/#/c/41267/ the ratelimiting logic
uses a constant to parse the limits.

Change-Id: I8ffb4267834c79d056716a2c412ecb2c97217635

11 years agoFix errors in volume usage audit script
Michael Kerrin [Tue, 3 Sep 2013 12:53:34 +0000 (12:53 +0000)]
Fix errors in volume usage audit script

The snapshot_get_active_by_window DB query was returning snapshots
where we couldn't access the related volume object. This was due to
a) the volume not been loaded and the join failing due to detached
session object.
and b) the related volume was deleted so it didn't show return from
the join

Fixes bug: 1220140

Change-Id: I0de993ba0ca482fa9ab80d4d5cdb0ff5cc8e4d7a

11 years agoNew update_snapshot_status API
Eric Harney [Fri, 19 Jul 2013 14:02:51 +0000 (10:02 -0400)]
New update_snapshot_status API

Adds new snapshot_actions module

Update_snapshot_status: Allows updating of 'state' and
'progress' fields of a snapshot.  This is used by Nova
to inform Cinder of its outcome when performing snapshot
operations for attached volumes.  Updates are restricted
to a subset of possible start and finish states.

Implements blueprint qemu-assisted-snapshots

Change-Id: I54772f794b97e1cc6b24b121b757219248e37109

11 years agoAdd volume driver for Huawei HVS storage system
zhangchao010 [Tue, 3 Sep 2013 11:17:26 +0000 (19:17 +0800)]
Add volume driver for Huawei HVS storage system

Huawei OceanStor HVS-series enterprise storage system is an optimum
storage platform for next-generation data centers that feature
virtualization, hybrid cloud, simplified IT, and low carbon footprints.

This patch add an iSCSI driver and a FC driver for Huawei HVS storage
system, using REST. We define a common module for both iSCSI driver and
FC driver. The drivers support volume type, QoS.

Implements: blueprint huawei-hvs-volume-driver
Change-Id: Ibdfed7df6d347e00f498694898c88dfa641559eb

11 years agoIncrease test coverage for cinder.utils
Vladislav Kuzmin [Mon, 2 Sep 2013 12:19:50 +0000 (16:19 +0400)]
Increase test coverage for cinder.utils

Add new tests for:
        check_ssh_injection()
        create_channel()

Change-Id: I0349d87023567b16d6600f5b38fd1daff5cbbdc8

11 years agoMerge "Add Fibre Channel drivers for Huawei storage systems"
Jenkins [Tue, 3 Sep 2013 09:29:41 +0000 (09:29 +0000)]
Merge "Add Fibre Channel drivers for Huawei storage systems"

11 years agoMerge "Don't need to init testr explicitly"
Jenkins [Tue, 3 Sep 2013 09:26:17 +0000 (09:26 +0000)]
Merge "Don't need to init testr explicitly"

11 years agoMerge "Refactor huawei Dorado array iSCSI driver"
Jenkins [Tue, 3 Sep 2013 06:57:21 +0000 (06:57 +0000)]
Merge "Refactor huawei Dorado array iSCSI driver"

11 years agoMerge "Refactor Huawei iSCSI driver"
Jenkins [Tue, 3 Sep 2013 05:48:06 +0000 (05:48 +0000)]
Merge "Refactor Huawei iSCSI driver"

11 years agoAdd Fibre Channel drivers for Huawei storage systems
zhangchao010 [Sat, 31 Aug 2013 02:24:43 +0000 (10:24 +0800)]
Add Fibre Channel drivers for Huawei storage systems

This is the third patch, changes as follows:
1.Add Fibre Channel drivers for huawei OceanStor T series and Dorado
series arrays. Dorado FC driver inherits codes from FC driver of T.
The FC drivers call module ssh_common which has been defined in
the preview patch: https://review.openstack.org/#/c/41721/
2.Add unit test for the changes.

Implements: blueprint huawei-fibre-channel-volume-driver
Change-Id: Iee20d9746004b57777a7161827b4a23cb10f0859

11 years agoRefactor huawei Dorado array iSCSI driver
zhangchao010 [Sat, 31 Aug 2013 02:23:35 +0000 (10:23 +0800)]
Refactor huawei Dorado array iSCSI driver

This is the second patch, changes as follows:
1.Add ISCSIDriver for Dorado arrays. The ISCSIDriver inherit from T.
1.Add a common class DoradoCommon for both FC and iSCSI drivers. The common class
inherit from T common for they have many common functions.
2.Add unit test for Dorado drivers.

Change-Id: I7ff2cc1e0d058b7a3d9e55644769ec74075f962f

11 years agoRefactor Huawei iSCSI driver
zhangchao010 [Thu, 29 Aug 2013 02:33:52 +0000 (10:33 +0800)]
Refactor Huawei iSCSI driver

We plan to refactor Huawei iSCSI drivers and add Huawei FC
drivers. For that's a huge change, we break the codes into
three patches:
1.Refactor T iSCSI driver
2.Refactor Dorado iSCSI driver
3.Add FC drivers for both T and Dorado arrays.

This is the first patch, changes as follows:
1.Define a common class for both FC and iSCSI drivers, and
also provide a unified class HuaweiVolumeDriver for users.
The unified driver will call HuaweiTISCSIDriver according to
users' configuration. The HuaweiTISCSIDriver is a subclass of
driver.ISCSIDriver, so it could get good inheritance.
2.Support volume type.
3.Refactor unit test to make it more logic clear and add more
test cases to get higher coverage rate.

Change-Id: I79b7bac7f38f2dcbb22c5db6207d8b55906fdad1

11 years agoEnable gating on F811
Dirk Mueller [Tue, 27 Aug 2013 20:43:38 +0000 (22:43 +0200)]
Enable gating on F811

Avoid name clashes of local variables with
imported modules.

Change-Id: I1c5508902f89ad5dd9d160a4d163cd91bec41333

11 years agoMerge "Pass db into driver as constructor's parameter"
Jenkins [Mon, 2 Sep 2013 13:35:02 +0000 (13:35 +0000)]
Merge "Pass db into driver as constructor's parameter"

11 years agoMerge "Utilizes assertIn and assertNotIn"
Jenkins [Mon, 2 Sep 2013 11:58:13 +0000 (11:58 +0000)]
Merge "Utilizes assertIn and assertNotIn"

11 years agoMerge "copy_image_to_volume for Nexenta volume driver"
Jenkins [Mon, 2 Sep 2013 11:25:03 +0000 (11:25 +0000)]
Merge "copy_image_to_volume for Nexenta volume driver"

11 years agoMerge "Sync rpc fix from oslo-incubator"
Jenkins [Mon, 2 Sep 2013 07:36:34 +0000 (07:36 +0000)]
Merge "Sync rpc fix from oslo-incubator"

11 years agoMerge "Fixes bug to allow for encrypted volume deletion"
Jenkins [Sun, 1 Sep 2013 14:06:39 +0000 (14:06 +0000)]
Merge "Fixes bug to allow for encrypted volume deletion"

11 years agoMerge "Remove _create_volume function from several tests"
Jenkins [Sun, 1 Sep 2013 14:06:37 +0000 (14:06 +0000)]
Merge "Remove _create_volume function from several tests"

11 years agoMerge "Increase test coverage for cinder.image.image_utils"
Jenkins [Sun, 1 Sep 2013 14:06:35 +0000 (14:06 +0000)]
Merge "Increase test coverage for cinder.image.image_utils"

11 years agoMerge "Add support for Havana missing features in Windows driver"
Jenkins [Sun, 1 Sep 2013 14:05:40 +0000 (14:05 +0000)]
Merge "Add support for Havana missing features in Windows driver"

11 years agoMerge "Fix pep8 violation in backup"
Jenkins [Sun, 1 Sep 2013 08:39:49 +0000 (08:39 +0000)]
Merge "Fix pep8 violation in backup"

11 years agoMerge "Clone volume with right size with SolidFire"
Jenkins [Sun, 1 Sep 2013 07:14:14 +0000 (07:14 +0000)]
Merge "Clone volume with right size with SolidFire"

11 years agoAdd support for Havana missing features in Windows driver
Pedro Navarro Perez [Mon, 26 Aug 2013 11:09:41 +0000 (13:09 +0200)]
Add support for Havana missing features in Windows driver

The following features were added:

-copy_volume_to_image (Havana)
-copy_image_to_volume (Havana)
-get_volume_stats (Havana)
-extend_volume (Icehouse)

The test mocking based on binary pickled files were replaced by mox.

Change-Id: I92c681280d6f7b85bcba7a5e3513f2bdb6c13f1d
Implements: blueprint windows-storage-driver-extended

11 years agoMerge "Add venv wrapper for check_uptodate.sh"
Jenkins [Sat, 31 Aug 2013 23:02:16 +0000 (23:02 +0000)]
Merge "Add venv wrapper for check_uptodate.sh"

11 years agoAdd venv wrapper for check_uptodate.sh
Kui Shi [Sat, 31 Aug 2013 11:24:38 +0000 (19:24 +0800)]
Add venv wrapper for check_uptodate.sh

tools/conf/check_uptodate.sh is added in run_tests.sh

For simple, run "run_tests.sh -p" will call it, and get following error:

Failed to collect options from module
cinder.volume.drivers.san.hp.hp_3par_common: No module named hp3parclient

Actually, the hp3parclient is listed in test-requirements.txt, and it is
installed in venv.

the check_uptodate.sh should run in venv to get correct result.

update the error message to update the cindier.conf.sample correctly.

-----------
Test method
-----------
$ pwd
/opt/stack/cinder

$ source .venv/bin/activate; tools/conf/generate_sample.sh

(.venv)$ deactivate

$ ./run_tests.sh  -p
Running flake8 ...
// no error emitted here

Fixes Bug #1219197

Change-Id: I9b3eaf3c1a5eb395eefed28bb907685cdef147aa

11 years agoClone volume with right size with SolidFire
Mathieu Gagné [Sat, 31 Aug 2013 01:59:59 +0000 (21:59 -0400)]
Clone volume with right size with SolidFire

It is possible to clone a volume with a size greater than
the source volume. When using the SolidFire driver, the volume size
was not passed in the call made to the SolidFire API when
cloning a volume.

It resulted in a cloned volume having the same size as the source
volume but the correct size in the Cinder database.

This changes makes sure the cloned volume has the correct size
by explicitly passing the requested size when calling
the SolidFire API and cloning the volume.

Fixes: bug #1219105
Change-Id: I5628c7fa922780d6b0601e2daa79310a61085edc

11 years agoFixes bug to allow for encrypted volume deletion
Kaitlin Farr [Fri, 30 Aug 2013 19:38:38 +0000 (15:38 -0400)]
Fixes bug to allow for encrypted volume deletion

delete_key in cinder/volume/api.py was called with incorrect parameters.
The error prevented encrypted volumes from being deleted, but the fix
has been applied and unittests written to prove the functionality.

Change-Id: I3b93da84f97efe2a3afa057907bbfa10336eb9de
Implements: blueprint encrypt-cinder-volumes

11 years agoSync rpc fix from oslo-incubator
Russell Bryant [Fri, 30 Aug 2013 19:36:36 +0000 (15:36 -0400)]
Sync rpc fix from oslo-incubator

Sync the following fix from oslo-incubator:

76972e2 Support a new qpid topology

This includes one other commit, so that the above fix could be brought
over cleanly:

5ff534d Add config for amqp durable/auto_delete queues

Change-Id: I1fd5aaf87ec87836df3e44e83247bf82301475f5
Closes-bug: #1178375

11 years agoMove comment back to right place
Zhiteng Huang [Fri, 30 Aug 2013 18:59:47 +0000 (02:59 +0800)]
Move comment back to right place

The comment about skipping schedule for create volume from snapshot
in cast_create_volume() was mis-placed when this code was ported to
taskflow.  This patch moves the comment back to where it belongs.

Change-Id: I329c78a05143bf8589d9665dc4ff03fa80da6ec9

11 years agocopy_image_to_volume for Nexenta volume driver
Victor Rodionov [Fri, 23 Aug 2013 21:59:27 +0000 (01:59 +0400)]
copy_image_to_volume for Nexenta volume driver

This patch implements copy_image_to_volume in Nexenta volume
driver, because volume must be exported before copying image
to it.

Change-Id: I9dc725095944d166fee415f3f605268c7fcbbd3a

11 years agoFix pep8 violation in backup
Victor Rodionov [Tue, 27 Aug 2013 21:50:55 +0000 (01:50 +0400)]
Fix pep8 violation in backup

Change-Id: I0bbc7923c3bea9b918c243d2c7b59510fd26deb5

11 years agoUtilizes assertIn and assertNotIn
Zhongyue Luo [Fri, 30 Aug 2013 05:33:22 +0000 (13:33 +0800)]
Utilizes assertIn and assertNotIn

Using assertTrue and the 'in' operator to test if an element is in a sequence
is too python2.4. Our unit testing framework 'testtools' support assertIn and
assertNotIn, included from python 2.7, which were created for these types of
tests. Let's use assertIn or assertNotIn for these tests.

Change-Id: I8b43f7ff5f306e1ce57296d89679333ce24e4b64

11 years agoMerge "Implements APIs for VMDK driver"
Jenkins [Fri, 30 Aug 2013 12:39:35 +0000 (12:39 +0000)]
Merge "Implements APIs for VMDK driver"

11 years agoMerge "Add missing LH SAN driver features for Havana"
Jenkins [Fri, 30 Aug 2013 10:58:05 +0000 (10:58 +0000)]
Merge "Add missing LH SAN driver features for Havana"

11 years agoImplements APIs for VMDK driver
Kartik Bommepally [Tue, 13 Aug 2013 04:42:59 +0000 (21:42 -0700)]
Implements APIs for VMDK driver

- Implemented APIs: create_volume, delete_volume, initialize_connection,
  create_snapthot, delete_snapshot, create_volume_from_snapshot,
  create_cloned_volume
- Modified etc/cinder/cinder.conf.sample adding details for the driver
- Added suds dependency in requirements.txt
- create_volume: does no work. Volume's backing is created lazily
- delete_volume: delete backing if present
- initialize_connection: if backing, not present, create backing, else
  provide backing details to nova to perform attach
  Nova BP/vmware-nova-cinder-support
- create_snapshot: Creates the snapshot of the backing
- delete_snapshot: Deletes the snapshot of the backing
- create_volume_from_snapshot: Creates a full/linked clone from the snapshot
  point in VC. In ESX, copies the VM backing files, registers and reverts to
  the appropriate snapshot point.
- create_cloned_volume: Creates a full/linked clone in VC. In ESX, copies the
  VM backing files and registers as a new backing.
- Written appropriate unit tests
- Work item in BP/vmware-vmdk-cinder-driver

Implements: blueprint vmware-vmdk-cinder-driver
Change-Id: Ib11f2878f8f656209d1ba5e2cbfadae1ac1999b4

11 years agoRemove _create_volume function from several tests
Julia Varlamova [Thu, 29 Aug 2013 07:56:17 +0000 (11:56 +0400)]
Remove _create_volume function from several tests

Remove _create_volume function from
- db/test_transfers.py
- api/contrib/test_backups.py
- test_gpfs.py
- test_volume_transfer.py
- test_volume.py
And use create_volume from tests/utils.py instead

Change-Id: I446220d0cfaa2850a5262a968ed35b7827b90a03

11 years agoDon't need to init testr explicitly
Kui Shi [Fri, 30 Aug 2013 07:18:10 +0000 (15:18 +0800)]
Don't need to init testr explicitly

In run_tests.sh, function init_testr will initialize testr if the
directory .testrepository is not existed. Actually, testr will do
the check before run the test:

In Python package testrepository, setuptools_command.py:Testr.run

68 def run(self):
69     """Set up testr repo, then run testr"""
70     if not os.path.isdir(".testrepository"):
71         self._run_testr("init")

So, init_testr can be removed safely.

Fixes Bug #1216820
Change-Id: Id9815033c0cb0e1aa6693a4c14bf9a5d490c8883

11 years agoMerge "Fix typo in bin/cinder-volume-usage-audit"
Jenkins [Fri, 30 Aug 2013 02:19:45 +0000 (02:19 +0000)]
Merge "Fix typo in bin/cinder-volume-usage-audit"

11 years agoMerge "Update the version for the FC and iSCSI driver"
Jenkins [Fri, 30 Aug 2013 01:18:35 +0000 (01:18 +0000)]
Merge "Update the version for the FC and iSCSI driver"

11 years agoMerge "Add kwargs to create_volume in tests/utils.py"
Jenkins [Fri, 30 Aug 2013 00:51:30 +0000 (00:51 +0000)]
Merge "Add kwargs to create_volume in tests/utils.py"

11 years agoMerge "Add NFS/GlusterFS support to brick library"
Jenkins [Fri, 30 Aug 2013 00:51:23 +0000 (00:51 +0000)]
Merge "Add NFS/GlusterFS support to brick library"

11 years agoMerge "Remove unused methods from cinder.utils"
Jenkins [Fri, 30 Aug 2013 00:42:50 +0000 (00:42 +0000)]
Merge "Remove unused methods from cinder.utils"

11 years agoMerge "Multi storage backend support for Nexenta driver"
Jenkins [Fri, 30 Aug 2013 00:40:59 +0000 (00:40 +0000)]
Merge "Multi storage backend support for Nexenta driver"

11 years agoAdd missing LH SAN driver features for Havana
Kurt Martin [Wed, 28 Aug 2013 21:08:49 +0000 (14:08 -0700)]
Add missing LH SAN driver features for Havana

The LeftHand driver did not support snapshot or extend volume.
The following features are part of the minimum driver features
that should be implemented in every cinder driver. This patch
adds the following missing features;
create snapshot
delete snapshot
create volume from snapshot
extend volume
It also fixes the DocStrings in the unit test so they pass the
checks.

Change-Id: Icda790fcddf4ea11782a8d6ec57b1e8f871eb167
Fixes: bug 1217118
11 years agoMulti storage backend support for Nexenta driver
Victor Rodionov [Fri, 23 Aug 2013 18:25:36 +0000 (22:25 +0400)]
Multi storage backend support for Nexenta driver

Recover nexenta prefix for host, user, password and iscsi_port
config options.

Change-Id: I8bdc54f391145193b7813e0e411afa39d07d9aad

11 years agoFix typo in bin/cinder-volume-usage-audit
scott-dangelo [Thu, 29 Aug 2013 15:36:55 +0000 (15:36 +0000)]
Fix typo in bin/cinder-volume-usage-audit

Fixes bug #1218383

Change-Id: Ie1545736aee43805e8e3f8c3b9b7d5b3a7f36a67

11 years agoRemove unused methods from cinder.utils
Vladislav Kuzmin [Thu, 29 Aug 2013 12:15:29 +0000 (16:15 +0400)]
Remove unused methods from cinder.utils

These methods and class  were left over from the split from Nova and are unused still.

Remove methods:
debug()
utf8()
map_dict_keys()
check_isinstance()
timefunc()
logging_error()
temporary_mutation()
generate_mac_address()

Remove class:
UndoManager

Change-Id: Id3a94ff9066627b5c0efef068f8c569423f1e9d8

11 years agoMerge "Adding Read-Only volume attaching support to Cinder"
Jenkins [Thu, 29 Aug 2013 12:36:55 +0000 (12:36 +0000)]
Merge "Adding Read-Only volume attaching support to Cinder"

11 years agoIncrease test coverage for cinder.image.image_utils
Vladislav Kuzmin [Fri, 23 Aug 2013 12:30:36 +0000 (16:30 +0400)]
Increase test coverage for cinder.image.image_utils

Add new tests for:
convert_image()
qemu_img_info()
fetch_to_raw()
fetch_verify_image()
upload_volume()

Change-Id: Ie69af94433b4c61a493d6c38b4c9439a367f7af8

11 years agoMerge "Pass MB size on copy_volume_data call copy_volume"
Jenkins [Thu, 29 Aug 2013 10:17:15 +0000 (10:17 +0000)]
Merge "Pass MB size on copy_volume_data call copy_volume"

11 years agoAdd kwargs to create_volume in tests/utils.py
Julia Varlamova [Thu, 29 Aug 2013 07:41:34 +0000 (11:41 +0400)]
Add kwargs to create_volume in tests/utils.py

Add availability_zone parameter and kwargs to make create_volume
function more flexible in order to use this function in
unit tests.
The goal is to remove inner _create_volume function in:
- db/test_transfers.py
- api/contrib/test_backups.py
- test_gpfs.py
- test_volume_transfer.py
- test_volume.py
and to use create_volume from tests/utils instead.

Change-Id: I2d9456ff3ff1cd945042f19c47e40f9f0ec0fe8a

11 years agoMerge "Move create_volume flow to a subfolder"
Jenkins [Thu, 29 Aug 2013 01:44:51 +0000 (01:44 +0000)]
Merge "Move create_volume flow to a subfolder"

11 years agoUpdate the version for the FC and iSCSI driver
Walter A. Boring IV [Wed, 28 Aug 2013 23:05:46 +0000 (16:05 -0700)]
Update the version for the FC and iSCSI driver

We also now have a version for the common class,
and report that version at startup time.

Change-Id: Ia1b6698450d151d6b4a8bc13bf3b92c72e8c0ab0

11 years agoPass MB size on copy_volume_data call copy_volume
Bill Owen [Wed, 28 Aug 2013 22:54:54 +0000 (15:54 -0700)]
Pass MB size on copy_volume_data call copy_volume

Modify cinder/volume/driver.py method copy_volume_data
to pass size in MB when calling cinder/volume/utils/copy_volume.py

Closes-Bug #1218054

Change-Id: I5430f015ef0f0077b4794f1ff458e3f54cc4dc06

11 years agoMerge "Modified 3PAR drives to support 3parclient 2.0.0"
Jenkins [Wed, 28 Aug 2013 20:59:22 +0000 (20:59 +0000)]
Merge "Modified 3PAR drives to support 3parclient 2.0.0"