ankaios icon indicating copy to clipboard operation
ankaios copied to clipboard

Output of ank apply is flickering

Open windsource opened this issue 10 months ago • 1 comments

Assume an Ankaios manifest with an error inside like:

apiVersion: v0.1
workloads:
  invalidworkload:
    runtime: podman
    agent: agent_A
    runtimeConfig: |
      image: docker.io/busybox:latest
      commandOptions: ["--invalidoption"]

When this is applied using ank apply the output flickers and is hard to read for the user. In regular intervals a newline is added between the header and the table content. See

flickering_ank_apply2

In addition the final output does not contain the cause anymore:

❯ ank apply invalidworkload.yaml
 WORKLOAD NAME     AGENT     RUNTIME     EXECUTION STATE           ADDITIONAL INFO

 invalidworkload   agent_A   podman      Pending(StartingFailed)   No more retries.

which makes it even harder for the user to determine the problem (here the invalid option).

Current Behavior

When ank apply is called and the manifest contains an error a retry is executed and the output between the retries changes its position.

Expected Behavior

The output should not change its position such that it is easier for the user the read it and determine the error source. In addition the final message and also ank get workloads should show the real error message and not No more retries.

Steps to Reproduce

  1. Install Ankaios with the setup script
  2. sudo systemctl start ank-server ank-agent
  3. ank apply invalidworkload.yml (see above for content).

Context (Environment)

  • Ankaios v0.3.0
  • Podman 4.9.3

Logs

Additional Information

Final result

To be filled by the one closing the issue.

windsource avatar Apr 22 '24 10:04 windsource