Add a --commit option to 'gnt-instance add' to allow committing a forthcoming instance. Note that this currently is only the basic functionality: all parameters of the real instance are taken from the OpCode (and hence have to be present there). A convenience wrapper taking missing values from the forthcoming instnace itself might be added in a forthcoming patch series.
Klaus Aehlig (10): Add OpParam pForthcoming Extend OpInstanceCreate by pCommit Support replacing an instance on creation Support replacing a disk in the configuration Add a function to change disks to real Support committing instances Add a --commit option Support the forthcoming flag in instance generation Support --commit in gnt-instance add Document gnt-instance add --commit lib/cli.py | 7 +++ lib/cli_opts.py | 6 +++ lib/client/gnt_instance.py | 1 + lib/cmdlib/instance_create.py | 106 +++++++++++++++++++++++++++++++-------- lib/cmdlib/instance_storage.py | 9 ++++ lib/config/__init__.py | 32 +++++++++--- man/gnt-instance.rst | 6 ++- src/Ganeti/OpCodes.hs | 1 + src/Ganeti/OpParams.hs | 6 +++ test/hs/Test/Ganeti/OpCodes.hs | 1 + test/py/testutils/config_mock.py | 2 +- 11 files changed, 145 insertions(+), 32 deletions(-) -- 2.2.0.rc0.207.ga3a616c
