Add cleanup parameter to instance failover
authorMichele Tartara <mtartara@google.com>
Tue, 30 Jul 2013 11:59:52 +0000 (11:59 +0000)
committerMichele Tartara <mtartara@google.com>
Tue, 30 Jul 2013 13:12:43 +0000 (13:12 +0000)
commitaa7a5c90ab0375f22dca1684b06fd0ced7734588
treec471d9d0da6ee46f097c606c4a1ba3d0c3ddc645
parent3fc743d62c09ef64e932b854050df7b09810cbce
Add cleanup parameter to instance failover

Most of the code is shared with instance migrate, so we actually only need
to add the parameter and pass its value along the the common code.

Also, tests and harep are updated to support the right set of options to
the "failover" opcode.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cli.py
lib/client/gnt_instance.py
lib/cmdlib/instance_migration.py
lib/opcodes.py
src/Ganeti/HTools/Program/Harep.hs
src/Ganeti/OpCodes.hs
test/hs/Test/Ganeti/OpCodes.hs