osrf / cloudsim-widgets

Other
0 stars 1 forks source link

Add UI element while new machines are pending #33

Open osrf-migration opened 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Tully Foote (Bitbucket: Tully Foote, GitHub: tfoote).


When we launch new machines it takes about 2 minutes before they are ready. It would be great to represent this in the UI.

A low level bar would be a 2 minute timer which appears to be the approximate time necessary for it to clone.

A better solution would be to wait for a service to come up. It sounds like the cloudsim webserver could be pinged via javascript for a resource to indicate that the service is available.

@chapulina mentioned she'd looked at this before and might have a prototype started.

osrf-migration commented 7 years ago

Original comment by Hugo Boyer (Bitbucket: hugomatic, GitHub: hugomatic).


Until recently, there was no feedback when launching a new instance, because the new instance never "phoned home" and the portal doesn't poll.

This is changing... new instances are soon going to curl the cloudsim-portal server to download the ssh key. This is a good moment to change the status of the simulator machine, as it happens just before the cloudsim-sim server is started (and soon after ssh is up).

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Assuming that the machine is up and running once they ask for the SSH keys sounds like a good solution to me. Right now, simulators can have the following statuses:

I'm not sure what the transition from LAUNCHING to RUNNING means for AWS, but it doesn't mean ports are responding or that the web server is up. How about we change the status to something like PENDING until the machine asks for the SSH key, and only then change the status to RUNNING?

From the GUI side the changes needed to inform users would be trivial.