Re: [virt-manager PATCH] manager: show reason together with domain state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/12/2016 03:50 AM, Pavel Hrdina wrote:
> We display this information in the detail page, so let's display it also
> in the manager page.
> 
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  virtManager/manager.py | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/virtManager/manager.py b/virtManager/manager.py
> index 3b908ee..3a14a2b 100644
> --- a/virtManager/manager.py
> +++ b/virtManager/manager.py
> @@ -645,6 +645,9 @@ class vmmManager(vmmGObjectUI):
>          else:
>              name = vm.get_name_or_title()
>              status = vm.run_status()
> +            reason = vm.run_status_reason()
> +            if reason:
> +                status = "%s (%s)" % (status, reason)
>              markup = self._build_vm_markup(name, status)
>              status_icon = vm.run_status_icon_name()
>              hint = vm.get_description()
> @@ -747,6 +750,9 @@ class vmmManager(vmmGObjectUI):
>  
>              name = vm.get_name_or_title()
>              status = vm.run_status()
> +            reason = vm.run_status_reason()
> +            if reason:
> +                status = "%s (%s)" % (status, reason)
>  
>              row[ROW_SORT_KEY] = name
>              row[ROW_STATUS_ICON] = vm.run_status_icon_name()
> 

Hmm. I'm kinda hesitant here because many of reasons (or their labels) are
confusing:

Confusing:
  Paused (User)
  Shutdown (Destroyed)

Now, you and I understand what those all mean, but I guarantee some users will
ask questions. And then there's all the uninteresting states like:

  Running (Unpaused)
  Saves (Saved)
  Running (Restored)

That said I understand some state reasons are very useful, like pausing on IO
error, or any reason the VM crashed. So I think we should whitelist the states
we show in manager window to only be those of particular relevance, like
uncommon events. The details window can continue to show everything

Thanks,
Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux