Change how hspace reads cmdline args for std specs
authorIustin Pop <iustin@google.com>
Thu, 22 Dec 2011 10:04:50 +0000 (11:04 +0100)
committerIustin Pop <iustin@google.com>
Wed, 11 Jan 2012 11:12:47 +0000 (12:12 +0100)
commit294bb337d84e924c90d9a45102246e5df36c7993
treed09e8a5e22d80a21710aa556ede87981b5a7eda7
parent7da760ca13e64d1e1b4a6f3b02fcd59d0451b08b
Change how hspace reads cmdline args for std specs

For the standard specs, hspace currently takes separate options for
the memory, disk and VCPUs. For the tiered specs, which were
introduced later, it takes a single option with all three values
combined.

This patch adds a backward-incompatible change to the standard spec,
basically moving it to the same single option format, which is a bit
more simple (both in the code and on the command line). This is
"needed" for future changes, where the command line will just
overwrite what we get from cluster, instead of setting the starting
point.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htools/Ganeti/HTools/CLI.hs
htools/Ganeti/HTools/Program/Hspace.hs
man/hspace.rst