Fix the remarks provided. Also fix haskell and python tests. Oleg Ponomarev (16): Update design document for memory over-commitment Eliminate literal constants mentioned twice for policies Add new memory-ratio ipolicy Update cfgupgrade with memory-ratio ipolicy Allow htools moves that leads to memory over-commitment Update pMem to deal correctly with memory over-commitment Update cfgupgrade test Implement hv_state_static support in objects.py and update test mocks Implement hv_state parameter in Haskell Query Account hv_state param in Luxi HTools backend Update man pages related to memory over-commitment Add GetFilledHvStateParams to python config module Allow memory over-commitment in cluster verify Account hv_state param in IAllocator htools backend Account hv_state param in Rapi htools backend Add htools tests for memory over-commitment
Makefile.am | 4 + doc/design-memory-over-commitment.rst | 45 +- doc/rapi.rst | 5 +- lib/cli.py | 3 + lib/cli_opts.py | 9 + lib/client/gnt_cluster.py | 3 + lib/client/gnt_group.py | 5 +- lib/cmdlib/cluster/verify.py | 27 +- lib/config/__init__.py | 32 +- lib/masterd/iallocator.py | 1 + lib/objects.py | 10 + lib/rapi/rlib2.py | 4 +- lib/tools/cfgupgrade.py | 4 + man/ganeti.rst | 4 +- man/gnt-cluster.rst | 2 + man/gnt-group.rst | 2 + man/htools.rst | 1 + src/Ganeti/Config.hs | 32 + src/Ganeti/ConstantUtils.hs | 23 + src/Ganeti/Constants.hs | 22 +- src/Ganeti/HTools/Backend/IAlloc.hs | 5 +- src/Ganeti/HTools/Backend/Luxi.hs | 12 +- src/Ganeti/HTools/Backend/Rapi.hs | 6 +- src/Ganeti/HTools/Backend/Text.hs | 12 +- src/Ganeti/HTools/Loader.hs | 15 + src/Ganeti/HTools/Node.hs | 53 +- src/Ganeti/HTools/Types.hs | 4 + src/Ganeti/Objects.hs | 47 +- src/Ganeti/Objects/HvState.hs | 60 ++ src/Ganeti/Query/Group.hs | 3 + src/Ganeti/Query/Node.hs | 12 +- src/Ganeti/Query/Server.hs | 2 + test/data/cluster_config_2.17.json | 657 +++++++++++++++++++++ .../htools/hail-alloc-memory-over-commitment.json | 204 +++++++ .../data/htools/hbal-memory-over-commitment-2.data | 13 + test/data/htools/hbal-memory-over-commitment.data | 13 + test/hs/Test/Ganeti/HTools/Node.hs | 7 +- test/hs/Test/Ganeti/HTools/Types.hs | 2 + test/hs/Test/Ganeti/Objects.hs | 30 +- test/hs/Test/Ganeti/TestCommon.hs | 5 + test/hs/Test/Ganeti/TestHTools.hs | 3 + test/hs/shelltests/htools-hail.test | 5 + test/hs/shelltests/htools-hbal.test | 8 + test/py/cfgupgrade_unittest.py | 12 +- test/py/cmdlib/cluster_unittest.py | 8 +- test/py/ganeti.masterd.iallocator_unittest.py | 4 + test/py/testutils/config_mock.py | 4 +- 47 files changed, 1344 insertions(+), 100 deletions(-) create mode 100644 src/Ganeti/Objects/HvState.hs create mode 100644 test/data/cluster_config_2.17.json create mode 100644 test/data/htools/hail-alloc-memory-over-commitment.json create mode 100644 test/data/htools/hbal-memory-over-commitment-2.data create mode 100644 test/data/htools/hbal-memory-over-commitment.data -- 2.6.0.rc2.230.g3dd15c0
