Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

ps: Add out-of-date VM manifest status indicator #787

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

darkowlzz
Copy link
Contributor

Update ps to check the current status of the VM containers by querying
the runtime and returning the actual status with an indicator for old
status info on disk manifest.

$ sudo ./bin/ignite ps -a
VM ID                   IMAGE                           KERNEL                                  SIZE    CPUS    MEMORY          CREATED         STATUS       IPS              PORTS   NAME
234d704a81a053f9        weaveworks/ignite-ubuntu:latest weaveworks/ignite-kernel:4.19.125       4.0 GB  1       512.0 MB        9m50s ago       *Up 9m50s    10.61.0.4                my-vm2
a6a381776cc6c60c        weaveworks/ignite-ubuntu:latest weaveworks/ignite-kernel:4.19.125       4.0 GB  1       512.0 MB        118m ago        Up 118m      10.61.0.2                my-vm
c19c691a01ba8f01        weaveworks/ignite-ubuntu:latest weaveworks/ignite-kernel:4.19.125       4.0 GB  1       512.0 MB        64m ago         *Up 64m      172.17.0.2               my-vm3

NOTE: The symbol * on the VM status indicates that the VM manifest on disk is not up-to-date with the actual VM status.

The note at the bottom is shown only when there's an out-of-date status in the result.

This will show the actual VM status and help avoid confusing the user when the machine actual state is different from the displayed state.

@darkowlzz darkowlzz added the area/UX Let's make Ignite's UX great! label Feb 28, 2021
Update ps to check the current status of the VM containers by querying
the runtime and returning the actual status with an indicator for old
status info on disk manifest.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/UX Let's make Ignite's UX great!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants