Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surfacing VMIs in the UI #310

Merged
merged 8 commits into from Jan 21, 2020
Merged

Surfacing VMIs in the UI #310

merged 8 commits into from Jan 21, 2020

Conversation

yfrimanm
Copy link
Contributor

The purpose of this PR is to surface the need for exposing VMIs in the UI.
Currently, they exist in the CLI, but they are less accessible in the UI, so the initial request suggested there is no logic in "hiding" them from the user.
@openshift/team-ux-leads

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 23, 2019
@yaacov
Copy link
Member

yaacov commented Dec 23, 2019

Imp ref: openshift/console#3821

Copy link
Contributor

@lizsurette lizsurette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, @yfrimanm ! Added a few comments below.

web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
Copy link
Contributor

@andybraren andybraren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great Yifat. 👍

I didn't know much about VMIs before today, but after reading through this PR and the discussion in the docs I agree that this is the best approach (and shouldn't conflict with a "VM Instances" nav item if we end up needing one in the future).

Some rambling comments below. 🙂

web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
@yaacov
Copy link
Member

yaacov commented Dec 24, 2019

Reference implementation of the list view, showing "orphaned" vmis created from the cli:

cc:// @yfrimanm @matthewcarleton @andybraren:

Peek 2019-12-24 14-18


We had finalized into this option and will show 2 parallel columns in the VMs list page, one for each: VMs beside VMIs.

![list of VMIs beside VMs](img/VMsListW_VMIsOp1.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: in the image, none running VMs do not have a "node" or "ip" should be empty or some notice.

@dankenigsberg
Copy link

I don't like the fact that the VM name shows up twice on every line. It violates the Dry principle. This would look worse if the VM name is very long. But I suppose we can drop (what I find as superfluous) VMI name at some point in the future.

@yaacov
Copy link
Member

yaacov commented Dec 29, 2019

I don't like the fact that the VM name shows up twice on every line. It violates the Dry principle. This would look worse if the VM name is very long. But I suppose we can drop (what I find as superfluous) VMI name at some point in the future.

@dankenigsberg @matthewcarleton @andybraren can you think of what we can put instead of the VMI name ?
does a link "VMI detalils" instead of the resource link looks good to you ?

@yaacov
Copy link
Member

yaacov commented Dec 29, 2019

@dankenigsberg @matthewcarleton @andybraren - here is a screenshot of what it will look like without using resource link ... #310 (comment)

Peek 2019-12-29 12-12

@dankenigsberg
Copy link

@dankenigsberg @matthewcarleton @andybraren - here is a screenshot of what it will look like without using resource link ... #310 (comment)

Peek 2019-12-29 12-12

Did you intentionally leave out the VMI badge? I'm fine with showing the badge right next to "details".

{VMI} details

@yfrimanm
Copy link
Contributor Author

Did you intentionally leave out the VMI badge? I'm fine with showing the badge right next to "details".

{VMI} details

In order to avoid the repetition of the name we tried to combine the 2 columns into 1 but that option isn't aligned with badges behavior in the console (which doesn't encourage badges to act as links). Badges in the console are not clickable so the user would not be able to actively interact and follow them.

Following your suggestion, we tried switching the name of the workload with the word 'details'.
The result was a column that accommodates a list of VMIs workloads with the name 'details' for all the VMIs on the list. This is also not aligned with the console's conventions since in the console a badge is followed by the resource name and not by the description.

Please see the attached example that demonstrates the problem.
Op1_PopoverMessageMissingVMI TEST

@dankenigsberg
Copy link

Please see the attached example that demonstrates the problem.

I assume the problem you refer to is the repeated "detailed" is string. I find it more reasonable than duplicated name.

Did you consider how your suggestion behaves with a long vm name (e.g 200 chars)?

@andybraren
Copy link
Contributor

@yaacov A couple of notes on this screenshot (thanks for the recording!):

image

  1. The field label should be No VM like @yfrimanm's design, which aligns with the new No instance label in the Instance column.

  2. @yfrimanm We may want to adjust the popover text since the VMI could have been created within the Console via YAML too (or maybe the Create VM wizard someday). Maybe something like "This VM instance is not managed by a VM resource. Some management capabilities may not be available.". @rmohr @jelkosz could we say something more useful here? Do we want to encourage users to use VMs and not lower-level VMIs in general? How might we persuade them in this popover?

  3. VMI Dedatails page (nit: typo) could be View VMI Details (with no arrow icon) to align with other status popovers in the Console (IIRC, at least in dashboards).

@andybraren
Copy link
Contributor

@dankenigsberg

I don't like the fact that the VM name shows up twice on every line. It violates the Dry principle.

I think it's important to note that one of the Web Console's goals is to help users learn about APIs and the relationships between resources. We know from user research that even CLI users explore the Console to learn about new CRs (like KubeVirt's), so we generally try to reflect the reality of APIs even when they aren't the prettiest.

I agree that seeing the same name twice in a row is a little weird (maybe at the API level VMI names should be different when instantiated by a VM?) but I think @yfrimanm's design is the most appropriate way to show that a "Running" VM has a VMI resource with the same name underneath it. I didn't know that before seeing this PR.

image

If we ever decide to go with Option 4 from the brainstorming doc in the future (where VMIs get their own dedicated nav item and table) then this PR's design aligns very nicely with that as well. We've done something similar to show the relationship between node/host/machine CRs in bare metal clusters.

Replacing the VMI Instance name with "VMI Details" like in @yaacov's latest GIF (screenshot below) prevents users from sorting all VMI names alphabetically (assuming we show "No VM" in the VM column like the design shows, which is true) and makes it less clear that there's an actual VMI custom resource that's "Running" in each table row. I think we should reconsider this approach.

image

Did you intentionally leave out the VMI badge? I'm fine with showing the badge right next to "details". {VMI} details

.... This is also not aligned with the console's conventions since in the console a badge is followed by the resource name and not by the description.

+1, resource badges are always paired with the resource's name today.

Did you consider how your suggestion behaves with a long vm name (e.g 200 chars)?

@yaacov's GIF shows this briefly. This line-wrapping behavior is consistent across all of the Web Console's tables:

image

@yaacov
Copy link
Member

yaacov commented Dec 30, 2019

@andybraren @dankenigsberg hi,

I assume the problem you refer to is the repeated "detailed" is string. I find it more reasonable than duplicated name.

We ended up using {VMI} actual long name, because {VMI} details is console convention for a resource of kind VMI named resource. @andybraren can you help here ?

Did you consider how your suggestion behaves with a long vm name (e.g 200 chars)?

That looks bad :-) it wraps on multiple lines, the same way if we have one column of many with the name, shortening the second name doesn't solve the screen real-estate or DRY problems we have.

Showing | {VM} long name | {VMI} details | and | {VM} ong name | {VMI} long name | takes the same screen space, because the line hight and width stay the same.

using {VMI} details may convey misleading information about the {VMI} detauls resource name, see previous paragraph.

IMHO, If we have long names we will need to solve it regardless of having one or two columns repeating the name ... @andybraren do we have a design to handle very long names ?

The field label should be No VM like @yfrimanm's design, which aligns with the new No instance label in the Instance column.

Yes, the picture you refer to if an effort to see if we can solve the DRY problem using @dankenigsberg 's suggestions.

If we use the "Instance" column to show a {VMI} details link instead of a regular resource link {VMI} name we need to show the name in the "name" coulumn.

In current design and implementation we have "No VM" with popup.

VMI Dedatails page (nit: typo) could be View VMI Details (with no arrow icon) to align with other status popovers in the Console (IIRC, at least in dashboards).

Nice, will fix that in the implementation.

@yfrimanm
Copy link
Contributor Author

yfrimanm commented Dec 30, 2019 via email

@yfrimanm
Copy link
Contributor Author

@dankenigsberg @andybraren @matthewcarleton @jelkosz @rmohr @yaacov @lizsurette @mgoldboi @ohadlevy
Reviewing the latest option with @ohadlevy made us reconsider option 2.

From the user's point of view, the resource kinds VMs and VMIs are both "Virtual Machines". When clicking the left nav tab "Virtual Machines", users might expect to see all "Virtual Machines", regardless of their internal implementation (VMs, VMIs...).

Option 2 shows one column of "Virtual Machines" including all the VMs and also surfaces VMIs (in cases we have VMIs that aren't managed by a VM).

  1. This option solves the DRY problem because there is no duplication of the names: each "Virtual Machine" is showing only one resource link.

  2. This option also educates users to use VMs while still surfacing the VMIs: we'll continue showing VMs and only in cases when users create VMIs that are not managed by VMs, we'll show the VMIs.

@dankenigsberg @mgoldboi WDYT?

Please see attached option2
VMsListW_VMIsOp2

@dankenigsberg
Copy link

@dankenigsberg @andybraren @matthewcarleton @jelkosz @rmohr @yaacov @lizsurette @mgoldboi @ohadlevy
Reviewing the latest option with @ohadlevy made us reconsider option 2.

From the user's point of view, the resource kinds VMs and VMIs are both "Virtual Machines". When clicking the left nav tab "Virtual Machines", users might expect to see all "Virtual Machines", regardless of their internal implementation (VMs, VMIs...).

Option 2 shows one column of "Virtual Machines" including all the VMs and also surfaces VMIs (in cases we have VMIs that aren't managed by a VM).

Oh, I thought that you told me that you'd show a row for every VMI (violating DRY even further).

1. This option solves the DRY problem because there is no duplication of the names: each "Virtual Machine" is showing only one resource link.

2. This option also educates users to use VMs while still surfacing the VMIs: we'll continue showing VMs and only in cases when users create VMIs that are not managed by VMs, we'll show the VMIs.

I don't understand how you surface the VMI object in the typical case, where VMIs have a backing VM.

@dankenigsberg @mgoldboi WDYT?

I can live with Option 1 (secretly hoping that we can hide the VMI name in a follow-up PR)

@yaacov
Copy link
Member

yaacov commented Dec 30, 2019

Oh, I thought that you told me that you'd show a row for every VMI (violating DRY even further).

No, we only show VMI s that are not managed by VM s.

@dankenigsberg we had a discussion with @ohadlevy about option 1 in order to solve your concerns, looking at the problem from @ohadlevy perspective, made us reconsidered option 2.

The things that we discussed where:
1 - When managing VMIs without VM we have a colume full of No VM, this has two drawbacks we identified -
a. No VM is not true, because the user have a "Virtual Machine"
b. We have a column that give no useful information.

2 - The Instance column is confusing because user want to interact with "Virtual machine" not VM and VMI separately.

@yfrimanm and me looked at the options that address @ohadlevy 's concerns, and found that option 2 address both the DRY problem and the No VM problems, while giving access to all the VMI s.

@jelkosz
Copy link

jelkosz commented Dec 30, 2019

Oh, I thought that you told me that you'd show a row for every VMI (violating DRY even further).

No, we only show VMI s that are not managed by VM s.

@dankenigsberg we had a discussion with @ohadlevy about option 1 in order to solve your concerns, looking at the problem from @ohadlevy perspective, made us reconsidered option 2.

The things that we discussed where:
1 - When managing VMIs without VM we have a colume full of No VM, this has two drawbacks we identified -
a. No VM is not true, because the user have a "Virtual Machine"

not really, he does have a VMI and does not have a VM. This design is quite honest about what is actually happening on the backend which I find to be its main strength.

b. We have a column that give no useful information.

I find the information that my VM is transient pretty useful. I understand that we communicate it in a quite talky way though. In case you only have VMIs and no VMs at all, that column is pretty useless I agree.

2 - The Instance column is confusing because user want to interact with "Virtual machine" not VM and VMI separately.

That is not entirely true. One of the reasons we started to work on this feature was to give the user the access to the VMI even if there is a VM around it (mainly for troubleshooting reasons).

@yfrimanm and me looked at the options that address @ohadlevy 's concerns, and found that option 2 address both the DRY problem and the No VM problems, while giving access to all the VMI s.

The more I think of this latest design the more I like it, but it leaves us with two problems (which we can totally address in the context of this design):
1: how to let the user to access the VMI in case it does have a VM around it? (it can be for example a link in VM details since accessing them separately is not a primary use case so does not need to be shown in the main view)
2: how to educate the user about the relationship between the VM/VMI and when to use which? Im sure it can be solved in the context of this design, just not sure how...

@yaacov
Copy link
Member

yaacov commented Dec 31, 2019

1: how to let the user to access the VMI in case it does have a VM around it? (it can be for example a link in VM details since accessing them separately is not a primary use case so does not need to be shown in the main view)

+1 from me on adding a link in detail view :
fedora 02 · Details · OKD(1)

2: how to educate the user about the relationship between the VM/VMI and when to use which? Im sure it can be solved in the context of this design, just not sure how...

I like the option of having an info notice on top of VMI details page alerting users they are not seeing the regular VM resource.

https://raw.githubusercontent.com/openshift/openshift-origin-design/409eae9520210524dd203d940e0d7456a32650bc/web-console/knikubevirt/VMIs/img/Op1_VMI_DetailsViewPlusHint.png

@rmohr
Copy link

rmohr commented Jan 2, 2020

It looks like that extra lane in the Virtual Machine tab is only there to avoid having a Virtual Machine Instances tab. So because we are scared to confuse the user on the tab overview, we add information to the VM list tab which does not make sense:

  1. The user will wrongfully assume that something is not right with a VMI if it shows up on the VM tab without having an associated VM. In practice the VMI will be managed by something else, so it is double confusing.
  2. The user normally does not need the VMI at all in the VM overview, so why adding prominent links there?

I would prefer if we just embrace how the openshift console works right now (just showing all workload types as extra tabs and link them in the details pages) and try to come up with our own usage-concepts once the openshift console workflows as such get modified.

@rmohr
Copy link

rmohr commented Jan 2, 2020

+1 from me on adding a link in detail view :

This is what definitely makes sense. I "think" that these links are normally at the bottom of the details pages, when looking at Deployment, StatefulSet and so on. Consider moving it there, to follow the usual managed-by visualization, which would make things less confusing.

Also consider naming the header Virtual Machine Instance instead of VM Instance.

@yaacov
Copy link
Member

yaacov commented Jan 2, 2020

I "think" that these links are normally at the bottom of the details pages, when looking at Deployment, StatefulSet and so on.

@rmohr the "owner" is listed at the bottom, in this case the link is in the opposite direction from the VM to the VMI it manages ( the VMI is not the owner of the VM it is owned by it ).

p.s.
In the VMI details we will have an owner link at the bottom linking to it's VM or VMIRS

@rmohr
Copy link

rmohr commented Jan 2, 2020

@yaacov I am not sure I can follow. At least in the 3.11 console, which I have open right now, there is a Pods section at the bottom of Deployments where I can see managed entities. The same for StatefulSets.

@yaacov
Copy link
Member

yaacov commented Jan 2, 2020

@yaacov I am not sure I can follow. At least in the 3.11 console, which I have open right now, there is a Pods section at the bottom of Deployments where I can see managed entities. The same for StatefulSets.

I see, I thought you where referring to the "owner".

An "Instances" section at the bottom will look great for VMIRS where one VMIRS manages many VMIs.
IMHO since VMs have just one managed VMI resource it can work on the details section, but now I understand what you are saying 👍

@yaacov
Copy link
Member

yaacov commented Jan 2, 2020

@rmohr can you take a look at openshift/console#3841 , it has a screenshot at the description ?

@yaacov
Copy link
Member

yaacov commented Jan 2, 2020

@yfrimanm @matthewcarleton WDYT about @rmohr suggestion to add an 'VM instanses' section at the bottom ?

hco operator · Details · OKD

@yfrimanm
Copy link
Contributor Author

yfrimanm commented Jan 2, 2020 via email

@matthewcarleton
Copy link
Contributor

Just to confirm @yaacov are we only showing VMIs when they don't have an owner VM? That would represent two scenarios (correct me if I'm wrong):

  1. This was done explicitly by the user and is intended.
  2. This is a result of an error and the VMI exists without the user knowing it's running and using resources. ( I believe this is very unlikely, @rmohr does that sound right?)

Are we confident that a user would go to the VM list to discover the VMI they are looking for? If their VMI is buried deep in the list will they know to look for it?

The best feature of option 1 is it's very educational. It shows the connect between VMs and VMIs. If this isn't a priority then we could look at option 2 and try and resolve some of the issues that still exist there.

@yaacov would the VMI show in the VM details (like you have in the image above)? If so, is it strange to do that and follow what we are doing with for deployments/pods? There will only ever be one VMI there right?

@yaacov
Copy link
Member

yaacov commented Jan 2, 2020

Just to confirm @yaacov are we only showing VMIs when they don't have an owner VM?

Yes.

This was done explicitly by the user and is intended.

Yes, for example, user is using VMIRS (and not VMs) to manage their VMIs , this is intended.

This is a result of an error and the VMI exists without the user knowing it's running and using resources. ( I believe this is very unlikely, @rmohr does that sound right?)

AFAIU this should never happen.

Are we confident that a user would go to the VM list to discover the VMI they are looking for?

I think that the original problem @rmohr had was that he went to the "Virtual machine" tab and did not see his VMIs ( for him "Virtual machines" are VMIs ) ,@rmohr please keep me honest here.

If their VMI is buried deep in the list will they know to look for it?

Users that manage their VMIs using VMIRS will not have VMs at all, only VMIs, so it will be the first "Virtaul machines" they will see in the list.

[ @ohadlevy suggested grouping up VMIs managed by one VMIRS and showing one line in this case like we show containers in a pos. but we do not support VMIRS at the moment ]

The best feature of option 1 is it's very educational. It shows the connect between VMs and VMIs.

Yes, we had a discussion with @ohadlevy about that, my impression from that talk was that for our users "Virtual machines" are VMs and VMIs, one can do some actions that other can't, but basically they are both virtual machines, we should encourage using VMs but if someone uses VMI it's ok, @ohadlevy please keep me honest here.

@yaacov would the VMI show in the VM details (like you have in the image above)?

Current design put it in the overview above the pod item ...
I don't have strong feeling about putting if below like @rmohr suggested ... but It's up to the designer :-)

If so, is it strange to do that and follow what we are doing with for deployments/pods?

I agree, current design put it in the overview.

There will only ever be one VMI there right?

Yes, VM only manage one VMI ( kubevirt/kubevirt#1527 )

@matthewcarleton
Copy link
Contributor

Just to confirm @yaacov are we only showing VMIs when they don't have an owner VM?

Yes.

That would much nicer than listing them all. It would align with users for the most part just interacting with VMs. They won't be confused by all these VMIs in the list.

This is a result of an error and the VMI exists without the user knowing it's running and using resources. ( I believe this is very unlikely, @rmohr does that sound right?)

AFAIU this should never happen.

Interested in hearing from @rmohr on this one, he seemed more convinced.

[ @ohadlevy suggested grouping up VMIs managed by one VMIRS and showing one line in this case like we show containers in a pos. but we do not support VMIRS at the moment ]

Once we see VMIRS in the UI I'd say the more likely way a user would interact with their VMIs created from a VMIRS is from the VMIRS itself b/c we can list all the VMIs it's created. At this point the VM list becomes much more like the Pods list where users wouldn't be interacting with it as much. That's another discussion for another time though :)

Copy link
Contributor

@matthewcarleton matthewcarleton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Just a few content changes :)

web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved
web-console/knikubevirt/VMIs/VMIs.md Outdated Show resolved Hide resolved

In order to let the user get to the VMI even when there is a VM around it, we added a link in the VM details page.

![VMI's details page showing link to its VMI](img/VM_DetailsPageW_LinkToVMI.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a - In this image we have a link to the pod, IIRC we decided to remove this link on Jan 9 mitting, @matthewcarleton please correct me if I'm wrong.

b - In this image the link to VMI is in the same place as owner ... this is very confusing as the VM is the owner of VMI and not the other way around. IIRC we decided to replace the POD link with a VMI link (~top right area) and leave the owner link for the VM owner link (bottom left) as it is now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yaacov ya I think you're right. I believe Fabian said that.
I'm a bit confused, this makes sense to me. If I look at the VMI I see the owner VM if I look at the VM I see the VMI. Maybe I'm not understanding correctly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused, this makes sense to me. If I look at the VMI I see the owner VM if I look at the VM I see the VMI. Maybe I'm not understanding correctly.

VM is the manager of VMI ( e.g. owner )
This is a k8s thing [1] and apply to many resources, in the UI we usually display the owner of a resource in the bottom left.

VMI is a resource that VM mange ( e.g. dependent ):
a - If their are multiple resources - we currently display them as a list at the buttom of the page, for example containers and volumes in the Pod details page.
b - If their is only one, or it's important to show in the top section, we add it to the details on top, like we currently do for Pod in VM details view.

[1] https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/#owners-and-dependents

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and you are proposing we keep the owner for the VM? Is this where we'd possibly see VMIRS in the future? My concern is showing something that is empty all the time, which could lead to confusion.


## Actions available for the VMI

![VMI's available actions](img/Op1Actions.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthewcarleton hi, do we have an example of other resource that use the info banner above the details section ?
( It's will be very helpful to have an implementation reference )


VMIs and VMs will be distinguished between different color badges. VMI badges color are darker (#002F5D) in order to provide proper contrast for low vision users.

![single list view of VMs and VMIs ](img/VMsListW_VMIsOp2.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: The HintBlock component used in the console ( for example in the developer view => +Add page ) does not support closing option.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, well I know there is active work around updating the hint pattern so we will see it eventually 🤞


## Actions available for the VMI

![VMI's available actions](img/Op1Actions.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our design we only show VMI if they have no VM, so users will not have access to a VMI details page if it has a VM that mask it.

@matthewcarleton @yfrimanm do we want to let user access the "VM-like" details page of a VMI that has a VM ( a. it will be a duplication of the VM details view, b. we do not link to it from the list view ) ?
WDYT ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yaacov AFAIR we said we want users to interact with VMs, so IMO, we should allow that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yaacov what happens if I go to the details page of a VM and click on the instance there? Won't I go to the VMI details page?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yaacov what happens if I go to the details page of a VM and click on the instance there? Won't I go to the VMI details page?

in openshift/console#3949 currenlty WIP you will get to an actuall "Virtual Machine Instanse" page, that is a generic page for VMI , not the "Virtual Machine" page, with the dashboards, metrics and events.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I'd vote for the same experience regardless of how you get to the VMI (list view as an orphan or via the VM details page.) Does that make sense?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see what you're saying @yaacov So we don't want to surface VMI in the VM b/c it adds no additional value. We only show VMI details pages when the VM isn't present. That makes sense to me. @yfrimanm WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the vm details page is actually "vm+vmi" details page, when collecting the data to show in the page we take all the data we have from the vm + all the data we have from the vmi, and show a combined view of all the data we have. Linking from the vm details page to the vmi details page is actually linking to the same page if It make sense :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the tricky issue here. So I think we might need to cancel that link. WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the tricky issue here. So I think we might need to cancel that link. WDYT?

looks like it should be a link to pod ( like it was in the beginning ) :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya I think that aligns with how we present it in the list view.
VMI only present if it exists on its own. Otherwise you interact with the VM. I like that more actually b/c then we would surface just the Pod from the VM.
@yfrimanm can you update the designs to reflect this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants