]> review.fuel-infra Code Review - openstack-build/cinder-build.git/log
openstack-build/cinder-build.git
10 years agoCVE-2013-1068: fixed debian/cinder-common.sudoers (Closes: #753585).
Thomas Goirand [Thu, 3 Jul 2014 13:13:53 +0000 (21:13 +0800)]
CVE-2013-1068: fixed debian/cinder-common.sudoers (Closes: #753585).
(cherry picked from commit 583c0fd8e707bf3ff5a895c9b0a1d2bf597373dd)

10 years agoRemoved differences with upstream branch.
Thomas Goirand [Tue, 1 Jul 2014 15:05:52 +0000 (23:05 +0800)]
Removed differences with upstream branch.

10 years agoNew (build-)depends for this release.
Thomas Goirand [Tue, 1 Jul 2014 14:31:23 +0000 (22:31 +0800)]
New (build-)depends for this release.

10 years agoNow using debian/juno branch for building.
Thomas Goirand [Tue, 1 Jul 2014 14:28:06 +0000 (22:28 +0800)]
Now using debian/juno branch for building.

10 years agoNow packaging upstream release 2014.2~b1
Thomas Goirand [Tue, 1 Jul 2014 14:27:23 +0000 (22:27 +0800)]
Now packaging upstream release 2014.2~b1

10 years agoMerge tag '2014.2_b1' into debian/juno
Thomas Goirand [Tue, 1 Jul 2014 14:26:36 +0000 (22:26 +0800)]
Merge tag '2014.2_b1' into debian/juno

Cinder juno-1 milestone (2014.2.b1)

Conflicts:
cinder/locale/ar/LC_MESSAGES/cinder.po
cinder/locale/bg_BG/LC_MESSAGES/cinder.po
cinder/locale/bn_IN/LC_MESSAGES/cinder.po
cinder/locale/bs/LC_MESSAGES/cinder.po
cinder/locale/ca/LC_MESSAGES/cinder.po
cinder/locale/cs/LC_MESSAGES/cinder.po
cinder/locale/da/LC_MESSAGES/cinder.po
cinder/locale/de/LC_MESSAGES/cinder.po
cinder/locale/el/LC_MESSAGES/cinder.po
cinder/locale/en_AU/LC_MESSAGES/cinder.po
cinder/locale/en_GB/LC_MESSAGES/cinder.po
cinder/locale/es/LC_MESSAGES/cinder.po
cinder/locale/es_MX/LC_MESSAGES/cinder.po
cinder/locale/eu/LC_MESSAGES/cinder.po
cinder/locale/eu_ES/LC_MESSAGES/cinder.po
cinder/locale/fa/LC_MESSAGES/cinder.po
cinder/locale/fi_FI/LC_MESSAGES/cinder.po
cinder/locale/fil/LC_MESSAGES/cinder.po
cinder/locale/fr/LC_MESSAGES/cinder.po
cinder/locale/gl/LC_MESSAGES/cinder.po
cinder/locale/he/LC_MESSAGES/cinder.po
cinder/locale/he_IL/LC_MESSAGES/cinder.po
cinder/locale/hi/LC_MESSAGES/cinder.po
cinder/locale/hr/LC_MESSAGES/cinder.po
cinder/locale/hu/LC_MESSAGES/cinder.po
cinder/locale/id/LC_MESSAGES/cinder.po
cinder/locale/is_IS/LC_MESSAGES/cinder.po
cinder/locale/it/LC_MESSAGES/cinder.po
cinder/locale/it_IT/LC_MESSAGES/cinder.po
cinder/locale/ja/LC_MESSAGES/cinder.po
cinder/locale/ka_GE/LC_MESSAGES/cinder.po
cinder/locale/km/LC_MESSAGES/cinder.po
cinder/locale/kn/LC_MESSAGES/cinder.po
cinder/locale/ko/LC_MESSAGES/cinder.po
cinder/locale/ko_KR/LC_MESSAGES/cinder.po
cinder/locale/ml_IN/LC_MESSAGES/cinder.po
cinder/locale/mr_IN/LC_MESSAGES/cinder.po
cinder/locale/ms/LC_MESSAGES/cinder.po
cinder/locale/nb/LC_MESSAGES/cinder.po
cinder/locale/ne/LC_MESSAGES/cinder.po
cinder/locale/nl_NL/LC_MESSAGES/cinder.po
cinder/locale/pa_IN/LC_MESSAGES/cinder.po
cinder/locale/pl_PL/LC_MESSAGES/cinder.po
cinder/locale/pt/LC_MESSAGES/cinder.po
cinder/locale/pt_BR/LC_MESSAGES/cinder.po
cinder/locale/ro/LC_MESSAGES/cinder.po
cinder/locale/ru/LC_MESSAGES/cinder.po
cinder/locale/ru_RU/LC_MESSAGES/cinder.po
cinder/locale/sk/LC_MESSAGES/cinder.po
cinder/locale/sl_SI/LC_MESSAGES/cinder.po
cinder/locale/sr/LC_MESSAGES/cinder.po
cinder/locale/sv/LC_MESSAGES/cinder.po
cinder/locale/sw_KE/LC_MESSAGES/cinder.po
cinder/locale/tl/LC_MESSAGES/cinder.po
cinder/locale/tl_PH/LC_MESSAGES/cinder.po
cinder/locale/tr/LC_MESSAGES/cinder.po
cinder/locale/tr_TR/LC_MESSAGES/cinder.po
cinder/locale/uk/LC_MESSAGES/cinder.po
cinder/locale/ur/LC_MESSAGES/cinder.po
cinder/locale/vi_VN/LC_MESSAGES/cinder.po
cinder/locale/zh_CN/LC_MESSAGES/cinder.po
cinder/locale/zh_HK/LC_MESSAGES/cinder.po
cinder/locale/zh_TW/LC_MESSAGES/cinder.po

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 agoMerge "Remove Quota Exception Stack Traces from Cinder Logs"
Jenkins [Wed, 11 Jun 2014 11:22:57 +0000 (11:22 +0000)]
Merge "Remove Quota Exception Stack Traces from Cinder Logs"

10 years agoMerge "Handle volumes no longer existing in resume delete"
Jenkins [Wed, 11 Jun 2014 04:22:12 +0000 (04:22 +0000)]
Merge "Handle volumes no longer existing in resume delete"

10 years agoMerge "3PAR volume detach with host in a host set"
Jenkins [Wed, 11 Jun 2014 02:21:59 +0000 (02:21 +0000)]
Merge "3PAR volume detach with host in a host set"

10 years agoMerge "NetApp NFS: Do not reference dst_img_local before assignment"
Jenkins [Tue, 10 Jun 2014 06:42:56 +0000 (06:42 +0000)]
Merge "NetApp NFS: Do not reference dst_img_local before assignment"

10 years agoMerge "Make begin_detaching fail if volume not "in-use""
Jenkins [Tue, 10 Jun 2014 01:48:24 +0000 (01:48 +0000)]
Merge "Make begin_detaching fail if volume not "in-use""

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 agoMerge "Fixed the comment spelling error - voumes to volumes"
Jenkins [Mon, 9 Jun 2014 08:05:53 +0000 (08:05 +0000)]
Merge "Fixed the comment spelling error - voumes to volumes"

10 years agoMerge "Ensure flushing of IO prior to removing FC device"
Jenkins [Sun, 8 Jun 2014 21:42:08 +0000 (21:42 +0000)]
Merge "Ensure flushing of IO prior to removing FC device"

10 years agoDelete image on upload-to-image failure
Vipin Balachandran [Wed, 30 Apr 2014 12:00:57 +0000 (17:30 +0530)]
Delete image on upload-to-image failure

On upload-to-image failure before initiating the data transfer or during
data transfer, the source volume status is restored properly whereas the
image created remains in queued or saving state. This change deletes the
image during such failures.

Change-Id: I0aa64798d2bc5bf19b79dd3b88dcd107ff369c42
Closes-Bug: #1298042

10 years agoMerge "Use os.urandom in volume transfer"
Jenkins [Thu, 5 Jun 2014 19:30:50 +0000 (19:30 +0000)]
Merge "Use os.urandom in volume transfer"

10 years agoEnsure flushing of IO prior to removing FC device
Walter A. Boring IV [Wed, 4 Jun 2014 22:22:08 +0000 (15:22 -0700)]
Ensure flushing of IO prior to removing FC device

This patch flushes IO for each SCSI device that
brick removes from the system.  The patch also
flushes a multipath device prior to removing
each underlying LUN associated with the
multipath device.   We were seeing kernel
IO errors in the syslog without calling flush
on the block device, during a detach for a
multipath FibreChannel copy image to volume
action.

Change-Id: I2fae3dccd4fcab22c8f59dcd297581ee9577b779
Closes-Bug: 1318950

10 years agoMerge "Add support for z/VM driver."
Jenkins [Thu, 5 Jun 2014 13:46:52 +0000 (13:46 +0000)]
Merge "Add support for z/VM driver."

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 agoFixed the comment spelling error - voumes to volumes
Inhye Park [Mon, 2 Jun 2014 07:38:37 +0000 (16:38 +0900)]
Fixed the comment spelling error - voumes to volumes

Closes-bug: #1325481
Change-Id: I38a1d9df98c709d3ca173fa61315ad3f7ca9ffdc

10 years agoRemove Quota Exception Stack Traces from Cinder Logs
Rahul Verma [Tue, 3 Jun 2014 22:26:48 +0000 (15:26 -0700)]
Remove Quota Exception Stack Traces from Cinder Logs

Added an if clause to the Cinder API FaultWrapper so that
a warning is printed rather than an error and stack trace
if an exception of type QuotaError is thrown.

Closes-Bug: 1324294
Change-Id: If91db0f443afc212af3893e27dd36f19b15c43bf

10 years agoUse os.urandom in volume transfer
Ollie Leahy [Fri, 30 May 2014 11:57:02 +0000 (11:57 +0000)]
Use os.urandom in volume transfer

This patch replaces a call to random.random() with a call to
os.urandom(), which generates a higher quality random number.

Closes-Bug: #1319643

Change-Id: Ifaa2216d4905f5286884629beac52b25249d621f

10 years agoMake begin_detaching fail if volume not "in-use"
Nikola Dipanov [Fri, 25 Apr 2014 11:38:31 +0000 (13:38 +0200)]
Make begin_detaching fail if volume not "in-use"

Like it's counterpart from Nova's volume-attach functionality standpoint
- reserve_volume, begin_detaching should fail if the volume is not in
  the correct state to be detached. This will prevent nova from
attempting to check and then detach, which is inherently racy.

Change-Id: Ie87eb0c9aea068affc94032ab2e53a91888d272a
Partial-bug: #1302774

10 years agoMerge "NetApp fix eseries concurrent vol map failure"
Jenkins [Sat, 31 May 2014 19:35:18 +0000 (19:35 +0000)]
Merge "NetApp fix eseries concurrent vol map failure"

10 years agoMerge "Add exception handling for copy_volume_to_image()"
Jenkins [Sat, 31 May 2014 07:47:01 +0000 (07:47 +0000)]
Merge "Add exception handling for copy_volume_to_image()"

10 years agoMerge "Fix a message format error in migration cleanup"
Jenkins [Sat, 31 May 2014 07:46:53 +0000 (07:46 +0000)]
Merge "Fix a message format error in migration cleanup"

10 years ago3PAR volume detach with host in a host set
Mark Sturdevant [Tue, 27 May 2014 21:49:34 +0000 (14:49 -0700)]
3PAR volume detach with host in a host set

When deleting the last VLUN for a host, try to
delete the host.  If the host is in a host set
this will fail.  When that happens, log a nice
message including the reason, but don't fail
or hang the delete VLUN.  Leave hosts in host
sets.

Closes-Bug: #1317134

Change-Id: Ie3f8f94c05a6a318de866598f9e9c4c5d84926f4

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

10 years agoFix a message format error in migration cleanup
Juan Manuel Olle [Thu, 22 May 2014 13:24:36 +0000 (10:24 -0300)]
Fix a message format error in migration cleanup

In some situations, the volume migration failed. After the cleanup
begin, code was trying to format a string value as an int,
this caused "copy_error = True" not being invoked, resulted
in UnboundLocalError exception.

Change-Id: I445394cc06fe221804901e8014d60e870f0fe2f7
Closes-Bug: #1290317

10 years agoMerge "Use error instead of warning to log mount exc"
Jenkins [Thu, 29 May 2014 15:57:27 +0000 (15:57 +0000)]
Merge "Use error instead of warning to log mount exc"

10 years agoMerge "Ensure metadata is saved before updating volume status"
Jenkins [Thu, 29 May 2014 13:38:18 +0000 (13:38 +0000)]
Merge "Ensure metadata is saved before updating volume status"

10 years agoAdd support for z/VM driver.
Yi Chun, Huang [Thu, 29 May 2014 10:10:50 +0000 (06:10 -0400)]
Add support for z/VM driver.

Add 'FCP' into connection_info in initialize_connection
in order to support IBM z/VM hypervisors. This change only
because z/VM need FCP(fibre channel port) info while other
platform don't need it. It will not have side effect
to other platforms since they can safely ignore it.

Change-Id: Ib2d72969608a84a7a200b96da3eefb3ccc13a096
Closes-Bug: #1323993

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 agoMerge "Only create volume with an active image"
Jenkins [Wed, 28 May 2014 06:06:20 +0000 (06:06 +0000)]
Merge "Only create volume with an active image"

10 years agoMerge "Allow host config to be overriden in backend"
Jenkins [Wed, 28 May 2014 04:38:21 +0000 (04:38 +0000)]
Merge "Allow host config to be overriden in backend"

10 years agoMerge "Fix ISER scan retry option"
Jenkins [Wed, 28 May 2014 01:51:45 +0000 (01:51 +0000)]
Merge "Fix ISER scan retry option"

10 years agoHandle volumes no longer existing in resume delete
Mike Perez [Thu, 22 May 2014 21:29:06 +0000 (14:29 -0700)]
Handle volumes no longer existing in resume delete

init_host resumes deletes for volumes with a status of 'deleting'. It
does these sequentially, and sometimes a volume could be deleted under
it, causing a bad stacktrace. This will gracefully handle those
situations and move on. Added coverage for resume volume delete being
successful as well.

Change-Id: I5b30265609b65804f2da77d9daa84b640de7939c
Closes-Bug: #1322340

10 years agoMerge "Updated from global requirements"
Jenkins [Tue, 27 May 2014 17:09:40 +0000 (17:09 +0000)]
Merge "Updated from global requirements"

10 years agoFix ISER scan retry option
Eric Harney [Tue, 27 May 2014 14:11:53 +0000 (10:11 -0400)]
Fix ISER scan retry option

The 'num_iscsi_scan_tries' option was renamed to
'num_volume_device_scan_tries'.

Remove it from the test where the deprecated name is
referenced since it is not used there anyway.

Fix the ISER driver to set the new config field rather than the
old one.  Presumably this made the num_iser_scan_tries option
not work since only the new field is passed to the brick
connector.

Closes-Bug: #1323741

Change-Id: I13ac4cce10894b541054fbda719bbc5fd555e3c1

10 years agoOnly create volume with an active image
ling-yun [Fri, 4 Apr 2014 14:18:50 +0000 (22:18 +0800)]
Only create volume with an active image

1. Currently cinder doesn't check whether the image is active
when create volume with an image id, we can even create volume
with a deleted/saving/queued image.

2. For deleted image, it only happened when using admin credentials.

When using non-admin credentials, it returned an error that image
is not found by using 'glance image-show' on a deleted image, which
is expected. Also when creating a volume from this deleted image,
it returned  a 404 error upfront. This again is the expected result.

When using admin credentials, we can view the details of deleted image
with 'glance image-show'. If create a volume out of an image ID (which
is now deleted), the operation succeeds, but the volume is left in
'error' state.

3. This accounts for a bug(he volume shouldn't be created) and should be fixed.

Change-Id: If4f59695fbf6636778d0d352aef28d90bb45ee91
Closes-Bug: #1302621

10 years agoMerge "vmware: Fix problems with VIM API retry logic"
Jenkins [Tue, 27 May 2014 04:16:07 +0000 (04:16 +0000)]
Merge "vmware: Fix problems with VIM API retry logic"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 26 May 2014 23:48:46 +0000 (23:48 +0000)]
Updated from global requirements

Change-Id: I6baf865f537abb71258fdfebe89403f7076c2765

10 years agoEnsure metadata is saved before updating volume status
Haruka Tanizawa [Fri, 25 Apr 2014 02:41:40 +0000 (11:41 +0900)]
Ensure metadata is saved before updating volume status

This patch ensures the volume metadata is saved to
the snapshot metadata before updating the status
of the snapshot to be available.

Change-Id: Iada010520dc3c086fcd410a6c7fd152cf4a31561
Closes-Bug: #1310991

10 years agoUse error instead of warning to log mount exc
Flavio Percoco [Sat, 24 May 2014 08:12:36 +0000 (10:12 +0200)]
Use error instead of warning to log mount exc

Gluster's driver uses warning to log mount exceptions. This patch
replaces that warning with an error message.

Change-Id: I54a10ec8abf460ca9ff7bb009b8d702cfad0fed0
Closes-Bug: #1317573

10 years agoMerge "Add mailmap entry"
Jenkins [Fri, 23 May 2014 23:42:53 +0000 (23:42 +0000)]
Merge "Add mailmap entry"

10 years agoMerge "Set volume usage audit period to not NoneType"
Jenkins [Fri, 23 May 2014 04:21:02 +0000 (04:21 +0000)]
Merge "Set volume usage audit period to not NoneType"

10 years agoMerge "Updated from global requirements"
Jenkins [Fri, 23 May 2014 03:09:54 +0000 (03:09 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Remove create_from* functor jump table"
Jenkins [Fri, 23 May 2014 02:47:29 +0000 (02:47 +0000)]
Merge "Remove create_from* functor jump table"

10 years agoAllow host config to be overriden in backend
Vishvananda Ishaya [Thu, 22 May 2014 21:49:20 +0000 (14:49 -0700)]
Allow host config to be overriden in backend

This allows you to specify host=XXX in your backend configuration
to override the host value that is specified in the DEFAULT section,
allowing for some backends to share a hostname while others can
have unique names.

Change-Id: Ie8894a7cebf350dc2d50567058a765482b9d97d7
Closes-bug: #1322366

10 years agoMerge "Remove all mostly untranslated PO files"
Jenkins [Thu, 22 May 2014 19:27:42 +0000 (19:27 +0000)]
Merge "Remove all mostly untranslated PO files"

10 years agoMerge "Add rally job"
Jenkins [Thu, 22 May 2014 17:44:05 +0000 (17:44 +0000)]
Merge "Add rally job"

10 years agoRemove all mostly untranslated PO files
Andreas Jaeger [Thu, 22 May 2014 16:33:09 +0000 (18:33 +0200)]
Remove all mostly untranslated PO files

We only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: I56c85a63888d0edd81895fb213e5967b0e799013
Closes-Bug: #1317794

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 22 May 2014 07:04:39 +0000 (07:04 +0000)]
Updated from global requirements

Change-Id: Ie6811fcb0c536447bd605a22b52d6fd2dee2d328

10 years agoRemove create_from* functor jump table
Joshua Harlow [Thu, 22 May 2014 02:26:15 +0000 (19:26 -0700)]
Remove create_from* functor jump table

To make it easier to debug during runtime which method was
called remove the dictionary type -> functor mapping and
use a set of if statements instead. This makes it so that
if one of these methods fails we can gather more information
from the traceback than what was previously possible.

Change-Id: Iee2b0b90fe57734966d415c053bbc967335d5509

10 years agoMerge "SSHPool in utils should allow customized host key missing policy"
Jenkins [Wed, 21 May 2014 19:59:43 +0000 (19:59 +0000)]
Merge "SSHPool in utils should allow customized host key missing policy"

10 years agoSSHPool in utils should allow customized host key missing policy
Lynxzh [Mon, 19 May 2014 10:47:16 +0000 (18:47 +0800)]
SSHPool in utils should allow customized host key missing policy

The cinder/utils SSHPool should allow  missing key policy and host key
file being customized so that any caller can determine by their own
scenario if the host key file can be customized, or if an 'AutoAdd' is
appropriate, or just reject the key when mismatch. This will give more
flexible customization and also prevent any security issue as a middle
man.

Closes-Bug: #1320056
Change-Id: I3c72b0d042de719ecd45429d376bd88d0aefb2cc

10 years agoMerge "NetApp fix attach fail for already mapped volume"
Jenkins [Tue, 20 May 2014 22:58:04 +0000 (22:58 +0000)]
Merge "NetApp fix attach fail for already mapped volume"

10 years agoCheck whether O_DIRECT is supported to iflag and oflag separately
vitas.yuzhou [Mon, 12 May 2014 18:57:48 +0000 (02:57 +0800)]
Check whether O_DIRECT is supported to iflag and oflag separately

The problem is when this is used for volume clear and the clear method
specifies use of the 'zero' option (/dev/zero) setting iflag direct is
not a valid option for that input file, but oflag direct is a valid
option for output file, so we should check iflag and oflag separately.

Change-Id: I4b627e95b68d56e3011cddc577c62fad0c384dba
Close-Bug: 1318748

10 years agoMerge "eliminate the need for hplefthandclient in tests"
Jenkins [Mon, 19 May 2014 21:23:06 +0000 (21:23 +0000)]
Merge "eliminate the need for hplefthandclient in tests"

10 years agoSet volume usage audit period to not NoneType
Mike Perez [Sat, 17 May 2014 19:18:59 +0000 (15:18 -0400)]
Set volume usage audit period to not NoneType

The setting of NoneType causes cinder-volume-usage-audit to not start up
and throw a stacktrace. This sets the config default back to something
it can use.

Change-Id: I4a9751025486b77dd7cf45d0aaad02e2325055d4
Closes-Bug: #1320541

10 years agoBrcdFCSanLookupService should allow customize host key and policy
Lynxzh [Mon, 19 May 2014 09:49:00 +0000 (17:49 +0800)]
BrcdFCSanLookupService should allow customize host key and policy

In BrcdFCSanLookupService, the initialization should allow the
customization of the known_hosts_file and missing_key_policy so that the
hosts key and missing policy can be customized according to the
different scenario and customer aspect. This will not change the default
behavior when no argument is given, but more flexible to allow the
caller to give more options according to different requirements.

Closes-Bug: #1320050
Change-Id: If5767f63ccd2cde5fbea30a6154acf4d28f662b6

10 years agoNetApp fix eseries concurrent vol map failure
Navneet Singh [Fri, 28 Feb 2014 10:19:49 +0000 (15:49 +0530)]
NetApp fix eseries concurrent vol map failure

This fixes the issue while mapping volume to host
when the requests are very close in time proximity.
The map operation has been synchronized.

Change-Id: I2e120d84d3b96faa4ab8d4324e70a089bcddeaa5
Closes-bug: #1312685

10 years agoNetApp fix attach fail for already mapped volume
Navneet Singh [Thu, 27 Feb 2014 15:20:52 +0000 (20:50 +0530)]
NetApp fix attach fail for already mapped volume

This patch fixes the error raised during mapping of a volume
to the host during attach operation if the volume is already
mapped to the host.

Change-Id: I4f711e7ac18eea0dfddab65fd85a3601fe967a88
Closes-bug: #1310659

10 years agoMerge "Fix retyping volume that has volume type None"
Jenkins [Mon, 19 May 2014 01:51:11 +0000 (01:51 +0000)]
Merge "Fix retyping volume that has volume type None"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Sun, 18 May 2014 18:42:16 +0000 (18:42 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Specify lld in tgt config backends"
Jenkins [Sun, 18 May 2014 16:54:15 +0000 (16:54 +0000)]
Merge "Specify lld in tgt config backends"

10 years agoMerge "Fix broken version responses"
Jenkins [Sun, 18 May 2014 15:54:18 +0000 (15:54 +0000)]
Merge "Fix broken version responses"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 18 May 2014 06:15:05 +0000 (06:15 +0000)]
Imported Translations from Transifex

Change-Id: I91f80dd98e0c18492060ff1eca7ed9544a326797

10 years agoMerge "Fix solaris_execute in SolarisISCSIDriver."
Jenkins [Sat, 17 May 2014 21:12:39 +0000 (21:12 +0000)]
Merge "Fix solaris_execute in SolarisISCSIDriver."

10 years agoMerge "Added unit test cases for _is_share_eligible in NFS driver."
Jenkins [Sat, 17 May 2014 21:09:55 +0000 (21:09 +0000)]
Merge "Added unit test cases for _is_share_eligible in NFS driver."

10 years agoConvert SolidFire Capacity response to GiB
John Griffith [Tue, 13 May 2014 05:01:55 +0000 (01:01 -0400)]
Convert SolidFire Capacity response to GiB

This patch fixes the reported free_capacity_gb response
in the SolidFire update_cluster_status method.

The initial patch fixed the free_capacity conversion,
however omitted the same fix that was needed for the
free_space calculation.

Closes Bug: #1284452

Change-Id: If034957764911ec92a6d7e603d0510325018db6d

10 years agoeliminate the need for hplefthandclient in tests
Mark Sturdevant [Mon, 12 May 2014 21:27:48 +0000 (14:27 -0700)]
eliminate the need for hplefthandclient in tests

In order to eliminate the need to have the hplefthandclient in the
global-requirements project, we need to remove the hplefthandclient
from being imported in all HP LeftHand driver unit tests in cinder.

Change-Id: I4009ea17b507b1deb2a567dd420f309e15aaf92d
Closes-Bug: #1316824

10 years agoMerge "eliminate the need for hp3parclient in tests"
Jenkins [Sun, 11 May 2014 20:09:27 +0000 (20:09 +0000)]
Merge "eliminate the need for hp3parclient in tests"

10 years agoMerge "Remove explicit dependency on amqplib"
Jenkins [Sat, 10 May 2014 02:57:24 +0000 (02:57 +0000)]
Merge "Remove explicit dependency on amqplib"

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

10 years agoMerge "Ensure that lun_id is an int"
Jenkins [Fri, 9 May 2014 22:12:15 +0000 (22:12 +0000)]
Merge "Ensure that lun_id is an int"

10 years agoMerge "Add set-bootable command"
Jenkins [Fri, 9 May 2014 11:06:17 +0000 (11:06 +0000)]
Merge "Add set-bootable command"

10 years agoFix for solidfire driver to use reserved_percentage
jbrogan [Thu, 8 May 2014 14:06:52 +0000 (14:06 +0000)]
Fix for solidfire driver to use reserved_percentage

Fixed _update_cluster_status so reserved_percentage uses value
from cinder.conf.

Change-Id: I74af8dd86645b4c0800391bd126bf2bce94cf205

10 years agoFix retyping volume that has volume type None
git-harry [Thu, 8 May 2014 11:38:41 +0000 (12:38 +0100)]
Fix retyping volume that has volume type None

Modified volume_types_diff to work when one volume type is None.

Fixed _fix_encryption_specs so that the new dictionary is returned.

Change-Id: Iaba3032317f4d0649c917fb92403c4e9146fe3e9
Closes-Bug: #1311058

10 years agoMerge "Fix wrong exception reference"
Jenkins [Thu, 8 May 2014 07:03:39 +0000 (07:03 +0000)]
Merge "Fix wrong exception reference"

10 years agoeliminate the need for hp3parclient in tests
Mark Sturdevant [Mon, 5 May 2014 21:13:48 +0000 (14:13 -0700)]
eliminate the need for hp3parclient in tests

In order to eliminate the need to have the hp3parclient in the
global-requirements project, we need to remove the hp3parclient
from being imported in all 3par driver unit tests in cinder.

Closes-Bug: #1315195
Change-Id: Ife5c70871e742be5970be8f0284e12554f93cab4