Skip to content

[4.6/master] ui/instances: show IP address of the VM on the instances page - #1003

Closed
yadvr wants to merge 1 commit into
apache:masterfrom
shapeblue:master-showip-instances-ui
Closed

yadvr wants to merge 1 commit into
apache:masterfrom
shapeblue:master-showip-instances-ui

Conversation

@yadvr

@yadvr yadvr commented Oct 29, 2015

Copy link
Copy Markdown
Member

The UI hides information regarding the IP address of the VM instance in its
detail view, the patch add the IP address column and removes the redundant
display name column.

cc @remibergsma @karuturi @wido @wilderrodrigues @NuxRo

screenshot from 2015-10-29 16-24-38

The UI hides information regarding the IP address of the VM instance in its
detail view, the patch add the IP address column and removes the redundant
display name column.

(cherry picked from commit a1bc5a8)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@wilderrodrigues

Copy link
Copy Markdown
Contributor

Hi @bhaisaab

How to clean the cache in order to see the UI changes? I'm suffering a bit with the PR #996 :)

We are running the management server with Jetty.

Cheers,
Wilder

@yadvr

yadvr commented Oct 29, 2015

Copy link
Copy Markdown
Member Author

@wilderrodrigues if you're running in dev mode, apply the UI git patch; mvn clean install -pl client; then run mgmt server. Alternatively, go to client/target/generated/ and clean the gz files: find . | grep gz$ | xargs rm ; apply the git/patch using patch tool and hard refresh chrome/firefox

@wilderrodrigues

Copy link
Copy Markdown
Contributor

Got it working, @bhaisaab!

I did a full "mvn -P developer,systemvm clean install" and started the management server. Functionality is there. :)

But good to see some more hints on how to do it.

Will test your PR today as well.

Cheers,
Wilder

@wilderrodrigues

Copy link
Copy Markdown
Contributor

Code LGTM! Will run the tests and check the UI later today.

@wido

wido commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

My only concern is, IPv6 is coming as well into CS, are we also going to display that address? For now this seems fine with me, but adding more columns later on makes it very wide.

But looking at the UI chance it's a very simple one.

@jburwell

Copy link
Copy Markdown
Contributor

@wido we can burn the IPv6 bridge when the time comes.

@resmo

resmo commented Oct 29, 2015

Copy link
Copy Markdown
Member

hmm, in a advanced network setup, these IP address would be the private IPs but if it has a static NAT, the VM would also have a public IP.

For a user, it might not be obvious what kind of "IP Address" these are, public or private.

And you removed "displayname"? By mistake?

@yadvr

yadvr commented Oct 29, 2015

Copy link
Copy Markdown
Member Author

@resmo the IP of the first nic, not necessarily public/private. I removed displayname as adding ip address column screwed up the width/alignment issue and it's a redundant column for most people (it would be same as vm name column). I want to know if anyone wants the displayname column and for what use-cases?

@resmo

resmo commented Oct 29, 2015

Copy link
Copy Markdown
Member

Yes I see, but the label "IP address" does not indicate that it is the first NIC's IP address :). It might make sense to change the label to be more precise in that. This is what I wanted to mention.

Regarding displayname, I don't know, but if it has a display name then we should show it. Maybe we can reuse the name row and also add the displayname in a new line or at least as a html title attribute e.g. "http://www.w3schools.com/tags/att_global_title.asp

@yadvr

yadvr commented Oct 29, 2015

Copy link
Copy Markdown
Member Author

@resmo the field value and label is same as on the detail view's Nic tab - the default nic (or nic 1).

I'm sure there are more better ways of fixing the UI. The request to merge this PR is about - is this better than what we already have, and is it useful for most people to have this?

screenshot from 2015-10-29 18-04-44

@resmo

resmo commented Nov 3, 2015

Copy link
Copy Markdown
Member

agreed

@NuxRo

NuxRo commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

@bhaisaab this is awesome! Do you know if the "search box" in the Instances page will also take into account this field? Will make finding VMs easier!

@yadvr

yadvr commented Nov 3, 2015

Copy link
Copy Markdown
Member Author

@NuxRo I can check this tomorrow, I think search box simply queries listVirtualMachines API which does not support filtering by passing an IP argument.

On a related note, I'm working on some UI changes to make it slightly better on how we find information in the UI such as sorting of table (columns), some new views and navigation methods to find resources that are having issues (like finding hosts which are down in a cluster, or finding storage pools that are full visually) which might be useful. So, you can do something like list all VMs and then sort by IP and then find it, or simply search using browser's text search option.

@NuxRo

NuxRo commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

@bhaisaab Thanks for that. The UI is indeed in need of attention.

The problem with listing the VMs is that the UI will only show a few, then as you scroll down it displays more and more. Terribly annoying!
If I would merely go on the Instances page I can use the ctrl+f in Firefox, but this will only work on the 20 or so VMs displayed.

For this reason I have a cloudmonkey script running from cronjob doing a list of all VMs together with all their information (NICs included) and spitting this in an HTML file, but it's a hack... :)

@yadvr

yadvr commented Nov 3, 2015

Copy link
Copy Markdown
Member Author

@NuxRo I did some pagesize and latency comparisons for one of the views/APIs (see: #751 (comment)); I think it's a general issue with expecting to have all the resources in the list but it's not possible to get all the resources as it could block the UI for long or if the network timeouts (or errors out) you'll see nothing. The default pagesize in the UI is set to 20 the last time I checked, we can easily increase this to 50 or 100 without much change in latency and UX.

@NuxRo

NuxRo commented Nov 3, 2015

Copy link
Copy Markdown
Contributor

That would help, I'm all for 100+ :)

@koushik-das

Copy link
Copy Markdown
Contributor

@bhaisaab I think from the UI same value is passed for both name and display name. But if you use the API you can pass different values. The 'name' is set as hostname of the VM. But 'display name' is just a friendly name associated to the VM for easy reference.

I don't think it is a good idea to remove display name from the VM summary page. Or the fields to be displayed in the page should be made configurable. The user may choose what all fields to display in the summary page. The same can hold for the IP address as well.

Also about displaying the IP address I think @resmo raised some valid points. In advanced zone VMs in different isolated networks can have same private IP address. So not sure how it helps user/admin.

@NuxRo

NuxRo commented Nov 4, 2015

Copy link
Copy Markdown
Contributor

@koushik-das You are right, I did not realise the display name was missing from there.
Can't we make that table a bit wider so we can add another column or two?
It seems kind of silly to run with such a narrow design when we all have wide screens.

@yadvr

yadvr commented Nov 4, 2015

Copy link
Copy Markdown
Member Author

@koushik-das I understand removal of the column may not be accepted, but then the UI would look misaligned if I add another column due to strict width issues.

One way could be to make the state column compact by just showing the icons and its values (such as Running, stopped etc) as title/tooltip. I'll close this now, probably open another one in future.

@yadvr yadvr closed this Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants