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

Ganeti Web Manager: Allow units for memory/disk when creating a virtual machine

completed by: CryptWizard

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/1035. 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:

It'd be nice to be able to specify memory and disk using units such as GB or MB instead of being forced to use MB all the time. I believe ganeti will allow that (at least on the command line) but you should check the RAPI to be sure you can pass that info too.

Some examples include:

1GB
1024MB

I'm not sure if you want to include all forms (i.e. G, GB, gb, etc) or force GB/MB. Whatever makes it easier in the backend probably.