Cron-trigger failed with ApplicationContextNotFoundException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Rinat Sabitov | ||
Liberty |
Fix Released
|
Medium
|
Rinat Sabitov |
Bug Description
A cron-trigger failed to run with the following exception.
I tried few different workflow and getting the same results.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
2015-07-13 12:32:59.717 25060 ERROR oslo_service.
I m running on the latest devstack (master) and been tested on two setups.
Using this simple workflow:
---
version: '2.0'
local_workflow1:
type: direct
tasks:
task1:
action: std.noop
Create a cron-trigger with this command (run every minute):
mistral cron-trigger-create -f value --pattern "*/1 * * * *" cron_test local_workflow1
With any workflow cron trigger fails with same error. It seems that mistral can't find greenlets locals for its local_id (mistal/ utils/_ _init__ .py:43) context. py:101) which call only inside spawn function. But this method not used at all.
As I understand, locals populate only in _wrapper function (mistal/
P.S.
Why mistal should raise exception if current context is empty/not found?