talos icon indicating copy to clipboard operation
talos copied to clipboard

tracking progress of "action" API calls

Open smira opened this issue 3 years ago • 1 comments

Feature Request

In the talosctl CLI track progress of the operations:

  • reboot
  • reset
  • shutdown
  • upgrade

.. make the UX better by providing the progress of the operation (10% done, failed, etc.), tracking the progress over the reboot as well (if possible) by waiting for the API to be available after an upgrade.

Tracking progress is the default behavior.

Additional flags:

  • --no-wait to restore current fire-and-forget behaviour
  • --debug to stream dmesg from the involved nodes for debugging issues

(NB: this should work with multiple --nodes).

Description

Idea: for upgrade, apply-config (in reboot mode) and reboot we should wait for the node to reboot and come back.

smira avatar May 04 '22 16:05 smira

  • we can use Events API to track the progress
  • apid should be kept running as long as possible, possibly it should have a chance to flush the data before stopping
  • we can add actor ID to the sequence runner and that gets embedded into the event
  • these API calls should return actor ID to the client so that client can filter out events on actor ID

smira avatar Jul 27 '22 16:07 smira