]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
9 years agoMerge tag '2015.1.0+2015.06.06.git24.493b6c7f12' into debian/kilo
Thomas Goirand [Wed, 10 Jun 2015 08:58:46 +0000 (10:58 +0200)]
Merge tag '2015.1.0+2015.06.06.git24.493b6c7f12' into debian/kilo

9 years agoFixed config file generation taking patches from upstream.
Thomas Goirand [Wed, 10 Jun 2015 08:56:44 +0000 (10:56 +0200)]
Fixed config file generation taking patches from upstream.

9 years agoMerge "Use nfs_oversub_ratio when reporting pool capacity" into stable/kilo
Jenkins [Sat, 6 Jun 2015 18:03:22 +0000 (18:03 +0000)]
Merge "Use nfs_oversub_ratio when reporting pool capacity" into stable/kilo

9 years agoMerge "Allow provisioning to reach max oversubscription" into stable/kilo
Jenkins [Sat, 6 Jun 2015 15:18:35 +0000 (15:18 +0000)]
Merge "Allow provisioning to reach max oversubscription" into stable/kilo

9 years agoMerge "VolMgr: reschedule only when filter_properties has retry" into stable/kilo
Jenkins [Fri, 5 Jun 2015 22:25:11 +0000 (22:25 +0000)]
Merge "VolMgr: reschedule only when filter_properties has retry" into stable/kilo

9 years agoAllow provisioning to reach max oversubscription
Xing Yang [Wed, 3 Jun 2015 14:40:26 +0000 (10:40 -0400)]
Allow provisioning to reach max oversubscription

Currently if provisioned ratio is equal to max_over_subscription_ratio,
the capacity filter does not allow any more thin provisioning. This patch
makes a change so that thin provisioning is allowed if provisioned ratio
is equal to max_over_subscription_ratio; it will only stop provisioning
if provisioned ratio is greater than max_over_subscription_ratio.

Change-Id: Ibf13ef97472b80a1b59ffd4389a4ed2eacf67205
Partial-Bug: #1458976
(cherry picked from commit ab017d98b1bb39d218bd93970c0e561c685b7dbf)

9 years agoMerge "Create initiator id for VMAX iSCSI driver" into stable/kilo
Jenkins [Thu, 4 Jun 2015 22:02:00 +0000 (22:02 +0000)]
Merge "Create initiator id for VMAX iSCSI driver" into stable/kilo

9 years agoMerge "Fix capacity filter to allow oversubscription" into stable/kilo
Jenkins [Thu, 4 Jun 2015 22:01:50 +0000 (22:01 +0000)]
Merge "Fix capacity filter to allow oversubscription" into stable/kilo

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 4 Jun 2015 15:56:25 +0000 (15:56 +0000)]
Updated from global requirements

Change-Id: I1152db199e1fd1669e75caeb1490ffcc4fb75f3a

9 years agoCreate initiator id for VMAX iSCSI driver
Xing Yang [Tue, 21 Apr 2015 03:08:38 +0000 (23:08 -0400)]
Create initiator id for VMAX iSCSI driver

This is related to Bug #1440427. The fix for that bug only addressed
the issue for the FC driver. The same problem exists for the iSCSI
driver. This patch addressed the problem for the VMAX iSCSI driver.
The initiator id will be created on the array if it does not exist
for the iSCSI driver.

Change-Id: I5df57df122a704066d4d7a1997ac2642b073c9e8
Closes-Bug: #1446443
(cherry picked from commit c94e6b153a424056c846f7ba19ee617650174282)

9 years agoFix capacity filter to allow oversubscription
Xing Yang [Wed, 27 May 2015 16:58:04 +0000 (12:58 -0400)]
Fix capacity filter to allow oversubscription

Currently the capacity filter does not allow oversubscrition
if the free physical capacity is less than the new volume size.
This was based on the assumption that a new thinly provisioned
volume will be consumed right away. This assumption does not
allow us to take full advantage of thin provisioning.

The fix is to allow oversubscription if thin provisioning is
supported and max_over_subscription_ratio is greater than or
equal to 1. The free physical capacity will not be used to
compare with the new volume size for a backend that supports
oversubscription in thin provisioning. The oversubscription
ratio and virtual free capacity will still be used to decide
whether a backend can be chosen for thin provisioning.

Closes-Bug: #1458976
Change-Id: I4c8904445654db839c25ded420915f83c3756f94
(cherry picked from commit 75953752e41819b0d2ca770d4d13ed1ccaec685a)

9 years agoMerge "VMware: Fix missing target resource pool" into stable/kilo
Jenkins [Mon, 1 Jun 2015 20:49:54 +0000 (20:49 +0000)]
Merge "VMware: Fix missing target resource pool" into stable/kilo

9 years agoMerge "NFS Backup: Correcting backup_sha_block_size_bytes help message" into stable...
Jenkins [Mon, 1 Jun 2015 20:01:04 +0000 (20:01 +0000)]
Merge "NFS Backup: Correcting backup_sha_block_size_bytes help message" into stable/kilo

9 years agoVMware: Fix missing target resource pool
Johnson koil raj [Sat, 31 Jan 2015 09:54:57 +0000 (15:24 +0530)]
VMware: Fix missing target resource pool

The volume is cloned while creating it from another volume, snapshot
or image. Currently, the target resource pool is unset while calling
vCenter CloneVM_Task API.

So when a clone happens across clusters in a vCenter clone fails.
This patch fixes the problem by setting the target resource pool
(returned by datastore selection logic) while invoking clone.

Closes-Bug: #1416456

Change-Id: Ib1023efe6fd19d604af89f7e4b4f67640d778d39
(cherry picked from commit 0df929e60c9053240b792dea7ed7e2c10de69fc1)

9 years agoCheck volume_backend in retype
John Griffith [Mon, 11 May 2015 19:55:41 +0000 (13:55 -0600)]
Check volume_backend in retype

The retype command will always attempt a call
to the driver.retype method.  In *most* cases this
will hit the default impl which returns False because
most drivers don't implement any retype (most, a few do).

The problem is that the drivers that do implement this in
most cases will iterate through the settings and just make
the changes that are valid and ignore the rest, and then
return True. I think this is "ok" for the drivers to do,
drivers should be allowed to be somewhat dumb WRT Cinder
state management and placement info.  If we give them an
invalid command (which we're doing here) then it's on us
higher up the chain IMO.

The result is that for example if you're trying to retype
from backend-a to backend-b and backend-a implements retype
it can return True telling the manager that the volume was
succesfully retyped, even when it wasn't.

There's a lot of confusion around this bug, YES the
filter scheduler is used to determine if the retype is
valid and to what host.  That's not the issue, the issue
is that regardless of the source and destination host settings
that are provided from the filter-scheduler, we always make the
call to the driver, introducing the opportunity for a false
success status being reported back.

This patch adds a very simple check between the source and
destination host settings as provided by the scheduler and in
the case that the two are "different"(not including pool designations)
we skip calling the driver.retype method altogether and fall through
to the migrate process.

This introduces a new hosts_are_equivalent method in
cinder.volume.utils

Conflicts:
cinder/volume/utils.py

Closes-Bug: #1452823
(cherry picked from commit bbb83aff023c90cfc186459603320ad3c622a40b)
Change-Id: Idfd7dfa2284fcea66cf23c4273efda61ee8f7eba

9 years agoUse nfs_oversub_ratio when reporting pool capacity
Tom Barron [Tue, 21 Apr 2015 15:07:30 +0000 (11:07 -0400)]
Use nfs_oversub_ratio when reporting pool capacity

Currently NetApp NFS drivers do not make use of the nfs_oversub_ratio
configuration parameter to enable OpenStack administrators to report
anything other than the most conservative capacity and usage information
up to the scheduler

This commit:
  *  modifies the NetApp drivers to use the nfs_oversub_ratio as
     documented.
  *  uses direct API with filers to gather capacity information rather
     than stat and du commands
  *  brings our reporting of reserved percentage in line with the way
     the scheduler actually makes use of this statistic
  *  simplifies and cleans up the way we gather and report pool statistics

Note that this fix addresses an in-the-field bug report from juno
and is intended to be the basis for backported fixes.

In kilo, a more general approach to overprovisioning using
     max_oversubscription_ratio
was introduced via commit 3548a4bc9edbb26b248b5af5ecc2145f2c6f7481.
In this newer approach, the scheduler computes "virtual" free space
rather than the driver reporting "apparent" free space.

This fix to bring NetApp NFS drivers into conformity with the generic
NFS driver is not intended as a substitute for introducing support
in our drivers for the newer approach to overprovisioning.  Rather,
it is a bug-fix for an existing failure to honor the nfs_oversub_ratio.

DocImpact
Co-Authored-By: Dustin Schoenbrun <dustin.schoenbrun@netapp.com>
Closes-bug: 1449620
Change-Id: Ic7b606b88f063b9ed6df62fd1fb7248922496326
(cherry picked from commit e52f304313efc695f7dd89c222041bffd53c131a)

9 years agoNFS Backup: Correcting backup_sha_block_size_bytes help message
Bharat Kumar Kobagana [Mon, 11 May 2015 10:31:10 +0000 (16:01 +0530)]
NFS Backup: Correcting backup_sha_block_size_bytes help message

This patch corrects the help message of configuration parameter
"backup_sha_block_size_bytes".

Change-Id: I9d8082adad8ea13aec348a4cbb027ec16d4086a4
(cherry picked from commit 75d2eba05182acffad20d863a25c040bf601e38c)

9 years agoLVM: Pass volume size in MiB to copy_volume() during volume migration
Mitsuhiro Tanino [Wed, 13 May 2015 15:59:13 +0000 (11:59 -0400)]
LVM: Pass volume size in MiB to copy_volume() during volume migration

Currently migrate_volume() in lvm.py does not pass volume size in
MiB but passes volume size in GiB to copy_volume(). The size argument
of copy_volume() requires MiB value. As a result, if the volume size
is 1GiB, copy_volume() copies only 1MiB head of 1GiB volume to the
destination volume, and then the volume data is corrupted.
This patch fixes to pass volume size in MiB.

(cherry picked from commit a5da4c353a1df17341c1e745796e00a4ec1afd21)
Conflicts:
    cinder/tests/test_volume.py
    (Added mock for create_export.)

Closes-bug: #1454835
Change-Id: I8e06195dc3625ef07bc9858d844541e37a231b73

9 years agoMerge "Dell: Added support for update_migrated_volume" into stable/kilo
Jenkins [Wed, 13 May 2015 05:39:56 +0000 (05:39 +0000)]
Merge "Dell: Added support for update_migrated_volume" into stable/kilo

9 years agoFixed debian/watch file to read from correct cinder project and not Nova.
Thomas Goirand [Mon, 11 May 2015 21:07:58 +0000 (23:07 +0200)]
Fixed debian/watch file to read from correct cinder project and not Nova.

9 years agoMerge "Allow rexports for targets with Datera" into stable/kilo
Jenkins [Fri, 8 May 2015 22:49:18 +0000 (22:49 +0000)]
Merge "Allow rexports for targets with Datera" into stable/kilo

9 years agoDell: Added support for update_migrated_volume
Tom Swanson [Thu, 7 May 2015 21:39:26 +0000 (16:39 -0500)]
Dell: Added support for update_migrated_volume

Added support for updated_migrated_volume to common driver.
Added rename_volume to dell_storagecenter_api to support it.
Added tests to test_dellsc.py and test_dellapi.py.

The only thing we do in this rename the newly migrated volume
destination volume on the Dell Storage center to be the same
as the original volume ID.  Since we identify the volumes
by volume ID this prevents them from being lost.

Change-Id: I531e24853cf5db8b7c34d91460d3abe786a652de
Closes-bug: 1452919
(cherry picked from commit fc09713f2c8102d4b04c8df57fc401a34525d79e)

9 years agoAllow rexports for targets with Datera
Mike Perez [Thu, 7 May 2015 19:09:45 +0000 (12:09 -0700)]
Allow rexports for targets with Datera

Sometimes due to timing, rexporting a target would fail. This will
verify with Datera if a target already exists, or if it should recreate
an export.

Change-Id: I9c40603cbb525c23e010285bdc66efaaaf4be142
Closes-Bug: #1452838
(cherry picked from commit 76a7bd4bb52e4470307a909ced58b892e7de32c9)

9 years agoHDS HNAS Driver fails when FS unhealthy
Adriano Rosso [Tue, 5 May 2015 18:58:38 +0000 (15:58 -0300)]
HDS HNAS Driver fails when FS unhealthy

This patch fixes the error when there is a file system in an
unhealthy HNAS storage pool.

Change-Id: Ic17c540039996f4a1060829d5f1f12a5f3155271
Closes-bug: #1452002
(cherry picked from commit 418cf4b989c8df983c1109c8c8851d9d4c3ffbfe)

9 years agoFixed gbp.conf.
Thomas Goirand [Thu, 30 Apr 2015 21:34:43 +0000 (21:34 +0000)]
Fixed gbp.conf.

9 years agoNow packaging final kilo: 2015.1.0
Thomas Goirand [Thu, 30 Apr 2015 21:34:07 +0000 (21:34 +0000)]
Now packaging final kilo: 2015.1.0

9 years agoRevert state if attachment already exists
Shyama Venugopal [Thu, 30 Apr 2015 10:22:27 +0000 (12:22 +0200)]
Revert state if attachment already exists

When attach is called twice for the same volume and instance the
attach_volume checks if the attachment already exists and returns.
This leaves the volume in 'Attaching' state. The volume status should
be reset to 'in-use' if we see the attachment already exists.

Change-Id: I2a2d28de59af234300082ab4655b0bc10699d54c
Closes-Bug: #1449980
(cherry picked from commit 709949d904c7f1d0e13b41bf6723d71bcf6b5652)

9 years agoBump pre-release to 2015.1.1
Thierry Carrez [Thu, 30 Apr 2015 14:05:48 +0000 (16:05 +0200)]
Bump pre-release to 2015.1.1

Change-Id: I942a2894e3f8b7705ffc7b019b7991a57e9d66e3

9 years agoPackaging Kilo rc2.
Thomas Goirand [Tue, 28 Apr 2015 21:19:44 +0000 (21:19 +0000)]
Packaging Kilo rc2.

9 years agoMerge tag '2015.1_rc2' into debian/kilo
Thomas Goirand [Tue, 28 Apr 2015 21:18:55 +0000 (21:18 +0000)]
Merge tag '2015.1_rc2' into debian/kilo

Cinder kilo-rc2 milestone (2015.1.0rc2)

9 years agoUploading to unstable.
Thomas Goirand [Tue, 28 Apr 2015 21:18:08 +0000 (21:18 +0000)]
Uploading to unstable.

9 years agoFixed build-depends.
Thomas Goirand [Tue, 28 Apr 2015 21:17:29 +0000 (21:17 +0000)]
Fixed build-depends.

9 years agoAdd external genconfig calls
John Griffith [Thu, 23 Apr 2015 18:07:12 +0000 (12:07 -0600)]
Add external genconfig calls

After moving to oslo.config we still were using
incubator config generator.  This was ok, but the
problem is we haven't been pulling config options
from the oslo libs.

This is a hack that just appends external lib calls
and appends those options to the sample file being built.

Change-Id: I2634b20ef4abd3bf7990f845d59ad3d208db234f
(cherry picked from commit 51a22591a44932463847ed3247899db32ac49444)
Closes-Bug: #1447380

9 years agoAdded debian/patches/Replace_incubator_config_generator_with_oslo-config-generator...
Thomas Goirand [Thu, 23 Apr 2015 20:49:04 +0000 (22:49 +0200)]
Added debian/patches/Replace_incubator_config_generator_with_oslo-config-generator.patch

9 years agoNow using oslo-config-generator to build the .conf.sample
Thomas Goirand [Thu, 23 Apr 2015 16:23:26 +0000 (18:23 +0200)]
Now using oslo-config-generator to build the .conf.sample

9 years agoMerge "service child process normal SIGTERM exit" into stable/kilo
Jenkins [Thu, 23 Apr 2015 09:51:27 +0000 (09:51 +0000)]
Merge "service child process normal SIGTERM exit" into stable/kilo

9 years agoMerge "Release Import of Translations from Transifex" into stable/kilo
Jenkins [Thu, 23 Apr 2015 09:49:01 +0000 (09:49 +0000)]
Merge "Release Import of Translations from Transifex" into stable/kilo

9 years agoFixed path to debian/cinder.conf in debian/rules
Thomas Goirand [Wed, 22 Apr 2015 23:35:18 +0000 (01:35 +0200)]
Fixed path to debian/cinder.conf in debian/rules

9 years agoUsing hacked/patched cinder.conf until https://bugs.launchpad.net/cinder/+bug/1447380...
Thomas Goirand [Wed, 22 Apr 2015 23:23:33 +0000 (01:23 +0200)]
Using hacked/patched cinder.conf until https://bugs.launchpad.net/cinder/+bug/1447380 is fixed

9 years agoservice child process normal SIGTERM exit
Brant Knudson [Wed, 22 Apr 2015 19:57:53 +0000 (14:57 -0500)]
service child process normal SIGTERM exit

service.py had some code where the child process would catch the
SIGTERM from the parent just so it could exit with 1 status rather
than with an indication that it exited due to SIGTERM. When
shutting down the parent doesn't care in what way the child ended,
only that they're all gone, so this code is unnecessary.

Also, for some reason this caused the child to never exit while
there was an open connection from a client. Probably something
with eventlet and signal handling.

This is a cherry-pick of oslo-incubator commit
702bc569987854b602ef189655c201c348de84cb .

Change-Id: I87f3ca4da64fb8070e4d6c3876a2f1ce1a3ca71d
Closes-Bug: #1446583
(cherry picked from commit d73ac96d18c66aa4dd5b7d7f8d7c22e8f8434683)

9 years agoMerge "Fix a wrong argument of create method" into stable/kilo
Jenkins [Wed, 22 Apr 2015 15:23:54 +0000 (15:23 +0000)]
Merge "Fix a wrong argument of create method" into stable/kilo

9 years agoMerge "Windows SMBFS: fix volume extend" into stable/kilo
Jenkins [Wed, 22 Apr 2015 15:23:42 +0000 (15:23 +0000)]
Merge "Windows SMBFS: fix volume extend" into stable/kilo

9 years agoMerge "Verify all quotas before updating the database" into stable/kilo
Jenkins [Wed, 22 Apr 2015 15:22:18 +0000 (15:22 +0000)]
Merge "Verify all quotas before updating the database" into stable/kilo

9 years agoMerge "Include boot properties from glance v2 images" into stable/kilo
Jenkins [Wed, 22 Apr 2015 15:20:13 +0000 (15:20 +0000)]
Merge "Include boot properties from glance v2 images" into stable/kilo

9 years agoMerge "Add locking to PureISCSIDriver around creating Purity Host objects." into...
Jenkins [Wed, 22 Apr 2015 15:18:00 +0000 (15:18 +0000)]
Merge "Add locking to PureISCSIDriver around creating Purity Host objects." into stable/kilo

9 years agoWindows SMBFS: fix volume extend
Lucian Petrut [Fri, 27 Mar 2015 12:15:25 +0000 (14:15 +0200)]
Windows SMBFS: fix volume extend

The Windows SMBFS driver inherits the Linux SMBFS driver,
overriding Windows specific methods.

This commit Ic89cffc93940b7b119cfcde3362f304c9f2875df added the
volume name as an extra argument to the _do_extend_volume in order
to check if differencing images are pointing to backing files other
than the according volume disks.

Although this is not required on Windows, this method should accept
this extra argument in order to have the same signature as the
method it overrides. At the moment, this raises the following
exception:

TypeError: _do_extend_volume() takes exactly 3 arguments (4 given)

Closes-Bug: #1437290
(cherry picked from commit dca29e9ab3cdde210d3777e7c6b4a6849447058a)
Change-Id: I868d7de4a2c68f3fc520ba476a5660a84f440bb1

9 years agoFix a wrong argument of create method
Daisuke Fujita [Wed, 15 Apr 2015 05:03:31 +0000 (14:03 +0900)]
Fix a wrong argument of create method

Change the argument 'QoSSpecs.create' to 'qos_specs.create'.

Closes-Bug: #1443331
(cherry picked from commit a3c0a4104f95acff00d3a9721caa4da730619fb7)
Change-Id: Iabebc5f1681be75fb06d836ea72b93de0a9d688e

9 years agoRelease Import of Translations from Transifex
Andreas Jaeger [Mon, 20 Apr 2015 08:54:41 +0000 (10:54 +0200)]
Release Import of Translations from Transifex

This updates also recreates all pot (translation source files) to
reflect the state of the repository.

This change needs to be done manually since the automatic import does
not handle the proposed branches and we need to sync with latest
translations.

Note: This is part of importing of translations, there are no new
translations for this project, thus only the pot file gets updated.

Change-Id: Ib472c156a7007b2166c6857ae1fa2bb72a2e0c1a

9 years agoVolMgr: reschedule only when filter_properties has retry
Zhiteng Huang [Fri, 17 Apr 2015 16:34:59 +0000 (00:34 +0800)]
VolMgr: reschedule only when filter_properties has retry

In the task flow for volume manager, create_volume tasks, volume gets
reschedule even when scheduler doesn't indicate so.  The problem is
the flow should not only check 'allow_reschedule' and 'request_specs',
but also (more importantly) filter_properties['retry'], which is
populated by scheduler if schedule_max_attempts is set to > 1.  This
checks was there before taskflow was introduced, but somehow the
migration missed the check for filter_properties['retry'].

This change adds back the check, so scheduler_max_attempts won't be
treated like scheduler_max_attempts = infinite.

Change-Id: Ia873617b22a2d86662ea8ea2fec5aae7f54a2058
Closes-bug: #1445561
(cherry picked from commit 217f4dfb13714f583deeaeded66d36fb558e4b02)

9 years agoDo not allow unit tests to fail anymore
Thomas Goirand [Fri, 17 Apr 2015 21:58:45 +0000 (23:58 +0200)]
Do not allow unit tests to fail anymore

9 years agoAdds debian/patches/using-assertRaisesRegexp-with-lasting-p.patch
Thomas Goirand [Fri, 17 Apr 2015 21:58:23 +0000 (23:58 +0200)]
Adds debian/patches/using-assertRaisesRegexp-with-lasting-p.patch

9 years agoMerge branch 'debian/kilo' of git+ssh://git.debian.org/git/openstack/cinder into...
Thomas Goirand [Fri, 17 Apr 2015 21:28:12 +0000 (23:28 +0200)]
Merge branch 'debian/kilo' of git+ssh://git.debian.org/git/openstack/cinder into debian/kilo

9 years agoFixed (build-)depends versions for Jessie.
Thomas Goirand [Fri, 17 Apr 2015 21:27:18 +0000 (23:27 +0200)]
Fixed (build-)depends versions for Jessie.

9 years agoupdate .gitreview for stable/kilo
Thierry Carrez [Fri, 17 Apr 2015 08:31:32 +0000 (10:31 +0200)]
update .gitreview for stable/kilo

Change-Id: I64a4fc6af6f83b2d8a6bb5fe9aa0dc3acd58e4ce

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 16 Apr 2015 12:04:22 +0000 (12:04 +0000)]
Updated from global requirements

Change-Id: I49730dab41606a457645ca33d6af79639001a0f4

9 years agoVerify all quotas before updating the database
ankitagrawal [Tue, 17 Mar 2015 09:08:12 +0000 (02:08 -0700)]
Verify all quotas before updating the database

Update quota multi-value in one request is not an atomic operation, so
even if a quota is invalid (e.g., volumes has a non-integer value),
some values may change but the response code is 400.

This patch will make sure the quota limits are of integer type for all
the requested quota keys before updating the database.

Closes-Bug: 1432972
Change-Id: If83af0a80489887098e52b03b9c4012e3ef061b5
(cherry picked from commit 197299985a52535ad995dbd111491b58462f140a)

9 years agoAdd locking to PureISCSIDriver around creating Purity Host objects.
Patrick East [Wed, 15 Apr 2015 01:42:19 +0000 (18:42 -0700)]
Add locking to PureISCSIDriver around creating Purity Host objects.

This will prevent us from getting conflicting credentials for
connection methods which will result in iSCSI attach operations to fail.

Change-Id: Ia206e7b5ff330c8fccb49ed23a31b120a5c04eb3
Closes-Bug: 1444224
(cherry picked from commit a712afe42833443878898bb42851376cd8615ff9)

9 years agoInclude boot properties from glance v2 images
Jon Bernard [Tue, 7 Apr 2015 17:57:36 +0000 (13:57 -0400)]
Include boot properties from glance v2 images

In order for users to take advantage of COW volumes created from
a glance image, Cinder must be configured to use Glance API version
2 (default is 1). In version 2, the required boot metadata (kernel_id
and ramdisk_id) are no long stored in the 'properties' dict, but as
standalone fields in the GET response from glance. The existing cinder
parser for the glance request is not aware of this and the volume
created form a v2 image will lack this required metadata.

This was causing the recent Ceph CI gate failures for
test_volume_boot_pattern.

Change-Id: I688898b3841691369d73887f7eabdceb05155db1
Closes-Bug: #1439371
(cherry picked from commit ea109b5f24dca93fd6f660bc436a685d6101bcea)

9 years agoRebuilt by bop.
Thomas Goirand [Thu, 9 Apr 2015 21:48:10 +0000 (23:48 +0200)]
Rebuilt by bop.

9 years agoNow packaging Kilo rc1
Thomas Goirand [Thu, 9 Apr 2015 21:24:33 +0000 (23:24 +0200)]
Now packaging Kilo rc1

9 years agoMerge tag '2015.1_rc1' into debian/kilo
Thomas Goirand [Thu, 9 Apr 2015 21:15:19 +0000 (23:15 +0200)]
Merge tag '2015.1_rc1' into debian/kilo

Cinder kilo-rc1 milestone (2015.1.0rc1)

9 years agoFixed section in cinder.conf for the rabbitmq credentials.
Thomas Goirand [Thu, 9 Apr 2015 13:17:14 +0000 (15:17 +0200)]
Fixed section in cinder.conf for the rabbitmq credentials.

9 years agoMerge "Create initiator id if not exist in VMAX driver"
Jenkins [Thu, 9 Apr 2015 10:08:50 +0000 (10:08 +0000)]
Merge "Create initiator id if not exist in VMAX driver"

9 years agoMerge "Fix the unicode encode error when create volume"
Jenkins [Thu, 9 Apr 2015 04:41:50 +0000 (04:41 +0000)]
Merge "Fix the unicode encode error when create volume"

9 years agoMerge "GlusterFS: Returning provider location of volume from snapshot"
Jenkins [Thu, 9 Apr 2015 02:41:14 +0000 (02:41 +0000)]
Merge "GlusterFS: Returning provider location of volume from snapshot"

9 years agoMerge "Fix multipath device discovery when UFN is enabled."
Jenkins [Wed, 8 Apr 2015 20:27:27 +0000 (20:27 +0000)]
Merge "Fix multipath device discovery when UFN is enabled."

9 years agoMerge "Revert "Removing Windows drivers""
Jenkins [Wed, 8 Apr 2015 18:52:14 +0000 (18:52 +0000)]
Merge "Revert "Removing Windows drivers""

9 years agoMerge "Delete the temporary volume if migration fails"
Jenkins [Wed, 8 Apr 2015 12:52:51 +0000 (12:52 +0000)]
Merge "Delete the temporary volume if migration fails"

9 years agoMerge "Rbd update volume stats in wrong way"
Jenkins [Wed, 8 Apr 2015 12:52:39 +0000 (12:52 +0000)]
Merge "Rbd update volume stats in wrong way"

9 years agoGlusterFS: Returning provider location of volume from snapshot
Bharat Kumar Kobagana [Wed, 8 Apr 2015 06:32:32 +0000 (12:02 +0530)]
GlusterFS: Returning provider location of volume from snapshot

This patch returns the provider location of volume, which is
created from snapshot.

Partial-Bug: 1441050
Reported-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: I5994f2f6c125888d442055d9e65355f0af1b22f4

9 years agoMerge "Correct cinder hacking check numbering"
Jenkins [Wed, 8 Apr 2015 09:15:43 +0000 (09:15 +0000)]
Merge "Correct cinder hacking check numbering"

9 years agoMerge "Add hacking check for print() statements"
Jenkins [Wed, 8 Apr 2015 08:28:34 +0000 (08:28 +0000)]
Merge "Add hacking check for print() statements"

9 years agoDelete the temporary volume if migration fails
Vincent Hou [Tue, 3 Mar 2015 08:04:41 +0000 (16:04 +0800)]
Delete the temporary volume if migration fails

Issues resolved in this patch include the following changes:
* A temporary volume is created on the destination host before migrating
the data from the source. However, if the creation of this volume fails,
its record will be left in the database as redundant information. This
patch will remove the database record if the creation fails.

* If attaching the remote dest volme fails at initialize_connection
due to timeout, we need to terminate the connection. Otherwise, the dest
volume will not be released and successfully deleted.

Closes-bug: #1398177
Change-Id: I5bc75bd7652841fddd66481ee001fb682168215c

9 years agoRevert "Removing Windows drivers"
Mike Perez [Wed, 8 Apr 2015 06:06:57 +0000 (23:06 -0700)]
Revert "Removing Windows drivers"

This reverts commit 85f0814e1a96ea043e8048cf7081f70fa024f20b.

Change-Id: I0b078a60e8d9c95d12185d1ff3ffe74fb71f10ab

9 years agoMerge "Partial Revert "Removing ZFSSA driver""
Jenkins [Tue, 7 Apr 2015 23:56:57 +0000 (23:56 +0000)]
Merge "Partial Revert "Removing ZFSSA driver""

9 years agoMerge "Add missing copy_volume_to_image method to Sheepdog driver"
Jenkins [Tue, 7 Apr 2015 21:40:17 +0000 (21:40 +0000)]
Merge "Add missing copy_volume_to_image method to Sheepdog driver"

9 years agoMerge "Partial Revert "Removing Huawei drivers""
Jenkins [Tue, 7 Apr 2015 21:37:35 +0000 (21:37 +0000)]
Merge "Partial Revert "Removing Huawei drivers""

9 years agoMerge "Set volume_attachment to [] for the temporary volume creation"
Jenkins [Tue, 7 Apr 2015 20:28:49 +0000 (20:28 +0000)]
Merge "Set volume_attachment to [] for the temporary volume creation"

9 years agoCorrect cinder hacking check numbering
Jay S. Bryant [Mon, 6 Apr 2015 19:02:31 +0000 (14:02 -0500)]
Correct cinder hacking check numbering

We have a couple of hacking checks that are specific to
Cinder that were written a while back.  Unfortunately, when
they were written the numbering scheme for hacking checks was
not understood.  We used N3xx when we should have used C3xx.

This patch corrects that mistake.

Change-Id: Ia17797005d444ab53a45b47b80b97799114001ee
Closes-bug: 1440833

9 years agoAdd hacking check for print() statements
Jay S. Bryant [Mon, 6 Apr 2015 16:22:09 +0000 (11:22 -0500)]
Add hacking check for print() statements

We are frequently having to -1 patches because people
forget print() statements that were used for debug in
their development.  Can save everyone time and trouble by
adding this simple hacking check.

The check excluded the cinder/cmd directory as the files in there
legitimately need to use the print() command.  Also wsgi.py and
the test_hds_nas_backend.py files make use of print, so I have
excluded those from checking as well.

Change-Id: I2066eeb2bdc6c9af294d0b9befb7e0b32abd1378

9 years agoRbd update volume stats in wrong way
wuyuting [Fri, 20 Mar 2015 10:41:11 +0000 (18:41 +0800)]
Rbd update volume stats in wrong way

Cinder volume uses a RADOS pool to store volumes and
update storage stats periodically. However, rbd driver
reports the whole cluster stats but not the pool's. This
is wrong. The right way is to report the pool stats but
not the whole cluster.

Change-Id: Ie18324ebd8b85f7b63dc034ba20857ae9e470804
Closes-Bug: #1434441

9 years agoAdd missing copy_volume_to_image method to Sheepdog driver
YAMADA Hideki [Wed, 4 Mar 2015 18:11:23 +0000 (18:11 +0000)]
Add missing copy_volume_to_image method to Sheepdog driver

Copy Volume to Image feature is required since Havana release.
The Sheepdog driver has not implemented it.

Change-Id: I940095be7ed3721cc8f1bafde821fbb420d305d0
Closes-Bug: #1426431

9 years agoPartial Revert "Removing Huawei drivers"
Mike Perez [Mon, 6 Apr 2015 04:40:47 +0000 (21:40 -0700)]
Partial Revert "Removing Huawei drivers"

This reverts commit 5e26b0c1d1ae1984e51ae47441e8a243f224bf29.

Change-Id: Iad7c1afff1a932876255a37fc0b5bf5993246aaa

9 years agoMerge "More error handling on EMC VNX migration failure"
Jenkins [Tue, 7 Apr 2015 04:36:22 +0000 (04:36 +0000)]
Merge "More error handling on EMC VNX migration failure"

9 years agoMerge "Fixed encrypted property for 3PAR FC and iSCSI drivers"
Jenkins [Tue, 7 Apr 2015 03:47:40 +0000 (03:47 +0000)]
Merge "Fixed encrypted property for 3PAR FC and iSCSI drivers"

9 years agoCreate initiator id if not exist in VMAX driver
Xing Yang [Sat, 4 Apr 2015 22:25:48 +0000 (18:25 -0400)]
Create initiator id if not exist in VMAX driver

This problem was discovered in a customer's environment. If the
initiator id (hardware id SMI-S instance) does not exist on the
array, the attach volume operation will fail. In this patch,
the initiator id will be created if it doesn't exist.

Change-Id: I868118528d831a9f49081a6393e64eb7a414b36f
Closes-Bug: #1440427

9 years agoMerge "Revert "Removing Netapp FC drivers for no reported CI""
Jenkins [Mon, 6 Apr 2015 16:59:13 +0000 (16:59 +0000)]
Merge "Revert "Removing Netapp FC drivers for no reported CI""

9 years agoFixed encrypted property for 3PAR FC and iSCSI drivers
Anthony Lee [Fri, 3 Apr 2015 05:07:27 +0000 (22:07 -0700)]
Fixed encrypted property for 3PAR FC and iSCSI drivers

3PAR FC and iSCSI drivers were not returning the 'encrypted'
property when initialize_connection was called. This patch
adds that property to the returned info.

Closes-Bug: #1439917
Change-Id: Icfbebd055ea1bae1fc4749b441eb4f90fa1bfacd

9 years agoPartial Revert "Removing ZFSSA driver"
Mike Perez [Mon, 6 Apr 2015 05:13:03 +0000 (22:13 -0700)]
Partial Revert "Removing ZFSSA driver"

This reverts commit c742566a6920f7260573fbd0dc71a5cc1e4a2311.

However, the ZFSSA iSCSI driver is still left out because there is no CI
for it.

Change-Id: Ibf830f295043624ca9a5dc90f1e3a897cb64915f

9 years agoMerge "Check volume status in detach db api"
Jenkins [Mon, 6 Apr 2015 13:40:26 +0000 (13:40 +0000)]
Merge "Check volume status in detach db api"

9 years agoMerge "Added provider_id to volume and snapshot object"
Jenkins [Mon, 6 Apr 2015 11:10:50 +0000 (11:10 +0000)]
Merge "Added provider_id to volume and snapshot object"

9 years agoMerge "VMware: Fix instance_uuid access in volume retype"
Jenkins [Mon, 6 Apr 2015 08:52:00 +0000 (08:52 +0000)]
Merge "VMware: Fix instance_uuid access in volume retype"

9 years agoMerge "Use six.text_type instead of unicode"
Jenkins [Mon, 6 Apr 2015 08:51:49 +0000 (08:51 +0000)]
Merge "Use six.text_type instead of unicode"

9 years agoMerge "Logging not using oslo.i18n guidelines"
Jenkins [Mon, 6 Apr 2015 08:51:38 +0000 (08:51 +0000)]
Merge "Logging not using oslo.i18n guidelines"

9 years agoMerge "Fix argument order in assertEqual: tests/test_service.py"
Jenkins [Mon, 6 Apr 2015 08:51:27 +0000 (08:51 +0000)]
Merge "Fix argument order in assertEqual: tests/test_service.py"

9 years agoMerge "VMware: Skip vSAN for preallocated image download"
Jenkins [Sun, 5 Apr 2015 23:15:44 +0000 (23:15 +0000)]
Merge "VMware: Skip vSAN for preallocated image download"

9 years agoMerge "Fixes nits in check_no_contextlib_nested"
Jenkins [Sun, 5 Apr 2015 18:31:45 +0000 (18:31 +0000)]
Merge "Fixes nits in check_no_contextlib_nested"

9 years agoMerge "Add project_id to barbican keymgr wrapper"
Jenkins [Sun, 5 Apr 2015 18:17:28 +0000 (18:17 +0000)]
Merge "Add project_id to barbican keymgr wrapper"

9 years agoMerge "Dell SC driver has insufficient iscsi logging"
Jenkins [Sun, 5 Apr 2015 14:58:20 +0000 (14:58 +0000)]
Merge "Dell SC driver has insufficient iscsi logging"

9 years agoMerge "Fix incorrect invocation of _add_to_threadpool"
Jenkins [Sun, 5 Apr 2015 01:12:31 +0000 (01:12 +0000)]
Merge "Fix incorrect invocation of _add_to_threadpool"