FixedIntervalLoopingCall dies after runs several times in cinder/openstack/common/threadgroup#ThreadGroup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
In latest Cinder component, we used ThreadGroup in cinder/
This is the code piece of threadgroup.py:
def add_timer(self, interval, callback, initial_delay=None,
pulse = loopingcall.
#What we did is create a manager:
from cinder.
class MyManager(
....
def __init__(self):
#add a timer
def test_periodic_
def test():
The result is "print" printed twice but after that the thread is hang there, no log any more. We also tried open the backdoor_port in cinder.conf and tried to check the GreenThread status but failed to telnet on it, seems the thread is not in response.
The codes work on previous release but failed in latest cinder component, hope the members who has insight can check on this.