]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoMerge "Fix failure of source volume deletion in migrate_volume_completion"
Jenkins [Tue, 22 Jul 2014 02:04:15 +0000 (02:04 +0000)]
Merge "Fix failure of source volume deletion in migrate_volume_completion"

10 years agoMerge "Add additional explicit imports of _ where needed"
Jenkins [Tue, 22 Jul 2014 00:42:40 +0000 (00:42 +0000)]
Merge "Add additional explicit imports of _ where needed"

10 years agoSwitch to use oslo.db
Alexei Kornienko [Thu, 3 Jul 2014 12:38:50 +0000 (15:38 +0300)]
Switch to use oslo.db

oslo.db first stable release has been cut and we can start using it
instead of openstack/common/db/* code which is now marked obsolete.

Change-Id: Ib350e8d1dcec3be707e3b1679c70202619256269

10 years agoAdd additional explicit imports of _ where needed
Jay S. Bryant [Mon, 21 Jul 2014 01:14:27 +0000 (20:14 -0500)]
Add additional explicit imports of _ where needed

It appears that I missed some of the needed explicit
imports of _.  I have now run through all the /bin/cinder-*
functions and ensured that they can be properly started.

This patch adds additional imports of _ and also changes
cinder-rtstool to use the 'cinder' domain as was suggested by
Duncan Thomas in the first review cycle.

Change-Id: I6477093cb817b5b9506dd3787f027e073c51f37d
Closes-Bug:  1345789

10 years agoMerge "Fix performance issues with brocade zone driver."
Jenkins [Sat, 19 Jul 2014 21:35:17 +0000 (21:35 +0000)]
Merge "Fix performance issues with brocade zone driver."

10 years agoMerge "Add some log info for NoValidHost"
Jenkins [Sat, 19 Jul 2014 06:05:43 +0000 (06:05 +0000)]
Merge "Add some log info for NoValidHost"

10 years agoMerge "Don't leave snapshots on the floor"
Jenkins [Sat, 19 Jul 2014 04:48:32 +0000 (04:48 +0000)]
Merge "Don't leave snapshots on the floor"

10 years agoFix failure of source volume deletion in migrate_volume_completion
Tomoki Sekiyama [Sat, 19 Jul 2014 00:36:56 +0000 (20:36 -0400)]
Fix failure of source volume deletion in migrate_volume_completion

In VolumeManager.migrate_volume_completion(), when volume_status is not
'retyping', status_update is not set. However, status_update is always
referenced as dictionary on volume deletion path, so it fails to delete
migration source volume. This patch fixes the issue.

Change-Id: I06889dae326b9557e044f1712d9f3205bb68a953
Closes-Bug: 1344341

10 years agoRemove hard coded reference from gettextutils.py
Thang Pham [Fri, 18 Jul 2014 15:29:24 +0000 (11:29 -0400)]
Remove hard coded reference from gettextutils.py

The following commit 4fdcbff96790753a4c1a508600e5d78b2c3b7172
introduced a few hard coded references to
'/home/jsbryant/cinder-dev/gettextutilsSync/' in
cinder/openstack/common/gettextutils.py. This patch will
removed those references.

Change-Id: Ib880863d275ac102c1eb723972d1ebd2eb3405a1
Closes-Bug: #1344072

10 years agoMerge "XIV volume manage/unmanage support"
Jenkins [Fri, 18 Jul 2014 05:03:14 +0000 (05:03 +0000)]
Merge "XIV volume manage/unmanage support"

10 years agoEnable lazy translation for Cinder
Jay S. Bryant [Tue, 8 Jul 2014 19:04:56 +0000 (14:04 -0500)]
Enable lazy translation for Cinder

This patch is the final step for getting lazy translation
re-enabled for Cinder.  It removes the use of gettextutils.install()
which is no longer needed with the addition of the explicit import
of _() in all of Cinder's files.  The configuration of 'cinder' catalog
is handled by gettextutils.

The install() function is replaced by gettextutils.enable_lazy() which
properly enables lazy translation when _() or _LX() is used.

Change-Id: I79e705f3852e8aa34034015199d56a8b23aeb8ef
Implements-Blueprint: i18n-enablement

10 years agoExplicitly import _() in Cinder code
Jay S. Bryant [Thu, 26 Jun 2014 21:22:17 +0000 (16:22 -0500)]
Explicitly import _() in Cinder code

To ensure that logs are properly translated and logged to
the Cinder log files (using the Cinder message catalogs)
we need to explicitly import _() in any python files that
use the _() function.

Closes-bug: 1306275
Related-Blueprint: i18n-enablement
Change-Id: I3cf1f1d63d5f8bd8ffd007104691f914e3fd8538

10 years agoMerge "Remove definition of Python Source Code Encodings"
Jenkins [Wed, 16 Jul 2014 22:29:56 +0000 (22:29 +0000)]
Merge "Remove definition of Python Source Code Encodings"

10 years agoFix performance issues with brocade zone driver.
Angela Smith [Wed, 4 Jun 2014 19:12:15 +0000 (12:12 -0700)]
Fix performance issues with brocade zone driver.

Removed firmware checks from common path as the ssh invoke_shell
was taking 5 seconds to complete for each firmware check.
Refactored to only do cfgsave in non-activate case.
Removed extra calls to switch to get the active zoneset.

Closes-Bug: #1292119

Change-Id: Ie1c2c0c603f6dd68439f2c2db74b21ea2dd0fc11

10 years agoDon't leave snapshots on the floor
John Griffith [Wed, 16 Jul 2014 14:49:37 +0000 (08:49 -0600)]
Don't leave snapshots on the floor

The current cloning process in the LVM
driver uses a snapshot to do the data
copy in the background.  Trouble here
is that if the creation or activation
of the new volume fails, we don't
cleanup the snapshot we created.

Just move the create_volume and activate
calls down into the try block so the finally
clause can do the cleanup for us.

Change-Id: If0fbab9d9f39102cdc7d287527be22c4a2b35934
Closes-Bug: #1312718

10 years agoAdd some log info for NoValidHost
John Griffith [Wed, 16 Jul 2014 13:34:16 +0000 (13:34 +0000)]
Add some log info for NoValidHost

Currently when a create call fails due to a
misconfiguration on the backend, or a problem
with satisfying the extra-specs from the filter
scheduler, the only thing you get in the logs is
a "No valid host".

This patch just adds a tiny bit more info to give us
a better idea where we're at.

First the exception shouldn't be setup with "reason=""",
so at least add "reason=no weighed hosts found".

Second, add a warning message prior to getting to that
point when we fail to find a host that satisfies the
{extra/qos}-specs that were requested, and include what
was being requested.

Change-Id: I2ce65b973196f673bac455613a6f8626320339ba

10 years agoMerge "Cinder-api service throws error on SIGHUP signal"
Jenkins [Wed, 16 Jul 2014 11:23:24 +0000 (11:23 +0000)]
Merge "Cinder-api service throws error on SIGHUP signal"

10 years agoMerge "Add affinity/anti-affinity filters"
Jenkins [Wed, 16 Jul 2014 09:42:21 +0000 (09:42 +0000)]
Merge "Add affinity/anti-affinity filters"

10 years agoMerge "Update cinder generate_sample script"
Jenkins [Wed, 16 Jul 2014 04:07:17 +0000 (04:07 +0000)]
Merge "Update cinder generate_sample script"

10 years agoMerge "Fix the section name in CONTRIBUTING.rst"
Jenkins [Tue, 15 Jul 2014 21:06:24 +0000 (21:06 +0000)]
Merge "Fix the section name in CONTRIBUTING.rst"

10 years agoMerge "Ensure FC ZoneManager is called"
Jenkins [Tue, 15 Jul 2014 21:03:42 +0000 (21:03 +0000)]
Merge "Ensure FC ZoneManager is called"

10 years agoUpdate cinder generate_sample script
John Griffith [Tue, 15 Jul 2014 17:45:17 +0000 (11:45 -0600)]
Update cinder generate_sample script

Cinder's generate sample script has fallen a
bit out of date and was no longer working properly
in local venv.

This patch updates it with a working version that
reads the rc file and makes some other updates.

Even better, we'll update the tox.ini file here so
that it actually works, and finally add some more
info to the error message when update check fails
to make is obvious how to run these appropriately.

Change-Id: I2389910d8ece6f737a9609ce4aa05263d9293e14

10 years agoXIV volume manage/unmanage support
Alon Marx [Sun, 13 Jul 2014 08:53:41 +0000 (11:53 +0300)]
XIV volume manage/unmanage support

XIV support for managing and unmanaging volumes.

Partially Implements: blueprint add-export-import-volumes

Change-Id: I305d2652709181bacd9f5b21f0201858f91f7a15

10 years agoAdd affinity/anti-affinity filters
Zhiteng Huang [Tue, 28 Jan 2014 06:23:04 +0000 (14:23 +0800)]
Add affinity/anti-affinity filters

Cinder has done a good job hiding the details of storage backends from end
users by using volume types.  However there are use cases where users who
build their application on top of volumes would like to be able to 'choose'
where a volume be created on.  How can Cinder provide such capability without
hurting the simplicity we have been keeping?  Affinity/anti-affinity is one
of the flexibility we can provide without exposing details to backends.

The term affinity/anti-affinity here is to to describe the relationship
between two sets of volumes in terms of location.  To limit the scope, we
describe one volume is affinity with the other one only when they reside in
the same volume back-end (this notion can be extended to volume pools if
volume pool support lands in Cinder); on the contrary, 'anti-affinity'
relation between two sets of volumes simply implies they are on different
Cinder back-ends (pools).

This affinity/anti-affinity filter filters Cinder backend based on hint
specified by end user.  The hint expresses the affinity or anti-affinity
relation between new volumes and existing volume(s).  This allows end
users to provide hints like 'please put this volume to a place that is
different from where Volume-XYZ resides in'.

This change adds two new filters to Cinder - SameBackendFilter and
DifferentBackendFilter.  These two filters will look at the scheduler hint
provided by end users (via scheduler hint extension) and filter backends by
checking the 'host' of old and new volumes see if a backend meets the
requirement (being on the same backend as existing volume or not being on
the same backend(s) as existing volume(s)).

For example:
  Volume A is on 'backend 1', to create Volume B on the same backend as A,
  use:
    cinder create --hint same_host=VolA-UUID SIZE

  To create Volume C on different backend than that of A, use:
    cinder create --hint different_host=VolA-UUID SIZE

  Now, to create Volume D on different backend other than those of A and C,
  use:
    cinder create --hint different_host=VolA-UUID --hint
    different_host=VolC-UUID SIZE
  or:
    cinder create --hint different_host="[VolA-UUID, VolC-UUID]" SIZE

implements bp: affinity-antiaffinity-filter

DocImpact

Change-Id: I19f298bd87b0069c0d1bb133202188d3bf65b770

10 years agoMock out time.sleep in storwize unit tests
John Griffith [Mon, 14 Jul 2014 23:10:18 +0000 (17:10 -0600)]
Mock out time.sleep in storwize unit tests

The Storwize driver has issues that required them
to add a sleep 1 on init of the driver.

No big deal, but causes unit tests to take a very long
time waiting for the "time.sleep(1)" on every single
unit test that calls init.

This patch just mocks out the time.sleep so we don't have
to do the silly waiting in unit tests.

Change-Id: I10fc3d00252a7e7b90085cb308fb9c6c7e1f5ea7

10 years agoMerge "Sync gettextutils.py from oslo-incubator"
Jenkins [Mon, 14 Jul 2014 19:24:49 +0000 (19:24 +0000)]
Merge "Sync gettextutils.py from oslo-incubator"

10 years agoFix the section name in CONTRIBUTING.rst
liuqing [Mon, 30 Jun 2014 15:18:05 +0000 (23:18 +0800)]
Fix the section name in CONTRIBUTING.rst

The name of the section "If you're developer, start here"
has changed in the wiki, now is "If you're a developer".
This commit updates it to correctly refer to the
proper section.

Change-Id: Ibc5899d2577187b854213690731136edd4cd74ab

10 years agoCinder-api service throws error on SIGHUP signal
Ankit Agrawal [Fri, 4 Jul 2014 10:41:17 +0000 (03:41 -0700)]
Cinder-api service throws error on SIGHUP signal

Added reset method in WSGIService class.

After adding reset method when SIGHUP signal is sent to
wsgi service parent process,then it sends SIGHUP signal
to all of its child processes. Each child process handles
SIGHUP signal by first stopping the service and then calls
service start method again. When it stops the service, it
kills the eventlet thread, which internally closes the wsgi
server socket object. This server socket object is now not
usable again and it throws following error, while restarting
the service:

error: [Errno 9] Bad file descriptor

To resolve 'Bad file descriptor' error, creating duplicate
socket object, every time service starts.

Closes-Bug: #1337796

Change-Id: Iab32a3fe230a11692a8cad274304214247d6c2c6

10 years agoMerge "Clean up base Volume Driver"
Jenkins [Sun, 13 Jul 2014 23:25:52 +0000 (23:25 +0000)]
Merge "Clean up base Volume Driver"

10 years agoMerge "Correct misspelled word"
Jenkins [Sat, 12 Jul 2014 18:30:31 +0000 (18:30 +0000)]
Merge "Correct misspelled word"

10 years agoMerge "Fixes EqualLogic volume live migration."
Jenkins [Fri, 11 Jul 2014 15:58:32 +0000 (15:58 +0000)]
Merge "Fixes EqualLogic volume live migration."

10 years agoMerge "Fix begin_detach logic"
Jenkins [Thu, 10 Jul 2014 23:55:31 +0000 (23:55 +0000)]
Merge "Fix begin_detach logic"

10 years agoMerge "Sync processutils and log from oslo"
Jenkins [Thu, 10 Jul 2014 23:09:46 +0000 (23:09 +0000)]
Merge "Sync processutils and log from oslo"

10 years agoMerge "volume_image_metadata missing from volume list"
Jenkins [Thu, 10 Jul 2014 21:19:59 +0000 (21:19 +0000)]
Merge "volume_image_metadata missing from volume list"

10 years agoClean up base Volume Driver
John Griffith [Wed, 9 Jul 2014 21:34:50 +0000 (21:34 +0000)]
Clean up base Volume Driver

This is a preliminary cleanup of the base
Volume Driver to prepare for adding new
architecture which keeps the Control calls
and connection portions of the drivers
seperated from each other.

This doesn't break existing compatability or drivers
but just makes some of the necessary tweaks and additions
to enable implementation of decoupled Control and Data
sides of the Volume drivers.

POC for this proposal is here:
https://review.openstack.org/#/c/104701/

FYI check-up2-date is going to be the death of us all!

Change-Id: Ifc844c49ee9ff1580d5da0879e7d499bed72dac1

10 years agoFixes EqualLogic volume live migration.
rajinir [Fri, 27 Jun 2014 19:53:07 +0000 (14:53 -0500)]
Fixes EqualLogic volume live migration.

Fixes the issue by enabling the multihost flag for the volume and also
discovering the correct access record to delete when terminating
the connection from the source vm and then deleting the record.

Change-Id: If3580c84a4efd3a58c19e9e74d0a13eb68e67031
Closes-Bug: 1296677

10 years agoMerge "Fixed some typos in the cinder codebase"
Jenkins [Thu, 10 Jul 2014 11:00:26 +0000 (11:00 +0000)]
Merge "Fixed some typos in the cinder codebase"

10 years agoCorrect misspelled word
Robert Mizielski [Thu, 10 Jul 2014 10:17:13 +0000 (12:17 +0200)]
Correct misspelled word

Change-Id: I1bb54e96376a23aa3b28a06ec93fd13cc9dc5438

10 years agoMerge "Remove $sqlite_db from default database connection"
Jenkins [Thu, 10 Jul 2014 09:23:57 +0000 (09:23 +0000)]
Merge "Remove $sqlite_db from default database connection"

10 years agoMerge "Use PyCrypto to generate randomness passwords"
Jenkins [Thu, 10 Jul 2014 08:45:59 +0000 (08:45 +0000)]
Merge "Use PyCrypto to generate randomness passwords"

10 years agoRemove definition of Python Source Code Encodings
Eiichi Aikawa [Wed, 9 Jul 2014 08:03:39 +0000 (17:03 +0900)]
Remove definition of Python Source Code Encodings

The definition of Python Source Code Encodings is no longer needed.
This patch remove those.

Change-Id: I3eebb245e9e41b92c9ec82ebbd2dd6b417704819

10 years agoFixed some typos in the cinder codebase
Abhishek Lekshmanan [Wed, 2 Jul 2014 06:10:54 +0000 (11:40 +0530)]
Fixed some typos in the cinder codebase

Change-Id: Ifb8778d20aa1534a7abca3fd6705493327d2893e

10 years agoSync gettextutils.py from oslo-incubator
Jay S. Bryant [Mon, 7 Jul 2014 20:21:58 +0000 (15:21 -0500)]
Sync gettextutils.py from oslo-incubator

This pulls in the latest gettextutils.py from oslo-incubator.
The primary reason for this sync is to get commit
3d90045d2d1ce1df89f75937f415e3982e111063 which backports a
change from the new i18n library to check lazy enablement
at runtime.  Adding this change makes it possible to remove
the global enablement of lazy translation through
gettextutils.install().  Instead we will use gettextutils.enable_lazy()
with explicit imports of _() in each file where _() is used.

The change to remove gettextutils.install() and to add the
explicit _() imports will come in a dependent patch.

Current HEAD in OSLO:
--------------------
Merge: 3d90045d2d1ce1df89f75937f415e3982e111063
Date: Mon, 07 Jul 2014 17:55:18 +0000
Merge "Backport code for i18n to check lazy at runtime"
--------------------

Additional changes being merged (newest to oldest):
--------------------
de4adbc4 - pep8: fixed multiple violations
9912e5df - Add API for creating translation functions
6cc96d05 - Fix test_gettextutils on Python 3
--------------------

related - blueprint: i18n-enablement
Change-Id: I4706b89b0b64c5816a1a022b6cd1dfa01b29b5dc

10 years agoMerge "Updated from global requirements"
Jenkins [Wed, 9 Jul 2014 20:44:56 +0000 (20:44 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Fix unsaved exception in backup/drivers"
Jenkins [Wed, 9 Jul 2014 19:46:05 +0000 (19:46 +0000)]
Merge "Fix unsaved exception in backup/drivers"

10 years agoUse PyCrypto to generate randomness passwords
Ivan Kolodyazhny [Wed, 9 Jul 2014 16:08:18 +0000 (19:08 +0300)]
Use PyCrypto to generate randomness passwords

Standard random generator is not secure enouph. Use PyCrypto instead.
Updated requirements.txt with pycrypto>=2.6 according to
global-requirements

Change-Id: I38fd47a30893a946de30fad95c57759781312be6
Closes: bug #1319639
10 years agoMerge "Enable E121,E122,E123,E126,E128 hacking rules"
Jenkins [Wed, 9 Jul 2014 16:52:36 +0000 (16:52 +0000)]
Merge "Enable E121,E122,E123,E126,E128 hacking rules"

10 years agoRemove $sqlite_db from default database connection
Cory Stone [Tue, 8 Jul 2014 20:01:04 +0000 (15:01 -0500)]
Remove $sqlite_db from default database connection

sqlite_db used to be a config option in the DEFAULT section. This
allowed it to be used in config template substitution. Now that it is in
the database section, the template substitution fails with a
NoSuchOptError.

The quick fix is to just hardcode the default connection option to refer
directly to 'cinder.sqlite' instead.

Closes bug: 1339295

Change-Id: Ifd2267aaa8c55d78f88ce6648badefe3f9f664ee

10 years agoMerge "Use (# of CPUs) osapi_volume_workers by default"
Jenkins [Wed, 9 Jul 2014 15:12:58 +0000 (15:12 +0000)]
Merge "Use (# of CPUs) osapi_volume_workers by default"

10 years agoSync processutils and log from oslo
Tomoki Sekiyama [Tue, 8 Jul 2014 21:17:51 +0000 (17:17 -0400)]
Sync processutils and log from oslo

This change syncs in:

33afb20 Fix broken formatting of processutils.execute log statement
5e3d3a5 Mask passwords included without quotes at the ends of commands
6751b30 Remove extra whitespace

The most important part is '33afb20' which was broken cinder debug logging
on running commands after last oslo sync.

Change-Id: I77e0f943d39bb34ff95bac1e9d63d7450f8c24bf

10 years agoMerge "Remove cinder.context warning logging"
Jenkins [Wed, 9 Jul 2014 11:35:51 +0000 (11:35 +0000)]
Merge "Remove cinder.context warning logging"

10 years agoMerge "Only warn about deprecation warnings once"
Jenkins [Wed, 9 Jul 2014 09:05:21 +0000 (09:05 +0000)]
Merge "Only warn about deprecation warnings once"

10 years agoMerge "Enhance docstring for iscsi_helper"
Jenkins [Tue, 8 Jul 2014 15:58:00 +0000 (15:58 +0000)]
Merge "Enhance docstring for iscsi_helper"

10 years agoEnhance docstring for iscsi_helper
Tom Fifield [Tue, 24 Jun 2014 13:59:20 +0000 (21:59 +0800)]
Enhance docstring for iscsi_helper

The helptext for the iscsi_helper option did not mention the
potential to use lioadm (or fake). This patch simply amends
the text so this functionality is more discoverable.

Change-Id: I4bf4a6f77191a7f42d5b38f71759944e4997ccc6

10 years agoMerge "Replace tearDown with addCleanup - Part 3"
Jenkins [Tue, 8 Jul 2014 08:34:13 +0000 (08:34 +0000)]
Merge "Replace tearDown with addCleanup - Part 3"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 8 Jul 2014 06:57:52 +0000 (06:57 +0000)]
Updated from global requirements

Change-Id: I92903d6cc83df1127bd9fbd5db77441def43f9dd

10 years agoMerge "Ceph rbd volume manage/unmanage support"
Jenkins [Tue, 8 Jul 2014 06:56:58 +0000 (06:56 +0000)]
Merge "Ceph rbd volume manage/unmanage support"

10 years agoMerge "Restore osapi_volume_workers config option"
Jenkins [Tue, 8 Jul 2014 01:37:43 +0000 (01:37 +0000)]
Merge "Restore osapi_volume_workers config option"

10 years agoMerge "sync periodic_task fix from incubator"
Jenkins [Tue, 8 Jul 2014 00:49:41 +0000 (00:49 +0000)]
Merge "sync periodic_task fix from incubator"

10 years agoEnsure FC ZoneManager is called
Walter A. Boring IV [Thu, 19 Jun 2014 17:35:29 +0000 (10:35 -0700)]
Ensure FC ZoneManager is called

This patch ensures that the FC ZoneManager
is called during for all cases in Cinder
that does a volume attach/detach for FC
enabled drivers.
The problem was that we had code in the volume
manager that manually called the ZoneManager,
after initialize_connection and terminate_connection,
but other places in Cinder were not calling the
ZoneManager.
This patch creates 2 new decorators that can
be used for any driver's initialize_connection
and terminate_connection call.   The decorator
checks to make sure that the return value is for
a fibre_channel attachment and then calls the
ZoneManager's add_connection or delete_connection.
Change-Id: Ie3ae70785f500a140003ad3a8495e0ddc3516ea8
Closes-Bug: 1321798

10 years agoRemove cinder.context warning logging
git-harry [Mon, 7 Jul 2014 09:53:43 +0000 (10:53 +0100)]
Remove cinder.context warning logging

The code removed creates a large volume of log entries that are of
limited use. Removing them should improve the readability of the logs.

Change-Id: I2a7f20cfa6cd57aa7ae05bf9685947207cbb9502
Closes-Bug: #1329156

10 years agosync periodic_task fix from incubator
Tom Cammann [Fri, 4 Jul 2014 08:22:46 +0000 (09:22 +0100)]
sync periodic_task fix from incubator

Set the value of time the periodic task was last run to a multiple of
the spacing value rather than the actual last time run. This ensures
tasks runs regularly but avoids synchronizing that interval with other
nodes.

This patch also removes the coalescing of tasks which are _nearby_ (0.2
seconds away).

Changes:

periodic_task
-------------
4dbd3aa Make periodic tasks run on regular spacing interval
21249f1 Fix parenthesis typo misunderstanding in periodic_task

Change-Id: I6c06ae73b18d4425a987a215a050bc70335e490e

10 years agoSlow down Storwize driver initialization
Tao Bai [Wed, 2 Jul 2014 10:17:50 +0000 (03:17 -0700)]
Slow down Storwize driver initialization

Storwize has the limitation that can not burst more than
3 new ssh connection within 1 second.So slow down storwize
driver initialization.

Closes-Bug: #1335722
Change-Id: Id442cd6421ef23b953a3cb45a5f6dd6969064a6e

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Sat, 5 Jul 2014 14:37:38 +0000 (14:37 +0000)]
Merge "Imported Translations from Transifex"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 5 Jul 2014 10:33:28 +0000 (10:33 +0000)]
Updated from global requirements

Change-Id: I218171b2e3581ea05a14719a821c131dd47c8eb5

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sat, 5 Jul 2014 06:03:08 +0000 (06:03 +0000)]
Imported Translations from Transifex

Change-Id: Ic5c214bb7e55322c1b32c52691535bef4ac23937

10 years agoMerge "Fix retyping attached volumes requiring migration"
Jenkins [Fri, 4 Jul 2014 23:09:11 +0000 (23:09 +0000)]
Merge "Fix retyping attached volumes requiring migration"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 4 Jul 2014 06:03:15 +0000 (06:03 +0000)]
Imported Translations from Transifex

Change-Id: I7295f2dda30117f7fca31c83aae799f885756cc4

10 years agoMerge "Correct lvm_mirrors help message"
Jenkins [Fri, 4 Jul 2014 05:19:26 +0000 (05:19 +0000)]
Merge "Correct lvm_mirrors help message"

10 years agoMerge "Fix host option isn't set when using multiple backend"
Jenkins [Fri, 4 Jul 2014 03:58:58 +0000 (03:58 +0000)]
Merge "Fix host option isn't set when using multiple backend"

10 years agovolume_image_metadata missing from volume list
Mathieu Gagné [Thu, 3 Jul 2014 19:30:05 +0000 (15:30 -0400)]
volume_image_metadata missing from volume list

The volume_image_metadata field was missing from the volume list
because we tried to filter VolumeGlanceMetadata against a non-existent
project_id field. Filtering should be done on the Volume associated
to the VolumeGlanceMetadata instead.

Move project_id filtering out of model_query as it assumes
the project_id field is in the queried model itself.
Build the filter ourselves against Volume.

Change-Id: I6053708296f2b5e24513dc87ed63da0f67c220ae
Closes-bug: #1337526

10 years agoCorrect lvm_mirrors help message
Eric Harney [Mon, 16 Jun 2014 19:44:09 +0000 (15:44 -0400)]
Correct lvm_mirrors help message

The description is not correct if someone sets
lvm_mirrors=0.  Also clarify LVs vs. lvms.

Change-Id: I7ec74fc8beaef5e638bc1a5dac3d7d97f1c474d3

10 years agoMerge "Support Volume Num Weighter"
Jenkins [Thu, 3 Jul 2014 17:49:15 +0000 (17:49 +0000)]
Merge "Support Volume Num Weighter"

10 years agoCeph rbd volume manage/unmanage support
ling-yun [Thu, 29 May 2014 12:36:20 +0000 (20:36 +0800)]
Ceph rbd volume manage/unmanage support

Ceph rbd support for managing and unmanaging volumes.
Partially Implements: blueprint add-export-import-volumes

Change-Id: I272f65621a3dac50a154b7f2caa545ae6fb0e54f

10 years agoEnable E121,E122,E123,E126,E128 hacking rules
Zhiteng Huang [Fri, 27 Jun 2014 19:03:00 +0000 (03:03 +0800)]
Enable E121,E122,E123,E126,E128 hacking rules

This change enables E121,E122,E123,E126,E128 hacking rule and fixes
all violations found in Cinder.

Change-Id: Ibfdcb3e286393d932e1534500e31a5f90c031adf

10 years agoReplace tearDown with addCleanup - Part 3
Julia Varlamova [Tue, 18 Feb 2014 11:17:44 +0000 (15:17 +0400)]
Replace tearDown with addCleanup - Part 3

Replace tearDown with addCleanup in some cinder unit tests.

Infra team has indicated that tearDown should not be used and should
be replaced with addCleanup in all places.

Implements blueprint replace-teardown-with-addcleanup

Change-Id: I8469ffb5c896d40f9979cd6d1f8da81be763ec14

10 years agoMerge "Remove rootwrap module"
Jenkins [Thu, 3 Jul 2014 10:34:15 +0000 (10:34 +0000)]
Merge "Remove rootwrap module"

10 years agoFix begin_detach logic
Ryan McNair [Thu, 3 Jul 2014 04:35:05 +0000 (04:35 +0000)]
Fix begin_detach logic

Fix begin_detach logic so it checks that a volume is in-use AND
attached.

Change-Id: I6f0e584070a5fc02c55c26ea92cb8b0c2a2cda3e
Closes-Bug: #1337088

10 years agoUse (# of CPUs) osapi_volume_workers by default
Matt Riedemann [Fri, 27 Jun 2014 17:57:33 +0000 (10:57 -0700)]
Use (# of CPUs) osapi_volume_workers by default

This changes the default number of cinder API workers to be equal to the
number of CPUs available on the host, rather than defaulting to 1 as it
did before.

Commit 75c96a48fc7e5dfb59d8258142b01422f81b0253 did the same thing in
Nova in Icehouse. Similar changes are being made to Glance and Trove as
well.

DocImpact: osapi_volume_workers will now be equal to the number of
           CPUs available by default if not explicitly specified
           in cinder.conf.

UpgradeImpact: Anyone upgrading to this change that does not have
           osapi_volume_workers specified in cinder.conf will now be
           running multiple API workers by default when they restart
           the cinder-api service.

Closes-Bug: #1333370

Change-Id: I8dec104800c18618e0c8422bbb93d5dc19c12876

10 years agoRestore osapi_volume_workers config option
Zhiteng Huang [Fri, 27 Jun 2014 19:38:08 +0000 (03:38 +0800)]
Restore osapi_volume_workers config option

osapi_volume_worker was introduced when enabling multi-process API
support for Cinder. However, this config option was accidentally
dropped in commit 464277220ddb800ac69562649fde62e5ca9358c4
(https://review.openstack.org/#/c/67657/20/cinder/service.py).
As a result, the value in cinder.conf wouldn't be honored.  This
change restore this config option.

Closes-bug: #1335295

Change-Id: Ib2d8532d3e6d0f48da0bc4dd6f6e64bfff8973ea

10 years agoMerge "Fix docstring for snapshots API"
Jenkins [Wed, 2 Jul 2014 14:53:01 +0000 (14:53 +0000)]
Merge "Fix docstring for snapshots API"

10 years agoMerge "Ensure rbd connect exception is properly caught"
Jenkins [Wed, 2 Jul 2014 14:51:27 +0000 (14:51 +0000)]
Merge "Ensure rbd connect exception is properly caught"

10 years agoMerge "3PAR Only remove FC Zone on last volume detach"
Jenkins [Wed, 2 Jul 2014 12:23:12 +0000 (12:23 +0000)]
Merge "3PAR Only remove FC Zone on last volume detach"

10 years agoFix host option isn't set when using multiple backend
Yaguang Tang [Mon, 23 Jun 2014 03:59:44 +0000 (11:59 +0800)]
Fix host option isn't set when using multiple backend

When using multiple volume backend, and volume driver is
cinder.volume.drivers.block_device.BlockDeviceDriver, host
option isn't set so a call to get volumes of a host returns none,
This patch changes to use self.host instead of self.configuration.host

Change-Id: Ide34ed29adad14b778b1a7388e9dc313241fa243
Closes-Bug: 1332909

10 years agoMerge "Add optional_args to fix Volume Import failure"
Jenkins [Wed, 2 Jul 2014 08:01:27 +0000 (08:01 +0000)]
Merge "Add optional_args to fix Volume Import failure"

10 years agoMerge "Don't use ModelBase.save() inside of transaction"
Jenkins [Tue, 1 Jul 2014 10:45:28 +0000 (10:45 +0000)]
Merge "Don't use ModelBase.save() inside of transaction"

10 years agoAdd optional_args to fix Volume Import failure
Jeegn Chen [Tue, 1 Jul 2014 03:31:19 +0000 (11:31 +0800)]
Add optional_args to fix Volume Import failure

Commit 971a63bd9cf675a00bce1244ec101577b5c17cac added a new
parameter 'optional_args' to execute method of QuotaReserveTask
and QuotaCommitTask. So the new parameter should be needed where
those Tasks are used. This changed volume create task flow to
provide the new parameter. We need the samiliar change to get_flow
method in cinder/volume/flows/manager/manage_existing.py

Trigger EMC VNX CI

Change-Id: Ifed7bd146eec82ba35c2b2c19e9bacd2259ae3ed
Closes-Bug: #1334086

10 years agoMerge "Add cinder-manage cmd to update host column"
Jenkins [Tue, 1 Jul 2014 06:07:05 +0000 (06:07 +0000)]
Merge "Add cinder-manage cmd to update host column"

10 years agoMerge "Use a task subclass instead of a functor + task wrapper"
Jenkins [Tue, 1 Jul 2014 05:03:09 +0000 (05:03 +0000)]
Merge "Use a task subclass instead of a functor + task wrapper"

10 years ago3PAR Only remove FC Zone on last volume detach
Walter A. Boring IV [Fri, 27 Jun 2014 23:00:01 +0000 (16:00 -0700)]
3PAR Only remove FC Zone on last volume detach

This patch checks to make sure that we don't
include the initiator_target_map in the return
of terminate_connection if there are volumes
still attached for a particular host.  The
FibreChannel ZoneManager doesn't remove zones
if there isn't an initiator_target_map in the
return of terminate_connection.

Change-Id: I98db5adb6da38454933a6e4b78085193f1d37680
Partial-Bug: #1308318

10 years agoMerge "Sync processutils from oslo with deps"
Jenkins [Mon, 30 Jun 2014 18:18:08 +0000 (18:18 +0000)]
Merge "Sync processutils from oslo with deps"

10 years agoEnsure rbd connect exception is properly caught
Edward Hope-Morley [Sun, 29 Jun 2014 18:08:46 +0000 (19:08 +0100)]
Ensure rbd connect exception is properly caught

If the rbd driver fails to connect to Ceph the exception
was not being properly caught resulting in the volume
remaining in the 'creating' state until the corresponding
task eventually times out (on top of the time it took
for the connect to fail).

Also added config option for rados connect timeout.

DocImpact: new config option 'rados_connect_timout'
Closes-Bug: 1211839
Change-Id: I5e6eaaaf6bed3e139ff476ecf9510ebe214a83f9

10 years agoMerge "Fixes cinder volume from snapshot on Windows"
Jenkins [Mon, 30 Jun 2014 08:41:31 +0000 (08:41 +0000)]
Merge "Fixes cinder volume from snapshot on Windows"

10 years agoMerge "Fixes cinder volume create on Windows Server 2012 R2"
Jenkins [Mon, 30 Jun 2014 08:40:00 +0000 (08:40 +0000)]
Merge "Fixes cinder volume create on Windows Server 2012 R2"

10 years agoMerge "Enable hacking rule E111,E112,E113"
Jenkins [Mon, 30 Jun 2014 08:01:21 +0000 (08:01 +0000)]
Merge "Enable hacking rule E111,E112,E113"

10 years agoMerge "Bump minimum hacking version to 0.9.2"
Jenkins [Mon, 30 Jun 2014 08:01:13 +0000 (08:01 +0000)]
Merge "Bump minimum hacking version to 0.9.2"

10 years agoMerge "Adding filter options to backup list"
Jenkins [Mon, 30 Jun 2014 06:54:08 +0000 (06:54 +0000)]
Merge "Adding filter options to backup list"

10 years agoAdd cinder-manage cmd to update host column
John Griffith [Sun, 29 Jun 2014 15:06:31 +0000 (09:06 -0600)]
Add cinder-manage cmd to update host column

If you deploy Cinder as per the default using the docs,
you can't later decide to add backends using the
multi-backend functionality. The reason is that multi-backend
is implemented by appending a backend-name to the host entry.

So if you convert the config to multi-backend the hostname
for any volumes that you have created are no longer
associated with a valid volume-driver (ie you can no
longer perform operations including delete on these
volumes).

In addition, in the case of using a SAN attached backend if
one redeploys their cinder-volume service to another node
they'll have the same issue.

This patch adds a cinder-manage command that will go through
volumes that are located on a specified host and update
the host column on each of them.

Change-Id: I8758fb8ef3fccbba2a598240c42d625b997e2db6
Closes-Bug: 1320688

10 years agoMerge "Synced jsonutils from oslo-incubator"
Jenkins [Fri, 27 Jun 2014 21:46:17 +0000 (21:46 +0000)]
Merge "Synced jsonutils from oslo-incubator"

10 years agoMerge "3PAR volume manage/unmanage support"
Jenkins [Fri, 27 Jun 2014 21:39:42 +0000 (21:39 +0000)]
Merge "3PAR volume manage/unmanage support"