]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agocinder-volume now depends on tgt >= 1:1.0.17-1.1~ (Closes: 751703).
Thomas Goirand [Mon, 16 Jun 2014 07:39:05 +0000 (15:39 +0800)]
cinder-volume now depends on tgt >= 1:1.0.17-1.1~ (Closes: 751703).

10 years agoBumped python-six minimal requirements to 1.6.0.
Thomas Goirand [Mon, 9 Jun 2014 15:39:38 +0000 (15:39 +0000)]
Bumped python-six minimal requirements to 1.6.0.

10 years agoRemoved fallback-to-None-on-missing-Glance-image-attrs.patch applied upstream.
Thomas Goirand [Mon, 9 Jun 2014 14:11:20 +0000 (22:11 +0800)]
Removed fallback-to-None-on-missing-Glance-image-attrs.patch applied upstream.

10 years agoNow packaging 2014.1.1
Thomas Goirand [Mon, 9 Jun 2014 14:09:14 +0000 (22:09 +0800)]
Now packaging 2014.1.1

10 years agoUpdate cinder.conf
John Griffith [Fri, 30 May 2014 15:59:52 +0000 (15:59 +0000)]
Update cinder.conf

This is mostly just a sanity check, we're revmoving
this whole check from the gate, but we've had
conflicting versions of the truth here and I'm trying
to figure out why.

This patch is a fresh run of generate_sample, which differs
from https://review.openstack.org/#/c/96784/

Change-Id: Ia2d6ca01beb1d2c42084100990129dadbb32b22c
(cherry picked from commit 8965f168f4d26999538cf4694691916c285d5689)

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 22 May 2014 18:06:03 +0000 (18:06 +0000)]
Updated from global requirements

Change-Id: I9b071e0c3e630d81963197961820e3a8aac38df6

10 years agoProperly initialize rpc in cinder-volume-usage-audit
Koert van der Veer [Tue, 6 May 2014 09:04:00 +0000 (11:04 +0200)]
Properly initialize rpc in cinder-volume-usage-audit

When RPC isn't initialized, any RPC based notifiers will fail, which
renders cinder-volume-usage-audit mostly useless.

Closes-Bug: #1316483
(cherry picked from commit e52445681400ff1f8a78a39dca07d4d9711dfe52)

Change-Id: Ib6b9b1fdc76f289e9a44de520eeccbf99e28f40b

10 years agoStorwize/SVC driver crashes when check volume copy status
Li Min Liu [Tue, 8 Apr 2014 02:18:56 +0000 (10:18 +0800)]
Storwize/SVC driver crashes when check volume copy status

Storwize/SVC driver does not clear up property of _vdiskcopyops
when deleting a volume. So if a volume which under async copy is
deleted before sync completed, the driver will crash.

When delete a volume, add a check for _vdiskcopyops, if volume
is in the dict, remove it.

Change-Id: I4905404b72a7ac8f90bd92fa4345ba771a78418b
Closes-Bug: #1304115
(cherry picked from commit 0c4a94eac94399a524ff758fa7046e98b07951ae)

10 years agoFix solaris_execute in SolarisISCSIDriver.
Scott Devoid [Mon, 5 May 2014 21:44:44 +0000 (16:44 -0500)]
Fix solaris_execute in SolarisISCSIDriver.

A previous refactor [1] of SolarisISCSIDriver and SanDriver renamed
the `_execute` function to `san_execute`. However, SolarisISCSIDriver
still called the _execute function, which no longer exists in it's
parent classes.

This change calls san_execute instead of _execute in
super(SolarisISCSIDriver, san).

[1] https://review.openstack.org/#/c/38194/

Closes-Bug: #1318108
Change-Id: I4cafefdb3eef8f3c2c345907d7eabd4e8f88ef65
(cherry picked from commit a7f24f0a2395594ead7eb8a5cef894b257cd7e4f)

10 years agoFix wrong exception reference
Sergey Gotliv [Tue, 6 May 2014 21:27:46 +0000 (00:27 +0300)]
Fix wrong exception reference

iscsi.py should catch cinder.exception.NotFound instead of
cinder.brick.exception.NotFound.

Change-Id: I77134683712e9706619a7f7fe82caed42ede5887
Closes-Bug: #1300136
(cherry picked from commit 115b8447618073d3383bbd612ebd2fc68c8c5d28)

10 years agoCorrect metadata ordering issue in tests
Juan Manuel Olle [Fri, 21 Mar 2014 19:46:03 +0000 (16:46 -0300)]
Correct metadata ordering issue in tests

Some test including test_volume_get_all_filters
fails randomly because metadata is in a dict and
the items order is undefined.
The test comparison was changed to avoid unexpected
test results.

Change-Id: Ibb24d21cd05aa1eefb45b61c63de067b34fb1013
Closes-Bug: #1293792
(cherry picked from commit 4cc2366623743393f89a198581fcb69dc04d31cd)

10 years agoFallback to None on missing Glance image attrs
Mike Perez [Fri, 18 Apr 2014 01:46:36 +0000 (18:46 -0700)]
Fallback to None on missing Glance image attrs

It's possible for glance images to be missing attributes like name and
checksum. We'll just set those to None by default to avoid missing key
exceptions being raised.

Closes-Bug: #1308058
Change-Id: I85c42f8351763da201021a22f5ff0ebd62c6b2db
(cherry picked from commit 993facb3bf753d23332236dc05b397850bf99144)

10 years agoKeep volume available if retype fails due to quota
Mike Perez [Tue, 22 Apr 2014 23:27:42 +0000 (16:27 -0700)]
Keep volume available if retype fails due to quota

If we're over quota for a volume type that we're retyping a volume to,
keep the volume available.

Closes-Bug: #1308819
Change-Id: I7e66e95bf12b7e5a6df04eeb5a501badb5f2941f
(cherry picked from commit 3305f9dd061e70736fc4b890a207ecd4d30c3544)

10 years agoFixes cinder error state volume delete on Windows
Lucian Petrut [Tue, 8 Apr 2014 16:35:10 +0000 (19:35 +0300)]
Fixes cinder error state volume delete on Windows

If the volume creation fails and the iSCSI disk is not created,
trying to delete the error state volume will fail on Windows.

Deleting the iSCSI disk must be skipped when it does not exist.

Change-Id: I2cd615e71fe457c241bea207c4bd8904c1ffd9cb
Closes-Bug: #1304516
(cherry picked from commit 131777688562b1ec020327067d89da1535b99640)

10 years agoRe-raise exceptions in upload-to-image
Jon Bernard [Fri, 11 Apr 2014 14:44:55 +0000 (10:44 -0400)]
Re-raise exceptions in upload-to-image

This patch catches any exceptions returned from Glance during an
upload-to-image operation and re-raises them so that the user can see
the failure message and make the appropriate adjustments.  More
specifically, this addresses an invalid container format.

For example, the following command:

    $ cinder upload-to-image --container-format foobar ...

Goes from:

    ERROR: The server could not comply with the request since it is
           either malformed or otherwise incorrect. (HTTP 400)
           (Request-ID: req-f19bad2f-c39d-40a2-a3cc-6db9b9fe64cd)

To:

    ERROR: 400 Bad Request
    Invalid container format 'foobar' for image.
        (HTTP 400) (HTTP 400)
        (Request-ID: req-47cb2772-78c4-48b7-87ce-fb124ecfa989)

Closes-Bug: #1308689
Change-Id: If18851e0b9f5c242f84b1eab928b42d809335d80
(cherry picked from commit 6673a1d6b33ca72062d35450f97de43bf550b705)

10 years agoGlusterFS: Delete active snapshot file on volume delete.
Thang Pham [Tue, 8 Apr 2014 20:45:34 +0000 (16:45 -0400)]
GlusterFS: Delete active snapshot file on volume delete.

If a snapshot is taken of a volume that is attached to an active
instance, the volume file used by the instance will be switched to
the new snapshot file that is created.  When you delete the
snapshot, the base volume file will be merged with the snapshot
file and the base volume is deleted.  Upon a deleting the active
volume, the active snapshot file is not deleted because it does not
have the expected name that cinder is looking for, i.e.
volume-<uuid>.  Instead, the snapshot file has the name
volume-<uuid>.<snapshot-uuid>.  This patch looks at the volume info
file to find any active snapshot file and properly delete it when
the volume is deleted.

Change-Id: Ib0af4401d839ec3bd1eb3a81e1671811e0d4a288
Closes-Bug: #1300303
(cherry picked from commit 5f00cad02da1093d71f636add0810a538cbd444f)

10 years agoAdd exception catch if Storwize/SVC driver failed when
Li Min Liu [Fri, 11 Apr 2014 02:50:24 +0000 (10:50 +0800)]
Add exception catch if Storwize/SVC driver failed when
retyping

If adding a copy for a volume of Storwize/SVC which is under
migration, Storwize/SVC command will fail because the
number of the copies of the volume exceed the limit which
is 2.

Modifying the volume type when adding a copy for the volume,
Storwize/SVC driver will also fail, should add exception catch.

Also add exception catch when getting the volume from the database.
This change is necessary to enable resolving bug 1305550
(https://bugs.launchpad.net/cinder/+bug/1305550 - Failed retype with
driver raised exception should set volume status to "error" ).

Change-Id: I1cf4b6606b5228c8adcb2bde21f345fa979bc13e
Closes-Bug: #1298201
(cherry picked from commit 24eb8234ff4b907b8c88f26fb0c427cb7a452140)

10 years agoDisable oslo.messaging debug logs
Joe Gordon [Mon, 24 Mar 2014 21:44:27 +0000 (14:44 -0700)]
Disable oslo.messaging debug logs

oslo.messaging debug logs are too verbose, turn them off. A similar patch
dropped nova-conductor logs in the gate down from 7MB to under 300K.

Cherry-Pick from oslo-incubator since we are in feature freeze:
Ia12c003dae196e2220a5f6ea768758a75f2ede23 and
Icc61964c6a2b002ac1c8566f174e6a5230674c75

Closes-Bug: #1309626
(cherry picked from commit a24192d90938ea89b8f20132de60e6ad3a4ad447)
Change-Id: I9e6456f1c979d9a57fc7fa93fb290c6a26017373

10 years agoOpening stable/icehouse
Thierry Carrez [Thu, 17 Apr 2014 13:37:54 +0000 (15:37 +0200)]
Opening stable/icehouse

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

Change-Id: I8eae47f57ad05f0047eb10f0ec087044fa1fd340

10 years agoAdjust sample config for keystoneclient 0.8.0 release
Dirk Mueller [Thu, 17 Apr 2014 13:33:07 +0000 (15:33 +0200)]
Adjust sample config for keystoneclient 0.8.0 release

Helps fixing the gate again.

Change-Id: Ic962613fd7ee3e978890c25f911f509e9533ef8a
(cherry picked from commit da2dbd35de752d4dd47859c8b9197b00c53dd872)

10 years agoopenstack-pkg-tools (>= 12~)
Thomas Goirand [Thu, 5 Jun 2014 07:05:20 +0000 (07:05 +0000)]
openstack-pkg-tools (>= 12~)

10 years agoSwitched from restarting daemons to copytruncate for logrotate.
Thomas Goirand [Thu, 29 May 2014 05:59:51 +0000 (13:59 +0800)]
Switched from restarting daemons to copytruncate for logrotate.

10 years agoDisable https for the default keystone conf, as this makes our CI fail.
Thomas Goirand [Mon, 5 May 2014 05:16:00 +0000 (13:16 +0800)]
Disable https for the default keystone conf, as this makes our CI fail.

10 years agoUpdated intalian debconf translations (Closes: #745386).
Thomas Goirand [Sat, 3 May 2014 04:07:16 +0000 (04:07 +0000)]
Updated intalian debconf translations (Closes: #745386).

10 years ago * Now using keystone_authtoken in cinder.conf instead of api-paste.ini:
Thomas Goirand [Wed, 30 Apr 2014 16:03:15 +0000 (00:03 +0800)]
  * Now using keystone_authtoken in cinder.conf instead of api-paste.ini:
    - Fixed config and postinst scripts of cinder-common to use that.
    - Removed patch for api-paste.ini.

10 years agoApplied patch from Mike Perez <thingee@gmail.com> to be able to create volume from...
Thomas Goirand [Sat, 26 Apr 2014 15:12:57 +0000 (23:12 +0800)]
Applied patch from Mike Perez <thingee@gmail.com> to be able to create volume from glance image without checksum.

10 years agopriority medium
Thomas Goirand [Fri, 18 Apr 2014 01:10:44 +0000 (09:10 +0800)]
priority medium

10 years agoMerge branch 'debian/icehouse' of ssh://git.gplhost.com/var/cache/git/openstack/cinde...
Thomas Goirand [Thu, 17 Apr 2014 17:06:06 +0000 (17:06 +0000)]
Merge branch 'debian/icehouse' of ssh://git.gplhost.com/var/cache/git/openstack/cinder into debian/icehouse

Conflicts:
debian/changelog

10 years agoNow packaging Icehouse first release.
Thomas Goirand [Thu, 17 Apr 2014 16:56:02 +0000 (00:56 +0800)]
Now packaging Icehouse first release.

10 years agoMerge tag '2014.1_rc3' into debian/icehouse
Thomas Goirand [Wed, 16 Apr 2014 07:59:12 +0000 (15:59 +0800)]
Merge tag '2014.1_rc3' into debian/icehouse

Cinder icehouse-rc3 milestone (2014.1.rc3)

10 years agoNow packaging Icehouse RC3
Thomas Goirand [Wed, 16 Apr 2014 07:58:43 +0000 (15:58 +0800)]
Now packaging Icehouse RC3

10 years agoMerge "driver.create/remove_export() require elevated ctx" into milestone-proposed
Jenkins [Mon, 14 Apr 2014 22:29:30 +0000 (22:29 +0000)]
Merge "driver.create/remove_export() require elevated ctx" into milestone-proposed

10 years agodriver.create/remove_export() require elevated ctx
Eric Harney [Wed, 9 Apr 2014 17:05:54 +0000 (13:05 -0400)]
driver.create/remove_export() require elevated ctx

The volume manager should call driver.create_export()
and driver.remove_export() with an elevated context.

This is already done for remove_export() in some cases
but not in initialize_connection error paths, or for
terminate_connection.

This will at a minimum cause issues with the LVM LIO
driver as its create/remove_export methods uses database
queries requiring admin access (volume_get_iscsi_target_num,
iscsi_target_count_by_host).

Partial-Bug: #1300148
Closes-Bug: #1305197

Change-Id: I5c1091cf9720ebccefc328b64fbf2982b3aac397
(cherry picked from commit d09d12ab2ba72a9e7fe42852a7cf837231053590)

10 years agoCheck for silent failure of tgtadm remove
John Griffith [Thu, 10 Apr 2014 00:10:08 +0000 (00:10 +0000)]
Check for silent failure of tgtadm remove

In order to work around a failure to remove targets that
had a reconnect the force flag was added to the tgt delete cmd.
    (https://bugs.launchpad.net/cinder/+bug/1159948)

It turns out there's a bug in tgt where some versions will
sometimes silently fail when using the force flag.
    (https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1305343)

The problem is that in the gates since we merged the force change
there's a very high number of cases where lvremove fails because
the device is still active.  It appears that this is a result of
the silent force failures in target.

This patch adds a simple check after the force target removal,
if it detects the target is still present it reverts back to the old
non-force method to catch the cases that don't actually need the
force option.

This is a work-around until the version of target in the distros
is updated and can be used reliably, but closes the gate issue
bug that was reported.

Change-Id: I9150669040815e4831bd570964d12676b83ecbc9
Close-Bug: #1304122
(cherry picked from commit f9519182f4a6e6573513d8dbc9438702fc7b8644)

10 years agoDocuments in changelog: Applied patch from Sylvain Baubeau <sylvain.baubeau@enovance...
Thomas Goirand [Thu, 10 Apr 2014 09:26:33 +0000 (17:26 +0800)]
Documents in changelog: Applied patch from Sylvain Baubeau <sylvain.baubeau@enovance.com> to select log destination (to syslog or to a file).

10 years agoAllow selecting log destination for Cinder daemons
Sylvain Baubeau [Tue, 8 Apr 2014 11:49:09 +0000 (13:49 +0200)]
Allow selecting log destination for Cinder daemons

10 years agoNow packaging Icehouse RC2
Thomas Goirand [Wed, 9 Apr 2014 14:44:38 +0000 (22:44 +0800)]
Now packaging Icehouse RC2

10 years agoMerge tag '2014.1_rc2' into debian/icehouse
Thomas Goirand [Wed, 9 Apr 2014 14:09:30 +0000 (22:09 +0800)]
Merge tag '2014.1_rc2' into debian/icehouse

Cinder icehouse-rc2 milestone (2014.1.rc2)

10 years agoUpdated from global requirements
OpenStack Jenkins [Sun, 6 Apr 2014 14:20:03 +0000 (14:20 +0000)]
Updated from global requirements

Change-Id: I84c8bae9370f6b99d061ce1dc9519c6bec2b3cad

10 years agoMerge "Adds ionice command permutations to rootwrap filters" into milestone-proposed
Jenkins [Fri, 4 Apr 2014 22:45:10 +0000 (22:45 +0000)]
Merge "Adds ionice command permutations to rootwrap filters" into milestone-proposed

10 years agoMerge "Append nas_opts to IBMNAS_NFSDriver configuration" into milestone-proposed
Jenkins [Fri, 4 Apr 2014 22:42:56 +0000 (22:42 +0000)]
Merge "Append nas_opts to IBMNAS_NFSDriver configuration" into milestone-proposed

10 years agoMerge "GlusterFS: Delete volume-<uuid>.info file when volume is deleted." into milest...
Jenkins [Fri, 4 Apr 2014 20:00:40 +0000 (20:00 +0000)]
Merge "GlusterFS: Delete volume-<uuid>.info file when volume is deleted." into milestone-proposed

10 years agoAppend nas_opts to IBMNAS_NFSDriver configuration
Sasikanth [Thu, 27 Mar 2014 15:14:50 +0000 (20:44 +0530)]
Append nas_opts to IBMNAS_NFSDriver configuration

'nas_opts' were added in the NFS Driver (nfs.py), but were not appended
to the IBMNAS driver configuration, causing failure with the multi-backend
configuration of driver.

Adding the missing configuration.

Change-Id: I55727566d03573908750d01ae1345c4b6276f131
Closes-Bug: #1298279
(cherry picked from commit adb43dab7072a7e452710ac5db346e9a2c99993f)

10 years agoMerge "Fixes cinder volume delete on Windows" into milestone-proposed
Jenkins [Fri, 4 Apr 2014 19:35:04 +0000 (19:35 +0000)]
Merge "Fixes cinder volume delete on Windows" into milestone-proposed

10 years agoMerge "Change iogrp property when retyping for Storwize/SVC" into milestone-proposed
Jenkins [Fri, 4 Apr 2014 18:13:28 +0000 (18:13 +0000)]
Merge "Change iogrp property when retyping for Storwize/SVC" into milestone-proposed

10 years agoMerge "Allow deprecated volume update keys in v2" into milestone-proposed
Jenkins [Fri, 4 Apr 2014 18:13:16 +0000 (18:13 +0000)]
Merge "Allow deprecated volume update keys in v2" into milestone-proposed

10 years agoChange iogrp property when retyping for Storwize/SVC
Li Min Liu [Tue, 1 Apr 2014 09:08:37 +0000 (17:08 +0800)]
Change iogrp property when retyping for Storwize/SVC

If need migration when retyping, Storwize/SVC driver will add a copy
of the volume first, and then start a task to check volume sync
progress which will run each 10 mins. At last delete the origin copy
when sync finished.

But iogrp property is not a parameter of addvdiskcopy, so the iogrp
of the copy volume is the same as the origin. If iogrp property is
diff between the old and new volume type, the property will not
change when retyped.

Change-Id: Ie4414bcf95fa6e61d7d618618f48837eef740da4
closed-bug: #1298247
(cherry picked from commit 5c336123d3252e7fc4e1aeabd853457ab05838be)

10 years agoAdds ionice command permutations to rootwrap filters
Bryan D. Payne [Mon, 31 Mar 2014 22:50:43 +0000 (15:50 -0700)]
Adds ionice command permutations to rootwrap filters

When setting volume_clear_ionice, the ionice command is prepended to a dd
command before executing it.  Previously, this would have failed because it
wasn't allowed through the default rootwrap filters.  This commit fixes this
problem.

Note that due to the way that the RegExpFilter works, we need three different
expressions to cover all cases.  This is because the various options result
in a different number of arguments.  And this filter will fail immediately
if the number of arguments is incorrect.

Change-Id: Ie29f7fa21b34982ed5394c2c8f38c3e066ef0112
Closes-Bug: #1300496
(cherry picked from commit d5c74a954b260567874c45c39b92904f3756b806)

10 years ago_translate_from_glance() can cause an unnecessary HTTP request
Chris Buccella [Thu, 3 Apr 2014 04:02:45 +0000 (04:02 +0000)]
_translate_from_glance() can cause an unnecessary HTTP request

After returning from a get() call to python-glanceclient, cinder runs a
translation function on the returned Image to get the data it wants. Part of
this process is checking for an expected set of attributes, one of which is
the deletion time ('deleted_at'). However, if the image has not been deleted,
deleted_at key will not exist. This forces another call to glance to occur for
the same image. A similar problem exists for the checksum attribute, which does
not exist before an image is active. The fix here is to only consider
deleted_at and checksum if they are expected to be present.

This change was made in nova as change I67b7dd16

Change-Id: Iedc16cb9316f9610fdb8ac03f448bc375a4e6bfa
Closes-Bug: #1275173
(cherry picked from commit da13c6285bb0aee55cfbc93f55ce2e2b7d6a28f2)

10 years agoAllow deprecated volume update keys in v2
Mike Perez [Thu, 3 Apr 2014 00:52:11 +0000 (17:52 -0700)]
Allow deprecated volume update keys in v2

Keys like display_name and display_description were deprecated for other
actions in v2 like creating volumes, so for consistency they should work
with updating.

DocImpact
Closes-Bug: #1301172
Change-Id: I19bc7c85352578bb57fa9fdaf1817f78e0ee2f2a
(cherry picked from commit d75a90ec1daff1444f20f6b68255890391bdb4e5)

10 years agoGlusterFS: Delete volume-<uuid>.info file when volume is deleted.
Thang Pham [Mon, 31 Mar 2014 19:22:47 +0000 (15:22 -0400)]
GlusterFS: Delete volume-<uuid>.info file when volume is deleted.

glusterfs creates a file named volume-<uuid>.info to hold volume
data, mapping cinder snapshot UUIDs and filenames. When the
volume and its associated snapshots are both deleted, this file
remains. This patch deletes the volume-<uuid>.info (if one exists)
when the volume is deleted.

Change-Id: Iefc8bd4768b30a75c648c4689d935daeab3afe98
Closes-Bug: #1299182
(cherry picked from commit bf006ecb4a52db6300aa0fe1abe7df621e9f6174)

10 years agoFixes cinder volume delete on Windows
Lucian Petrut [Fri, 28 Mar 2014 08:47:07 +0000 (10:47 +0200)]
Fixes cinder volume delete on Windows

Because of the fact that an iSCSI target is not created anymore
at volume creation time, not all volumes will have a corresponding
target. For this reason, when removing an iSCSI target we must
first check if the target actually exists.

Change-Id: I8e571397df6d9a2eeb05e883b7da8494d4bfa1ad
Closes-Bug: #1299124
(cherry picked from commit 601d54c9ef926fa2d8abfe0121019f7ad94eefd5)

10 years agoDocuments: Re-add missing authtoken fields in config file.
Thomas Goirand [Fri, 4 Apr 2014 09:32:38 +0000 (09:32 +0000)]
Documents: Re-add missing authtoken fields in config file.

10 years agoMerge "Fixes cinder volume attach on Windows" into milestone-proposed
Jenkins [Thu, 3 Apr 2014 15:36:02 +0000 (15:36 +0000)]
Merge "Fixes cinder volume attach on Windows" into milestone-proposed

10 years agoAdds re-add-filter-authtoken.patch
Thomas Goirand [Wed, 2 Apr 2014 17:54:18 +0000 (01:54 +0800)]
Adds re-add-filter-authtoken.patch

10 years agoFix Jenkins translation jobs
Andreas Jaeger [Sat, 29 Mar 2014 05:38:52 +0000 (06:38 +0100)]
Fix Jenkins translation jobs

The jobs cinder-propose-translation-update and
cinder-upstream-translation-update do not update from
transifex since our po files contain duplicate entries where
obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the jobs.

Change-Id: I6d41dbdcc41646fcbd1ee84ce48cb0c461cd454c
Closes-Bug: #1299349
(cherry picked from commit c72cc4b2345e9e271205d1de00c9812d0a2684ec)

10 years agoFixes cinder volume attach on Windows
Lucian Petrut [Fri, 28 Mar 2014 08:57:13 +0000 (10:57 +0200)]
Fixes cinder volume attach on Windows

The initiator name and the target name are inverted when passing
the arguments to the method which associates the iSCSI target to
an initiator. For this reason, this operation will fail.

Also, the connection to the iSCSI target cannot be initialized
properly as the method which gets portal information is missing
the return value.

Change-Id: I31034cd407d12d69a410f8c9e86a2e6821349dad
Closes-Bug: #1299131
(cherry picked from commit 23e820abb8685573f97f5e3764225a97dd695127)

10 years ago * New upstream release.
Thomas Goirand [Fri, 28 Mar 2014 10:45:17 +0000 (18:45 +0800)]
  * New upstream release.
  * Removed now useless fix-sqlalchemy-version patch.
  * Fixed new (build-)dependencies for this release.

10 years ago * New upstream release (Icehouse rc1).
Thomas Goirand [Fri, 28 Mar 2014 10:41:31 +0000 (18:41 +0800)]
  * New upstream release (Icehouse rc1).
  * Removed now useless fix-sqlalchemy-version patch.

10 years agoMerge tag '2014.1_rc1' into debian/icehouse
Thomas Goirand [Fri, 28 Mar 2014 10:40:15 +0000 (18:40 +0800)]
Merge tag '2014.1_rc1' into debian/icehouse

Cinder icehouse-rc1 milestone (2014.1.rc1)

10 years agoMerge "vmware: Use SessionIsActive to find stale session"
Jenkins [Thu, 27 Mar 2014 10:14:21 +0000 (10:14 +0000)]
Merge "vmware: Use SessionIsActive to find stale session"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 27 Mar 2014 06:12:40 +0000 (06:12 +0000)]
Imported Translations from Transifex

Change-Id: Ibb7c3b8a65f1356a06bcec5d23f03598a9966315

10 years agoMerge "NetApp cmode nfs: Fix QOS extra spec"
Jenkins [Thu, 27 Mar 2014 04:50:37 +0000 (04:50 +0000)]
Merge "NetApp cmode nfs: Fix QOS extra spec"

10 years agoMerge "Fixes a problem in attach volume in EMC driver."
Jenkins [Thu, 27 Mar 2014 04:38:47 +0000 (04:38 +0000)]
Merge "Fixes a problem in attach volume in EMC driver."

10 years agoMerge "NetApp cmode iscsi: Fix QOS extra spec"
Jenkins [Thu, 27 Mar 2014 04:38:40 +0000 (04:38 +0000)]
Merge "NetApp cmode iscsi: Fix QOS extra spec"

10 years agoMerge "Changes to correct name of missing NetApp license."
Jenkins [Thu, 27 Mar 2014 04:38:32 +0000 (04:38 +0000)]
Merge "Changes to correct name of missing NetApp license."

10 years agoMerge "Pass the mirrorlog option as two arguments."
Jenkins [Thu, 27 Mar 2014 04:38:24 +0000 (04:38 +0000)]
Merge "Pass the mirrorlog option as two arguments."

10 years agoChanges to correct name of missing NetApp license.
Glenn M. Gobeli [Fri, 21 Mar 2014 14:05:07 +0000 (10:05 -0400)]
Changes to correct name of missing NetApp license.

Change to have the NetApp ZAPI error of "SIS clone not licensed"
refer to the correct NetApp license of "FlexClone not licensed".
This code path is encountered when the NetApp 7mode driver uses
the clone interface for snapshotting or cloning.

Change-Id: I3e4d07d38870928a324ad044e03938826b0d0a98
Closes-Bug: #1295349

10 years agoNetApp cmode nfs: Fix QOS extra spec
Alex Meade [Thu, 20 Mar 2014 19:44:44 +0000 (15:44 -0400)]
NetApp cmode nfs: Fix QOS extra spec

This patch fixes the incorrect behavior where the NetApp cmode
nfs driver will choose to create a volume on a flexVol that has
a QOS policy group that matches the specified QOS policy group
intended for the cinder volume. The correct behavior is to ignore
the QOS policy group of the flexVol and instead assign the QOS policy
group to the newly created cinder volume.

Change-Id: I45d905da2a9a07b3ae8c00a225ab3b7f7ceb12d8
Closes-Bug: #1288283

10 years agoNetApp cmode iscsi: Fix QOS extra spec
Alex Meade [Wed, 19 Mar 2014 18:03:15 +0000 (14:03 -0400)]
NetApp cmode iscsi: Fix QOS extra spec

This patch fixes the incorrect behavior where the NetApp cmode
iscsi driver will choose to create a volume on a flexVol that has
a QOS policy group that matches the specified QOS policy group
intended for the cinder volume. The correct behavior is to ignore
the QOS policy group of the flexVol and instead assign the QOS policy
group to the newly created cinder volume.

Change-Id: Ibeb8e3b965af8e79d0294c5cf97410da2b44d40c
Partial-Bug: #1288283

10 years agoFixes a problem in attach volume in EMC driver.
Xing Yang [Sat, 22 Mar 2014 19:05:42 +0000 (15:05 -0400)]
Fixes a problem in attach volume in EMC driver.

This patch fixes a problem in attach volume in EMC SMI-S driver.
The existing logic checks if a volume is already attached to any host,
but it doesn't check whether a volume is already attached to the specific
host that nova wants cinder to attach.  As a result, initialize_connection
could return success (thinking it is already attached), but nova will
fail to discover the LUN later and fail the attach.

This patch adds a check to see if a volume is already attached to a
specific host.  If not, it will do the attach.  The reason that the
volume being attached already could be due to a nova live-migration
use case.  Cinder doesn't support multiple attaches currently, but
allows a volume to be attached multiple times from nova during
live-migration.

Change-Id: I05a2f57cd8708d7fcbe902ec13665a9cfb44db07
Closes-Bug: #1295906

10 years agoUpdate config generator from OSLO
john-griffith [Wed, 26 Mar 2014 22:47:21 +0000 (16:47 -0600)]
Update config generator from OSLO

Cinders sample config is out of date with recent
updates needed for keystone, however we had an
old version of the oslo generator so there was
no way to pick these changes up locally by running
the generate tool.

This pulls the latest generator.py from oslo, and
we run the update script to get us back in sync.

Current head of oslo:
  commit 2eab986ef3c43f8d1e25065e3cbc1307860c25c7
  Merge: 2b08343 0dbcae1
  Author: Jenkins <jenkins@review.openstack.org>
  Date:   Wed Mar 26 14:47:07 2014 +0000

      Merge "Adds test condition in test_periodic"

Change-Id: Id43becfaa39d04153167e592a1233a5aef6016c9

10 years agoPass the mirrorlog option as two arguments.
Vishvananda Ishaya [Wed, 26 Mar 2014 19:09:28 +0000 (12:09 -0700)]
Pass the mirrorlog option as two arguments.

We don't use shell=True when we Popen, so we have to keep all
arguments as separate values.

Change-Id: Ic35fad36be72386d3496920e259c32fe16625046
Closes-bug: 1298017

10 years agoMerge "vmware: Remove pbm_default_policy config option"
Jenkins [Wed, 26 Mar 2014 11:23:30 +0000 (11:23 +0000)]
Merge "vmware: Remove pbm_default_policy config option"

10 years agoMerge "Netapp iscsi: allow snapshots with unspecified block range."
Jenkins [Wed, 26 Mar 2014 08:29:53 +0000 (08:29 +0000)]
Merge "Netapp iscsi: allow snapshots with unspecified block range."

10 years agoNetapp iscsi: allow snapshots with unspecified block range.
Jeff Applewhite [Mon, 24 Mar 2014 21:37:22 +0000 (17:37 -0400)]
Netapp iscsi: allow snapshots with unspecified block range.

Snapshots were failing to create in all cases in the NetApp iscsi
driver. The clone lun function was never issuing the zapi call
because the block count was set to 0.

Closes-Bug: 1296881

Change-Id: Ic2bf67b57a566632103a3fa2ff032555f42a3961

10 years agoSerialize the notification payload
john-griffith [Thu, 20 Mar 2014 03:53:41 +0000 (21:53 -0600)]
Serialize the notification payload

Notification payload in oslomessaging needs to be
serialized correctly, currently it's not.

Use json to encode the payload.
Closes-Bug: 1294949

Change-Id: Idb2c13981cc1c60ed02445a28220d1dab1529d2b

10 years agoMerge "Adds xiv_chap to xiv/ds8k driver configuration"
Jenkins [Tue, 25 Mar 2014 06:25:17 +0000 (06:25 +0000)]
Merge "Adds xiv_chap to xiv/ds8k driver configuration"

10 years agoMerge "Can't force-create snapshot by an non-exist error volume"
Jenkins [Tue, 25 Mar 2014 05:59:23 +0000 (05:59 +0000)]
Merge "Can't force-create snapshot by an non-exist error volume"

10 years agoUpdated from global requirements
OpenStack Jenkins [Mon, 24 Mar 2014 11:47:40 +0000 (11:47 +0000)]
Updated from global requirements

Change-Id: I02c65db0ea9ef2c86d4bf280d811e8cd28deadb9

10 years agoMerge "Allow NetApp iSCSI driver to sub-clone large volumes"
Jenkins [Fri, 21 Mar 2014 08:22:41 +0000 (08:22 +0000)]
Merge "Allow NetApp iSCSI driver to sub-clone large volumes"

10 years agoMerge "init_host should be called before RPC consumer is created"
Jenkins [Fri, 21 Mar 2014 08:22:37 +0000 (08:22 +0000)]
Merge "init_host should be called before RPC consumer is created"

10 years agoAdds xiv_chap to xiv/ds8k driver configuration
alonma [Thu, 20 Mar 2014 17:41:56 +0000 (19:41 +0200)]
Adds xiv_chap to xiv/ds8k driver configuration

In order to support CHAP, xiv_chap was added to
the driver configuration. Valid values are disabled
and enabled (default: disabled)

Change-Id: I0c68f581ad78a87a506b00ab308806f4a8fa78a8
DocImpact
Closes-Bug: #1288816

10 years agovmware: Use SessionIsActive to find stale session
Vipin Balachandran [Wed, 19 Mar 2014 12:12:56 +0000 (17:42 +0530)]
vmware: Use SessionIsActive to find stale session

An API invocation with a stale session returns an empty response. In order
to distinguish it from an API returning valid empty response, the session
is recreated and the API is retried. If an empty response is received even
after the retry, it can be assumed that the API response is actually empty.
But this behavior results in authentication error from the VMware server
when there is an active session and the API response is actually empty.
This change fix this behavior by using the SessionIsActive check to
identify stale session.

Change-Id: I6ddc4028bc5319cd22006de0590c13d6868c3494
Closes-Bug: #1284979

10 years agoinit_host should be called before RPC consumer is created
wanghong [Thu, 20 Mar 2014 02:39:37 +0000 (10:39 +0800)]
init_host should be called before RPC consumer is created

Currently, the init_host method is called after RPC consumer is
created. This behavior will lead to a bug that when a rpc request
is received the manager can not handle it because the driver has not
been initialized!

Change-Id: Ieedba1adeb3dd98eb4ff78427fe347423c016469
Closes-Bug: #1271568

10 years agoAdd RequestContextSerializer for rpc notifications
john-griffith [Wed, 19 Mar 2014 22:19:28 +0000 (16:19 -0600)]
Add RequestContextSerializer for rpc notifications

RequestContext should be serialized when sent via oslo.messaging. The
serializer is correctly used for the general RPC mechanism, but has been
forgotten in the notifier. This patch fixes that.

Thanks goes to eharney for noticing this and pointing it out!!!

Same bug existed in Nova (1275771)

Change-Id: I99a571ef74bbcd13bf801313eea145ea69f821e1
Closes-Bug: #1294724

10 years agoAllow NetApp iSCSI driver to sub-clone large volumes
Andrew Kerr [Tue, 11 Mar 2014 14:28:55 +0000 (10:28 -0400)]
Allow NetApp iSCSI driver to sub-clone large volumes

The NetApp zapi used during certain extend operations has several limits
imposed on it.  Each block-range provided can only be 2^24 in size, and
there can only be 32 block-ranges per zapi call.  This fix allows the
NetApp iSCSI driver to send multiple zapi calls if necessary, to allow
for extend operations on volumes of an arbitrary size.

Closes-Bug: #1288962
Change-Id: I981d22f32cb2182112fbea3ea9880d1e8c8c91ab

10 years agoMerge "Simplify test force delete snapshot unit test"
Jenkins [Wed, 19 Mar 2014 17:38:05 +0000 (17:38 +0000)]
Merge "Simplify test force delete snapshot unit test"

10 years agoCan't force-create snapshot by an non-exist error volume
lirenke [Tue, 4 Mar 2014 12:59:07 +0000 (04:59 -0800)]
Can't force-create snapshot by an non-exist error volume

If we create an LVM volume whose size larger than
rest space in VG, the volume would not exist with
error status.
But then we still can force create a snapshot
by this volume, and the snapshot's status is available.
In the code,I found in create_lv_snapshot,
it return False when fail to get the volume.
However, raising an exception is only way to be
handle outside.
So, we should raise exception instead of return False.

Closes-Bug: #1283338

Change-Id: I80256f19d66da460c95ff23834abb79a557763bf

10 years agoMerge "resolve KeyError for IBM Storwize/SVC driver"
Jenkins [Tue, 18 Mar 2014 22:58:31 +0000 (22:58 +0000)]
Merge "resolve KeyError for IBM Storwize/SVC driver"

10 years agoSimplify test force delete snapshot unit test
Mike Perez [Mon, 17 Mar 2014 05:24:38 +0000 (22:24 -0700)]
Simplify test force delete snapshot unit test

Make this test simple in just verifying if we have a snapshot and we do
a force delete that we get back an ok response from the controller.
Removing out RPC call and verifying snapshot was deleted since that's
out of the scope here.

Closes-Bug: #1291108
Change-Id: If10b1057cf170e77527a0933a1ddf1a6a59baa1d

10 years agoMerge "Remove unused method from NetApp iscsi driver"
Jenkins [Tue, 18 Mar 2014 21:04:41 +0000 (21:04 +0000)]
Merge "Remove unused method from NetApp iscsi driver"

10 years agoresolve KeyError for IBM Storwize/SVC driver
Xiao Chen [Thu, 6 Mar 2014 10:13:46 +0000 (18:13 +0800)]
resolve KeyError for IBM Storwize/SVC driver

When using iSCSI protocol to conenct IBM v7000, and compression
is not enabled for the system, KeyError may occur because of the response
item's lack of 'license_compression_enclosures'. So add a check to
resolve it.

Change-Id: Ie53631ea5b047650897313ad5614f6e1df5377f2
Closes-Bug: #1288645

10 years agoMerge "VMware: Implement vmdk extend_volume"
Jenkins [Mon, 17 Mar 2014 22:45:54 +0000 (22:45 +0000)]
Merge "VMware: Implement vmdk extend_volume"

10 years agoRemove unused method from NetApp iscsi driver
Alex Meade [Mon, 17 Mar 2014 19:16:09 +0000 (15:16 -0400)]
Remove unused method from NetApp iscsi driver

This removes _get_qos_type() from the NetApp iscsi code
as it is never used.

Change-Id: I903245b5c018bce80bdc0b8edf9ab7241e475fa4

10 years agovmware: Remove pbm_default_policy config option
Vipin Balachandran [Mon, 17 Mar 2014 18:16:22 +0000 (23:46 +0530)]
vmware: Remove pbm_default_policy config option

The pbm_default_policy config option is used to associate a storage
policy with the volume backing if there is no associated volume_type
or the volume_type doesn't have the storage_profile option. A better
approach is to set the storage_profile option in the default_volume_type.
This change removes the pbm_default_policy and queries the policy
using the storage_profile option in the given volume_type.

Closes-Bug: #1291181
Closes-Bug: #1291804
DocImpact

Change-Id: I2519ec1145712ce6927dacde91db468d066af021

10 years agoMerge "Use the error_out_volume from flow common instead"
Jenkins [Mon, 17 Mar 2014 12:07:13 +0000 (12:07 +0000)]
Merge "Use the error_out_volume from flow common instead"

10 years agoVMware: Implement vmdk extend_volume
Vincent Hou [Fri, 7 Mar 2014 16:55:34 +0000 (11:55 -0500)]
VMware: Implement vmdk extend_volume

Add the API implementation of extend_volume for the VMware
vmdk driver.

Change-Id: Idf09c9e9cf015c78c1c5e91c05b897e3e9b7c006
Closes-Bug: #1232172

10 years agoMerge "Don't send untextified exc to webob"
Jenkins [Sun, 16 Mar 2014 15:37:22 +0000 (15:37 +0000)]
Merge "Don't send untextified exc to webob"

10 years agoMerge "GPFS unit tests: increased coverage, uses mock"
Jenkins [Sun, 16 Mar 2014 11:41:00 +0000 (11:41 +0000)]
Merge "GPFS unit tests: increased coverage, uses mock"