Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Improve VM Status #115

Merged
merged 6 commits into from
Nov 26, 2018
Merged

Improve VM Status #115

merged 6 commits into from
Nov 26, 2018

Conversation

mareklibra
Copy link

@mareklibra mareklibra commented Nov 19, 2018

VM Status is newly more fine-grained and is rendered with an icon.

Error states are farther enriched for

  • links to appropriate 'events' page
  • "tooltip" info about the issue

Fixes: #77
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1649826
Requires: kubevirt/web-ui-components#108

@mareklibra
Copy link
Author

mareklibra commented Nov 19, 2018

vmstatus

@rawagner
Copy link

rawagner commented Nov 19, 2018

This a good chance to merge State and Phase columns imo.

@mareklibra
Copy link
Author

This a good chance to merge Status and Phase columns imo.

Good point. Assuming the new state mapping works correctly, we can remove the Phase column.

@mareklibra
Copy link
Author

Cc @lizsurette , @andybraren

@andybraren
Copy link

Agreed - I'm not quite sure what "Phase" refers to, but it seems close enough to State that they could be merged.

Let me know if you think there should be any other statuses in addition to Running, Off, Error, Cloning, and Warning shown in #77.

@mareklibra
Copy link
Author

The Phase column is removed.
Screenshot above is updated.

@mareklibra
Copy link
Author

Let me know if you think there should be any other statuses in addition to Running, Off, Error, Cloning, and Warning shown in #77

I splitted the Error to VM Error and Pod Error. The first one refers to issues with VM definition, the later one with scheduling or image download. The user is navigated to corresponding (vm vs. pod) Events detail page accordingly.

@andybraren
Copy link

@mareklibra Ah, I can see why the two categories are different. That makes sense.

Since users (hopefully) aren't always going to have many VMs with errors, I think having one "Error" filter that includes "VM Error" and "Pod Error" text variants in the Status column could make sense. How does the below look to you?

1-1-warning

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 21, 2018
@ohadlevy
Copy link

just wondering, what happens with long vm names? (or any other long text attribute)

@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 22, 2018
@andybraren
Copy link

andybraren commented Nov 22, 2018

@ohadlevy I don’t have an easily shareable link to an example at the moment, but the intent is for a “...” ellipsis achieved in CSS using overflow: hidden and text-overflow: ellipsis. This would be a flexible solution that would work even if/when we allow users to add/remove columns in the future.

Each table value should probably also include a title attribute so that the full string appears when hovered.

@ohadlevy
Copy link

ack, foreman project wrote this https://github.com/amirfefer/react-ellipsis-with-tooltip npm package which i believe is what you had in mind.

@mareklibra
Copy link
Author

mareklibra commented Nov 23, 2018

Thanks for these hints, I can open a pull request to openshift/console project to do that generically.

In the meantime: #119

@mareklibra
Copy link
Author

@andybraren , I had to reduce the count of filters to just following:

  • Running
  • Off
  • Other

The last one groups all the remaining statuses like migration, import or error.

The Status column still shows detailed value, including tooltip or link to a related object (like VM events or one of the failing pods).

It would be quite complicated to allow filtering on all specific values since we would need to analyse related objects to determine the status. And these objects are not available for the filter, just the VM object can be used recently.

Enhancing this core OKD feature is possible but pretty complex. I even can't say if maintainers will be happy with this change.
So if more accurate filters are needed, I would implement that in a separate PR/issue.

Please let me know if you are ok with that.

@mareklibra
Copy link
Author

status

VM Status is newly more fine-grained and is rendered with an icon.
Error states are enriched for links to appropriate 'events' page.
@mareklibra
Copy link
Author

mareklibra commented Nov 26, 2018

required web-ui-components changes released within v0.1.9 (#121)

@rawagner rawagner merged commit 4d7c3ce into kubevirt:master Nov 26, 2018
@andybraren
Copy link

@mareklibra The other filters would be useful but I understand that we should avoid the technical complexity, especially if they would make the maintainers unhappy. Glad the new Status improvements are merged. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants