GSoC/GCI Archive
Google Code-in 2010 Oregon State University Open Source Lab

Ganeti Web Manager: Display correct op for VM job status

completed by: CryptWizard

mentors: Peter Krenesky

Please make sure to submit your patch for this task and to take required notes for it in the OSUOSL issue tracker at http://code.osuosl.org/issues/2529 Required notes would include letting the community know you are working on the issue with a note in the tracker, any notes on progress or difficulties implementing, etc.

For help with this task, contact kreneskyp or ramereth in #ganeti-webmgr on Freenode.

 

Description

So far, all jobs have consisted of a single operation, so simply selecting the first "op" from the list of job statuses returned has been fine, but reinstall consists of a shutdown, then the reinstall, then a startup.
That would be "Instance Shutdown" would be displayed for the entire duration, even when the reinstall or the startup was in progress.
The instance detail page should instead display the first non-successful job.