ManageIQ / manageiq-providers-embedded_terraform

ManageIQ plugin for the Embedded Terraform provider.
Apache License 2.0
0 stars 11 forks source link

OpentofuWorker preventing system startup on podified if role enabled at boot #81

Open agrare opened 3 weeks ago

agrare commented 3 weeks ago

If the Embedded Terraform role is enabled at boot the OpentofuWorker prevents podified from reaching "server started"

{"@timestamp":"2024-10-28T17:23:21.283454","hostname":"orchestrator-7d77dfcf4-zn9bl","pid":7,"tid":"9718","service":"evm","level":"info","message":"MIQ(MiqServer::WorkerManagement::Kubernetes#wait_for_started_workers) Waiting for the following workers to start: OpentofuWorker (1)"}
{"@timestamp":"2024-10-28T17:32:02.448525","hostname":"orchestrator-7d77dfcf4-zn9bl","pid":7,"tid":"9718","service":"evm","level":"info","message":"MIQ(MiqServer::WorkerManagement::Kubernetes#wait_for_started_workers) All workers have been started"}
{"@timestamp":"2024-10-28T17:32:02.458488","hostname":"orchestrator-7d77dfcf4-zn9bl","pid":7,"tid":"9718","service":"evm","level":"info","message":"MIQ(EvmServer#start_server) Server starting...Complete"}
** Server starting...Complete

I manually marked the OpentofuWorker as started with a system_uid and is unblocked the server startup.

agrare commented 3 weeks ago

Essentially the issue is the fix from this PR https://github.com/ManageIQ/manageiq/pull/23112 isn't running before the MiqServer startup process is completed, the Kubernetes#start_kube_monitor pod / deployment monitor threads aren't running yet.