[UBI] Fix Automation invocation bug
Reporters
- Georgios P. Katsikas
Description
Automation service crashes during initialization
TFS deployment settings
- context, device, service, pathcomp, telemetry, kpi*, analytics, policy, automation
Sequence of actions that resulted in the bug
- just deploy TFS and the service will crash
Document the explicit error
(venv) ubuntu@tfs ~/tfs-ctrl develop ± ./scripts/show_logs_automation.sh
INFO:__main__:Starting...
INFO:__main__:Getting SQLAlchemy DB Engine...
INFO:automation.service.database.AutomationDB:Init AutomationService
INFO:common.tools.database.GenericEngine: Database initalized with DB URL: cockroachdb://tfs:tfs123@cockroachdb-public.crdb.svc.cluster.local:26257/tfs_automation?sslmode=require
INFO:automation.service.AutomationServiceServicerImpl:Init AutomationService
INFO:automation.service.AutomationService:Starting Service (tentative endpoint: 0.0.0.0:30200, max_workers: 200)...
INFO:automation.service.AutomationService:Listening on 0.0.0.0:30200...
WARNING:__main__:Terminate signal received
INFO:__main__:Terminating...
Traceback (most recent call last):
File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/var/teraflow/automation/service/__main__.py", line 94, in <module>
sys.exit(main())
File "/var/teraflow/automation/service/__main__.py", line 88, in main
event_engine.stop()
NameError: name 'event_engine' is not defined
Expected behaviour
- Automation service should bootstrap without issues
Acknowledgements
This work is funded by the European Commission through the HORIZON-JU-SNS-2022 FLEX-SCALE project with grant agreement number 101096909.
Edited by Georgios P. Katsikas