]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
12 years agoRevert explicit usage of tgt-adm --conf option.
Eoghan Glynn [Tue, 25 Sep 2012 14:52:38 +0000 (15:52 +0100)]
Revert explicit usage of tgt-adm --conf option.

Fixes bug 1056246.

This reverts commit 0903603971033536751ba40df98a3c39175d3189.

This ensures that we fail-fast if the tgtd configuration does
not include the directory for volume iscsi target configs,
instead of only blowing up when tgtd is restarted.

Change-Id: I30aa3f1d8944eb33cd4a42d65e227031023406b4

12 years agoAdd missing entries in setup, fix up pip-requires
John Griffith [Mon, 24 Sep 2012 18:59:15 +0000 (12:59 -0600)]
Add missing entries in setup, fix up pip-requires

setup.py still has references to nova/compute and was missing some
requires statements, and more importantly didn't hvae the install_requires.

Also, tools/pip-requires needed lxml versions set, as well as
added the missing setuptools_git entry.

This was exposed when trying to run Grenade as the requires.txt
file was never generated.

Fixes bug #1055693

Change-Id: Iaf9669d66e89507989ef3fde630dc2b488a97cfc

12 years agoMerge "Fix cinder-volume-usage-audit"
Jenkins [Fri, 21 Sep 2012 21:56:48 +0000 (21:56 +0000)]
Merge "Fix cinder-volume-usage-audit"

12 years agoMerge "Return 400 if create volume snapshot force parameter is invalid"
Jenkins [Fri, 21 Sep 2012 17:23:25 +0000 (17:23 +0000)]
Merge "Return 400 if create volume snapshot force parameter is invalid"

12 years agoReturn 400 if create volume snapshot force parameter is invalid
Rongze Zhu [Wed, 12 Sep 2012 10:18:31 +0000 (10:18 +0000)]
Return 400 if create volume snapshot force parameter is invalid

Fixes bug #1014689

* Add is_valid_boolstr function in utils.py
* Add force parameter check in SnapshotsController.create()
* Add unittest for invalid force parameter.

Change-Id: I0f64326f33eb4fad1cf384bd825f56f09e935f40

12 years agoFix cinder-volume-usage-audit
Julien Danjou [Thu, 20 Sep 2012 16:37:36 +0000 (18:37 +0200)]
Fix cinder-volume-usage-audit

It seems many point in the internal API and openstack.common changed, but
this binary has been forgotten.

Also, context ie needed when using the notifier, so import it.

This fixes bug #1053502

Change-Id: I306b8671e7b0ed8c2ce2548a51a4c5e6393e13cb
Signed-off-by: Julien Danjou <julien@danjou.info>
12 years agoSync with nova change I135ed85a.
Avishay Traeger [Fri, 21 Sep 2012 12:58:27 +0000 (15:58 +0300)]
Sync with nova change I135ed85a.

This patch syncs the cinder driver code with that of the nova code,
as we received comments in the review process there.  All changes are
minor: (1) removing unnecessary type checks of the flags, (2) not
using getattr to access the FLAGS, and (3) using the self.flags()
infrastructure that test.TestCase provides.

Change-Id: Id740be6441862f048c3a9267394492a7ed65db84

12 years agoMerge "Remove cinder gating hack"
Jenkins [Fri, 21 Sep 2012 04:45:51 +0000 (04:45 +0000)]
Merge "Remove cinder gating hack"

12 years agoMerge "Stop double logging to the console"
Jenkins [Fri, 21 Sep 2012 04:04:42 +0000 (04:04 +0000)]
Merge "Stop double logging to the console"

12 years agoMerge "Set the default availability zone back to nova"
Jenkins [Fri, 21 Sep 2012 03:32:03 +0000 (03:32 +0000)]
Merge "Set the default availability zone back to nova"

12 years agoRemove cinder gating hack
Vishvananda Ishaya [Fri, 21 Sep 2012 00:32:56 +0000 (00:32 +0000)]
Remove cinder gating hack

The hack was necessary while we switched the name used for az's
in the gating tests. Now it can be removed

Change-Id: I970205910ac0950ab4a961aa0537eb964d7f0d3c

12 years agoSet the default availability zone back to nova
Vishvananda Ishaya [Thu, 20 Sep 2012 16:34:59 +0000 (16:34 +0000)]
Set the default availability zone back to nova

Currently nova and cinder have to have the same set of az's for
the ec2 api to work properly. Therefore, set the default az for
cinder to nova so they will match.

Includes a hack to az to set cinder to nova to work around gate
issues. The hack can be removed once the gate sets the zone to
nova properly.

Fixes bug 1053508

Change-Id: I9c30ccc5c79b9c4e6c1ebeb3e80d0098e1ffbb11

12 years agoAdd lun number (0) to model_update in HpSanDriver
John Griffith [Thu, 20 Sep 2012 23:27:13 +0000 (17:27 -0600)]
Add lun number (0) to model_update in HpSanDriver

The HpSanDriver was not setting the lun number in model_update
and as a result default value of 1 was being used.  Trouble is the
Lun number used by LeftHand is 0, so the connect info would be
wrong and fail when trying to attach the volume.

Fixes bug #1053717

Change-Id: If82a66c6a78ab03da09223a7b79abe559a6f702f

12 years agoMerge "Fixes to the SolarisISCSI Driver"
Jenkins [Thu, 20 Sep 2012 22:59:47 +0000 (22:59 +0000)]
Merge "Fixes to the SolarisISCSI Driver"

12 years agoFixes to the SolarisISCSI Driver
Yosef Berman [Thu, 20 Sep 2012 17:34:24 +0000 (10:34 -0700)]
Fixes to the SolarisISCSI Driver

Even when the san_is_local config option was set to false, the
SolarisISCSIDriver's _execute method was accidentally set to
util.execute by the VolumeDriver's __init__ method.

Fix bug 1053041

Change-Id: Ie3299f5065e2b084644ec2956f0c6ebae4264a49

12 years agoStop double logging to the console
Vishvananda Ishaya [Thu, 20 Sep 2012 16:52:51 +0000 (16:52 +0000)]
Stop double logging to the console

The code in nova for logging added an extra root handler to be
able to log messages to the console during log setup. This handler
was removed in the setup method. The common setup method no longer
removes this handler, so don't create it. Note that there may be
a small period before the logging setup is finished where messages
will not appear.

Fixes bug 1053512

Change-Id: I559cca8ffc2a33beff22025e42a9713487245980

12 years agoRestore SIGPIPE default action for subprocesses
Thierry Carrez [Thu, 20 Sep 2012 12:21:00 +0000 (14:21 +0200)]
Restore SIGPIPE default action for subprocesses

Python ignores SIGPIPE on startup, because it prefers to check every
write and raise an IOError exception rather than taking the signal. Most
Unix subprocesses don't expect to work this way. This patch (adapted
from Colin Watson's post at http://tinyurl.com/2a7mzh5) sets SIGPIPE
back to the default action for cinder.utils.execute and cinder-rootwrap
created subprocesses.

Fixes bug 1053364

Change-Id: I4b3307bd2f0f5d0da529d8b7d80fabae28c57732

12 years agoMerge "Correct IetAdm remove_iscsi_target"
Jenkins [Thu, 20 Sep 2012 05:05:14 +0000 (05:05 +0000)]
Merge "Correct IetAdm remove_iscsi_target"

12 years agoCorrect IetAdm remove_iscsi_target
John Griffith [Wed, 19 Sep 2012 17:18:51 +0000 (11:18 -0600)]
Correct IetAdm remove_iscsi_target

Remove logical units should be done before delete the target while
unexport iSCSI volume. Or ietd will show "No such file or directory"
error.

Fix bug 1043107

Change-Id: Iab5b97044c5a30c788fcabce827923ff82a84b91

12 years agoAdd nova migrate_version check to cinder import
John Griffith [Tue, 18 Sep 2012 19:29:20 +0000 (13:29 -0600)]
Add nova migrate_version check to cinder import

Cinder-manage migrate import only works from Nova/Folsom--->Cinder/Folsom
this change adds an explicit check of the nova migrate_version (133)
to make sure we have all of the volume id/uuid changes that are needed
to be compatable, and presents an error message if that's not the case.

Addresses bug #1052598

Change-Id: I7f32cf35e33320f4348b7bc44a8e92b5716b71d8

12 years agoMerge "Add update to volume and snapshot controllers"
Jenkins [Tue, 18 Sep 2012 20:13:30 +0000 (20:13 +0000)]
Merge "Add update to volume and snapshot controllers"

12 years agoMerge "Bump version to 2013.1"
Jenkins [Tue, 18 Sep 2012 17:30:17 +0000 (17:30 +0000)]
Merge "Bump version to 2013.1"

12 years agoMerge "Clean up db.volume_create()"
Jenkins [Tue, 18 Sep 2012 16:30:19 +0000 (16:30 +0000)]
Merge "Clean up db.volume_create()"

12 years agoBump version to 2013.1
Thierry Carrez [Tue, 18 Sep 2012 13:41:42 +0000 (15:41 +0200)]
Bump version to 2013.1

Bump version to 2013.1 on master branch to open Grizzly development.

Change-Id: Iad73bf47c4ff77216ee27c3b08117dcaa9487ddf

12 years agoMerge "Fix volume deletion when device mapper is used"
Jenkins [Tue, 18 Sep 2012 08:12:09 +0000 (08:12 +0000)]
Merge "Fix volume deletion when device mapper is used"

12 years agoClean up db.volume_create()
John Griffith [Mon, 17 Sep 2012 21:36:10 +0000 (15:36 -0600)]
Clean up db.volume_create()

 Adding the metadata return to db.volume_create() introduced some
 messy and unnecessary repitition in the code.  This patch
 cleans that up and makes use of existing volume_get functions rather
 than duplicating the code in volume_create.

 This syncs cinder up with the patch as it's been submitted for nova
 in https://review.openstack.org/#/c/10461/

 Addresses bug #1052176

Change-Id: I17aca069fbb0240770613f176430a1b2fcf2b25a

12 years agoMerge "Update quota when deleting volume that failed to be scheduled"
Jenkins [Mon, 17 Sep 2012 20:37:07 +0000 (20:37 +0000)]
Merge "Update quota when deleting volume that failed to be scheduled"

12 years agoFix volume deletion when device mapper is used
Rafi Khardalian [Wed, 5 Sep 2012 05:51:43 +0000 (05:51 +0000)]
Fix volume deletion when device mapper is used

Call dmsetup remove if there is a /dev/mapper/nova--volumes-
element present.

Resolves bug 979020

Change-Id: Iddaaed411a77dda4bd32f9a97687ff17744119eb

12 years agoMerge "Fix FLAGS.volumes_dir help message"
Jenkins [Mon, 17 Sep 2012 18:14:34 +0000 (18:14 +0000)]
Merge "Fix FLAGS.volumes_dir help message"

12 years agoUpdate quota when deleting volume that failed to be scheduled
Zhiteng Huang [Mon, 17 Sep 2012 09:26:09 +0000 (17:26 +0800)]
Update quota when deleting volume that failed to be scheduled

If one volume was failed to get scheduled, removing such volume should
also clean up reservation.
Also when create_volume is ready to send to scheduler, reservation
should be committed no matter backend can successfully create that
volume or not since deleting volume call will do a minus reservation
even on volume with 'error' status.

Fix bug 1052052

Change-Id: Iaec9926024ad5adb38b08b07772095f49b8593c2

12 years agoSync a change to rpc from openstack-common.
Russell Bryant [Fri, 14 Sep 2012 17:50:47 +0000 (13:50 -0400)]
Sync a change to rpc from openstack-common.

This commit pulls in the following change from openstack-common:

    ee44222 Change the qpid_heartbeat default to 60 seconds.

Fix bug 1050661.

Change-Id: I999e16c18227f9aab4dc8c2ff88cd6907c7c8191

12 years agoMerge "Sync notifier changes from openstack-common"
Jenkins [Fri, 14 Sep 2012 03:43:28 +0000 (03:43 +0000)]
Merge "Sync notifier changes from openstack-common"

12 years agoMerge "Add a resume delete on volume manager startup"
Jenkins [Fri, 14 Sep 2012 03:43:06 +0000 (03:43 +0000)]
Merge "Add a resume delete on volume manager startup"

12 years agoMerge "Improve entity validation in volumes APIs"
Jenkins [Fri, 14 Sep 2012 03:41:14 +0000 (03:41 +0000)]
Merge "Improve entity validation in volumes APIs"

12 years agoAdd a resume delete on volume manager startup
John Griffith [Thu, 13 Sep 2012 16:53:52 +0000 (10:53 -0600)]
Add a resume delete on volume manager startup

  Currently if for some reason the volume service was stopped
  during the zero out operation of a volume delete there was
  no way to get the volume removed from the system (it would
  be present in deleting status forever).

  This change adds a simple check of volumes in the DB with status
  of deleting, and if any are found it restarts the delete process
  on them.

  addresses bug #1011150

Change-Id: Id4c4a3bc61f95245ebc6658234b4b88029956562

12 years agoMerge "Add entity body validation helper"
Jenkins [Thu, 13 Sep 2012 16:45:10 +0000 (16:45 +0000)]
Merge "Add entity body validation helper"

12 years agoImprove entity validation in volumes APIs
Mark McLoughlin [Wed, 12 Sep 2012 11:51:40 +0000 (12:51 +0100)]
Improve entity validation in volumes APIs

Fixes bug #1048565

Use the new Controller.is_valid_body() helper to validate the entity
body in various volumes related POST/PUT handlers and return 422
as appropriate.

Change-Id: I04127972981522c1ed81903893396c4f9665bcd3

12 years agoAdd entity body validation helper
Mark McLoughlin [Wed, 12 Sep 2012 11:51:23 +0000 (12:51 +0100)]
Add entity body validation helper

Add a _valid_body() helper for the to avoid repeating the same tests in
multiple methods. Include a check that the entity itself is actually a
dict.

(Cherry-picks part of commit d1ad73ee from Nova)

Change-Id: If8114cc76d68567005c85c803f29e30e034db89a

12 years agoShould've added super().tearDown() in test_iscsi
John Griffith [Thu, 13 Sep 2012 14:50:09 +0000 (08:50 -0600)]
Should've added super().tearDown() in test_iscsi

  Made changes to use tempfiles and implemented teardown,
  but should have also called super().tearDown as well.

  Associated with chage: I9b9a2400

Change-Id: I2e9d1cb7bfbe78323630eb2f3270698a7ce7e4c4

12 years agoFixes bug 1050135.
Avishay Traeger [Tue, 11 Sep 2012 14:11:41 +0000 (17:11 +0300)]
Fixes bug 1050135.

Regenerate cinder.conf.sample and fix a couple related bugs.

Change-Id: I3e472f9c69ad4888dc15f901f4bc7cd825fb5ba1

12 years agoFix FLAGS.volumes_dir help message
Joe Gordon [Thu, 13 Sep 2012 01:06:34 +0000 (18:06 -0700)]
Fix FLAGS.volumes_dir help message

And other nova/volume/iscsi.py typos

Change-Id: I781a07b4f11b6cf336c278a6994bd5575ae1a70a

12 years agoMerge "Use tmpdir and avoid leaving test files behind"
Jenkins [Thu, 13 Sep 2012 00:16:08 +0000 (00:16 +0000)]
Merge "Use tmpdir and avoid leaving test files behind"

12 years agoMerge "Sync log format changes from openstack-common."
Jenkins [Thu, 13 Sep 2012 00:15:40 +0000 (00:15 +0000)]
Merge "Sync log format changes from openstack-common."

12 years agoMerge "Update rpc from openstack-common."
Jenkins [Thu, 13 Sep 2012 00:15:16 +0000 (00:15 +0000)]
Merge "Update rpc from openstack-common."

12 years agoUse tmpdir and avoid leaving test files behind
John Griffith [Wed, 12 Sep 2012 22:52:02 +0000 (16:52 -0600)]
Use tmpdir and avoid leaving test files behind

 We were just creating a file for testing iscsi persist files and
 weren't cleaning up after the test.

 Change this to use a tmpdir and make sure we leave no tracks.

 Fixes bug #1050086

Change-Id: I9b9a2400a172d52987d76f3132793cb042fd201c

12 years agoMerge "Add volume quota in volume/api.py and olume/manager.py"
Jenkins [Wed, 12 Sep 2012 23:24:55 +0000 (23:24 +0000)]
Merge "Add volume quota in volume/api.py and olume/manager.py"

12 years agoMerge "Fixes bug 1049446."
Jenkins [Wed, 12 Sep 2012 17:40:45 +0000 (17:40 +0000)]
Merge "Fixes bug 1049446."

12 years agoSync log format changes from openstack-common.
Russell Bryant [Wed, 12 Sep 2012 16:34:43 +0000 (12:34 -0400)]
Sync log format changes from openstack-common.

This patch pulls in the following change from openstack-common:

    9f88d84 Improve logging of process id

Change-Id: I6c5be346ed332d14357441b2b147ad1f09157f41

12 years agoUpdate rpc from openstack-common.
Russell Bryant [Wed, 12 Sep 2012 16:30:04 +0000 (12:30 -0400)]
Update rpc from openstack-common.

Fix bug 1049843.

This commit syncs the following commit from openstack-common:

    commit 7e9f72bb28456c912aa80945dbdb8d200f81b462
    Make projects define 'control_exchange'.

This change allows cinder to set a project-specific default of 'cinder'
for the 'control_exchange' option.  The option is now defined in
cinder.flags.

Change-Id: Ia91c172ca0665798d616f9faf5880770074235c8

12 years agoAdd volume quota in volume/api.py and olume/manager.py
Rongze Zhu [Wed, 12 Sep 2012 07:10:53 +0000 (07:10 +0000)]
Add volume quota in volume/api.py and olume/manager.py

Fixes bug #1048158

volume.api.API.create() call QUOTAS.reserve(), then
volume.manager.VolumeManager.create_volume call QUOTAS.commit().
volume.manager.VolumeManager.delete_volume call QUOTAS.reserve() and
QUOTAS.commit().

It also fixes bug #1049459.

Change-Id: I764aeec83cce93595fbe9aa00205a7d8c9e13c35

12 years agoFixes bug 1049446.
Avishay Traeger [Tue, 11 Sep 2012 10:31:01 +0000 (13:31 +0300)]
Fixes bug 1049446.

Removed the "vtype" option which did not work in the driver, and
added the "easytier" option. Added another check to _check_flags
and made sure -warning flag is passed properly. Added unit tests
to check all option variations.

Change-Id: I4e66436f8f62d851a079ec80209fe9d6b27fb5b4

12 years agoMerge "Remove null_kernel option."
Jenkins [Tue, 11 Sep 2012 22:58:09 +0000 (22:58 +0000)]
Merge "Remove null_kernel option."

12 years agoMerge "Revert "Don't zero out snapshot volume on snapshot_delete""
Jenkins [Tue, 11 Sep 2012 22:15:46 +0000 (22:15 +0000)]
Merge "Revert "Don't zero out snapshot volume on snapshot_delete""

12 years agoRevert "Don't zero out snapshot volume on snapshot_delete"
John Griffith [Tue, 11 Sep 2012 21:41:30 +0000 (21:41 +0000)]
Revert "Don't zero out snapshot volume on snapshot_delete"

This reverts commit 1b3322d45fe2c5ed72cc7f8674e5e319928065ad

Turns out that although it's less likely we can still see this issue when zeroing out regular volumes.

12 years agoAdd update to volume and snapshot controllers
Clay Gerrard [Mon, 27 Aug 2012 21:38:25 +0000 (21:38 +0000)]
Add update to volume and snapshot controllers

Add update method to api.openstack.volume.volumes and snapshots
controllers.  Url mapping automatically routes a PUT on the resource to
the update method.  Implementation closely matches updates to server
resource for the openstack compute api.

e.g.

curl http://localhost:8776/v1/${PROJECT_ID}/volumes/${VOLUME_ID} \
    -H 'x-auth-token: ${ADMIN_AUTH_TOKEN}' \
    -H 'content-type: application/json' \
    -XPUT -d '{"volume": {"display_name": "new-name"}}'

Add volume.api.API.update_snapshot method to avoid making db calls
directly from the SnapshotsController.

Add tests for new methods.

Update return value of test_volume.VolumeTestCase._create_snapshot
to return the whole model like _create_volume

fixes lp bug #1042904

Change-Id: I887178f9b7834cc7afd54bba8fb902b630faf8c0

12 years agoMerge "Remove unused utils.wrap_exception"
Jenkins [Tue, 11 Sep 2012 17:20:55 +0000 (17:20 +0000)]
Merge "Remove unused utils.wrap_exception"

12 years agoMerge "Nail the pip requirement at 1.1."
Jenkins [Mon, 10 Sep 2012 18:40:17 +0000 (18:40 +0000)]
Merge "Nail the pip requirement at 1.1."

12 years agoMerge "rename nova.pot => cinder.pot, nova.po => cinder.po"
Jenkins [Mon, 10 Sep 2012 18:26:00 +0000 (18:26 +0000)]
Merge "rename nova.pot => cinder.pot, nova.po => cinder.po"

12 years agoNail the pip requirement at 1.1.
Dan Prince [Fri, 7 Sep 2012 01:54:16 +0000 (21:54 -0400)]
Nail the pip requirement at 1.1.

The most recent version of pip (1.2.1 as of a couple days ago) fails
to install the required Cinder .venv packages. Nailing the installed
pip version when using run_tests.sh seems like a reasonable solution
to this issue.

Fixes LP Bug #1047120.

Change-Id: I8d831f747b0d25b5d0f6e74a234e764ff448965b

12 years agoMerge "Don't zero out snapshot volume on snapshot_delete"
Jenkins [Mon, 10 Sep 2012 02:48:37 +0000 (02:48 +0000)]
Merge "Don't zero out snapshot volume on snapshot_delete"

12 years agoMerge "Recent changes to SolidFire API changed iqn format"
Jenkins [Mon, 10 Sep 2012 02:19:56 +0000 (02:19 +0000)]
Merge "Recent changes to SolidFire API changed iqn format"

12 years agoMerge "Prevent from bug #1008866 is reverted"
Jenkins [Sun, 9 Sep 2012 17:45:46 +0000 (17:45 +0000)]
Merge "Prevent from bug #1008866 is reverted"

12 years agoClean up .gitignore
Rongze Zhu [Sun, 9 Sep 2012 10:49:19 +0000 (18:49 +0800)]
Clean up .gitignore

remove:
* nova.egg-info
* .nova-venv
* tools/conf/nova.conf*

Change-Id: I6578a75314b86628a5afbd4c4282fb271b9a830e

12 years agoPrevent from bug #1008866 is reverted
Rongze Zhu [Sun, 9 Sep 2012 07:35:26 +0000 (15:35 +0800)]
Prevent from bug #1008866 is reverted

Fixes bug #1047841.

Commit 2f5360753308eb8b10581fc3c026c1b66f42ebdc (Adds new volume API
extensions) reverted a part of commit
99456bd690445443ae05c0d4fe1ec43ba6090f6f (Send 'create volume from
snapshot' to the proper host), so bug #1008866 is reproduced. I make
API.create_volume to call _cast_create_volume in cinder/volume/api.py,
it Prevent from bug #1008866 is reverted.

Change-Id: I1bf0b7c5fc47da756bce95128f8fd770d14399b0

12 years agorename nova.pot => cinder.pot, nova.po => cinder.po
Hui Cheng [Sun, 9 Sep 2012 05:04:09 +0000 (13:04 +0800)]
rename nova.pot => cinder.pot, nova.po => cinder.po

Fixes Bug #1047195

renamed:    cinder/locale/bs/LC_MESSAGES/nova.po -> cinder/locale/bs/LC_MESSAGES/cinder.po
renamed:    cinder/locale/nova.pot -> cinder/locale/cinder.pot
renamed:    cinder/locale/cs/LC_MESSAGES/nova.po -> cinder/locale/cs/LC_MESSAGES/cinder.po
renamed:    cinder/locale/da/LC_MESSAGES/nova.po -> cinder/locale/da/LC_MESSAGES/cinder.po
renamed:    cinder/locale/de/LC_MESSAGES/nova.po -> cinder/locale/de/LC_MESSAGES/cinder.po
renamed:    cinder/locale/en_AU/LC_MESSAGES/nova.po -> cinder/locale/en_AU/LC_MESSAGES/cinder.po
renamed:    cinder/locale/en_GB/LC_MESSAGES/nova.po -> cinder/locale/en_GB/LC_MESSAGES/cinder.po
renamed:    cinder/locale/es/LC_MESSAGES/nova.po -> cinder/locale/es/LC_MESSAGES/cinder.po
renamed:    cinder/locale/fr/LC_MESSAGES/nova.po -> cinder/locale/fr/LC_MESSAGES/cinder.po
renamed:    cinder/locale/it/LC_MESSAGES/nova.po -> cinder/locale/it/LC_MESSAGES/cinder.po
renamed:    cinder/locale/ja/LC_MESSAGES/nova.po -> cinder/locale/ja/LC_MESSAGES/cinder.po
renamed:    cinder/locale/ko/LC_MESSAGES/nova.po -> cinder/locale/ko/LC_MESSAGES/cinder.po
renamed:    cinder/locale/pt_BR/LC_MESSAGES/nova.po -> cinder/locale/pt_BR/LC_MESSAGES/cinder.po
renamed:    cinder/locale/ru/LC_MESSAGES/nova.po -> cinder/locale/ru/LC_MESSAGES/cinder.po
renamed:    cinder/locale/tl/LC_MESSAGES/nova.po -> cinder/locale/tl/LC_MESSAGES/cinder.po
renamed:    cinder/locale/tr/LC_MESSAGES/nova.po -> cinder/locale/tr/LC_MESSAGES/cinder.po
renamed:    cinder/locale/uk/LC_MESSAGES/nova.po -> cinder/locale/uk/LC_MESSAGES/cinder.po
renamed:    cinder/locale/zh_CN/LC_MESSAGES/nova.po -> cinder/locale/zh_CN/LC_MESSAGES/cinder.po
renamed:    cinder/locale/zh_TW/LC_MESSAGES/nova.po -> cinder/locale/zh_TW/LC_MESSAGES/cinder.po

Change-Id: I3a7894ac90793f270fb27444034b197b7c4f2841

12 years agoDon't zero out snapshot volume on snapshot_delete
John Griffith [Wed, 5 Sep 2012 19:27:48 +0000 (19:27 +0000)]
Don't zero out snapshot volume on snapshot_delete

 When trying to zero out an LVM snapshot on precise the kernel sometimes
 hangs when performing the dd.  Also the dd process itself can take
 an extremely long time even when it does succesfully complete.
 This can be up to 30 minutes for a 1 Gig volume/snapshot.

 I believe this is a kernel specific issue with LVM snapshots.  The
 zeroing process is unreliable and can cause kernel hangs to let's remove it.

 In order to protect against data leakage we'll implement the zeroing process
 on volume creation.  This doesn't seem to have a significant impact and doesn't
 suffer from the same isues tha zeroing out an LVM snapshot does.

 No reason to continue zero on delete, the zero on creation should
 probably be sufficient.

 Doesn't seem to cause any timing issues but need to keep this in mind.

 Fixes bug 1023755

Change-Id: I56209d8e5973cffa997b4ec3e51c3361838386de

12 years agoRecent changes to SolidFire API changed iqn format
John Griffith [Sat, 8 Sep 2012 16:40:55 +0000 (10:40 -0600)]
Recent changes to SolidFire API changed iqn format

 The SF API initially didn't supply the in prefix so we
 formed it manually in the OpenStack driver.

 This has been fixed in the API so we dropped the manual
 build of the prefix in volume create.  Unfortunatly missed
 the same case needed in create-from-snapshot.

 Going forward we're adding running integration tests against
 SF to catch this sort of thing.

Change-Id: I7107537d586f0a7c457dcbabfc90e1bc081d28d2

12 years agoMerge "avoid the buffer cache when copying volumes"
Jenkins [Fri, 7 Sep 2012 18:03:06 +0000 (18:03 +0000)]
Merge "avoid the buffer cache when copying volumes"

12 years agoMerge "Update dev docs * Quick pass at implementing the basics for cinder dev docs...
Jenkins [Fri, 7 Sep 2012 17:15:00 +0000 (17:15 +0000)]
Merge "Update dev docs   * Quick pass at implementing the basics for cinder dev docs   * Remove the N/A compute related stuff   * Clean up the architecture a bit to only show cinder related   * Remove various modules form TOC's that aren't applicable"

12 years agoMerge "Filter volumes and snapshots by query string"
Jenkins [Fri, 7 Sep 2012 15:53:08 +0000 (15:53 +0000)]
Merge "Filter volumes and snapshots by query string"

12 years agoMerge "Rename test_nova_rootwrap.py to test_cinder_rootwrap.py"
Jenkins [Fri, 7 Sep 2012 15:40:37 +0000 (15:40 +0000)]
Merge "Rename test_nova_rootwrap.py to test_cinder_rootwrap.py"

12 years agoMerge "Update SolidFire driver to reflect IQN changes"
Jenkins [Fri, 7 Sep 2012 15:08:12 +0000 (15:08 +0000)]
Merge "Update SolidFire driver to reflect IQN changes"

12 years agoMerge "Remove vpn_ping function in cinder/utils.py"
Jenkins [Fri, 7 Sep 2012 14:47:30 +0000 (14:47 +0000)]
Merge "Remove vpn_ping function in cinder/utils.py"

12 years agoMerge "Clean up some codes about compute in VolumeTestCase"
Jenkins [Fri, 7 Sep 2012 14:46:54 +0000 (14:46 +0000)]
Merge "Clean up some codes about compute in VolumeTestCase"

12 years agoMerge "Typo nova => cinder"
Jenkins [Fri, 7 Sep 2012 14:46:35 +0000 (14:46 +0000)]
Merge "Typo nova => cinder"

12 years agoMerge "Remove unused db api"
Jenkins [Fri, 7 Sep 2012 14:46:12 +0000 (14:46 +0000)]
Merge "Remove unused db api"

12 years agoRemove unused utils.wrap_exception
Mark McLoughlin [Fri, 7 Sep 2012 10:29:00 +0000 (11:29 +0100)]
Remove unused utils.wrap_exception

Moved into utils by commit 6ad36074, but it hasn't been used in cinder
since commit 9e4242c3 which prepared for switching to common rpc.

Change-Id: I9dff70e81c0bae36f26df893ac6971e17ba46bb3

12 years agoSync notifier changes from openstack-common
Mark McLoughlin [Wed, 5 Sep 2012 11:15:41 +0000 (12:15 +0100)]
Sync notifier changes from openstack-common

Syncs the following from stable/folsom:

 c767e9b Add multiple-driver support to the notifier api.

Also remove notification_driver from cinder.flags. This should
have been done when first adopting this code from openstack-common
since the option is defined there now.

Note: I've left the cinder-specific change to use cinder's context
rather than openstack-common's context.

Change-Id: I6ff4b5d45ca9cc4acaf37c62c143f2886ebee423

12 years agoClean up some codes about compute in VolumeTestCase
Rongze Zhu [Fri, 7 Sep 2012 06:47:51 +0000 (14:47 +0800)]
Clean up some codes about compute in VolumeTestCase

self.compute have not be assigned in VolumeTestCase, so clean up some
codes about it.

Change-Id: Ie2577065ad27b4ee5b54dec65adfe723bf93985f

12 years agoRemove unused db api
Rongze Zhu [Fri, 7 Sep 2012 06:40:45 +0000 (14:40 +0800)]
Remove unused db api

service_get_all_compute_by_host and service_get_all_compute_sorted are
not be used by cinder.

Change-Id: Ie384d2666bbfea1d5fab74e4e3e021909f6c0e3f

12 years agoMerge "Fixes potential bugs found by pylint"
Jenkins [Fri, 7 Sep 2012 06:36:02 +0000 (06:36 +0000)]
Merge "Fixes potential bugs found by pylint"

12 years agoTypo nova => cinder
Rongze Zhu [Fri, 7 Sep 2012 06:25:27 +0000 (14:25 +0800)]
Typo nova => cinder

Change-Id: I715feee8ca84fb65518e750585f82e942e710ecd

12 years agoRemove vpn_ping function in cinder/utils.py
Rongze Zhu [Fri, 7 Sep 2012 06:13:11 +0000 (14:13 +0800)]
Remove vpn_ping function in cinder/utils.py

vpn_ping is not be used by cinder.

Change-Id: I3ea04200360a23259ce3cce54ff88125895e217b

12 years agoUpdate SolidFire driver to reflect IQN changes
John Griffith [Fri, 7 Sep 2012 05:50:49 +0000 (23:50 -0600)]
Update SolidFire driver to reflect IQN changes

 Prior to release the SolidFire device returned only
 a partial iqn string in it's api call.

 With the GA release, this was modified to return the entire
 iqn string, so just drop the prefix we were using in beta.

Change-Id: I7fa9d1ec6e2639149375a1115198eee90c527ef1

12 years agoRename test_nova_rootwrap.py to test_cinder_rootwrap.py
Rongze Zhu [Fri, 7 Sep 2012 04:21:40 +0000 (12:21 +0800)]
Rename test_nova_rootwrap.py to test_cinder_rootwrap.py

Change-Id: I13554b7afa994ec7c68e86e27568110445d1e4ed

12 years agoFixes potential bugs found by pylint
Rongze Zhu [Fri, 7 Sep 2012 03:16:36 +0000 (11:16 +0800)]
Fixes potential bugs found by pylint

Partial fixes bug #1043884

* remove _ec2_volume_get_query and _ec2_snapshot_get_query in
cinder.db.sqlalchemy.api, because they no longer be used in cinder.
* import openstack.commmon.utils.timeutils, because notify_usage_exists use it.

Change-Id: I3e989b940b6a99ac7751c940fa766aa13c61607b

12 years agoHandle missing 'provider_location' in rm_export.
Dan Prince [Fri, 7 Sep 2012 02:52:35 +0000 (22:52 -0400)]
Handle missing 'provider_location' in rm_export.

Updates the remove_export function in the ISCSIDriver so that
it handles the case where provider_location isn't set on
a volume. This can occur if a volume is created but not exported.

This was a regression from a previous commit
(9785963c841aff5ea1c159da81f93c2bf62c70c6) which changed the way iscsi
targets are created/deleted.

Fixes LP Bug #1046484.

Change-Id: Ie762b092dd2a84fe4f3b72c46c03a97ae67c53b7

12 years agoMerge "Sync cfg changes from openstack-common"
Jenkins [Thu, 6 Sep 2012 23:31:02 +0000 (23:31 +0000)]
Merge "Sync cfg changes from openstack-common"

12 years agoMerge "Sync misc changes from openstack-common"
Jenkins [Thu, 6 Sep 2012 23:30:11 +0000 (23:30 +0000)]
Merge "Sync misc changes from openstack-common"

12 years agoMerge "Sync zmq changes from openstack-common"
Jenkins [Thu, 6 Sep 2012 23:29:51 +0000 (23:29 +0000)]
Merge "Sync zmq changes from openstack-common"

12 years agoMerge "Remove default_schedule_zone."
Jenkins [Thu, 6 Sep 2012 23:28:06 +0000 (23:28 +0000)]
Merge "Remove default_schedule_zone."

12 years agoMerge "Remove memcached_servers config option."
Jenkins [Thu, 6 Sep 2012 23:09:43 +0000 (23:09 +0000)]
Merge "Remove memcached_servers config option."

12 years agoMerge "Remove dependencies for netaddr."
Jenkins [Thu, 6 Sep 2012 22:49:39 +0000 (22:49 +0000)]
Merge "Remove dependencies for netaddr."

12 years agoMerge "Fix Typo in LOG.error"
Jenkins [Thu, 6 Sep 2012 22:49:07 +0000 (22:49 +0000)]
Merge "Fix Typo in LOG.error"

12 years agoMerge "Specify the conf file when creating a volume."
Jenkins [Thu, 6 Sep 2012 22:47:05 +0000 (22:47 +0000)]
Merge "Specify the conf file when creating a volume."

12 years agoMerge "Fix xml metadata for volumes api in cinder."
Jenkins [Thu, 6 Sep 2012 22:30:57 +0000 (22:30 +0000)]
Merge "Fix xml metadata for volumes api in cinder."

12 years agoSpecify the conf file when creating a volume.
Dan Prince [Thu, 6 Sep 2012 18:50:50 +0000 (14:50 -0400)]
Specify the conf file when creating a volume.

Updates the tgt-admin command to actually use the config file
we create for the volume being created.

This fixes an issue introduced in
9785963c841aff5ea1c159da81f93c2bf62c70c6 which breaks iscsi
volume creation.

Fixes LP Bug #1046985.

Change-Id: I06e83c9ba351c2b4846b557a3abb170a51d506c0

12 years agoavoid the buffer cache when copying volumes
Pádraig Brady [Fri, 13 Jul 2012 17:22:17 +0000 (18:22 +0100)]
avoid the buffer cache when copying volumes

The dd process when clearing volumes, was seen to starve
the system when writing to an iSCSI SAN connected over GigE.

So use O_DIRECT within the dd process so that the system
buffer cache is not impacted, which is generally the
best thing to do when streaming large amounts of data.

Also one could drop the I/O priority of the dd process
by prepending "ionice -c3". That would change the priority
from "normal" (best effort) to "idle", which means zeroing
will only proceed when there is no other I/O on the system.
It was thought best to leave scheduling decisions to the
system however, rather than specifying them explicitly.

Fixes bug: 937694
Change-Id: Ic842d7b83209c41d8ff05075990ed12e6f86283a

12 years agoMerge "Add admin actions extension"
Jenkins [Thu, 6 Sep 2012 19:24:57 +0000 (19:24 +0000)]
Merge "Add admin actions extension"

12 years agoFix Typo in LOG.error
Chuck Short [Thu, 6 Sep 2012 14:50:37 +0000 (09:50 -0500)]
Fix Typo in LOG.error

Fix typo in LOG.error, it should be
vol_id rather than volume_id.
Fixes bug #1046875

Change-Id: Id162c6f185a110b63e8f9f509f5cde75f3626cbf
Signed-off-by: Chuck Short <chuck.short@canonical.com>