Engine service stop or restart 'NoneType' object has no attribute 'stop'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
New
|
Undecided
|
chenyb4 |
Bug Description
When senlin-engine service stop or restart appear error.
2017-11-28 23:19:15.289 2820 INFO senlin.
2017-11-28 23:19:15.289 2820 CRITICAL senlin-engine [-] AttributeError: 'NoneType' object has no attribute 'stop'
2017-11-28 23:19:15.289 2820 ERROR senlin-engine Traceback (most recent call last):
2017-11-28 23:19:15.289 2820 ERROR senlin-engine File "/usr/bin/
2017-11-28 23:19:15.289 2820 ERROR senlin-engine sys.exit(main())
2017-11-28 23:19:15.289 2820 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:19:15.289 2820 ERROR senlin-engine launcher.wait()
2017-11-28 23:19:15.289 2820 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:19:15.289 2820 ERROR senlin-engine self.stop()
2017-11-28 23:19:15.289 2820 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:19:15.289 2820 ERROR senlin-engine service.stop()
2017-11-28 23:19:15.289 2820 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:19:15.289 2820 ERROR senlin-engine health_mgr.stop()
2017-11-28 23:19:15.289 2820 ERROR senlin-engine AttributeError: 'NoneType' object has no attribute 'stop'
2017-11-28 23:19:15.289 2820 ERROR senlin-engine
2017-11-28 23:13:37.745 2583 INFO senlin.
2017-11-28 23:13:37.745 2583 CRITICAL senlin-engine [-] AttributeError: 'EngineService' object has no attribute 'dispatcher'
2017-11-28 23:13:37.745 2583 ERROR senlin-engine Traceback (most recent call last):
2017-11-28 23:13:37.745 2583 ERROR senlin-engine File "/usr/bin/
2017-11-28 23:13:37.745 2583 ERROR senlin-engine sys.exit(main())
2017-11-28 23:13:37.745 2583 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:13:37.745 2583 ERROR senlin-engine launcher.wait()
2017-11-28 23:13:37.745 2583 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:13:37.745 2583 ERROR senlin-engine self.stop()
2017-11-28 23:13:37.745 2583 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:13:37.745 2583 ERROR senlin-engine service.stop()
2017-11-28 23:13:37.745 2583 ERROR senlin-engine File "/usr/lib/
2017-11-28 23:13:37.745 2583 ERROR senlin-engine # Notify dispatcher to stop all action threads it started.
2017-11-28 23:13:37.745 2583 ERROR senlin-engine AttributeError: 'EngineService' object has no attribute 'dispatcher'
Changed in senlin: | |
assignee: | nobody → chenyb4 (chenyb4) |
In senlin-engine num_engine_workers env, must stop all running thread.
In this code https:/ /github. com/openstack/ senlin/ blob/master/ senlin/ engine/ service. py#L166 stop only
one.
The code must change to:
Engine service init:
self.dispatchers = []
Engine dispatcher start: s.append( self.dispatcher ) when self.dispatcher start after
self.dispatcher
Engine dispatcher stop:
dispatcher .stop()
for dispatcher in self.dispatchers: