- 29 Aug, 2013 3 commits
-
-
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>
-
Jose A. Lopes authored
Add Template Haskell functions that generate a list in Haskell containing all the constants to be generated in Python. This list is an association list mapping the constant name to its Python value, which is stored as a string. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Jose A. Lopes authored
Move some 'PyValue' instances to a separate file so they can be available to other modules which need these instances but do not want to depend on the constants module, which led to compilation constraints. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 27 Aug, 2013 17 commits
-
-
Klaus Aehlig authored
As we also install the nodist_myexeclib_SCRIPTS, we also need to provide symbolic links for them if symlink installation is desired. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This removes the '--no-drbd-storage' option completely from the command line interface. The hugepages design doc still had a left-over reference to --no-lvm-storage, which is removed in this patch as well. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
The logic around the DRBD usermode helper so far was that setting it was only possible when DRDB was not explicitely disabled. This patches changes it in a way that it is consistent to how Ganeti handles the volume group name. Now, the user can specify a DRBD usermode helper independent of whether or not DRBD is enabled or not. She will however get a warning when she sets a helper without having DRBD enabled. The reasoning behind this is that one might want to configure a helper while not yet having set up DRBD completely or while having DRBD disabled temporarily without loosing this piece of configuration. This change was done earlier in the patch series, because I wanted to do the refactoring in two steps, first just transforming the original logic from --no-drbd-storage to --enabled-disk-templates and if that goes well, adjust to the more user-friendly behavior. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This adjusts and extends the QA for 'gnt-cluster modify' with respect to the changes regarding the DRBD usermode helper. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
Upgrading the config with respect to the DRBD usermode helper was so far based on a guess whether or not DRBD is enabled by checking if there are any DRBD instances running. This check can now be replaced to look at the list of enabled disk templates in the cluster's configuration. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
As in the previous patch, the option '--no-drbd-storage' is deprectated, because it is subsumed by the non-inclusion of 'drbd' in the list of enabled disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
Whether or not a particular type of storage is enabled or not is determined by the list of enabled disk templates in the cluster's configuration. This makes the option '--no-drbd-storage' obsolete, because it is subsumed by not including 'drbd' in the list of enabled disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This change makes sure that 'gnt-cluster verify' only checks for the DRBD usermode helper, if DRBD is actually enabled. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This patch factors out the functions that deal with setting and modifying the DRBD usermode helper in cluster.py in order to make them more unittestable. The unit tests are provided as well. No functional changes otherwise. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This patch factors out the functions in gnt_cluster (related to cluster init and cluster modify) which deal with setting / determining the drbd usermode helper to make them more testable. Unit tests for the extracted functions are provided as well. No function changes otherwise. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This patch factors out the function that checks the DRBD usermode helper in bootstrap (cluster init) in order to make it more testable. It also contains the unit tests. Otherwise, no functional changes. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Klaus Aehlig authored
Ganeti now installs all its files into a version-specific directory and only adds symbolic links at the canonical installation places. Nevertheless, make documentation, in particular man pages, still contain the old places, i.e., the places where the symbolic links are added. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Even though the ${PREFIX}/opt/ only came into the design in the review process, it is not the best choice, as /opt is reserverd for manually installed software, but Ganeti intends to be packaged. Use ${libdir} instead, defaulting to ${PREFIX}/lib. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Jose A. Lopes authored
Function '_CheckOutputFields' was receiving three field sets, two of which were simply being merged together. This was complicated and unnecessary. This patch simplifies '_CheckOutputFields' to take simply two field sets. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Constant 'SF_NODE' is a storage field and, therefore, should be in 'VALID_STORAGE_FIELDS'. This patch fixes this and also reference to these constants, namely, in 'cmdlib' and 'qa'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
QA was adding 'SF_TYPE' to a list containing all storage fields (i.e., 'VALID_STORAGE_FIELDS'). However, 'SF_TYPE' is already part of 'VALID_STORAGE_FIELDS', which means this element was occurring twice in the list. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 23 Aug, 2013 3 commits
-
-
Spyros Trigazis authored
Add "MonD data" sub-section. Signed-off-by:
Spyros Trigazis <strigazi@gmail.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
That was forgotten when the parameter was added. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
In commit 807d8853 , new node parameters were introduced in the python world. Add them to the haskell world as well to restore consistency. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 22 Aug, 2013 2 commits
-
-
Klaus Aehlig authored
As of Ganeti 2.10, all files are installed into a single, version specific, directory. In this way, several Ganeti versions can be installed in parallel. Appropriate symbolic links in the search path will be added by the Ganeti upgrade procedure. For the initial installation, however, links in the search path are needed. So make the installation of symbolic links a configure-time option, defaulting to the current behavior, that that installation is visible in the path. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Klaus Aehlig authored
As first step of implementing the new upgrade procedure (see design document), make Ganeti install all files into a single directory, $(prefix)/opt/Ganeti-$(VERSION). Symbolic links outside to this directory will be added (either at install time, or by a version specific install script at upgrade/downgrade time). This will make it possible to have multiple version of Ganeti installed at the same machine, with only one being active. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 21 Aug, 2013 15 commits
-
-
Sebastian Gebhard authored
Fix two grammatical errors in gnt-node man page Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
This will add the new node parameters to the ganeti man page. Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
Extend gnt-node by parameters for OpenvSwitch. --ovs Flag to enable OpenvSwitch, --ovs-name for the name of the OpenvSwitch and --ovs-link for the interface to connect to. Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
This patches adds the needed RPC functions in order to create the OpenvSwitches on the nodes. Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
This patch adds functionality to LUNodeAdd to - check the arguments given. It will warn if no physical link is given and fail if OpenvSwitch is not enabled, but parameters are given - call the RPC to configure OpenvSwitch on the node Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
This is the functionality to create the OpenvSwitches on the nodes. Parameters are given via opcode and checked as well as extended with the defaults. Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
This patch introduces the needed fields for OpenvSwitch parameters into ndparams and also provides the default values. The parameters are: ND_OVS: boolean, to show whether OpenvSwitch is enabled or not ND_OVS_NAME: the name of the OpenvSwitch to create ND_OVS_LINK: the physical link to the OpenvSwitch While ND_OVS and ND_OVS_NAME are mandatory and default to FALSE and constants.DEFAULT_OVS respectively, ND_OVS_LINK is optional and can be left empty. Adding a new node with OpenvSwitch and no physical interface might or might not be what the user wants, so this case will result in a warning to inform the user (see later patch in this series). This patch also fixes unittests which are using these parameters. Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Sebastian Gebhard authored
This design doc adds details about how the autoconfiguration of openvswitch should work in the cluster <-> node group <-> node hierarchy. Parameters that are needed for succesful configration are idenfied and inheritance of parameters is defined. Also, some rephrasing of the definition in the first part of the document. After looking into gnt-network, in my opinion it is not the right place to put the switch management into, since it has more to do with links and nics than with network names and addresses. Signed-off-by:
Sebastian Gebhard <sege@fs.ei.tum.de> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
The enabled disk templates in IPolicies are stricter checked after the merge from 2.9, so adapt the tests to follow those changes. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This patch adds unit test coverage for LUInstanceMultiAlloc. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
This patch adds unit test coverage for LUInstanceRename. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
This patch adds basic unit tests for instance import in LUInstanceCreate. It does not provide full coverage though. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
Introduce a new method of creating a mocked LU for tests, and reduce the use of the legacy _FakeLU class. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
This patch adds unit test coverage for LUInstanceRemove and LUInstanceMove. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
- Move instance related tests to instance_unittest.py - Adapt moved tests to the new test framework where appropriate - Add unit test coverage for LUInstanceCreate - Only instance creation is covered yet, no imports Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-