ankaios icon indicating copy to clipboard operation
ankaios copied to clipboard

CLI could miss UpdateWorkloadState between update and complete state request

Open krucod3 opened this issue 10 months ago • 0 comments

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

image

Expected Behavior

The CLI exits correctly when the workload is deleted.

Steps to Reproduce

  1. Install Ankaios via the install script
  2. start server and agent via systemd
  3. ank apply a workload with a dependency which is not available
  4. ank delete workload the workload
  5. 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.

krucod3 avatar Apr 08 '24 13:04 krucod3