ankaios
ankaios copied to clipboard
CLI could miss UpdateWorkloadState between update and complete state request
If a workload that is in waiting to start state is deleted, it could be that (with the proper timing), the CLI misses the UpdateWorkloadState and declares the workload as removed. This happens because there is a small window between the update and get complete state where the CLI is not listening for the unsolicited messages. The problem was only reproducible with release builds installed over the install script and started as systemd units.
Current Behavior
Expected Behavior
The CLI exits correctly when the workload is deleted.
Steps to Reproduce
- Install Ankaios via the install script
- start server and agent via systemd
-
ank apply
a workload with a dependency which is not available -
ank delete workload
the workload - CLI hangs and waits for the missed message
Context (Environment)
Manjaro Linux Ankaios v0.3.0-rc2
Logs
We checked the logs and the message is sent by the agent and received by the server
Additional Information
Final result
To be filled by the one closing the issue.