- 09 Jan, 2014 2 commits
-
-
Hrvoje Ribicic authored
The RAPI workload script supplies work for the RAPI compatibility tests. The initial version does very little, but can be expanded as needed. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Santi Raffa authored
The Ganeti code style has been stored on the project wiki at: https://code.google.com/p/ganeti/wiki/StyleGuide https://code.google.com/p/ganeti/wiki/HaskellStyleGuide This commit combines the two pages into an .rst file with minimal formatting and language changes. Note that the style guide introduced in this commit does not fit the code base in a number of ways, including: * Some Haskell files have lines longer than 78 characters * Some Haskell files have trailing whitespace * Some Python docstring initial sentences lack punctuation at the end The decision to either change the offending lines to fit the guidelines, to change the guidelines to fit the codebase or to simply ignore the discrepancies is left for other commits to solve. Signed-off-by:
Santi Raffa <rsanti@google.com> Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 20 Dec, 2013 1 commit
-
-
Helga Velroyen authored
This patch adds a couple of utility functions to manipulate the map of master candidate SSL certificate digests. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 18 Dec, 2013 1 commit
-
-
Klaus Aehlig authored
In this example, there are two drbd instances, rendering a total of four nodes ineligible for being offlined. Additionally, the master may not be offlined either, leaving a single candidate. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 17 Dec, 2013 4 commits
-
-
Petr Pudlak authored
The generic part will be reused in WConfd. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
Also create a new module for RPC errors. This allows it to be reused for other clients as well. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
Move rpc.py to rpc/node.py and modify imports in existing code. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Santi Raffa authored
Add Gluster to Ganeti by essentially cloning the shared file behaviour everywhere in the code base. Signed-off-by:
Santi Raffa <rsanti@google.com> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 13 Dec, 2013 2 commits
-
-
Petr Pudlak authored
Currently they are generated only as Strings. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Petr Pudlak authored
Now the file contains the type class declaration as well. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 11 Dec, 2013 1 commit
-
-
Petr Pudlak authored
This will allow WConfD to use the general functions without importing Luxi.hs. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 06 Dec, 2013 1 commit
-
-
Jose A. Lopes authored
This fixes issue 634. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 02 Dec, 2013 1 commit
-
-
Klaus Aehlig authored
In order to allow informed decissions on when to start a job, it is necessary for luxid to keep track of the (active part of the) job queue. Add a scheduler, similar to the config reader, that does this, but also schedules jobs to be executed. At the moment this is just the simple mechanism of starting jobs until a fixed number of running jobs is reached. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 26 Nov, 2013 1 commit
-
-
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>
-
- 22 Nov, 2013 1 commit
-
-
Petr Pudlak authored
This file is used for development to point to code definitions. Apparently this has been broken since Februrary [cc40185c]. The improved version fixes the problem and uses Exuberant Ctags <http://ctags.sourceforge.net/>. It uses "etags" instead of "ctags", so Emacs compatibility should be maintained. The extra suffixes "-osuf" and "hisuf" are used to avoid problems with already compiled object files. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 14 Nov, 2013 2 commits
-
-
Jose A. Lopes authored
Merge code of 'hs2py-constants' into 'hs2py', which requires adding flag '--constants', and merge target 'src/hs2py-constants' into 'src/hs2py' in 'Makefile.am', also updating dependencies and variables. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
This is a transitional step before merging 'hs2py-constants' and 'hs2py'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 12 Nov, 2013 2 commits
-
-
Jose A. Lopes authored
Sort design docs alphabetically in Makefile.am and fix whitespace. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Jose A. Lopes authored
Fixes issue 609. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 08 Nov, 2013 5 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>
-
Jose A. Lopes authored
Add 'AF_INET*' constants to the Haskell 'AutoConf' module, which requires extending the 'm4' invocation with additional substitutions, in the 'Makefile' target for 'src/AutoConf.hs'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add Python script to autotools which prints socket related constants. These constants are a transitional solution for eliminating the Python to Haskell constant generation given that the final solution will require a change in the configuration and, therefore, postponed to 2.11. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
See issue 235. It turned out the feature is a bit more complex than expected, hence this design doc. Signed-off-by:
Petr Pudlak <pudlak@google.com> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 06 Nov, 2013 1 commit
-
-
Jose A. Lopes authored
The idea is to compile (on demand, that is, when necessary) each source file to a normal object file, a coverage object file, a profiling object file, and a test object file. Also, a given Haskell binary is linked with the proper object files. This is achieved with the following Makefile variables: Compilation modes (profiles): 1. HPROFILE enables/disables profiling 2. HCOVERAGE enables/disables coverage 3. HTEST enables/disables 'TEST' preprocessor definition A few words on testing: testing means the problem described in issue 535: https://code.google.com/p/ganeti/issues/detail?id=535. With HTEST enable, ghc will be instructed to define the preprocessor definition TEST, for modules that use '#ifdef TEST'. Haskell binary targets fetch the proper dependencies. They are also '.PHONY' targets so that 'make' does not check for the file timestamp and instead it will always call 'ghc --make ...'. This is not a problem because 'ghc' with the '--make' flag only compiles the necessary object files. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 31 Oct, 2013 1 commit
-
-
Klaus Aehlig authored
In this example, there are 7 nodes, each with capacity for 4 instances. Two nodes are online and host 4 instances each, thus forming a cluster with no free resources. Four additional nodes a standby, and two additional node is offline for other reasons. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 30 Oct, 2013 1 commit
-
-
Hrvoje Ribicic authored
This patch adds a design document for multi-version tests, discussing what they aim to do and how they should be implemented. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 29 Oct, 2013 3 commits
-
-
Klaus Aehlig authored
Describe the current state of the Ganeti dynamic power management tool, hsqueeze, in a man page. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
In this example cluster, there are 6 nodes with capacity for 4 instances each, holding a total of 8 instances. So even after turning off 2 nodes and rebalancing, every node still has capacity for 2 instances. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
Add a new htool, hsqueeze, for dynamic power management. This commit only implements the first useful part: plan (but not executing) taking nodes offline nodes still keeping within the resource limit. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 24 Oct, 2013 1 commit
-
-
Dimitris Aragiorgis authored
Try base InstanceSetParams tests that modify instance's devices with hotplug=True. Add some unittests for kvm hypervisor regarding runtime file manipulation. Based on a sample runtime file search for specific disk and nic entries based on their UUID. Add unittest for kvm device id generation. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 23 Oct, 2013 1 commit
-
-
Santi Raffa authored
test/py/docs_unittest.py tests that the scripts/ folder has been populated and fails otherwise. The following sequence of commands has been failing for this reason since the python bootstrap process changes in 780060cb (or so says git bisect). make clean make py-coverage This commit merely ensures that make will not try to run docs_unittest.py without having generated scripts/ first. Signed-off-by:
Santi Raffa <rsanti@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
- 18 Oct, 2013 1 commit
-
-
Michele Tartara authored
Checking the correctness of the NEWS file syntax is an important part of the check process, but up to now it was only possible as part of a bigger set of tests. This commit creates a Makefile target to run that independently. The developer notes are updated to document this new target. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 17 Oct, 2013 2 commits
-
-
Hrvoje Ribicic authored
As the retrieval of instance information is a tricky operation which affects the way the instance status is calculated, a few tests have been added to ensure its behaviour remains constant. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
For legacy reasons, some instance fields are aliased. The aliases have the same definition but appear under different names. Support for such fields has been added to Query/Common.hs As aliases can cause somewhat harder to find bugs, a new test was added as well. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 16 Oct, 2013 2 commits
-
-
Hrvoje Ribicic authored
Add basic instance querying capabilities to the Haskell codebase. Several fields are present, more to come. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
Bump versions in various places to 2.11 and remove the downgrade code from cfgupgrade. Also adapt cfgupgrade tests. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 15 Oct, 2013 3 commits
-
-
Thomas Thrainer authored
- Bump version numbers to 2.10 in various files - Move implemented designs to design-2.10 Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This patch adds unit tests for LUBackupPrepare. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This patch adds unit tests for LUBackupQuery. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-