]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoEventlet green threads not released back to pool
abhishekkekane [Tue, 21 Oct 2014 09:31:15 +0000 (02:31 -0700)]
Eventlet green threads not released back to pool

Presently, the wsgi server allows persist connections hence even after
the response is sent to the client, it doesn't close the client socket
connection.
Because of this problem, the green thread is not released back to the pool.

In order to close the client socket connection explicitly after the
response is sent and read successfully by the client, you simply have to
set keepalive to False when you create a wsgi server.

DocImpact:
Added wsgi_keep_alive option (default=True).
In order to maintain the backward compatibility, setting wsgi_keep_alive
as True by default. Recommended is set it to False.

Conflicts:
        cinder/wsgi.py
        etc/cinder/cinder.conf.sample

SecurityImpact

Closes-Bug: #1361360
Change-Id: Ic57b2aceb136e8626388cfe4df72b2f47cb0661c
(cherry picked from commit fc87da7eeb3451e139ee71b31095d0b9093332ce)

9 years agoUse look up service for auto zoning
Xing Yang [Thu, 9 Oct 2014 05:26:28 +0000 (01:26 -0400)]
Use look up service for auto zoning

The VMAX FC driver didn't use the look up service for auto zoning.
Instead it built initiator target map itself. However, that
requires the initiator to log into the fabric before zoning
in order to find out target WWNs.

This patch is to use the look up service to find out valid initiator
target WWNS and use that to build initiator target map. With this fix,
the initiator is no longer required to log into the fabric ahead of time.

Closes-Bug: #1379156
(cherry picked from commit 8707458a98bd1e4059939325659a7290757d972f)
Change-Id: I76e1a8a2e7d4230b851b763f7d13dd1489b69364

9 years agoCinder api service doesn't handle SIGHUP properly
Zhiteng Huang [Tue, 21 Oct 2014 09:05:50 +0000 (17:05 +0800)]
Cinder api service doesn't handle SIGHUP properly

When SIGHUP signal is sent to cinder-api service, it doesn't complete
processing of all pending requests before terminating all the
processes.

This change is a copy of Abhishek Kekane's fix for nova api.

Change-Id: I049d2aa2f3ad1fe388e00213a71f374803ed409a
Closes-Bug: #1334647
(cherry picked from commit 6c3ad4cf55c5f4cb610fb2625aed1286857b6c67)

9 years agoTruncate fail_reason to column length
Vipin Balachandran [Thu, 9 Oct 2014 14:05:46 +0000 (19:35 +0530)]
Truncate fail_reason to column length

During create_backup failure handling, backup_update fails with
DataError ("Data too long for column") if the fail_reason is
greater than 255 characters. As a result, backup status is stuck
in 'creating' state. This patch avoids the problem by truncating
fail_reason to 255 characters before update.

Closes-Bug: #1376199
Change-Id: If0d616b81d3869f7ea110caab8cf4140cf5c5c9e
(cherry picked from commit 82716b4ac836024b968c76db75be8a92ede0e226)

9 years agoVMware: Fix initialization of datastore selector
Vipin Balachandran [Mon, 13 Oct 2014 14:04:36 +0000 (19:34 +0530)]
VMware: Fix initialization of datastore selector

The WSDL URL of storage policy service is determined and a session is
created using it in do_setup(). This session is later used to initialize
the datastore selector property (ds_sel), which uses the session for all
storage policy related API calls.

After commit a8fa3ceb1e72bac2ab67f569a2ca009f995f59fd (Integrate
OSprofiler and Cinder), the properties defined in vmdk module are called
before do_setup(). As a result, the ds_sel (datastore selector) property
is initialized with a session instance containing a 'None' PBM (storage
policy service) WSDL URL. This results in failures of all storage policy
related APIs invoked using datastore selector. This patch fixes the
problem by re-initializing the property in do_setup().

Change-Id: Ibdf8b23f9e215000cf9053b81d374066fabd6851
Closes-Bug: #1380675
(cherry picked from commit 6ac6225e72bde92f66da8e92c563c140471b949b)

9 years agoNetApp fix for default host type in eseries
Navneet Singh [Fri, 23 May 2014 04:57:33 +0000 (10:27 +0530)]
NetApp fix for default host type in eseries

This fixes the issue where the default host type
provided in mapping should be high performing LnxALUA
type for eseries. It also makes it configurable in case
users want to configure a different host type.

Closes-Bug: #1365884

Change-Id: I30992ca69c25c3c02334470aae90c32731a5f3f4
(cherry picked from commit a120ede9ae3f18756db07d1d6696b9ac773b84bf)

9 years agoOpening stable/juno
Thierry Carrez [Thu, 16 Oct 2014 14:58:51 +0000 (16:58 +0200)]
Opening stable/juno

Bump version to next stable release on juno branch, and set
defaultbranch in .gitreview for convenience.

Change-Id: I9312271d24982e1d251472aabaee92a62eb38970

9 years agoUpdated pt.po
Thomas Goirand [Tue, 11 Nov 2014 21:02:04 +0000 (05:02 +0800)]
Updated pt.po

9 years agoFixed nl.po encoding.
Thomas Goirand [Tue, 11 Nov 2014 20:57:47 +0000 (04:57 +0800)]
Fixed nl.po encoding.

10 years ago * Added nl.po debconf translation, thanks to Frans Spiesschaert
Thomas Goirand [Sat, 25 Oct 2014 16:58:51 +0000 (16:58 +0000)]
  * Added nl.po debconf translation, thanks to Frans Spiesschaert
    <Frans.Spiesschaert@yucom.be> (Closes: #766535).

10 years agoNow packaging Juno final.
Thomas Goirand [Thu, 16 Oct 2014 15:23:41 +0000 (15:23 +0000)]
Now packaging Juno final.

10 years agoMerge tag '2014.2' into debian/juno
Thomas Goirand [Thu, 16 Oct 2014 15:23:00 +0000 (15:23 +0000)]
Merge tag '2014.2' into debian/juno

Cinder 2014.2

10 years agoFix LVM iSCSI driver tgtadm CHAP authentication
Tomoki Sekiyama [Tue, 14 Oct 2014 23:09:44 +0000 (19:09 -0400)]
Fix LVM iSCSI driver tgtadm CHAP authentication

Currently CHAP Authentication in LVM iSCSI driver with tgtadm does not work.
This is because the tgtadm helper creates the target configuration file
with an 'IncomingUser' entry, which is ignored by tgtd.
This patch fixes it to 'incominguser'.

Change-Id: I14871985a2a916834122f849238f05b75726bc1a
Closes-Bug: #1329214
(cherry picked from commit e3563891545c801726d227f752cf99488ed5c7dd)

10 years agoExport cinder volumes only if the status is 'in-use'
Mitsuhiro Tanino [Tue, 14 Oct 2014 16:41:41 +0000 (12:41 -0400)]
Export cinder volumes only if the status is 'in-use'

Currently, cinder volumes are exported both 'in-use' and 'available'
after restarting cinder-volume service.
This behavior was introduced following commit.

  commit ffefe18334a9456250e1b6ff88b7b47fb366f374
  Author: Zhiteng Huang <zhithuang@ebaysf.com>
  Date: Sat Aug 23 18:32:57 2014 +0000

If the volumes are attached to nova instances, they should be exported
via tgtd after restarting cinder-volume.
But the volumes which are not attached to instances must not be exported
because everyone can connect these volumes.

This patch changes volume export behavior that exports a volume only if
the volume status is 'in-use'.

Change-Id: I4c598c240b9290c81bd8001e5a0720c8c329aeb9
Signed-off-by: Mitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Closes-bug: #1381106
(cherry picked from commit e2f28b967910625432be0eab6a851adf53ac58ea)

10 years agoRevert "Relocate volume to compliant datastore"
Vipin Balachandran [Fri, 10 Oct 2014 17:36:27 +0000 (23:06 +0530)]
Revert "Relocate volume to compliant datastore"

Commit 4be8913520f5e9fe4109ade101da9509e4a83360 introduced a regression
which causes failures during cinder volume re-attach. This patch reverts
commit 4be8913520f5e9fe4109ade101da9509e4a83360 as an immediate fix.

Closes-Bug: #1379830
Change-Id: I5dfbd45533489c3c81db8d256bbfd2f85614a357
(cherry picked from commit 48cb82971e0418f9a629e2b39d0433dc2c0e6919)

10 years agoStandards-Version is now 3.9.6 (no change).
Thomas Goirand [Sun, 12 Oct 2014 12:22:16 +0000 (12:22 +0000)]
Standards-Version is now 3.9.6 (no change).

10 years agoRemoved PATH= from init.in files, as it's also in the openstack-pkg-tools template.
Thomas Goirand [Sun, 12 Oct 2014 12:11:39 +0000 (20:11 +0800)]
Removed PATH= from init.in files, as it's also in the openstack-pkg-tools template.

10 years agoUpdated (build-)depends for this release.
Thomas Goirand [Sun, 12 Oct 2014 12:08:42 +0000 (20:08 +0800)]
Updated (build-)depends for this release.

10 years agoMerge tag '2014.2_rc2' into debian/juno
Thomas Goirand [Sun, 12 Oct 2014 12:06:08 +0000 (20:06 +0800)]
Merge tag '2014.2_rc2' into debian/juno

Cinder juno-rc2 milestone (2014.2.rc2)

10 years agoNow packaging Juno RC2.
Thomas Goirand [Sun, 12 Oct 2014 12:05:28 +0000 (20:05 +0800)]
Now packaging Juno RC2.

10 years agoMerge "NetApp fix eseries unit test mock clean" into proposed/juno
Jenkins [Thu, 9 Oct 2014 15:59:12 +0000 (15:59 +0000)]
Merge "NetApp fix eseries unit test mock clean" into proposed/juno

10 years agoUpdated translations
Andreas Jaeger [Thu, 9 Oct 2014 10:25:28 +0000 (12:25 +0200)]
Updated translations

Commands run:-
$ python setup.py extract_messages
$ python setup.py update_catalog --no-fuzzy-matching \
  --ignore-obsolete=true
$ source \
  ../openstack-infra/project-config/jenkins/scripts/common_translation_update.sh
$ setup_loglevel_vars
$ cleanup_po_files cinder

Change-Id: I73f3bdccb4be98df95fa853864e465f4d83a8884

10 years agoNetApp fix eseries unit test mock clean
Navneet Singh [Thu, 28 Aug 2014 10:33:41 +0000 (16:03 +0530)]
NetApp fix eseries unit test mock clean

This patch fixes the issue of mock not getting
cleaned for requests in unit tests.

Closes-Bug: #1353506

Change-Id: Iab401021d7f180ff1f2bf3ed79166699112cc367
(cherry picked from commit 140956515327494a53de6ad09c35690624248f0a)

10 years agoMerge "Updated from global requirements" into proposed/juno
Jenkins [Thu, 9 Oct 2014 05:23:14 +0000 (05:23 +0000)]
Merge "Updated from global requirements" into proposed/juno

10 years agoMake sure device support Direct before setting
John Griffith [Tue, 7 Oct 2014 17:49:58 +0000 (11:49 -0600)]
Make sure device support Direct before setting

We added '-t none' option to the qemu-img convert operation
in image_utils.py a while back to accomodate a couple of
backend devices that didn't flush writes on disconnect.
(Change: I7a04f683add8c23b9125fe837c4048ccc3ac224d)

The only problem here is that some backend devices don't
support Direct mode and raise an exception and fail when
setting this option.

This patch adds a simple check using dd to see if the dest
supports the Direct flag and only sets '-t none' if the device
does in fact support it.

Additionally it was brought up that even yet other backends
are using file devices not blk devices.  In their case setting
Direct will still work, however it's sub-optimal as qemu-convert
has internal mechanisms to make sure flushing etc are done
correctly and efficiently for those devices.  So to accomodate
that particular use case I'm also adding a check if blk dev
that can be used for determining whether to set Direct for the
qemu-convert process.

Change-Id: I34127ac373ceadcfb6fc2662628b1a91eb7b0046
Closes-Bug: 1375487
(cherry picked from commit c42273fbc1983b146180c82b8a34b0d832a6f431)

10 years agoMerge "Handle eqlx SSH connection close on abort." into proposed/juno
Jenkins [Wed, 8 Oct 2014 22:07:20 +0000 (22:07 +0000)]
Merge "Handle eqlx SSH connection close on abort." into proposed/juno

10 years agoMerge "IBM Storwize driver: Retype the volume with correct empty QoS" into proposed...
Jenkins [Wed, 8 Oct 2014 17:05:28 +0000 (17:05 +0000)]
Merge "IBM Storwize driver: Retype the volume with correct empty QoS" into proposed/juno

10 years agoMerge "ZFSSA iSCSI driver cannot add multple initiators to a group" into proposed...
Jenkins [Wed, 8 Oct 2014 17:05:19 +0000 (17:05 +0000)]
Merge "ZFSSA iSCSI driver cannot add multple initiators to a group" into proposed/juno

10 years agoMerge "Fix race condition in ISCSIConnector _disconnect_volume_multipath_iscsi" into...
Jenkins [Wed, 8 Oct 2014 17:05:10 +0000 (17:05 +0000)]
Merge "Fix race condition in ISCSIConnector _disconnect_volume_multipath_iscsi" into proposed/juno

10 years agoMerge "Deprecate / obsolete NetApp volume extra specs" into proposed/juno
Jenkins [Wed, 8 Oct 2014 17:05:01 +0000 (17:05 +0000)]
Merge "Deprecate / obsolete NetApp volume extra specs" into proposed/juno

10 years agoZFSSA iSCSI vol create fails with vol type option
Juan Zuluaga [Wed, 24 Sep 2014 22:51:07 +0000 (18:51 -0400)]
ZFSSA iSCSI vol create fails with vol type option

Vol create with volume-type option is not working since
volume_backend_name contains the class name as
predefined string. No matter what was specified in cinder.conf
as volume_backend_name, volume creation failed.
Multi-backend option and using extra specs to create custom volumes
won't work.
The fix is to look whether volume_backend_name is part of the
configuration or falls into the class name in case there is
no backend name.

Closes-Bug: 1373621
DocImpact

(cherry picked from commit 5c61d57d3693523e9cbf11bf0b5b09bafe699247)

Change-Id: I1bc501dd4c5689d96c7beb720b64112df1770232

10 years agoHandle eqlx SSH connection close on abort.
Sean McGinnis [Fri, 26 Sep 2014 20:21:35 +0000 (15:21 -0500)]
Handle eqlx SSH connection close on abort.

EqualLogic array CLI operation timeout causes the
SSH thread to be aborted. This would cause SSH
sessions to be orphaned and hit a max connection
limit on the array. This fix catches these aborts
and makes sure the connection is closed.

Change-Id: I9392fd5dd79eb44f252bf50217f17cc473e6f2f0
Closes-Bug: 1374613
(cherry picked from commit 5cb23b67c53437fc51a6b37acac477fba4d6a7ab)

10 years agoZFSSA iSCSI driver cannot add multple initiators to a group
Juan Zuluaga [Tue, 16 Sep 2014 15:23:36 +0000 (11:23 -0400)]
ZFSSA iSCSI driver cannot add multple initiators to a group

All initiators defined in zfssa_initiator property would be
added to the group.
Also fixed some typos related to initiators error messages.

Change-Id: Iec6c90702e5aafa153b4a7f1e429974ac450afc0
Closes-Bug: #1369750
(cherry picked from commit f94d671e627dd7b5143422ffe739418fcfb51a70)

10 years agoFix race condition in ISCSIConnector _disconnect_volume_multipath_iscsi
Patrick East [Tue, 30 Sep 2014 18:47:42 +0000 (11:47 -0700)]
Fix race condition in ISCSIConnector _disconnect_volume_multipath_iscsi

This is a similar issue as seen in
https://bugs.launchpad.net/cinder/+bug/1375382

The list of devices returned by driver.get_all_block_devices() in
_disconnect_volume_multipath_iscsi will potentially contain broken
symlinks as the SCSI devices have been deleted from calling
self._linuxscsi.remove_multipath_device(device_realpath) right before
_disconnect_volume_multipath_iscsi but the udev rule for the symlink
may not yet have completed.

Adding in a check to os.path.exists() will ensure that we will not
consider the broken symlinks as an “in use” device.

Change-Id: I79c9627e9b47127d3765fcec5b7e3bacef179630
Closes-Bug: #1375946
(cherry picked from commit 4541521de576297d9b7d4115b040ff54773d9d50)

10 years agoDeprecate / obsolete NetApp volume extra specs
Clinton Knight [Fri, 26 Sep 2014 16:07:44 +0000 (12:07 -0400)]
Deprecate / obsolete NetApp volume extra specs

The NetApp Data ONTAP (Cluster-mode) NFS & iSCSI drivers for Juno support
the Cinder pools feature, but the drivers are reporting two qualified
extra specs that must be converted to unqualified extra specs in order to
be used by the Cinder scheduler's capability filter. Furthermore, there
are four extra specs that must be deprecated due to having the pools
feature.  Warnings will be logged during volume creation if any of the
obsolete or deprecated extra specs are seen in the volume type.

Change-Id: I4dbd667610e481356304a12b8dae84cff61aa9d9
Closes-bug: 1374630
(cherry picked from commit 4cb4be4122a44dc99d6f29f065cdd32ae86273ce)

10 years agoIBM Storwize driver: Retype the volume with correct empty QoS
Vincent Hou [Fri, 12 Sep 2014 08:10:02 +0000 (16:10 +0800)]
IBM Storwize driver: Retype the volume with correct empty QoS

* Currently for Storwzie driver, if the new type does not have QoS
configurations, the old QoS configurations remain in the volume after
retyping it. It should be retyped into a volume with empty QoS for the
Storwize driver.
* Refactor three dicts into one for better maintainance of the QoS keys
for Storwize driver.

DocImpact

Change-Id: I2b2801a4ef72ef02c11392ed00b56f5263a8a7e4
Closes-Bug: #1368595
(cherry picked from commit 26de1b1d829849665dae921b8be739194b84515d)

10 years agoMerge "Windows SMBFS: Handle volume_name in _qemu_img_info" into proposed/juno
Jenkins [Tue, 7 Oct 2014 22:12:29 +0000 (22:12 +0000)]
Merge "Windows SMBFS: Handle volume_name in _qemu_img_info" into proposed/juno

10 years agoMerge "Refuse invalid qcow2 backing files" into proposed/juno
Jenkins [Tue, 7 Oct 2014 21:42:09 +0000 (21:42 +0000)]
Merge "Refuse invalid qcow2 backing files" into proposed/juno

10 years agoSync latest processutils from oslo-incubator
Tristan Cacqueray [Fri, 3 Oct 2014 19:57:01 +0000 (19:57 +0000)]
Sync latest processutils from oslo-incubator

An earlier commit (Ia92aab76fa83d01c5fbf6f9d31df2463fc26ba5c) failed
to address ssh_execute(). This change set addresses ssh_execute.

------------------------------------------------

oslo-incubator head:

commit 4990535fb5f3e2dc9b397e1a18c1b5dda94ef1c4
Merge: 9f5c700 2a130bf
Author: Jenkins <jenkins@review.openstack.org>
Date:   Mon Sep 29 23:12:14 2014 +0000

    Merge "Script to list unreleased changes in all oslo projects"

-----------------------------------------------

The sync pulls in the following changes (newest to oldest):

6a60f842 - Mask passwords in exceptions and error messages (SSH)

-----------------------------------------------

Change-Id: Ie0caf32469126dd9feb44867adf27acb6e383958
Closes-Bug: #1377981
(cherry picked from commit 5e4e1f7ea71f9b4c7bd15809c58bc7a1838ed567)

10 years agoNow using a single cinder-common.logrotate file instead of so many.
Thomas Goirand [Tue, 7 Oct 2014 05:47:47 +0000 (13:47 +0800)]
Now using a single cinder-common.logrotate file instead of so many.

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 6 Oct 2014 16:09:05 +0000 (16:09 +0000)]
Updated from global requirements

Change-Id: I116f04494e596e470f8fec242466ac5fe21b222c

10 years agoMangling upstream rc and beta versions in watch file.
Thomas Goirand [Sun, 5 Oct 2014 06:24:04 +0000 (14:24 +0800)]
Mangling upstream rc and beta versions in watch file.

10 years agomissing dh-systemd and --with systemd options
Thomas Goirand [Fri, 3 Oct 2014 05:41:50 +0000 (13:41 +0800)]
missing dh-systemd and --with systemd options

10 years agoSwitching to templated init scripts using openstack-pkg-tools >= 13.
Thomas Goirand [Fri, 3 Oct 2014 05:27:02 +0000 (13:27 +0800)]
Switching to templated init scripts using openstack-pkg-tools >= 13.

10 years agoWindows SMBFS: Handle volume_name in _qemu_img_info
Lucian Petrut [Tue, 30 Sep 2014 08:58:22 +0000 (11:58 +0300)]
Windows SMBFS: Handle volume_name in _qemu_img_info

The volume_name is now parsed to the _qemu_img_info wrapper. As
this method is not prone to security issues because this driver
does not support raw images (at least not yet), we don't have to
perform any checks on the backing image file path.

Thus, this method simply ignores this argument that will be parsed
by the base class methods.

Related-Bug: #1350504

Change-Id: I801a6338250ec2dc631c4058543f7d0088b3e4d4
(cherry picked from commit 5e0ce63d6df39dcad5a0ef35553369e49c67dfb8)

10 years agoRefuse invalid qcow2 backing files
Eric Harney [Tue, 9 Sep 2014 20:20:24 +0000 (16:20 -0400)]
Refuse invalid qcow2 backing files

Don't allow qcow2 files that are pointing to backing files outside of:

volume-<id>
volume-<id>.<snap-id>
volume-<id>.tmp-snap-<snap-id>

(optionally prefixed with /mnt/path)

Closes-Bug: #1350504

Change-Id: Ic89cffc93940b7b119cfcde3362f304c9f2875df
(cherry picked from commit dca3c8323cf8cf12aa8ce4ba21f647ce631e8153)

10 years ago * Added more lintian-override for false positive about unused debconf
Thomas Goirand [Wed, 1 Oct 2014 11:03:56 +0000 (11:03 +0000)]
  * Added more lintian-override for false positive about unused debconf
    templates.

10 years agoUpdated (build-)depends for this release.
Thomas Goirand [Wed, 1 Oct 2014 07:51:00 +0000 (15:51 +0800)]
Updated (build-)depends for this release.

10 years agoNow packaging Juno RC1.
Thomas Goirand [Wed, 1 Oct 2014 07:44:06 +0000 (15:44 +0800)]
Now packaging Juno RC1.

10 years agoMerge tag '2014.2_rc1' into debian/juno
Thomas Goirand [Wed, 1 Oct 2014 07:43:46 +0000 (15:43 +0800)]
Merge tag '2014.2_rc1' into debian/juno

Cinder juno-rc1 milestone (2014.2.rc1)

10 years agoMerge "VMware: cinder-volume create_session fail at retry"
Jenkins [Tue, 30 Sep 2014 05:06:02 +0000 (05:06 +0000)]
Merge "VMware: cinder-volume create_session fail at retry"

10 years agoMerge "Fix race condition in ISCSIConnector disconnect_volume"
Jenkins [Tue, 30 Sep 2014 04:33:12 +0000 (04:33 +0000)]
Merge "Fix race condition in ISCSIConnector disconnect_volume"

10 years agoMerge "Adds openSUSE support for developer documentation"
Jenkins [Tue, 30 Sep 2014 02:00:10 +0000 (02:00 +0000)]
Merge "Adds openSUSE support for developer documentation"

10 years agoMerge "Remove unused py33 tox env"
Jenkins [Mon, 29 Sep 2014 22:02:24 +0000 (22:02 +0000)]
Merge "Remove unused py33 tox env"

10 years agoFix race condition in ISCSIConnector disconnect_volume
Patrick East [Mon, 29 Sep 2014 17:54:22 +0000 (10:54 -0700)]
Fix race condition in ISCSIConnector disconnect_volume

The list of devices returned by driver.get_all_block_devices() will
sometimes contain broken symlinks as the SCSI device has been deleted
but the udev rule for the symlink has not yet completed.

Adding in a check to os.path.exists() will ensure that we will not
consider the broken symlinks as an “in use” device.

Change-Id: Ibb869e10976f894f9e18e9edec6739c2c3bea68c
Closes-Bug: #1375382

10 years agoAdds openSUSE support for developer documentation
Alberto Planas [Mon, 29 Sep 2014 15:25:10 +0000 (17:25 +0200)]
Adds openSUSE support for developer documentation

Add information for openSUSE as developer platform.

Change-Id: I3d5429f78b06cd38b10756570acea96fb23ed021

10 years agoVMware:Unquote folder name for folder exists check
Vipin Balachandran [Thu, 14 Aug 2014 09:39:40 +0000 (15:09 +0530)]
VMware:Unquote folder name for folder exists check

vCenter server escapes special characters in the folder name using URL
encoding and returns back the encoded string while querying. This causes
the check for folder existence to return false. Therefore, folder
creation is reattempted which eventually fails. This patch fixes the
problem by decoding the folder name returned by vCenter before
comparison.

Change-Id: I40aa6f42ea0d85fbfcb40970c55b20e13ea46522
Closes-Bug: #1356794

10 years agoMerge "Add required spaces in log messages"
Jenkins [Mon, 29 Sep 2014 06:26:28 +0000 (06:26 +0000)]
Merge "Add required spaces in log messages"

10 years agoVMware: cinder-volume create_session fail at retry
Johnson Koil Raj [Fri, 26 Sep 2014 18:37:47 +0000 (00:07 +0530)]
VMware: cinder-volume create_session fail at retry

cinder-volume exits with an exception while accessing a None
object during retry of create session failure.

Closes-Bug: #1374585

Change-Id: I1d8dd034e9c6eb7568cf6f243a203df7de1777da

10 years agoMerge "IBM Storwize:Failed to retype from non-type to replication enable"
Jenkins [Sun, 28 Sep 2014 02:24:35 +0000 (02:24 +0000)]
Merge "IBM Storwize:Failed to retype from non-type to replication enable"

10 years agoMerge "NetApp fix for controller preferred path"
Jenkins [Sat, 27 Sep 2014 22:24:46 +0000 (22:24 +0000)]
Merge "NetApp fix for controller preferred path"

10 years agoMerge "Fix running unit tests with coverage"
Jenkins [Sat, 27 Sep 2014 22:24:37 +0000 (22:24 +0000)]
Merge "Fix running unit tests with coverage"

10 years agoMerge "VMware: Add storage profile related unit tests"
Jenkins [Sat, 27 Sep 2014 22:24:28 +0000 (22:24 +0000)]
Merge "VMware: Add storage profile related unit tests"

10 years agoMerge "VMware: Relocate volume to compliant datastore"
Jenkins [Sat, 27 Sep 2014 22:24:20 +0000 (22:24 +0000)]
Merge "VMware: Relocate volume to compliant datastore"

10 years agoMerge "VMware: Implement retype for VMDK driver"
Jenkins [Sat, 27 Sep 2014 22:24:11 +0000 (22:24 +0000)]
Merge "VMware: Implement retype for VMDK driver"

10 years agoMerge "VMware: Improve datastore selection logic"
Jenkins [Sat, 27 Sep 2014 22:18:53 +0000 (22:18 +0000)]
Merge "VMware: Improve datastore selection logic"

10 years agoMerge "Failed to re-detach volume when volume detached."
Jenkins [Sat, 27 Sep 2014 22:18:43 +0000 (22:18 +0000)]
Merge "Failed to re-detach volume when volume detached."

10 years agoFixing format for log messages
ArkadyKanevsky [Wed, 27 Aug 2014 21:47:37 +0000 (16:47 -0500)]
Fixing format for log messages

code_cleanup_batching for EQL driver
Follow log essage format for i18n - http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages

Closes-Bug: 1362337

Change-Id: Ic3726f725efa4d29204e8530a8f191b801a4aac8

10 years agoUpdate /etc/cinder/cinder.conf.sample for memcache
Jay S. Bryant [Thu, 25 Sep 2014 20:58:41 +0000 (15:58 -0500)]
Update /etc/cinder/cinder.conf.sample for memcache

It appears that an update to keystone middleware earlier today
added options for memcache_secret_key, memcache_pool_dead_retry,
memcache_pool_maxsize, memcache_pool_socket_timeout,
memcache_pool_unused_timeout, memcache_pool_conn_get_timeout and
memcache_use_advanced_pool.  The commit that added these options
was: a7beb50b38be5c3dd4c44d68ad79d1bb206dab6b - "Add an optional
advanced pool of memcached clients".

This has once again caused the check_uptodate.sh script to fail.

This patch updates cinder.sample.conf .

Change-Id: Ibcf19ccc81a56a9a3e795022e3e07bc061fa9401
Closes-bug: 1374154

10 years agoMerge "Fix unnecessary WSGI worker warning at API startup"
Jenkins [Thu, 25 Sep 2014 13:39:02 +0000 (13:39 +0000)]
Merge "Fix unnecessary WSGI worker warning at API startup"

10 years agoVMware: Relocate volume to compliant datastore
Vipin Balachandran [Wed, 27 Aug 2014 14:56:34 +0000 (20:26 +0530)]
VMware: Relocate volume to compliant datastore

During attach to a nova instance, the backing VM corresponding to the
volume is relocated only if the nova instance's ESX host cannot access
the backing's current datastore. The storage profile is ignored and
the volume's virtual disk might end up in a non-compliant datastore.
This patch fixes the problem by checking storage profile compliance of
the current datastore.

Change-Id: I3865654e219c05dcec3aaab07c4cee0658fe181e
Closes-Bug: #1301348

10 years agoFailed to re-detach volume when volume detached.
Rick Chen [Wed, 24 Sep 2014 09:08:52 +0000 (17:08 +0800)]
Failed to re-detach volume when volume detached.

When first request command detach the volume, but the back-end
storage state is in-processing or busy. Next retry command will
got the error code that describe the volume already detached.

Change-Id: If340980ab2dcc844398254ff368ca6b78ca40ff6
Closes-Bug: 1373317

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Thu, 25 Sep 2014 05:12:02 +0000 (05:12 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Add unit test to cinder cgsnapshot api"
Jenkins [Wed, 24 Sep 2014 18:12:37 +0000 (18:12 +0000)]
Merge "Add unit test to cinder cgsnapshot api"

10 years agoMerge "Downgrade 'infinite' and 'unknown' capacity in weigher"
Jenkins [Wed, 24 Sep 2014 18:08:53 +0000 (18:08 +0000)]
Merge "Downgrade 'infinite' and 'unknown' capacity in weigher"

10 years agoFixed the DB connection directive name and section.
Thomas Goirand [Wed, 24 Sep 2014 10:48:43 +0000 (18:48 +0800)]
Fixed the DB connection directive name and section.

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 24 Sep 2014 06:04:09 +0000 (06:04 +0000)]
Imported Translations from Transifex

Change-Id: If1cff4924585a11e5545cd8f3b206d574f5a4558

10 years agoIBM Storwize:Failed to retype from non-type to replication enable
TaoBai [Thu, 18 Sep 2014 08:49:47 +0000 (11:49 +0300)]
IBM Storwize:Failed to retype from non-type to replication enable

It used none as volume type to create replication. Storwize Driver
did not check whether it's none.
Change to use new type to create replication.

Closes-bug: #1369815

Change-Id: I78501e1d3558bd6c3e6e1abb0c312cec7d11efd4

10 years agoMerge "DB migration 25->24 failed when dropping column"
Jenkins [Wed, 24 Sep 2014 03:30:22 +0000 (03:30 +0000)]
Merge "DB migration 25->24 failed when dropping column"

10 years agoMerge "Fix confusing exception message in NetApp iscsi driver"
Jenkins [Wed, 24 Sep 2014 03:23:29 +0000 (03:23 +0000)]
Merge "Fix confusing exception message in NetApp iscsi driver"

10 years agoMerge "Fix ssh_host_key_file default in help and config.sample.conf"
Jenkins [Tue, 23 Sep 2014 21:22:36 +0000 (21:22 +0000)]
Merge "Fix ssh_host_key_file default in help and config.sample.conf"

10 years agoFix unnecessary WSGI worker warning at API startup
Jay S. Bryant [Fri, 19 Sep 2014 17:46:21 +0000 (12:46 -0500)]
Fix unnecessary WSGI worker warning at API startup

There was a bug in WSGIService in the way that it was
checking the osapi_volume_workers option.  It was using
getattr() to see if the option was set, if not it was supposed
to set the value to processutils.get_worker_count().  This,
however, never happened because getattr interpreted the default
'None' value to be a value.  So, on any system with no value set
the self.workers < 1 check would be hit and a warning would be
output.

Nova had changed their approach to this option to avoid this
problem.  This patch pulls Nova's approach into Cinder for
consistency.  Cinder will now use processutils.get_worker_count()
if no option is set in /etc/cinder/cinder.conf and when the user sets
osapi_volume_workers to 0.  A negative value will cause an
InvalidInput exception to be thrown.

Unittests have been added for this functionality.

Change-Id: I4ec2fdd0d19195cccffd63cdd1af1b9ca9884c7d
Closes-bug: #1367454

10 years agoMerge "Remove XenAPI driver"
Jenkins [Tue, 23 Sep 2014 16:36:27 +0000 (16:36 +0000)]
Merge "Remove XenAPI driver"

10 years agoMerge "Set socket options in correct way"
Jenkins [Tue, 23 Sep 2014 10:39:53 +0000 (10:39 +0000)]
Merge "Set socket options in correct way"

10 years agoRemove XenAPI driver
Bob Ball [Mon, 22 Sep 2014 15:29:00 +0000 (16:29 +0100)]
Remove XenAPI driver

The XenAPI driver does not have known users and does not meet
the minimum requirements for Cinder drivers.

This patch removes the driver from the tree.

Closes-bug: 1372836

Change-Id: I2123b2d52180bbdffe90c458f115c67f50dfd5e9

10 years agoAdd required spaces in log messages
abhishekkekane [Tue, 23 Sep 2014 07:26:56 +0000 (00:26 -0700)]
Add required spaces in log messages

Added required spaces in between two words for log messages.

cinder/volume/drivers/huawei/huawei_t.py validate_connector method.
cinder/transfer/api.py accept method.
cinder/brick/initiator/linuxscsi.py flush_device_io method.

Closes-Bug: #1372788
Change-Id: Ia0ab72d930c1b9099dd2796032b7b2b0b857bad5

10 years agoFix ssh_host_key_file default in help and config.sample.conf
Mark Sturdevant [Tue, 23 Sep 2014 05:45:14 +0000 (22:45 -0700)]
Fix ssh_host_key_file default in help and config.sample.conf

The commit message and the actual default say the default value for
ssh_host_key_file is $state_path/ssh_known_hosts, but the
config.conf.sample and the config opts help say it is
"$state_path/known_hosts".

Fix the help and config.conf.sample to match the actual default.

Closes-Bug: 1372765
Change-Id: I51a2918155a27afcf48eda01f32774ce0d346d06

10 years agoDowngrade 'infinite' and 'unknown' capacity in weigher
Zhiteng Huang [Thu, 18 Sep 2014 22:02:55 +0000 (15:02 -0700)]
Downgrade 'infinite' and 'unknown' capacity in weigher

When FilterScheduler was first introduced into Cinder, drivers were
required for the first time to report capacity. Some drivers preferred
to report 'infinite' or 'unknown' capacity because they were doing
thin-provisioning or the total capacity kept increasing. Now that we
have better support for thin-provisioning and we do find unrealistic
capacity couldn't do us any good in making optimal scheduling decision,
because 'infinite' and 'unknown' would always have the highest weight
when the weight multiplier is positive, which in most cases it is.

Drivers are expected to avoid sending 'infinite' 'unknown' capacity
anymore, instead, should report an actual real number for total/free
capacity.

This fix doesn't fix the driver, instead a small tweak is added to
CapacityWeigher in order to downgrade those drivers who report
'infinite' or 'unknown' as free capacity.  In particular, those who
report 'infinite'/'unknown' free capacity will be adjusted to be the
one has lowest weight, no matter in 'spreading' (weight multiplier>0)
or 'stacking' (weight multiplier<0) mode.

DocImpact

Change-Id: Ied087386a1a2f43e6a77499a817d5c637ef448f6
Partial-bug: #1350638

10 years agoRemove unused py33 tox env
Jeremy Stanley [Mon, 22 Sep 2014 12:40:43 +0000 (12:40 +0000)]
Remove unused py33 tox env

Based on review comments in https://review.openstack.org/118771 it's
apparent that Cinder is quite a ways from Py3K support, and
developers are not expected to run the py33 tox env. Rather than add
more envs for later Python interpreter versions which will be
equally broken, just remove it for now.

Change-Id: I2bcc345bb62c0e08677fbf70b722b6a841650e53

10 years agoMerge "Typo "asscoiated" should be "associated""
Jenkins [Mon, 22 Sep 2014 11:04:37 +0000 (11:04 +0000)]
Merge "Typo "asscoiated" should be "associated""

10 years agoAdd unit test to cinder cgsnapshot api
Haiwei Xu [Wed, 17 Sep 2014 05:58:20 +0000 (14:58 +0900)]
Add unit test to cinder cgsnapshot api

This patch adds unit tests to cgsnapshot create api,
in case cgsnapshot is invalid or can not be found.

Change-Id: I6ec73b8db413e5c085f8a48830f5e1446c2d7240

10 years agoMerge "Allow scheduler pool information to be retrieved"
Jenkins [Sun, 21 Sep 2014 14:15:13 +0000 (14:15 +0000)]
Merge "Allow scheduler pool information to be retrieved"

10 years agoMerge "Timeout triggers failures running tempest for ZFSSA driver."
Jenkins [Sun, 21 Sep 2014 13:38:28 +0000 (13:38 +0000)]
Merge "Timeout triggers failures running tempest for ZFSSA driver."

10 years agoDB migration 25->24 failed when dropping column
Xing Yang [Sat, 20 Sep 2014 22:23:11 +0000 (18:23 -0400)]
DB migration 25->24 failed when dropping column

"cinder-manage db sync 24" failed when dropping column cgsnapshot_id
from the snapshots table.

The reason that drop column failed was because of the foreign key
constraint. MySQL cannot drop column until the foreign key constraint
is removed. So the solution is to remove the foreign key first, and
then drop the column. This affects the cgsnapshot_id column in the
snapshots table and the consistencygroup_id column in the volumes table.

Change-Id: I89d5016be450ec91c7a7b1c42803add3f62c88df
Closes-Bug: #1368213

10 years agoAllow scheduler pool information to be retrieved
Zhiteng Huang [Mon, 8 Sep 2014 21:42:39 +0000 (14:42 -0700)]
Allow scheduler pool information to be retrieved

With pool support added to Cinder, now we are kind of in an awkward
situation where we require admin to input exact location for volumes
to-be managed (imported) or migrated, which must have pool info, but
there is no way to find out what pools are there for backends except
looking at the scheduler log.  That causes bad user experience, and
thus is a bug from UX POV.

This change simply adds a new admin-api extension to allow admin to
fetch all the pool information from scheduler cache (memory), which
closes the gap for end users.

This extension provides two level of pool information: names only or
detailed information:

Pool name only:
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools

Detailed Pool info:
GET http://CINDER_API_ENDPOINT/v2/TENANT_ID/scheduler-stats/get_pools
\?detail\=True

Closes-bug: #1364279

Change-Id: I445d4e472c83db2f2d8db414de139c87d09f8fda

10 years agoStandards-Version: is now 3.9.5
Thomas Goirand [Sat, 20 Sep 2014 15:34:28 +0000 (15:34 +0000)]
Standards-Version: is now 3.9.5

10 years agoRemoves cinder-clear-rabbit-queues from debian/cinder-volume.install
Thomas Goirand [Sat, 20 Sep 2014 14:50:04 +0000 (14:50 +0000)]
Removes cinder-clear-rabbit-queues from debian/cinder-volume.install

10 years agoMerge "Increase the 3PAR hostname length"
Jenkins [Sat, 20 Sep 2014 13:03:59 +0000 (13:03 +0000)]
Merge "Increase the 3PAR hostname length"

10 years ago * Removes usr/bin/cinder-rpc-zmq-receiver fron cinder-common.install,
Thomas Goirand [Sat, 20 Sep 2014 10:31:50 +0000 (10:31 +0000)]
  * Removes usr/bin/cinder-rpc-zmq-receiver fron cinder-common.install,
    as its gone upstream (moved into Oslo, it seems).

10 years agoNew changelog date.
Thomas Goirand [Sat, 20 Sep 2014 10:15:22 +0000 (10:15 +0000)]
New changelog date.