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

Ganeti Web Manager: cluster should only automatically import virtual machines once

completed by: Jonathan

mentors: Leslie Hawthorn, Greg Lund-Chaix, Peter Krenesky, Lance Albertson, Jeff Sheltren

 

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/609. 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 #osuosl on Freenode. 

Task Description:

Currently whenever a cluster is saved it calls Cluster.sync_virtual_machines() which imports all virtual machines. This should only happen once, the first time it has valid connection credentials. This can be detected by determining if info is None. It should only ever be None if it has never queried ganeti for information before