cinder-volume raises TypeError when volume_service_inithost_offload=true

Bug #1436624 reported by Ian Denhardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Ian Denhardt

Bug Description

This happens on startup when there are volumes in the deleting state.

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl
func(*args, **kwargs)
TypeError: 'bool' object is not callable

The problem is fairly trivial -- in cinder.volume.manager we're calling the function to be deferred and passing the result, rather than passing the function and it's arguments. I'm preparing patch for review now.

Ian Denhardt (a-ian)
Changed in cinder:
assignee: nobody → Ian Denhardt (a-ian)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/167858

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/167858
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=748ddf3ec1caf1ad78cf58f3099618a62cb8eb56
Submitter: Jenkins
Branch: master

commit 748ddf3ec1caf1ad78cf58f3099618a62cb8eb56
Author: Ian Denhardt <email address hidden>
Date: Wed Mar 25 21:47:47 2015 -0400

    Fix incorrect invocation of _add_to_threadpool

    _add_to_threadpool expects to be passed the function and which is to be
    run in an alternate thread, and the function's arguments. Instead, the
    function (self.delete_volume) was being invoked directly, and it's
    result passed to _add_to_threadpool. This results in a TypeError being
    raised (the result is a bool, which is not callable), but more
    importantly, it defeats the purpose of the statement - to offload the
    invocation of delete_volume to another thread.

    Change-Id: I524156cbffe0f6f5a2da902c6a62417d1ec425b9
    Closes-Bug: #1436624

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-rc1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.