]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
11 years agoMerge "Add missing tests for cinder.db.api.quota_"
Jenkins [Thu, 30 May 2013 16:59:35 +0000 (16:59 +0000)]
Merge "Add missing tests for cinder.db.api.quota_"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 30 May 2013 16:59:31 +0000 (16:59 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fix incorrect status for volume clone from image"
Jenkins [Thu, 30 May 2013 16:53:21 +0000 (16:53 +0000)]
Merge "Fix incorrect status for volume clone from image"

11 years agoMerge "Fix 'Inheritance-based rule deprecated' log warning"
Jenkins [Thu, 30 May 2013 16:52:38 +0000 (16:52 +0000)]
Merge "Fix 'Inheritance-based rule deprecated' log warning"

11 years agoMerge "Return 404 from delete of extra spec if not found"
Jenkins [Thu, 30 May 2013 15:57:21 +0000 (15:57 +0000)]
Merge "Return 404 from delete of extra spec if not found"

11 years agoAdd missing tests for cinder.db.api.quota_
Sergey Skripnick [Wed, 29 May 2013 15:02:56 +0000 (18:02 +0300)]
Add missing tests for cinder.db.api.quota_

blueprint db-api-tests

Change-Id: Ib47c1620ce124919d9f3365a0abaa53b4b3e5cd4

11 years agoMerge "Add missing tests for cinder.db.api"
Jenkins [Thu, 30 May 2013 15:11:42 +0000 (15:11 +0000)]
Merge "Add missing tests for cinder.db.api"

11 years agoReturn 404 from delete of extra spec if not found
Cian O'Driscoll [Thu, 30 May 2013 13:00:54 +0000 (13:00 +0000)]
Return 404 from delete of extra spec if not found

API service now returns a 404 if the volume type that the
user is trying to delete doesn't exist.

Fixed Bug 1090306.

Change-Id: I3c1d4fdac1c2492f532ab4dbfd5c7aaf0ffa6fa4

11 years agoFix incorrect status for volume clone from image
Edward Hope-Morley [Wed, 29 May 2013 22:35:32 +0000 (23:35 +0100)]
Fix incorrect status for volume clone from image

If, when using a Ceph as a backend for Cinder and Glance, you
create a volume from a Glance image, the request is actioned
in one of two ways; (1) if Glance does not supply sufficient
information to Cinder, a full copy is made of the Glance
image or (2) Ceph uses it's copy-on-write capability to do a
clone. If a full copy is done, the volume is marked as
Bootable=True but if a clone is done it is not.

This does not appear to break nova boot from volume at present
but the status displayed by the cinder client is incorrect.

Change-Id: I2959fc3dfaf0e073781583019797bcd44f7789d6
Fixes: bug 1185533
11 years agoMerge "Support for NFS shares with spaces in path."
Jenkins [Thu, 30 May 2013 11:58:53 +0000 (11:58 +0000)]
Merge "Support for NFS shares with spaces in path."

11 years agoMerge "Fixes 3PAR Host already exists error."
Jenkins [Thu, 30 May 2013 11:52:30 +0000 (11:52 +0000)]
Merge "Fixes 3PAR Host already exists error."

11 years agoMerge "rbd: send ceph monitor addresses with connection info"
Jenkins [Wed, 29 May 2013 18:17:08 +0000 (18:17 +0000)]
Merge "rbd: send ceph monitor addresses with connection info"

11 years agoMerge "Ensure that pbr>=0.5.10 is installed"
Jenkins [Wed, 29 May 2013 18:16:03 +0000 (18:16 +0000)]
Merge "Ensure that pbr>=0.5.10 is installed"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 29 May 2013 18:11:27 +0000 (18:11 +0000)]
Imported Translations from Transifex

Change-Id: Ia0a6aa414a71f25baa1555dc004340e7b29c0f20

11 years agoMerge "test_glance.py: Stub out _get_member_model as well."
Jenkins [Wed, 29 May 2013 17:53:45 +0000 (17:53 +0000)]
Merge "test_glance.py: Stub out _get_member_model as well."

11 years agoSupport for NFS shares with spaces in path.
Anton Frolov [Tue, 28 May 2013 15:34:41 +0000 (19:34 +0400)]
Support for NFS shares with spaces in path.

Unescape share address string listed in nfs_shares_config so that
'x.y.z.w:/foo\040bar' would become 'x.y.z.w:/foo bar' to support
mounting shares with spaces in name.
Use stat command to get available and total space on device instead
of df since it's output is easier to parse.

Fixes: bug #1180984
Change-Id: I552aba91ca8db14130f854c739594a818186bbe2

11 years agoFixes 3PAR Host already exists error.
Jim Branen [Fri, 24 May 2013 16:30:10 +0000 (09:30 -0700)]
Fixes 3PAR Host already exists error.

Fixed “Host already exists” error by,
* Screen scraping error message and extracting the host name
used by the 3PAR backend.
* Cache the host name used by the 3PAR backend for subsequent
methods using host name.
* After a restart, and 3PAR host name it no longer available,
retrieve 3PAR host name using wwn/iqn, if a terminate_connection
fails.

Fixes bug 1182134

Change-Id: Ia08a311af168ae19dbe7c1405db9c606fd878e53

11 years agoEnsure that pbr>=0.5.10 is installed
Jay S. Bryant [Mon, 20 May 2013 20:02:11 +0000 (15:02 -0500)]
Ensure that pbr>=0.5.10 is installed

A bug in PBR levels less than 0.5.10 causes the
/usr/lib/python2.X/site-packages/cinder/db/sqlalchemy/migrate_repo/migrate.cfg
file to not be properly installed.  This causes 'cinder-manage db sync'
to fail due to the missing file.

This change sets the required PBR level to >=0.5.10,<0.6 to avoid the problem.
In the case that user already has a 0.5.X level of PBR installed that is less
than 0.5.10 it should be updated rather than encountering issues as our
test system did.

Change-Id: I532158277a4acbb2f8cb75d03c91097e6d7e0312
fixes: bug 1182203

11 years agoMerge "Remove execute permissions from test files."
Jenkins [Wed, 29 May 2013 14:44:36 +0000 (14:44 +0000)]
Merge "Remove execute permissions from test files."

11 years agoAdd missing tests for cinder.db.api
Sergey Skripnick [Mon, 27 May 2013 14:17:01 +0000 (17:17 +0300)]
Add missing tests for cinder.db.api

Methods covered:

 reservation_*
 service_*
 volume_*

blueprint db-api-tests

Change-Id: Ieb396b3de40eaa2fca9d285f75c0a3d631745e74

11 years agoRemove execute permissions from test files.
Avishay Traeger [Fri, 24 May 2013 08:19:51 +0000 (11:19 +0300)]
Remove execute permissions from test files.

Remove execute permissions from test_volumes.py and
test_storwize_svc.py, which caused the tests defined in them
to be skipped.

Fixing the permissions caused test_create_volume_with_volume_type to
execute, which fails. The cause of the failure is that
(1) LoggingVolumeDriver doesn't implement get_volume_stats(), and
(2) The fake RPC doesn't pass the statistics to the scheduler for
some reason.

Because this test doesn't test the scheduler, just change to use the
simple scheduler and work around the issue.

Change-Id: Ie01331d484c5c48c78b626eff1ad793dbbe7182c
Fixes: bug 1183416
11 years agoCatch and report errors from copy image to volume.
John Griffith [Mon, 27 May 2013 20:04:56 +0000 (20:04 +0000)]
Catch and report errors from copy image to volume.

The copy image-to-volume errors weren't being handled
properly and the result was the lvcreate being retried
even though the lvcreate itself succeeded.

The result of this was misleading errors stating that
the volume couldn't be created because it already existed
(which it did, becuase the create itself was succesful).

Fixes bug: 1183283

Change-Id: I23f05fe64475c3efe285e05a258c4625b801375c

11 years agoMerge "Update cloned volumes QoS settings."
Jenkins [Wed, 29 May 2013 02:46:47 +0000 (02:46 +0000)]
Merge "Update cloned volumes QoS settings."

11 years agotest_glance.py: Stub out _get_member_model as well.
Adam Gandelman [Tue, 28 May 2013 21:34:30 +0000 (14:34 -0700)]
test_glance.py: Stub out _get_member_model as well.

glanceclient's v2 client needs to also have its _get_member_model()
stubbed out as well, to avoid attempts to reach 'fake_host' during
client instantiation.

Update: Only stub when _get_member_model() when required.

Change-Id: I943cbb017ccdbe4f6c994bc83cbefe8693f4672b
Fixes: bug #1185178.
11 years agorbd: send ceph monitor addresses with connection info
Josh Durgin [Sat, 25 May 2013 01:18:30 +0000 (18:18 -0700)]
rbd: send ceph monitor addresses with connection info

Previously we relied on a ceph configuration file on the compute host
for this information. Sending the info directly from cinder makes more
complex setups with multiple ceph clusters talking to the same compute
hosts possible.

Refresh the monitor addresses for each initialize_connection() call,
since monitors may be added or removed while cinder-volume is
running.

Fixes: bug 1077817
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Change-Id: I34a1fa16ce1f4524ba25832faf3129303e755100

11 years agoRemove cinder_emc_config.xml.sample
Xing Yang [Tue, 28 May 2013 04:28:37 +0000 (00:28 -0400)]
Remove cinder_emc_config.xml.sample

Remove this sample config file from emc folder based on discussions
at the IRC meeting. Parameters specified in this sample file are
already documented in Cinder Admin Guide.

Change-Id: I4f742eedde962aefc6d5ab14d08a955859ae0e4f

11 years agoUpdate cloned volumes QoS settings.
John Griffith [Sat, 25 May 2013 23:52:30 +0000 (17:52 -0600)]
Update cloned volumes QoS settings.

The SolidFire device inherits all settings (including QoS) from
the parent on a clone.  This meant that although we were expecting
QoS to be updated when a clone was issued with a different Volume
Type than the parent volume it was never acted upon.

This change fixes that bug by simply adding the *new* qos settings
to the ModifyVolume call after cloning.

Fixes bug: 1184235

Change-Id: I81786a07312027d543b9f06e54dfbf57e6085bc9

11 years agoFix 'Inheritance-based rule deprecated' log warning
Rushi Agrawal [Mon, 27 May 2013 14:18:12 +0000 (19:48 +0530)]
Fix 'Inheritance-based rule deprecated' log warning

A warning message appears in Cinder logs which state that
inheritance-based rules are deprecated and use default
Brain instead of HttpBrain. It looks like HttpBrain class
doesnt have any difference from Brain class, so changing
all the instances of HttpBrain to Brain shouldn't affect
anything and removes this warning from logs.

Digging further, I found out that the policy engine has
gone through a major rework in Oslo and Nova, and I think
at some point of time in future, we will also be moving
to use the latest policy engine code. In that way of
thinking, I guess this fix is acceptable for now.
Reference: https://review.openstack.org/#/c/14122

Changed the brain from HttpBrain -> Brain, which makes the
warnings in the log disapper. A more comprehensive work will be
to pull the latest policy change code from Oslo.

Bug #1156608

Change-Id: I9f63ec4c41025042725db9b2e7c8ffa3d91e0596

11 years agoMerge "Improve "service is down or disabled" warning message"
Jenkins [Mon, 27 May 2013 02:24:18 +0000 (02:24 +0000)]
Merge "Improve "service is down or disabled" warning message"

11 years agoAdded '%' before snapshot variable
Mukul Patel [Sun, 26 May 2013 18:12:06 +0000 (23:42 +0530)]
Added '%' before snapshot variable

In function create_snapshot for cinder volume, '%' was missed
before variable snapshot from message defination. It was causing
an error during translation of debug message. Included '%'
for getting proper debug log.

Fixes: bug #1183736
Change-Id: I894639a4e5a69be80f4f53ec9d4f9f8648870173

11 years agoMerge "Don't throw ValueError for invalid volume id"
Jenkins [Sun, 26 May 2013 13:29:07 +0000 (13:29 +0000)]
Merge "Don't throw ValueError for invalid volume id"

11 years agoMerge "Implement scheduler hints for API v2"
Jenkins [Sat, 25 May 2013 16:07:42 +0000 (16:07 +0000)]
Merge "Implement scheduler hints for API v2"

11 years agoMerge "Make NFS share selection more intelligent."
Jenkins [Sat, 25 May 2013 04:35:08 +0000 (04:35 +0000)]
Merge "Make NFS share selection more intelligent."

11 years agoMerge "Add "_" builtin method for config generation"
Jenkins [Sat, 25 May 2013 04:31:11 +0000 (04:31 +0000)]
Merge "Add "_" builtin method for config generation"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 25 May 2013 04:20:20 +0000 (04:20 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "ModifyVolume attributes on Clone."
Jenkins [Fri, 24 May 2013 23:20:44 +0000 (23:20 +0000)]
Merge "ModifyVolume attributes on Clone."

11 years agoHack run_tests.sh to work with single tests again.
John Griffith [Fri, 24 May 2013 19:46:28 +0000 (13:46 -0600)]
Hack run_tests.sh to work with single tests again.

Even though we're moving to testr and this will eventually
go away, we should maintain our ability to run and debug
individual tests until the broader change is released.

This just adds some text around the nosetests call
to get us back where we were.

Fixes bug: 1181996

Change-Id: Id0082ca8954664679430cc602425b1fadd29151b

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 24 May 2013 18:11:04 +0000 (18:11 +0000)]
Imported Translations from Transifex

Change-Id: I468b17530bc8db03df53e8d098dfb5ea0765894e

11 years agoDon't throw ValueError for invalid volume id
Eric Harney [Fri, 24 May 2013 15:44:13 +0000 (11:44 -0400)]
Don't throw ValueError for invalid volume id

If a user runs something like "cinder-manage volume delete a1234",
a ValueError is thrown because it fails to cast to int.
Catch this and treat the parameter as an id which will result in a
later VolumeNotFound error rather than breaking this way.

Change-Id: I95a9b9d7628cebe4b6d855ea925b0ad3a5f1c4c4

11 years agoModifyVolume attributes on Clone.
John Griffith [Fri, 24 May 2013 04:57:57 +0000 (22:57 -0600)]
ModifyVolume attributes on Clone.

Clones copy over the attributes from the source volume,
we want to keep some admin data like source-volid and if
it's a clone or not.  To do that we just need to call modifyvolume
after the clone operation and update this info.

Change-Id: I903fe6f8a57880abad8d315d091c1e57624a519c

11 years agoImprove "service is down or disabled" warning message
Eric Harney [Wed, 22 May 2013 14:14:38 +0000 (10:14 -0400)]
Improve "service is down or disabled" warning message

Include "volume" and host in this message to make it more useful.

Change-Id: I2cacc7373de3a1b51762df2844a46b393d96c6cc

11 years agoAdd "_" builtin method for config generation
Ann Kamyshnikova [Thu, 23 May 2013 09:33:30 +0000 (13:33 +0400)]
Add "_" builtin method for config generation

extract_opts.py fails to generate config without this

bug 1183731

Change-Id: Icf3b45d5d7262607336f5d5e7a0a14b0dee9741d

11 years agoMerge "Add common Oslo DB code to the source tree"
Jenkins [Fri, 24 May 2013 08:14:55 +0000 (08:14 +0000)]
Merge "Add common Oslo DB code to the source tree"

11 years agoReplace custom skip_ methods.
Monty Taylor [Thu, 23 May 2013 23:36:21 +0000 (01:36 +0200)]
Replace custom skip_ methods.

testtools has these built in - so we should use them.

Change-Id: I2a9f6dbd69d5acef9a0dfbe5e90e9dbf706d8677

11 years agoMigrate base test class to testtools.
Monty Taylor [Thu, 23 May 2013 23:07:38 +0000 (01:07 +0200)]
Migrate base test class to testtools.

This is step one in moving towards testr.

Change-Id: Ieac7fbe34ddc9ca05812faca76b68ff7d37ca708

11 years agoFix ownership transfer when cloning with SolidFire
Mathieu Gagné [Thu, 23 May 2013 19:26:44 +0000 (15:26 -0400)]
Fix ownership transfer when cloning with SolidFire

When cloning a volume with SolidFire driver, the owner of
the cloned volume is not set correctly in SolidFire when there is
a transfer of ownership.

This results in inconsistent states where the cloned volume
is owned by the new tenant in Cinder but SolidFire thinks it is still
owned by the original volume's tenant.

This patch adds the newAccountID parameter to all CloneVolume calls.

If the cloned volume is owned by the same tenant, newAccountID will
be set to the same value as the original SolidFire volume. There
will be no change of ownership done by the cloning process in SolidFire.

If the cloned volume should be owned by a different tenant, newAccountID
will be set to the appropriate SolidFire account corresponding
to the new tenant. If the SolidFire account does not exist already,
it will be created.

Fixes: bug #1183521
Change-Id: I622ca2962478298e3e0c5a26866e39919805075f

11 years agoMake NFS share selection more intelligent.
Morgan Fainberg [Tue, 14 May 2013 20:04:20 +0000 (13:04 -0700)]
Make NFS share selection more intelligent.

Make the NFS share selection more intelligent by using a used_ratio
and oversub_ratio to determine the valid target.  The used_ratio
is a hard-cap of maximum "actual" used space, oversub_ratio allows
for oversubscription of the share based upon the apparant-allocated
space for sparse files.

Removed Options: nfs_disk_util

New options added:
* nfs_used_ratio:
    Float representation of the maximum allowed usage (e.g. 0.95
    calculated by available_space / total_space) before the share
    is no longer concidered a valid target.  Default: 0.95

* nfs_oversub_ratio:
    Float representation of the oversubscriotion ratio allowed when
    utilizing sparse files (determined via "du").  This gets
    multiplied against the total_capacity before comparing the
    apparant space used by the backing volume files.  Default
    ratio is 1.0 (meaning reserved/allocated space cannot exceed
    total space available on the mount).

DocImpact: New Configuration Options / Removal of Config Option

bp nfs-share-selection-logic-improvement

Change-Id: I3572e106eb4c794b08bf6f499e2da2d494c4072d

11 years agoAdd common Oslo DB code to the source tree
Roman Podolyaka [Thu, 23 May 2013 14:53:52 +0000 (17:53 +0300)]
Add common Oslo DB code to the source tree

Blueprint: db-session-cleanup

Change-Id: I1e2e6d66474f0f8a655a055d5b2150699d66f1dd

11 years agoAdd the service_state into test_schedule_happy_day.
Vincent Hou [Thu, 23 May 2013 11:54:36 +0000 (19:54 +0800)]
Add the service_state into test_schedule_happy_day.

Since the fake filter scheduler does not update the capabilities, the sevice
states remains empty. To avoid the None value for free_capacity_gb, we set the
host_manager to a fake host manager with a list of service states.

Fixed Bug 1171906.

Change-Id: I359ea6952392cc5e6b8eff513f3ca4d8161a30e3

11 years agoImplement scheduler hints for API v2
Nikolaj Starodubtsev [Thu, 18 Apr 2013 12:42:35 +0000 (16:42 +0400)]
Implement scheduler hints for API v2

We've done this implementation because we need to use scheduler hint in
cinder with some specific filters. So, most part of code have been
imported from nova.

bp scheduler-hints
docimpact

Change-Id: I4c8a78ade4ff668d79e7aa6d0d358029754e3d90

11 years agoMerge "Added a test for bad limit param"
Jenkins [Thu, 23 May 2013 01:03:15 +0000 (01:03 +0000)]
Merge "Added a test for bad limit param"

11 years agoMerge "Added test for nonnumerical limit param"
Jenkins [Thu, 23 May 2013 01:03:12 +0000 (01:03 +0000)]
Merge "Added test for nonnumerical limit param"

11 years agoUpdate log.py and jsonutils.py from oslo-incubator
John Griffith [Wed, 22 May 2013 18:52:30 +0000 (12:52 -0600)]
Update log.py and jsonutils.py from oslo-incubator

The update of log was mostly to get coloring to work again
in devstack, and jsonutils was picked up as well.

The update to jsonutils also requires the six dependency
which is added to pip-requires.

Change-Id: I95d23aafe19b12d4a427149aa5f7a66394d178c6

11 years agoAdded a test for bad limit param
Derek Chiang [Wed, 22 May 2013 05:07:20 +0000 (05:07 +0000)]
Added a test for bad limit param

Change-Id: Ic9a93779d5623644ccf210de622d59f999571dd2

11 years agoAdded test for nonnumerical limit param
Derek Chiang [Wed, 22 May 2013 00:16:39 +0000 (00:16 +0000)]
Added test for nonnumerical limit param

Change-Id: Ie9ef0b2ddcf9945f4065e76fddba763470ffdb81

11 years agoRaise VolumeNotFound with correct volume_id
Mathieu Gagné [Wed, 22 May 2013 16:25:40 +0000 (12:25 -0400)]
Raise VolumeNotFound with correct volume_id

Make sure VolumeNotFound is raised with the correct volume_id
in the SolidFire driver. Some exceptions were wrongfully referring
to an undefined variable named uuid.

Fixes: bug #1182966
Change-Id: Ied101fc9778f51dfb74b39f466c2c13d6e775a40

11 years agoMerge "Support mount options for NFS/GlusterFS volumes"
Jenkins [Wed, 22 May 2013 06:51:41 +0000 (06:51 +0000)]
Merge "Support mount options for NFS/GlusterFS volumes"

11 years agoRemoves a broken link from the sidebar of Sphinx built pages.
annegentle [Wed, 22 May 2013 01:04:45 +0000 (20:04 -0500)]
Removes a broken link from the sidebar of Sphinx built pages.

Change-Id: I1c24f015bd8b67b1dc85eda67a0669ac79ca282b

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 21 May 2013 18:11:02 +0000 (18:11 +0000)]
Imported Translations from Transifex

Change-Id: I85bdbb3aef9f4f16f28ab31753cd7935a471f3a7

11 years agoSupport mount options for NFS/GlusterFS volumes
Eric Harney [Fri, 10 May 2013 17:42:58 +0000 (13:42 -0400)]
Support mount options for NFS/GlusterFS volumes

This patch adds support for mount options for NFS/GlusterFS volumes.

To set options, append them to the line for the volume in the
nfs_shares_config or glusterfs_shares_config file:
 192.168.175.166:/testvol -o backupvolfile-server=192.168.175.177
 host1:/testvol2 -o backupvolfile-server=host2,rw,other_option

These options are used when mounting from the cinder-volume
service and the nova-compute service.  (There is an associated
nova-compute patch to enable the same.)

This is a useful change for GlusterFS because the
backupvolfile-server option enables a mount to succeed even if
the first server specified is offline.

Change-Id: I13bb0a930d6a05e803ccb50e6dc5d4b2b412ac11

11 years agoMerge "Hide v1/v2 version entities in API when disabled"
Jenkins [Tue, 21 May 2013 04:42:03 +0000 (04:42 +0000)]
Merge "Hide v1/v2 version entities in API when disabled"

11 years agoMerge "Adds notifiers to both volumeTypes and volumeTypeExtraSpecs"
Jenkins [Tue, 21 May 2013 04:31:12 +0000 (04:31 +0000)]
Merge "Adds notifiers to both volumeTypes and volumeTypeExtraSpecs"

11 years agoHide v1/v2 version entities in API when disabled
Brian Waldon [Fri, 17 May 2013 22:42:45 +0000 (22:42 +0000)]
Hide v1/v2 version entities in API when disabled

Fixes bug 1181413

Change-Id: Ia8aaa78a0e0d222c268e9ca780816eb1c26feb3f

11 years agoMerge "Convert to oslo strutils.bool_from_string."
Jenkins [Mon, 20 May 2013 19:53:22 +0000 (19:53 +0000)]
Merge "Convert to oslo strutils.bool_from_string."

11 years agoMerge "Allow flake8 to run in venv"
Jenkins [Mon, 20 May 2013 18:55:48 +0000 (18:55 +0000)]
Merge "Allow flake8 to run in venv"

11 years agoMerge "Update import of strutils from oslo."
Jenkins [Mon, 20 May 2013 17:16:10 +0000 (17:16 +0000)]
Merge "Update import of strutils from oslo."

11 years agoAllow flake8 to run in venv
Eric Harney [Sat, 18 May 2013 16:37:38 +0000 (12:37 -0400)]
Allow flake8 to run in venv

flake8 should be able to run within the venv.

Change-Id: Ife269e54947f0283adceca15af60f38688e1ee64

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 20 May 2013 15:33:21 +0000 (15:33 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Add thin provisioning support checks."
Jenkins [Mon, 20 May 2013 06:30:25 +0000 (06:30 +0000)]
Merge "Add thin provisioning support checks."

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 19 May 2013 18:10:58 +0000 (18:10 +0000)]
Imported Translations from Transifex

Change-Id: Ice855f70d3c22db39357dfe8101b5d68741ed6ce

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 18 May 2013 18:11:00 +0000 (18:11 +0000)]
Imported Translations from Transifex

Change-Id: Ic15dca6e7a5a291c4babea403e1a45b2299ce263

11 years agoMerge "RemoteFsDriver: copy_image_to_volume and copy_volume_to_image"
Jenkins [Sat, 18 May 2013 18:04:16 +0000 (18:04 +0000)]
Merge "RemoteFsDriver: copy_image_to_volume and copy_volume_to_image"

11 years agoConvert to oslo strutils.bool_from_string.
Michael Still [Sat, 18 May 2013 11:08:30 +0000 (21:08 +1000)]
Convert to oslo strutils.bool_from_string.

The only functional difference here is that the value '2' is now
treated as False instead of True. I suspect that's ok.

Change-Id: I30e75470cb3c312d7f92d389995eb6d845dd2fb0

11 years agoUpdate import of strutils from oslo.
Michael Still [Sat, 18 May 2013 10:55:32 +0000 (20:55 +1000)]
Update import of strutils from oslo.

Change-Id: Iee18c2226cf1f5c3ea0653c9e13d94b02650bc0d

11 years agoMerge "Update/Publish volume service updates on delete."
Jenkins [Fri, 17 May 2013 23:03:44 +0000 (23:03 +0000)]
Merge "Update/Publish volume service updates on delete."

11 years agoAdd thin provisioning support checks.
John Griffith [Tue, 14 May 2013 23:35:44 +0000 (17:35 -0600)]
Add thin provisioning support checks.

Add a simple check to verify thin provisioning is supported
in the systems current LVM2 version.

Also add a helper to create thin pools.

Change-Id: I1ae3c168b148029a3085be827209f59bc68ca145

11 years agoUpdate/Publish volume service updates on delete.
John Griffith [Fri, 17 May 2013 20:03:38 +0000 (14:03 -0600)]
Update/Publish volume service updates on delete.

The Filter scheduler weighing function was failing because
we were only updating the capacity info either on the periodic
60 second interval or after succesful creates.

The result was that if you exceeded your capacity within the
update interval you would no longer be able to create volumes even
if you deleted existing volumes until the update was performed and
published.

Since we're updating on on create, there's no reason why we shouldn't
do the same on delete for the applicable volume-service.

The periodic updates are still important for other purposes so they're left
alone, but with this change we keep things up to date so the filter scheduler
has the correct picture of the world.

Fixes bug: 1180976

Change-Id: Ic551f512c5a0cf51bafa8b60f0b6b7debbe22692

11 years agoRemoteFsDriver: copy_image_to_volume and copy_volume_to_image
Eric Harney [Fri, 17 May 2013 18:48:24 +0000 (14:48 -0400)]
RemoteFsDriver: copy_image_to_volume and copy_volume_to_image

This functionality was recently added to the NFS driver --
it should instead be added to the RemoteFsDriver class to cover
both NFS and GlusterFS drivers.

Change-Id: I10136f8d1628128a93c4adfe2cb9447b99720558

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 17 May 2013 18:15:13 +0000 (18:15 +0000)]
Imported Translations from Transifex

Change-Id: I914bbfd068b5a0fcfa29e6ff7ecd217e5ec49616

11 years agoMerge "solidfire: Make sure src_uuid is passed correctly"
Jenkins [Thu, 16 May 2013 02:38:45 +0000 (02:38 +0000)]
Merge "solidfire: Make sure src_uuid is passed correctly"

11 years agoMerge "Deprecating old dot path locations for Folsom configs"
Jenkins [Thu, 16 May 2013 01:59:25 +0000 (01:59 +0000)]
Merge "Deprecating old dot path locations for Folsom configs"

11 years agoMerge "Fixes an get_volume_stats reporting issue"
Jenkins [Thu, 16 May 2013 01:57:50 +0000 (01:57 +0000)]
Merge "Fixes an get_volume_stats reporting issue"

11 years agosolidfire: Make sure src_uuid is passed correctly
Mathieu Gagné [Thu, 16 May 2013 00:54:27 +0000 (20:54 -0400)]
solidfire: Make sure src_uuid is passed correctly

src_uuid wasn't passed correctly as an attribute because
the variable was wrongly quoted and couldn't be interpolated.

Fixes: bug #1180611
Change-Id: If22dda162a28138cf447ce12bbe061f623e6d076

11 years agoMerge "Add .coveragerc to show proper coverage statistics. As in other openstack...
Jenkins [Thu, 16 May 2013 00:48:18 +0000 (00:48 +0000)]
Merge "Add .coveragerc to show proper coverage statistics. As in other openstack projects."

11 years agoMerge "NetApp server tunneling fix."
Jenkins [Thu, 16 May 2013 00:35:35 +0000 (00:35 +0000)]
Merge "NetApp server tunneling fix."

11 years agoMerge "Implement cloned volume for the RBD driver"
Jenkins [Wed, 15 May 2013 23:59:13 +0000 (23:59 +0000)]
Merge "Implement cloned volume for the RBD driver"

11 years agoMerge "Hide lock_prefix argument using synchronized_with_prefix()"
Jenkins [Wed, 15 May 2013 23:34:54 +0000 (23:34 +0000)]
Merge "Hide lock_prefix argument using synchronized_with_prefix()"

11 years agoImplement cloned volume for the RBD driver
leseb [Wed, 15 May 2013 11:45:45 +0000 (13:45 +0200)]
Implement cloned volume for the RBD driver

This adds the support for cloned volume to the RBD driver. This is perform by the
create option --source-volid. Since the clone is pure copy of a volume,
we don't use the clone capability from RBD and simply copy the source
image.

Change-Id: I3b73bc77b74767ffe3583422f56b3603594589ce
Implements: blueprint implement-cloned-volume-for-rbd

11 years agoAdd .coveragerc to show proper coverage statistics. As in other openstack projects.
Vasyl Khomenko [Wed, 15 May 2013 10:19:03 +0000 (03:19 -0700)]
Add .coveragerc to show proper coverage statistics. As in other openstack projects.

Change-Id: Ic59f5b17d803b5d8102d53a1ca4883c529bc7a3e

11 years agoNetApp server tunneling fix.
Navneet Singh [Mon, 6 May 2013 12:33:21 +0000 (05:33 -0700)]
NetApp server tunneling fix.

NetApp vserver/vfiler api tunneling in concurrent requests
can cause routing request to incorrect servers in race conditions.
This fixes the api and driver for the mentioned situations.

bug 1176759

Change-Id: Id283822e4d1553daed4e6d690ec36f2edfbcf2b4

11 years agoMerge "Fix up hacking ignores a bit."
Jenkins [Wed, 15 May 2013 00:48:02 +0000 (00:48 +0000)]
Merge "Fix up hacking ignores a bit."

11 years agoMove iscsi helpers to brick directory.
John Griffith [Tue, 7 May 2013 11:47:32 +0000 (05:47 -0600)]
Move iscsi helpers to brick directory.

This patch moves the iscsi helpers to the brick
directory.  We're doing this to enable the ability
to have a module/library of core block storage
functionality to use in other OpenStack projects.

After this the next step is to separate out the LVM
and iSCSI code in drivers/lvm.py and then to actually
have the Cinder LVM driver use the new brick LVM module.

Change-Id: I4f8f8b54e801ab63994b5953956c041d8db91fad

11 years agoFix up hacking ignores a bit.
John Griffith [Tue, 14 May 2013 17:14:33 +0000 (11:14 -0600)]
Fix up hacking ignores a bit.

Add more explicit ignores to tox.ini hacking ignores until
we have a chance to fix up the imports and docstring errors
we've been ignoring.  This should give us everything we had
in the past (ie alphabetical import checks).

Also, update run_tests.sh to call flake8 and not the hacking.py
that is no longer there.

Change-Id: I6c82e958002255fd9f527b06bf0a68d148cc681e

11 years agoMerge "Storwize/SVC: fix attach bug for live migration."
Jenkins [Tue, 14 May 2013 18:35:47 +0000 (18:35 +0000)]
Merge "Storwize/SVC: fix attach bug for live migration."

11 years agoMerge "Use flake8 and hacking."
Jenkins [Tue, 14 May 2013 18:28:05 +0000 (18:28 +0000)]
Merge "Use flake8 and hacking."

11 years agoMerge "Create an LVM utility to use for local storage."
Jenkins [Tue, 14 May 2013 13:55:35 +0000 (13:55 +0000)]
Merge "Create an LVM utility to use for local storage."

11 years agoHide lock_prefix argument using synchronized_with_prefix()
Zhongyue Luo [Tue, 14 May 2013 09:30:00 +0000 (17:30 +0800)]
Hide lock_prefix argument using synchronized_with_prefix()

The lockfile module has a new convenience API which sets the lockfile prefix
Using this API, the prefix is not required everytime synchronized is used.

Change-Id: I033fa1d2ed071651609ac2be0a5a16eb3fda6c33

11 years agoStorwize/SVC: fix attach bug for live migration.
Erik Zaadi [Tue, 14 May 2013 07:20:43 +0000 (10:20 +0300)]
Storwize/SVC: fix attach bug for live migration.

Add force flag for mkvdiskhostmap command to allow multi host mapping

Change-Id: I290a5986b213a0aaeae0d0ea0ad57350c9dee3c9
Fixes: bug #1179773
11 years agoMerge "Add CINDER_LOCALEDIR env variable"
Jenkins [Tue, 14 May 2013 08:11:25 +0000 (08:11 +0000)]
Merge "Add CINDER_LOCALEDIR env variable"

11 years agoDeprecating old dot path locations for Folsom configs
Mike Perez [Sat, 13 Apr 2013 23:43:16 +0000 (16:43 -0700)]
Deprecating old dot path locations for Folsom configs

In grizzly, we made a lot of structure changes. This deprecates the old
locations so the dot paths in old configs still work but give warnings
in the logs of what needs to be updated.

Fixes: bug #1168573
Change-Id: I7b1754b0e59a923afa623871fc3be07362bf1bdc