]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoFixed typo
Amit Saha [Thu, 12 Feb 2015 07:05:25 +0000 (12:35 +0530)]
Fixed typo

There were spelling mistakes in couple comment sections in the code.

Change-Id: I05d419bdf6402032fe1bc3b90c51cfd8381c3741

9 years agoMerge "EMC VNX Cinder Driver iSCSI multipath enhancement"
Jenkins [Mon, 16 Feb 2015 02:41:47 +0000 (02:41 +0000)]
Merge "EMC VNX Cinder Driver iSCSI multipath enhancement"

9 years agoMerge "Tests: Don't require binding to port 4444"
Jenkins [Sun, 15 Feb 2015 20:23:17 +0000 (20:23 +0000)]
Merge "Tests: Don't require binding to port 4444"

9 years agoMerge "Remove optional parameter from lun mapping call"
Jenkins [Sun, 15 Feb 2015 20:23:07 +0000 (20:23 +0000)]
Merge "Remove optional parameter from lun mapping call"

9 years agoMerge "Sync periodic_task module from oslo-incubator"
Jenkins [Sun, 15 Feb 2015 20:13:46 +0000 (20:13 +0000)]
Merge "Sync periodic_task module from oslo-incubator"

9 years agoMerge "Provided requirements are meant to be immutable"
Jenkins [Sun, 15 Feb 2015 20:13:35 +0000 (20:13 +0000)]
Merge "Provided requirements are meant to be immutable"

9 years agoMerge "Fix Scality SRB driver security concerns"
Jenkins [Sun, 15 Feb 2015 19:18:43 +0000 (19:18 +0000)]
Merge "Fix Scality SRB driver security concerns"

9 years agoMerge "Split volume driver into ABC classes"
Jenkins [Sun, 15 Feb 2015 19:13:01 +0000 (19:13 +0000)]
Merge "Split volume driver into ABC classes"

9 years agoSync periodic_task module from oslo-incubator
Jay S. Bryant [Sun, 15 Feb 2015 02:24:56 +0000 (20:24 -0600)]
Sync periodic_task module from oslo-incubator

We have a need in Cinder to now be able to dynamically
add periodic tasks.  This sync brings in new functionality
that supports that.

Current HEAD in OSLO:
---------------------
commit 03143669d2c996f7c20d2d75f6c67827d2db216a
Date:   Tue Feb 10 11:59:45 2015 -0500
Update policy.py status in MAINTAINERS

Changes merged with this patch:
---------------------
2aacb111 Change oslo.config to oslo_config
2fbf5065 Remove oslo.log code and clean up versionutils API
fbd77a7b Allow overriding name for periodic tasks
9896e0e1 Separate add_periodic_task from the metaclass __init__

Change-Id: If39ce7baddd6ad5325afcd504bab8ac305da939d

9 years agoMerge "EMC VMAX driver Kilo update"
Jenkins [Fri, 13 Feb 2015 20:24:27 +0000 (20:24 +0000)]
Merge "EMC VMAX driver Kilo update"

9 years agoTests: Don't require binding to port 4444
Eric Harney [Fri, 13 Feb 2015 18:07:46 +0000 (13:07 -0500)]
Tests: Don't require binding to port 4444

If some other process is listening on port 4444,
test_server_pool_waitall will fail with:

RuntimeError: Could not bind to 127.0.0.1:4444 after
trying for 30 seconds

This test doesn't require use of this specific port,
so let it pick an unused port to avoid this failure.

Closes-Bug: #1421759

Change-Id: I7e6d6f574cd2bbb2fa067001bba4b09b5204a5e1

9 years agoMerge "Add dedup provisioning to 3PAR drivers"
Jenkins [Fri, 13 Feb 2015 07:34:34 +0000 (07:34 +0000)]
Merge "Add dedup provisioning to 3PAR drivers"

9 years agoRefactoring for export functions in Target object
Mitsuhiro Tanino [Sat, 17 Jan 2015 03:04:17 +0000 (22:04 -0500)]
Refactoring for export functions in Target object

Currently, export functions such as create_export() are implemented
in individual Target code, but most of them are same and these are
common features in each target.
This patch moves these methods to parent ISCSITarget class to
commonalize and each Target simply inherit these methods from parent
class. As a result of this change, LioAdm can inherit ISCSITarget
class directly instead of inheriting TgtAdm class.
This simplifies dependency of targets and improves maintainability.

By refactoring these methods, this patch also fixes following issues.

(a) Fix bug #1410566
After transitioning to the new driver and target model, iscsi_targets
is not added to the table during create_export() phase.
However, remove_export() in LIO Target is still reffering empty
iscsi_targets table. This causes NotFound exception and remove_export()
skips to do remove_iscsi_target().
As a result, iscsi target is not removed and the target continues to
grab the volume(logical volume) as an in-use status.
This patch fix the problem.

(b) Re-export a volume with CHAP
Current Tgt Target recreate iscsi target without CHAP during
ensure_export() even if the volume is exported with CHAP previously.
This patch changes this bahaviour to recreate iscsi target using
previous CHAP which is stored in volume file on state_path dir.

Closes-Bug: 1410566
Change-Id: Iea3d94e35a4ced4dafc1b61e2df6b075cf200577

9 years agoMerge "Add iSCSI SCST Target support to cinder"
Jenkins [Fri, 13 Feb 2015 01:35:20 +0000 (01:35 +0000)]
Merge "Add iSCSI SCST Target support to cinder"

9 years agoAdd iSCSI SCST Target support to cinder
nikeshmahalka [Thu, 8 Jan 2015 13:08:19 +0000 (18:38 +0530)]
Add iSCSI SCST Target support to cinder

Currently cinder supports tgt,lio targets.
We are adding SCST Target support in cinder.

Change-Id: I449143d125808d28758f3d438d7d1476a544c38b
Implements: blueprint scst-iscsi-backend-support

9 years agoEMC VMAX driver Kilo update
Xing Yang [Mon, 9 Feb 2015 02:10:49 +0000 (21:10 -0500)]
EMC VMAX driver Kilo update

This patch updated the VMAX driver for the Kilo release.
Main changes in this patch include the following:
* Support for consistency group.
* Support for VMAX V3.

Implements: blueprint emc-vmax-driver-kilo-update
Change-Id: I749d5f3071cd78e8ab14f3fd1711faeda7e33b77

9 years agoFix Scality SRB driver security concerns
JordanP [Mon, 2 Feb 2015 13:36:52 +0000 (13:36 +0000)]
Fix Scality SRB driver security concerns

LP #1414531 raised 2 issues :
1)A potential arbitrary code execution if the Cinder Linux user
has write access to /etc/cinder/cinder.conf
2)An overall concern/question about the usage of the command
'sudo sh -c' throughout the srb driver

This patch fixes 1) with proper configuration validation and
2) with usage of cinder-rootwrap.

Closes-Bug: 1414531
Change-Id: Idddb9633af3a45d65bbfa0146a14575e2984f6bd

9 years agoEMC VNX Cinder Driver iSCSI multipath enhancement
Xi Yang [Wed, 11 Feb 2015 07:06:50 +0000 (02:06 -0500)]
EMC VNX Cinder Driver iSCSI multipath enhancement

This commit is to be consistent with the iSCSI multipath
ehancement in Cinder and Nova:
* Return multiple portals and iqns when multipath=True is
  specified in the connector info
* Return one portal and iqn when multipath=False is specified
  in the connector info

Change-Id: I47376ad6ac38e84569d92d62d3d8daa1359d797d
Implements: blueprint emc-vnx-driver-iscsi-multipath-enhancement

9 years agoAdd dedup provisioning to 3PAR drivers
Kurt Martin [Fri, 30 Jan 2015 21:59:56 +0000 (13:59 -0800)]
Add dedup provisioning to 3PAR drivers

3PAR now supports thin duplication provisioning. This review is for
adding the dedup provisioning support to the 3PAR provisioning extra
specs type as well as supporting volume retype between provisioning
types (thin<->dedup, full<->dedup).

The OpenStack Configuration Reference Guide will need to updated
to include dedup as a valid hp3par:provisioning value. A note
should also be added that this feature requires SSD disks and
3PAR firmware version 3.2.1 MU1 or greater.

DocImpact
Implements: blueprint 3par-dedup

Change-Id: I6ebad3682d5d53a9b1a6329d666a1d7fb06eba0a

9 years agoProvided requirements are meant to be immutable
Joshua Harlow [Wed, 11 Feb 2015 22:14:51 +0000 (14:14 -0800)]
Provided requirements are meant to be immutable

Since provided values are not meant to change (and
this statement is useless) we should not try to
perform an update() on the provided values (the update
is a no-op anyway, so might as well get rid of it).

Change-Id: I18699fc64391445436537854a5e3723f4e89e961

9 years agoMerge "Don't fail target_delete if target doesn't exist"
Jenkins [Wed, 11 Feb 2015 21:57:08 +0000 (21:57 +0000)]
Merge "Don't fail target_delete if target doesn't exist"

9 years agoRemove optional parameter from lun mapping call
mikhail [Wed, 11 Feb 2015 16:20:13 +0000 (08:20 -0800)]
Remove optional parameter from lun mapping call

Remove optional parameter from lun mapping call as it's
unneeded and creates an issue in case of HA-cluster

Change-Id: Ifbe2896fd74e514d66256ff0190db25bfcc9fa6b

9 years agoMerge "Mock out the wait routine in the VMAX driver"
Jenkins [Wed, 11 Feb 2015 19:02:34 +0000 (19:02 +0000)]
Merge "Mock out the wait routine in the VMAX driver"

9 years agoDon't fail target_delete if target doesn't exist
John Griffith [Mon, 9 Feb 2015 21:45:40 +0000 (14:45 -0700)]
Don't fail target_delete if target doesn't exist

There are cases seen in the Gate where a target delete is
called and an exception is raised because the target does
not exist. In the cinder target driver code we raise this
as an ISCSITargetRemoveFailed exception, but if we're asking
to delete the target and the target doesn't exist we can
probably safely move along.

This patch adds a check for this specific case and logs a warning
and continues rather than failing.  We also add a unit test to
check this case.

Change-Id: I7021cafc9ee48bb8ad54433e4482ff1d61e865ae
Closes-Bug: #1420010

9 years agoMerge "Fix detach volume from host problem in VMAX driver"
Jenkins [Wed, 11 Feb 2015 00:09:51 +0000 (00:09 +0000)]
Merge "Fix detach volume from host problem in VMAX driver"

9 years agoMerge "Remove custom lazy loading"
Jenkins [Tue, 10 Feb 2015 17:56:05 +0000 (17:56 +0000)]
Merge "Remove custom lazy loading"

9 years agoRemove custom lazy loading
Ivan Kolodyazhny [Tue, 16 Dec 2014 23:04:33 +0000 (01:04 +0200)]
Remove custom lazy loading

We are using stevedore for database migration backend loading

Closes-Bug: #1420321
Change-Id: I281d631f9fd72d9d6938ffd2945fbeea8099dff5

9 years agoSplit volume driver into ABC classes
Marc Koderer [Tue, 10 Feb 2015 07:30:09 +0000 (08:30 +0100)]
Split volume driver into ABC classes

Use ABCmeta classes to define feature sets of drivers.
As interim solution the VolumeDriver class stays mainly unchanged to
ensure that all drivers work and can be migrated stepwise by the
driver maintainer.

Co-Authored-By: Mike Perez <thingee@gmail.com>
Implements: blueprint abc-volume-drivers
Change-Id: I558ded19368aaa7ce4be029fa16f63e6e188097a

9 years agoMerge "New Cinder volume driver for openvstorage"
Jenkins [Tue, 10 Feb 2015 07:54:45 +0000 (07:54 +0000)]
Merge "New Cinder volume driver for openvstorage"

9 years agoMerge "fix typo in config.py"
Jenkins [Tue, 10 Feb 2015 07:54:31 +0000 (07:54 +0000)]
Merge "fix typo in config.py"

9 years agoMock out the wait routine in the VMAX driver
Xing Yang [Tue, 10 Feb 2015 04:38:57 +0000 (23:38 -0500)]
Mock out the wait routine in the VMAX driver

This patch mocks out the wait routine in the VMAX driver.

Change-Id: I9c503395dd03a4fe41604578adfce7ea2709c301

9 years agoLimit ram and disk used by ceph backup tests
Alex Meade [Mon, 2 Feb 2015 21:18:15 +0000 (16:18 -0500)]
Limit ram and disk used by ceph backup tests

The test_discard_bytes test in
cinder/tests/test_backup_ceph.py uses a lot of
ram and disk space since it tests the ceph driver with
the default chunk size of 128Mi. This patch lowers it
to use 1024 bytes instead.

Closes-bug: #1417293

Change-Id: I387650bc5ffe57ad8a4cacd1fca5d039fec38eed

9 years agoMerge "Make storwize debug log more readable"
Jenkins [Mon, 9 Feb 2015 14:19:56 +0000 (14:19 +0000)]
Merge "Make storwize debug log more readable"

9 years agoFix detach volume from host problem in VMAX driver
Xing Yang [Thu, 5 Feb 2015 17:09:34 +0000 (12:09 -0500)]
Fix detach volume from host problem in VMAX driver

The VMAX driver unmaps a volume from a host without checking
the host info in the connector, resulting the wrong host to be
detached. This patch looks up the host info before detach and
fixes the problem.

Closes-Bug: #1382641
Change-Id: I68f053b34cc68cdb4f3a9e622faa47a260abd53a

9 years agofix typo in config.py
Danny Al-Gaaf [Thu, 22 Jan 2015 01:38:37 +0000 (02:38 +0100)]
fix typo in config.py

Change help texts and messages from GigaByte/Gigabyte(s) to correct
spelling gigabyte(s).

Change-Id: I6b9d80dad619a9f02cef10d2a303c30b6c4572fb
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
9 years agoMerge "Dell Storage Center Unit Test Updates for Kilo"
Jenkins [Sun, 8 Feb 2015 03:28:22 +0000 (03:28 +0000)]
Merge "Dell Storage Center Unit Test Updates for Kilo"

9 years agoMerge "Update hacking ignore list"
Jenkins [Sat, 7 Feb 2015 01:22:51 +0000 (01:22 +0000)]
Merge "Update hacking ignore list"

9 years agoMerge "Add extra library oslo.concurrency to oslo.config.generator.rc"
Jenkins [Fri, 6 Feb 2015 20:47:43 +0000 (20:47 +0000)]
Merge "Add extra library oslo.concurrency to oslo.config.generator.rc"

9 years agoMerge "Drop deprecated namespace for oslo.rootwrap"
Jenkins [Fri, 6 Feb 2015 20:47:34 +0000 (20:47 +0000)]
Merge "Drop deprecated namespace for oslo.rootwrap"

9 years agoUpdate hacking ignore list
Matt Riedemann [Fri, 6 Feb 2015 19:46:53 +0000 (11:46 -0800)]
Update hacking ignore list

H305 and H307 were removed from the ignore list in commit e0dae50dc.

F481 was removed from the ignore list in commit 30e15ec4a.

Change-Id: Ib6a6be6d20838d852d247d7469efb26b2d0f3121

9 years agoVMware: Delay string interpolation in log messages
Vipin Balachandran [Tue, 27 Jan 2015 11:26:39 +0000 (16:56 +0530)]
VMware: Delay string interpolation in log messages

As per OpenStack developer guidelines, string interpolation
should be delayed to be handled by the logging code. This
patch fixes violations of this guideline in the VMDK driver.

Change-Id: Ie449402b080debb186c3664a818c35e18b514382

9 years agoVMware: Integrate VMDK driver with oslo.vmware
Vipin Balachandran [Wed, 26 Nov 2014 10:14:22 +0000 (15:44 +0530)]
VMware: Integrate VMDK driver with oslo.vmware

The common code between various VMware drivers was moved to
oslo.vmware library during Icehouse release. The VMDK driver
should be updated to use this library. Changes are mostly
replacing import statements and removing redundant modules
and corresponding test cases.

Summary of changes:
* Replace api with oslo.vmware.api
* Replace vim with oslo.vmware.vim
* Replace pbm with oslo.vmware.pbm
* Replace io_util with oslo.vmware.image_transfer
* Replace vmware_images with oslo.vmware.image_transfer
* Replace read_write_util with oslo.vmware.rw_handles
* Remove error_util and use oslo.vmware.exceptions
* Move VMDK driver specific exceptions to a new module
  'exceptions'
* Replace PBM WSDL files with the corresponding files in
  oslo.vmware
* Replace PBM related methods in volumeops with the
  corresponding ones in oslo.vmware.pbm

Implements: blueprint vmdk-oslo.vmware
Change-Id: Ib484fabffb8ef1a56051d7e1bed5218b633306bb

9 years agoMerge "Enhance iSCSI multipath support"
Jenkins [Fri, 6 Feb 2015 07:35:42 +0000 (07:35 +0000)]
Merge "Enhance iSCSI multipath support"

9 years agoMerge "Revert "Implement Huawei SDSHypervisor driver""
Jenkins [Fri, 6 Feb 2015 07:35:33 +0000 (07:35 +0000)]
Merge "Revert "Implement Huawei SDSHypervisor driver""

9 years agoMerge "Add debug message for lvremove after udev settle"
Jenkins [Fri, 6 Feb 2015 07:35:24 +0000 (07:35 +0000)]
Merge "Add debug message for lvremove after udev settle"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 6 Feb 2015 07:35:14 +0000 (07:35 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "FlashSystem Code Cleanup"
Jenkins [Fri, 6 Feb 2015 07:32:48 +0000 (07:32 +0000)]
Merge "FlashSystem Code Cleanup"

9 years agoMerge "Create SolidFire Template account on init"
Jenkins [Fri, 6 Feb 2015 05:21:14 +0000 (05:21 +0000)]
Merge "Create SolidFire Template account on init"

9 years agoMerge "Fix argument order in assertEqual: tests/test_nfs.py"
Jenkins [Fri, 6 Feb 2015 05:14:44 +0000 (05:14 +0000)]
Merge "Fix argument order in assertEqual: tests/test_nfs.py"

9 years agoMerge "Make PureISCSIDriver iSCSI port discovery more flexible"
Jenkins [Fri, 6 Feb 2015 05:09:51 +0000 (05:09 +0000)]
Merge "Make PureISCSIDriver iSCSI port discovery more flexible"

9 years agoMerge "Enable use of an /etc/cinder/lvm.conf file"
Jenkins [Fri, 6 Feb 2015 04:52:09 +0000 (04:52 +0000)]
Merge "Enable use of an /etc/cinder/lvm.conf file"

9 years agoEnhance iSCSI multipath support
Tomoki Sekiyama [Thu, 11 Dec 2014 23:23:18 +0000 (18:23 -0500)]
Enhance iSCSI multipath support

Currently, nova-compute and brick support multipath for iSCSI volume
data path. It depends on response to targets discovery of the main
iSCSI portal, expecting multiple portal addresses to be contained.

However, some arrays only respond to discovery with a single portal
address, even if secondary portals are available. In this case,
the connector cannot know secondary portals and corresponding
iSCSI target IQN, so cannot establish multiple sessions for
the target(s). To enable the connector to login to secondary portals,
cinder should tell all the portal addresses and corresponding
target iqns/luns.

With this patch initialize_connection API will return connection_info
with multiple portal addresses/iqns/luns when multipath=True is
specified in the connector info. For example:

  {"driver_volume_type": "iscsi",
   "data": {"target_portals": ["10.0.2.15:3260", "10.0.3.15:3260"],
            "target_iqns": ["iqn.2010-10.org.example:target-01",
                            "iqn.2010-10.org.example:target-02"],
            "target_luns": [1, 2],
            ...}}

This also modify brick/iscsi/connector.py to make the parameter
recognized and to login to every target.

In addition, this adds an config option
'iscsi_secondary_ip_addresses' to specify a list of secondary
portal addresses for LVM iSCSI Driver.

Change-Id: I2a650c8ae70189b738937eaea7e5cd28f896257c
Implements: blueprint iscsi-multipath-enhancement

9 years agoDell Storage Center Unit Test Updates for Kilo
Tom Swanson [Thu, 5 Feb 2015 19:33:03 +0000 (13:33 -0600)]
Dell Storage Center Unit Test Updates for Kilo

Expanded our unit test coverage: test_dellscapi.py.
This tests our api module.  We've also added some
minor driver fixes found by unit and other testing.
Some logging statements have been updated.
All changes are in the dell storage center driver
and unit test files.

Change-Id: Ie12f1f0f82cb4b4d95edeb9c7f3e73caacce1a7f
Implements: blueprint dell-sc-unittests-update-kilo

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 5 Feb 2015 20:11:10 +0000 (20:11 +0000)]
Updated from global requirements

Change-Id: I97eb25f01f3079245ede66887f43622b22d9accc

9 years agoMerge "Update eqlx driver help text"
Jenkins [Thu, 5 Feb 2015 18:55:33 +0000 (18:55 +0000)]
Merge "Update eqlx driver help text"

9 years agoMerge "Support over subscription in thin provisioning"
Jenkins [Thu, 5 Feb 2015 17:39:15 +0000 (17:39 +0000)]
Merge "Support over subscription in thin provisioning"

9 years agoUpdate eqlx driver help text
Sean McGinnis [Thu, 5 Feb 2015 14:59:22 +0000 (08:59 -0600)]
Update eqlx driver help text

Adds a more descriptive help text to the allowed and default values.

Continuation of work started by James King in:
https://review.openstack.org/#/c/144656

Change-Id: I95de8c93bf6a6ff318d6e726488ebae371ee55bf
Closes-Bug: 1380686

9 years agoAdd extra library oslo.concurrency to oslo.config.generator.rc
ChangBo Guo(gcb) [Wed, 26 Nov 2014 03:30:40 +0000 (11:30 +0800)]
Add extra library oslo.concurrency to oslo.config.generator.rc

We used extra library oslo.concurrency in Cinder, and oslo.concurrency
provides configuration options, we need include these options in sample
config file. This commit handles that.
Change-Id: I534539b7e87a3f5dc36722395cbe241a10b2d75e

9 years agoMerge "Change oslo.* to oslo_*"
Jenkins [Thu, 5 Feb 2015 12:30:28 +0000 (12:30 +0000)]
Merge "Change oslo.* to oslo_*"

9 years agoMerge "RemoteFS: Use nas_ip and nas_share_path options"
Jenkins [Thu, 5 Feb 2015 11:02:10 +0000 (11:02 +0000)]
Merge "RemoteFS: Use nas_ip and nas_share_path options"

9 years agoMerge "Add retry for tgtadm update when tgt exists"
Jenkins [Thu, 5 Feb 2015 07:18:56 +0000 (07:18 +0000)]
Merge "Add retry for tgtadm update when tgt exists"

9 years agoMerge "Lefthand driver fails to attach a cloned volume"
Jenkins [Thu, 5 Feb 2015 06:38:24 +0000 (06:38 +0000)]
Merge "Lefthand driver fails to attach a cloned volume"

9 years agoMerge "Purge deleted rows"
Jenkins [Thu, 5 Feb 2015 06:22:14 +0000 (06:22 +0000)]
Merge "Purge deleted rows"

9 years agoSupport over subscription in thin provisioning
Xing Yang [Fri, 16 Jan 2015 21:27:23 +0000 (16:27 -0500)]
Support over subscription in thin provisioning

This patch adds support for over subscription in thin provisioning.
The following changes are proposed:

* A configuration option "max_over_subscription_ratio" will be
  introduced.
* Driver reports the following capacities and ratios:
  * provisioned_capacity
  * max_over_subscription_ratio
    * Driver can use the newly added configuration option to report
      this ratio or it can decide what ratio to report itself.
      The value of this ratio is depending on driver implementation
      and will be reported together with other capabilities and
      capacities by the driver.
  * reserved_percentage
    * Note: This is an existing parameter reported by the driver.
    * Currently it is measured against the free capacity. In this
      patch, it will be changed to measure against the total
      capacity in the filter scheduler.
* Driver also reports the following capabilities:
  * thin_provisioning_support (True or False)
  * thick_provisioning_support (True or False)
* Scheduler will use the above new capabilities reported by the
  driver to make decisions when choosing a backend.

For more details, please see Cinder spec:
https://review.openstack.org/#/c/129342/12/specs/kilo/
over-subscription-in-thin-provisioning.rst

Implements: blueprint over-subscription-in-thin-provisioning
Change-Id: I176a691a4e25bbdc7c4d598628acf2543b2c7ac6

9 years agoMerge "Fixes the EQL driver CI tests AttributeError"
Jenkins [Thu, 5 Feb 2015 02:07:43 +0000 (02:07 +0000)]
Merge "Fixes the EQL driver CI tests AttributeError"

9 years agoChange oslo.* to oslo_*
Anish Bhatt [Tue, 3 Feb 2015 21:19:40 +0000 (13:19 -0800)]
Change oslo.* to oslo_*

Change oslo.db to oslo_db
Change oslo.config to olso_config
Change oslo.rootwrap to oslo_rootwrap

The oslo libraries are moving away from namespace packages.

Partial-bug: 1409733

Change-Id: I3429282afa2db4c0b3aa630eb3a0eaece04405ed

9 years agoLefthand driver fails to attach a cloned volume
Kurt Martin [Thu, 5 Feb 2015 00:09:44 +0000 (16:09 -0800)]
Lefthand driver fails to attach a cloned volume

The provider location was not being populated for cloned volumes.
This patch is updating the provider location for cloned volumes
resulting in successful volume attachments.

Change-Id: I86ef7935ed7233377aa4745dc4b45fcab5703f0a
Closes-Bug: 1418201

9 years agoMerge "Remove the solaris volume driver"
Jenkins [Wed, 4 Feb 2015 22:45:27 +0000 (22:45 +0000)]
Merge "Remove the solaris volume driver"

9 years agoPurge deleted rows
Abel Lopez [Tue, 13 Jan 2015 02:50:00 +0000 (18:50 -0800)]
Purge deleted rows

Adds the ability to clean up rows that are already marked as
deleted of a certain specified age. Age is calculated as timedelta
from now() in days, which are given at command line

DocImpact
Change-Id: Ia50ab0dc4aa1547a5a6a2430f7941aab194e4baf
Implements: blueprint database-purge

9 years agoMake PureISCSIDriver iSCSI port discovery more flexible
Patrick East [Tue, 3 Feb 2015 20:09:58 +0000 (12:09 -0800)]
Make PureISCSIDriver iSCSI port discovery more flexible

While searching for reachable iSCSI ports on the target flash array it
might fail the discovery command. If this happens on driver setup it
will throw an exception from attempting to use fields on an
uninitialized class variable. This fixes the log message and adds a
retry to the method to make this more flexible with network timeouts.

Closes-Bug: 1417730
Change-Id: I99ffb8de4dd5a421442df1bf745808505775480a

9 years agoMerge "EMC VNX Cinder Driver Update"
Jenkins [Wed, 4 Feb 2015 14:40:41 +0000 (14:40 +0000)]
Merge "EMC VNX Cinder Driver Update"

9 years agoEMC VNX Cinder Driver Update
Jeegn Chen [Sun, 14 Dec 2014 09:17:41 +0000 (17:17 +0800)]
EMC VNX Cinder Driver Update

VNX Direct Driver was contributed in Icehouse and updated in Juno.
This commit is to continuously improve the driver with the
following enhancements in Kilo:

* Performance improvement, especially the synchronized operations
initiatlize_connetion and terminate_connection.
* LUN Number Threshold Support
* Initiator Auto Deregistration
* Force Deleting LUN in Storage Groups
* Code refactor to enhance the robustness

Change-Id: Id263a5d0405ba942582ce06beed09b436b80ff3c
Implements: blueprint emc-vnx-direct-driver-kilo-update

9 years agoMerge "Add manage/unmanage methods for Hitachi Block Storage Driver"
Jenkins [Wed, 4 Feb 2015 06:01:42 +0000 (06:01 +0000)]
Merge "Add manage/unmanage methods for Hitachi Block Storage Driver"

9 years agoMake storwize debug log more readable
Li Min Liu [Sun, 1 Feb 2015 15:22:43 +0000 (23:22 +0800)]
Make storwize debug log more readable

Use volume id instead of volume object in debug log.

Change-Id: Ie16d6fefdfffe9d52c0c05bc904142a36e725bf4

9 years agoFixes the EQL driver CI tests AttributeError
rajinir [Tue, 3 Feb 2015 21:38:13 +0000 (15:38 -0600)]
Fixes the EQL driver CI tests AttributeError

Moved the ssh object back to a 'with' Block to
fix the AttributeError thrown by the GeneralContextManager
in the Eqlx CI tests

Fixed the unit tests to mock the enter and exit methods
instead

Change-Id: I629d20e815fb7da3df90dfeee76abc1c60daeefe
Closes-Bug: #1417772

9 years agoMerge "Tests: Don't sleep for looping calls (eqlx)"
Jenkins [Tue, 3 Feb 2015 19:17:58 +0000 (19:17 +0000)]
Merge "Tests: Don't sleep for looping calls (eqlx)"

9 years agoMerge "Roll back if VMAX masking view not created"
Jenkins [Tue, 3 Feb 2015 18:31:00 +0000 (18:31 +0000)]
Merge "Roll back if VMAX masking view not created"

9 years agoAdd manage/unmanage methods for Hitachi Block Storage Driver
Seiji Aguchi [Fri, 23 Jan 2015 05:24:41 +0000 (14:24 +0900)]
Add manage/unmanage methods for Hitachi Block Storage Driver

 This patch adds manage_existing, manage_existing_get_size, and
 unmanage methods for Hitachi Block Storage Driver.

Implements: blueprint hitachi-driver-manage-api

Change-Id: I8dc9086452f4db2e2635bf9c933e1fd9d4328367
Signed-off-by: Seiji Aguchi <seiji.aguchi.tr@hitachi.com>
9 years agoRemoteFS: Use nas_ip and nas_share_path options
Eric Harney [Fri, 23 Jan 2015 20:41:40 +0000 (15:41 -0500)]
RemoteFS: Use nas_ip and nas_share_path options

This replaces the <x>fs_shares_config file configuration
options with the existing nas_ip option and new
nas_share_path and nas_mount_options configuration
options.

This means that RemoteFS drivers will manage a single
export rather than a handful of unrelated exports.

If the nas_ip and nas_share_path options are set, they
are used.  If not, the previous configuration mechanism,
based on loading a set of shares from a file configured
by <x>fs_shares_config will be used.

Also use nas_mount_options to replace
nfs_mount_options for consistency.  If nas_mount_options
is not set, nfs_mount_options will be used for
compatibility.

Implements blueprint: remotefs-share-cfg-improvements
DocImpact: new configuration options

Change-Id: Ic72ae6c7fdd2c6a7fea27152f27c6521a561977b

9 years agoTests: Don't sleep for looping calls (eqlx)
Eric Harney [Tue, 3 Feb 2015 11:16:08 +0000 (12:16 +0100)]
Tests: Don't sleep for looping calls (eqlx)

Mock out greenthread.sleep() so that unit tests
do not spend extra time sleeping.

This changes the eqlx tests from:
Ran 23 tests in 33.533s
 to:
Ran 23 tests in 19.260s

Also remove unneeded randomness.

Change-Id: I1cc03f41fa41e827ec5e39b28a49f6a9ad66b2a1

9 years agoMerge "Use get_my_ipv4 from oslo.utils"
Jenkins [Tue, 3 Feb 2015 11:05:59 +0000 (11:05 +0000)]
Merge "Use get_my_ipv4 from oslo.utils"

9 years agoMerge "Tests: Don't sleep for looping calls"
Jenkins [Tue, 3 Feb 2015 04:08:12 +0000 (04:08 +0000)]
Merge "Tests: Don't sleep for looping calls"

9 years agoEnable use of an /etc/cinder/lvm.conf file
John Griffith [Tue, 20 Jan 2015 23:31:57 +0000 (16:31 -0700)]
Enable use of an /etc/cinder/lvm.conf file

During tempest and Rally runs we've noticed occasional
LVM command hangs (lvs, vgs and pvs), we've also gathered
enough data to show that we see very slow response times from
these commands almost all of the time.

It turns out that this seems to be an issue with us scanning
all devices during LVM operations, including devices that may
be Cinder Volumes that are attaching and detaching from the system.

Inspecting a run instrumented with strace shows a number of LVM
commands timing out due to the device being scanned being removed
during scan, and the LVM command in turn waiting until it times out
on the scan that's in process.

This patch just adds the ability to setup a lvm.conf file in
/etc/cinder.  The Cinder LVM code will now specifically set
the LVM_SYSTEM_DIR environment variable to that directory for
each of the LVM scan commands in brick/local_dev/lvm.py.
If the system doesn't have the file, we use the empty string
which tells LVM to use it's defaults.  This only affects LVM
commands in Cinder, the idea is to ensure we don't impact any
other LVM operations on the node outside of Cinder and that we
behave as we always have in the case of no lvm.conf file being
setup in /etc/cinder.  The presence of the file is auto-detected
on brick/localdev/lvm init.

We'll update the OpenStack Devstack deployment scripts to put this
together and fix things up there first. Until that's done and until
we auto-generate the conf (or document it well), this will be a
*partial* bugfix.

I considered adding a default lvm.conf file to cinder/etc/<sample>
that would be copied in on install, but decided against this to
avoid any possible issues with compatability issues between
platforms or versions.

To use, just copy the /etc/lvm/lvm.conf file to /etc/cinder and
modify the filter as appropriate, for example:
  To use loopback device only:
    filter = [ "a/loop/", "r/.*/" ]
  If you have a physical drive like /dev/sdb1
    filter = [ "a/dev/sdb1/", "r/.*/" ]

Finally, this patch also goes through and cleans up our cmd
variables in brick/localdev/lvm.  We had a mix of using a
cmd array, and strings; this causes inconsistencies and makes
it difficult to extend or modify commands.  Switch everything to
using an array and use extend to provide the correct prefix.

Need to update docs to include a recommendation to create an
/etc/cinder/lvm.conf file and set device filters appropriately.
Doc-Impact
Partial-Bug: #1373513

Change-Id: Ia2289197a6d7fcfc910ee3de48e0a2173881a1e6

9 years agoRoll back if VMAX masking view not created
Xing Yang [Mon, 19 Jan 2015 18:27:31 +0000 (13:27 -0500)]
Roll back if VMAX masking view not created

In emc_vmax_masking.py, an exception object is created if
there is a failure in the masking view creation logic.
However, the exception is not raised. As a result,
initialize_connection will succeed in spite of a failure
but the VM will not be able to access the disk.
This patch adds rollback logic to handle failures in
creating masking view. If the masking view cannot be
created, the volume will be added back to the default
storage group and an exception will be raised.

Closes-Bug: #1393540
Change-Id: I1a00d8922cc876a943fb7822cd86c580d8e6beac

9 years agoMerge "Support iSER driver within the ISCSITarget flow"
Jenkins [Mon, 2 Feb 2015 18:12:58 +0000 (18:12 +0000)]
Merge "Support iSER driver within the ISCSITarget flow"

9 years agoTests: Don't sleep for looping calls
Eric Harney [Mon, 2 Feb 2015 16:12:27 +0000 (17:12 +0100)]
Tests: Don't sleep for looping calls

Some tests are sleeping for a few seconds when
running looping calls.  Mock this out so that
tests do not take longer than required to run.

This takes running vnxdirect and srb tests from:
Ran 105 tests in 37.876s
 to:
Ran 105 tests in 23.154s

Change-Id: I1e79c04d83a59ab37d7550b0021a67fe61e8096e

9 years agoMerge "Fixes attribute content checking"
Jenkins [Mon, 2 Feb 2015 10:27:29 +0000 (10:27 +0000)]
Merge "Fixes attribute content checking"

9 years agoMerge "Fix SSHPoolTestCase to work in parallel"
Jenkins [Mon, 2 Feb 2015 09:44:45 +0000 (09:44 +0000)]
Merge "Fix SSHPoolTestCase to work in parallel"

9 years agoMerge "Failed to discovery when iscsi multipath and CHAP both enabled"
Jenkins [Mon, 2 Feb 2015 09:08:37 +0000 (09:08 +0000)]
Merge "Failed to discovery when iscsi multipath and CHAP both enabled"

9 years agoRevert "Implement Huawei SDSHypervisor driver"
Mike Perez [Sun, 1 Feb 2015 23:30:58 +0000 (15:30 -0800)]
Revert "Implement Huawei SDSHypervisor driver"

The Nova side is not being merged in K. As a result, this won't work in
Kilo. We will revisit merging this in L.

This reverts commit 1a849a42645c053122b3aed779707d95e64194ea.

Change-Id: I85f239988d930c74dd5b4861aa0e9130dacb720f

9 years agoRemove the solaris volume driver
Mike Perez [Fri, 30 Jan 2015 17:17:46 +0000 (09:17 -0800)]
Remove the solaris volume driver

We have never received cert tests for this driver, so we don't know if
it works today in Cinder. There is also no one driving a third party CI
for it.

Change-Id: I0bba2702c576e37658189bdeb201c43676c8388d

9 years agoFix SSHPoolTestCase to work in parallel
Ivan Kolodyazhny [Fri, 30 Jan 2015 17:19:03 +0000 (19:19 +0200)]
Fix SSHPoolTestCase to work in parallel

Mock global config for tests in SSHPoolTestCase to make it
workable in a concurrency mode.

Change-Id: Ibf6f881d6dfd945abe9c7433367b0acf5b24722a
Partial-Bug: #1259463

9 years agoMerge "Punctuation and Copyright changes."
Jenkins [Sat, 31 Jan 2015 20:20:24 +0000 (20:20 +0000)]
Merge "Punctuation and Copyright changes."

9 years agoDrop deprecated namespace for oslo.rootwrap
ChangBo Guo(gcb) [Sat, 31 Jan 2015 05:42:14 +0000 (13:42 +0800)]
Drop deprecated namespace for oslo.rootwrap

The oslo team is recommending everyone to switch to the
non-namespaced versions of libraries.[1]
oslo.rootwrap suggests to use oslo_rootwrap.cmd:main.[2]

[1]https://blueprints.launchpad.net/oslo-incubator/+spec/drop-namespace-packages
[2]https://github.com/openstack/oslo.rootwrap#using

Change-Id: I677f682cf94047e9759c519ed8f3024710e0f4d6

9 years agoFixes attribute content checking
Jay Wang [Tue, 27 Jan 2015 20:02:59 +0000 (12:02 -0800)]
Fixes attribute content checking

Use proper way to check the volume attribute contents in display_name
and display_description. If they are not empty, translate them to
volume backend description. Modify other places where return empty
string makes sense than None as well as the return value checking.

Closes-Bug: 1414247
Change-Id: I87b8d09baf75b227b479f8a79ace90a85cf84177

9 years agoMerge "IBM Storwize driver Consistency Group Implementation"
Jenkins [Fri, 30 Jan 2015 18:18:37 +0000 (18:18 +0000)]
Merge "IBM Storwize driver Consistency Group Implementation"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 30 Jan 2015 06:25:51 +0000 (06:25 +0000)]
Imported Translations from Transifex

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

Change-Id: I8a3617ad5a011dd029990fe2df3d8e501cc98cc3

9 years agoMerge "Add completion logging for snapshots and volumes"
Jenkins [Fri, 30 Jan 2015 00:02:10 +0000 (00:02 +0000)]
Merge "Add completion logging for snapshots and volumes"

9 years agoMerge "HP3Par: Set snapCPG when managing existing volumes"
Jenkins [Thu, 29 Jan 2015 21:50:06 +0000 (21:50 +0000)]
Merge "HP3Par: Set snapCPG when managing existing volumes"

9 years agoSupport iSER driver within the ISCSITarget flow
Aviram Bar-Haim [Sun, 25 Jan 2015 20:50:46 +0000 (22:50 +0200)]
Support iSER driver within the ISCSITarget flow

Currently the iSER driver is supported over TGT only,
and there are a couple of iSER classes that inherits
from iSCSI classes, but most of their functionality is
the same as the iSCSI classes. This code duplication caused
instability in the iSER driver code, when new features or
changes are added to the iSCSI driver flow.

Main changes:
  1. Added a new parameter to volume/driver.py in order to
     set the iSCSI protocol type to 'iscsi' or 'iser', with default
     to 'iscsi'.
  2. Configured TGT VOLUME_CONF and VOLUME_CONF_WITH_CHAP_AUTH
     with the new iSCSI protocol parameter.
  3. Added support for RDMA (using iSER) to cinder-rtstool.
  4. Set "driver_volume_type" to "iscsi" or "iser" value, according
     to the new parameter value.
  5. Added unit tests for the new iSER flow.
  6. Added deprecation alert to ISERTgtAdm.

DocImpact

Implements: blueprint support-iscsi-driver

Change-Id: Ie2c021e7fd37e7221f99b3311e4792c958045431