harvester / harvester-ui

Harvester UI
Apache License 2.0
26 stars 27 forks source link

fix: Incorrect "Stopping" status in UI #417

Closed morecache closed 3 years ago

morecache commented 3 years ago

While user indicates the desired state to runStrategy in VM spec, It always shows "Stopping" status in harvester UI.

example 1: running: false -> runStrategy: Always example 2: running: true -> runStrategy: Always example 3: runStrategy: Halted -> runStrategy: Always

Signed-off-by: Lin Ma lma@suse.com

morecache commented 3 years ago

Reproducer: 1. cat <<EOF | kubectl apply -f - apiVersion: kubevirt.io/v1alpha3 kind: VirtualMachine metadata: name: cirros spec: runStrategy: RerunOnFailure template: metadata: labels: kubevirt.io/vm: cirros spec: domain: devices: disks:

2. Observe the VM status in UI