]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoStorwize: Replication status still active when primary copy is offline
TaoBai [Wed, 11 Feb 2015 10:45:48 +0000 (02:45 -0800)]
Storwize: Replication status still active when primary copy is offline

If primary backend is in abnormal state, even secondary backend is in good
state, we should report error status.

Closes-Bug: #1384040

Change-Id: I777ea6e7ba8c0a4aab77021a561b94285b36b402

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 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 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

9 years agoHP3Par: Set snapCPG when managing existing volumes
Rich Hagarty [Wed, 14 Jan 2015 17:11:27 +0000 (09:11 -0800)]
HP3Par: Set snapCPG when managing existing volumes

This fixes a corner case where the user did not assign a "Copy CPG"
value to the volume when originally created on the back-end, and
then the user does not assign a "Volume Type" to the volume
when it is then "managed" into OpenStack.

This results in an undefined "snapCPG" value which means no
snapshots can be created for the volume.

The fix is to set the "snapCPG" value to match the "User CPG"
value associated with the volume when the volume is "managed"

Change-Id: I207d462e12e4db67bff8624bc69e7e6f1ceff75b
Closes-Bug: #1393609

9 years agoMerge "Remove useless and unused request_utils"
Jenkins [Thu, 29 Jan 2015 16:21:01 +0000 (16:21 +0000)]
Merge "Remove useless and unused request_utils"

9 years agoMerge "Adds unit tests for HNAS backend"
Jenkins [Thu, 29 Jan 2015 16:06:56 +0000 (16:06 +0000)]
Merge "Adds unit tests for HNAS backend"

9 years agoMerge "Add retry to lvm snapshot create"
Jenkins [Thu, 29 Jan 2015 16:00:34 +0000 (16:00 +0000)]
Merge "Add retry to lvm snapshot create"

9 years agoMerge "Fetch_to_volume_format calls copy_volume using wrong parameter"
Jenkins [Thu, 29 Jan 2015 16:00:24 +0000 (16:00 +0000)]
Merge "Fetch_to_volume_format calls copy_volume using wrong parameter"

9 years agoMerge "Fix configratuion of rally jobs"
Jenkins [Thu, 29 Jan 2015 14:46:28 +0000 (14:46 +0000)]
Merge "Fix configratuion of rally jobs"

9 years agoAdds unit tests for HNAS backend
Erlon R. Cruz [Tue, 13 Jan 2015 15:23:27 +0000 (13:23 -0200)]
Adds unit tests for HNAS backend

HNAS drivers only have unit tests for the driver classes. The backend class
used to interface with the array didn't had unit tests.

Change-Id: I1f27533bf6890f033602abdcde33bb42e49c2851

9 years agoFailed to discovery when iscsi multipath and CHAP both enabled
TaoBai [Tue, 20 Jan 2015 12:18:39 +0000 (04:18 -0800)]
Failed to discovery when iscsi multipath and CHAP both enabled

Storage server may be configured to protect target discovering phase with CHAP
authentication, in this case existing discovery command will be failed in Nova
when iscsi multipath enabled. Nova need these below discovery auth properties.
    "discovery.sendtargets.auth.authmethod",
    "discovery.sendtargets.auth.username",
    "discovery.sendtargets.auth.password"

Cinder Storage driver need to send discovery auth properties to Nova in this
case and the properties are:
   iscsi_properties['discovery_auth_method']
   iscsi_properties['discovery_auth_username']
   iscsi_properties['discovery_auth_password']

This issue not just for IBM Storwize, but also other storage drivers who need
CHAP authentication to do iscsi discover.
The according nova change: https://review.openstack.org/#/c/148516/

Closes-Bug: #1367189

Change-Id: Ib528eed3a9fd5006c1649ef42233e1f943c38ab6

9 years agoMerge "HP 3PAR modules have bad log messages"
Jenkins [Thu, 29 Jan 2015 06:39:59 +0000 (06:39 +0000)]
Merge "HP 3PAR modules have bad log messages"

9 years agoAdd retry for tgtadm update when tgt exists
John Griffith [Thu, 15 Jan 2015 15:56:28 +0000 (08:56 -0700)]
Add retry for tgtadm update when tgt exists

For target creation using tgtadm driver, we create a persistence
file for the target, then send a tgt-admin --update 'name' where
name is the specific persistence file we want to read in and update
from.

It turns out that we can hit race conditions where the persistence
file is written, and an update is requested but target has already
done work to make it believe that the target has already been created.

One thought was to just use "update ALL" but this still seems to have
issues, and changes the error to an account exists failure.

This patch takes the brute force approach and adds the cinder.utils
retry decorator to the tgt-admin --update command.  To do this
we just break out the tgt-admin --update call into it's own method
and add the decorator to it.

Closes-Bug: #1398078

Change-Id: Ic72fb5f4fca70a7e7d1c306efe19674fd7e42cd6

9 years agoAdd completion logging for snapshots and volumes
John Griffith [Wed, 28 Jan 2015 04:59:28 +0000 (22:59 -0600)]
Add completion logging for snapshots and volumes

While trying to debug insufficient resource issues occasionally
seen in the gate, it was noted that there's no logging for
resource deletion of volumes and snapshots.

This patch adds some simple logging in the cinder.volume.api
to note when and why a delete call might fail as an info
message indicating when the request is successfully issued
to the scheduler/rpc layer.

In addition, this patch also adds the same sort of logging
to the LVM backend driver.

This additional logging will help troubleshoot the current
resource issues/races we're encountering in the gate.

Change-Id: I1ac39a43d63650ab020b180eefb3a24a946328d2

9 years agoMerge "TgtAdm: Fix _recreate_backing_lun logging"
Jenkins [Thu, 29 Jan 2015 04:49:56 +0000 (04:49 +0000)]
Merge "TgtAdm: Fix _recreate_backing_lun logging"

9 years agoFix configratuion of rally jobs
Boris Pavlovic [Wed, 28 Jan 2015 23:12:33 +0000 (02:12 +0300)]
Fix configratuion of rally jobs

* Reduce requested resources by rally job
* Remove nested snapshot benchmark cause seems like it has some
  issues not related to cinder

Change-Id: Id38cc0670f081b352e7db2b63e47e156ed277382

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 29 Jan 2015 00:20:11 +0000 (00:20 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Changed pvs separator from ':' to '|' to support names with ':'."
Jenkins [Wed, 28 Jan 2015 23:26:54 +0000 (23:26 +0000)]
Merge "Changed pvs separator from ':' to '|' to support names with ':'."

9 years agoMerge "Fix the eqlx driver to retry on ssh timeout"
Jenkins [Wed, 28 Jan 2015 23:25:56 +0000 (23:25 +0000)]
Merge "Fix the eqlx driver to retry on ssh timeout"

9 years agoCreate SolidFire Template account on init
John Griffith [Tue, 27 Jan 2015 23:19:11 +0000 (16:19 -0700)]
Create SolidFire Template account on init

The standard flow in the SolidFire volume is to create
accounts dynamically as needed based on project id.
Unfortunately the clone_image method "forgot" about this
detail and calls the private clone_volume method without
a valid account resulting in an AccountNotFound
Exception.

The clone_image method is enabled using a specific account
provided via the configuration file.  Rather than worry
about dynamic account creation on clone_image call, this
patch just makes it part of the init phase.  We check to
see if template caching is enabled and if it is, just
go ahead and check/create the account on startup.

Change-Id: I41a8d400d3dfc0e185304f80efd419ebac9efdf6
Closes-Bug: #1414760

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 28 Jan 2015 16:31:40 +0000 (16:31 +0000)]
Updated from global requirements

Change-Id: I77d92824c867cabfe505f169e1a224ac805d650f

9 years agoAdd debug message for lvremove after udev settle
John Griffith [Wed, 28 Jan 2015 04:20:38 +0000 (22:20 -0600)]
Add debug message for lvremove after udev settle

Just add a simple debug level log message for lvremove calls that
are made and successfully completed as part of error recovery.

Currently some platforms commonly receive a "Unable to deactivate"
error message when running an lvremove.  We have a retry mechanism
that performs a udevsettle and retries that in most cases results
in a succesful removal.

This patch just adds an explicit debug log message so we can track
this more easily and gather some statistical data on it.

Change-Id: I8f2480491f3cb7f078597113f967c1e285fdf105

9 years agoMerge "Revert "Create SolidFire Template account on init""
Jenkins [Wed, 28 Jan 2015 15:44:47 +0000 (15:44 +0000)]
Merge "Revert "Create SolidFire Template account on init""

9 years agoIBM Storwize driver Consistency Group Implementation
TaoBai [Thu, 18 Dec 2014 05:30:39 +0000 (21:30 -0800)]
IBM Storwize driver Consistency Group Implementation

This patch is IBM Storwize Driver implementation for Consistency Group

Implements: blueprint storwize-svc-consistency-group

Change-Id: Id25c32d93f1c8d8a2986904058a9556e98bbdbe2

9 years agoMerge "Add provisioned_capacity"
Jenkins [Wed, 28 Jan 2015 07:37:51 +0000 (07:37 +0000)]
Merge "Add provisioned_capacity"

9 years agoUse get_my_ipv4 from oslo.utils
ChangBo Guo(gcb) [Tue, 23 Dec 2014 08:17:49 +0000 (16:17 +0800)]
Use get_my_ipv4 from oslo.utils

Remove _get_my_ip from Cinder and replace it's usages
by usages of get_my_ipv4 from netutils, because this methods
implements the same functionality.

Change-Id: I293128364dcd1a83e990d9c75555b04c1e4226fb

9 years agoTgtAdm: Fix _recreate_backing_lun logging
Eric Harney [Tue, 27 Jan 2015 21:59:53 +0000 (16:59 -0500)]
TgtAdm: Fix _recreate_backing_lun logging

If the execute of tgtadm new fails, the exception
thrown skips over the debugging output.

Ensure the output from the command is always
printed.

Change-Id: I9772c0f725cd6a19d4af8acae814a046e6cfdd17

9 years agoRevert "Create SolidFire Template account on init"
John Griffith [Tue, 27 Jan 2015 20:14:14 +0000 (20:14 +0000)]
Revert "Create SolidFire Template account on init"

This reverts commit a36100bd34a22ddc3b620947809a41d328b1e949.

Change-Id: I86f6af5ad18f3236a3f7c5db70acdf2f292ae3b5