- 26 Nov, 2013 3 commits
-
-
Helga Velroyen authored
This patch removes the python implementation of network queries and replaces it with 'NotImplemented' exceptions. It will be removed completely once all queries are switched to Haskell. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
The master daemon so far still did queries via the python implementation. This patch implements that it uses the haskell implementation and removes the node queries from the list of OP-queriable entities. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Helga Velroyen authored
Switching from python to haskell queries, this patch removes the option to dis/enable the haskell queries at configure time. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 14 Nov, 2013 1 commit
-
-
Thomas Thrainer authored
Ganeti does not support optional fields in parameters (hypervisor-params, disk-params, etc.). OpenVSwitch related node parameters were the exception to this rule, which caused numerous problems related to import/export and (de-)serialization. The reason for making those parameters optional in the first place was to disallow them when OpenVSwitch is not used. This was not consistent with other parts of Ganeti, where we allow parameters to be set even though they are not actively used. This patch makes all node parameters mandatory and provides sensible defaults for them. Checks which make sure that certain parameters are not set in some cases were removed, and the tests adapted. Also, the inheritance logic from cluster -> node group -> node was implemented, as it was missing previously. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 08 Nov, 2013 2 commits
-
-
Jose A. Lopes authored
Move Haskell constants from module 'Ganeti.HsConstants', which was a transitional module part of the Haskell to Python constant generation infrastructure, to module 'Ganeti.Constants'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Tear down Python to Haskell constant conversion infrastructure, which includes eliminating the autotool 'convert-constants' and the Haskell module, namely 'Ganeti.PyConstants', which held the converted contants. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 29 Aug, 2013 2 commits
-
-
Jose A. Lopes authored
Haskell to Python constant generation introduced duplicated constants in Haskell. This patch eliminates the duplication and fixes Haskell to import the correct constants, instead of the generated ones. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Jose A. Lopes authored
Rename the generated 'Constants.hs' module, which contains the Haskell constants generated from Python, to 'PyConstants.hs' in order to eliminate duplicated constants in Haskell, a problem introduced by the Haskell to Python constant generation, and to circumvent a problem with import/export of Haskell modules. Add a new module named 'Constants.hs' which imports 'PyConstants.hs' and exports its names. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 05 Mar, 2013 1 commit
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 24 Dec, 2012 1 commit
-
-
Iustin Pop authored
Per offline discussions, this is the first patch of the renames. Tested with "make distcheck", seems to work fine. The only change outside of the renaming is a bit of simplification in the .gitignore rules; otherwise, simply s/htools/src/. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 24 Aug, 2012 1 commit
-
-
Agata Murawska authored
Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 24 May, 2011 1 commit
-
-
Iustin Pop authored
With the merge of the repositories, we can now auto-generate the code for Haskell constants from the Python code. Currently this only handles the basic types (strings and integers). Handling containers such as lists and dictionaries is only possible if we would use a parser such that we recognise the element names. We could extend the convert-constants script if that becomes necessary, right now I'm looking at just the simple constants such as Iallocator modes, instance states, etc. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-