- 14 Feb, 2014 11 commits
-
-
Petr Pudlak authored
The generation is included in hs2py.hs, together with other Haskell to Python code generators. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
The names of the arguments of generated Python methods are derived from Haskell types to be as descriptive as possible. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This involves adding a new sets of variables for the directory. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Directory "lib/rpc/stubs" will contains RPC stubs generated from Haskell. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
The daemon exposes the declared functions in Ganeti.WConfd.Core to RPC clients (currently just 'echo'). Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Also list it in the Haskell datatype, constants, Python constants and test configuration. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
There are no exported functions yet, except for `echo`, which just returns its argument back to a client. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This monad encapsulates working with the daemon and client state, as well as failures and IO operations. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
The main function in this module takes a list of names of functions and uses TH to create an RPC server, represented as a value of type Handler (from Ganeti.UDSServer). This can be readily used to create a daemon that dispatches RPC requests to the given functions. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
In particular, test (de)serialization of "OneTuple". Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
In particular, functions for extracting types of arguments from a function type, and for uncurrying functions with an arbitrary number of arguments. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 13 Feb, 2014 1 commit
-
-
Jose A. Lopes authored
This helper function detects whether an opcode returned a list of jobs (i.e., a result of the type ht.TJobIdListOnly) and in this case it uses 'ganeti.cli.JobExecutor' to wait for the jobs and determine the return code which is based on the return codes of all jobs. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 12 Feb, 2014 3 commits
-
-
Petr Pudlak authored
.. and update the code that uses it. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
Similarly to PY_UNIT, add HS_UNIT to run Haskell coverage only if we have the required modules. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
Since Ganeti now uses luxid for core operations, it needs to be always present. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 06 Feb, 2014 3 commits
-
-
Jose A. Lopes authored
The script 'tools/kvm-ifup-os' configures TAP network interfaces for for instances, routing, DHCP server, etc. Note that this script only configures TAP network interfaces that are used by the instance communication, that is, network interfaces named according to the pattern 'gnt.com.%d', where '%d' is a number unique within a given node. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
... including, user, group, daemonizing code with command line options, integration with the Snap HTTP server, and logic. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Petr Pudlak authored
The Hoogle database is generated to doc/api/hs/ganeti.txt when Haddock is run. The database can be used by developers with a locally installed Hoogle command line tool or for a web installation of Hoogle. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 05 Feb, 2014 1 commit
-
-
Michele Tartara authored
The Node deamon was executed with the wrong gid (gnt-daemons) instead of the one assigned to it by configure.ac. Fixes Issue 707. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 27 Jan, 2014 2 commits
-
-
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>
-
Jose A. Lopes authored
Export documents about 'cluster keys replacement' and 'design file based storage' from the wiki to the repository. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 22 Jan, 2014 1 commit
-
-
Jose A. Lopes authored
Add OS reinstall design doc to the list of design docs in the Makefile, otherwise it does not get compiled when modified, and add it also to the index page of the documentation, where all the other design docs are anchored. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 21 Jan, 2014 1 commit
-
-
Klaus Aehlig authored
For luxid to be feature-complete with respect to masterd, it also needs to answer requests about locks. This includes knowing the fields available for locks. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 20 Jan, 2014 1 commit
-
-
Klaus Aehlig authored
Virtual clusters are an efficient way to test how Ganeti behaves on a large cluster without requiring a large number of machines. Now that more tasks like job replication are done by luxid, provide that functionality in Haskell as well. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 17 Jan, 2014 1 commit
-
-
Jose A. Lopes authored
Fix overridable configure directories, namely, --bindir, --sbindir, and --mandir. Variables 'bindir', 'sbindir', and 'mandir' are exported from 'configure.ac' to 'Makefile.am'. At first, it would seem to be possible to do the following: MANDIR := $(mandir) ... mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR) However, this does not work in the output of 'configure' (i.e., the 'Makefile'), these variables will be reordered: mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR) ... MANDIR := $(mandir) As a result, 'MANDIR' will capture not the exported value from 'configure.ac' but the 'mandir' defined in the 'Makefile'. The solution is explicitly export these variables from 'configure.ac' with different names, namely, 'BINDIR', 'SBINDIR', and 'MANDIR': AC_SUBST([BINDIR], $bindir) AC_SUBST([SBINDIR], $sbindir) AC_SUBST([MANDIR], $mandir) The rest is just fixing the paths and the symlinks in the 'Makefile'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 16 Jan, 2014 2 commits
-
-
Jose A. Lopes authored
Add 'design-2.11.rst' which kvmd and instance shutdown to the top-level documentation and Makefile. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
This adapts various file to make the current master branch the new stable-2.12 branch. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 13 Jan, 2014 5 commits
-
-
Jose A. Lopes authored
Add unit tests for KVM daemon. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
Add manpage for the KVM daemon. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
Add KVM daemon entry point, command-line options, backgrounding, etc Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
Add KVM daemon logic, which contains monitors for Qmp sockets and directory/file watching. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
* add user and group to 'configure.ac', 'Makefile.am' and 'AutoConf.hs.in' * extend 'Daemon' datatype with 'GanetiKvmd' and implement all related functions, such as, 'daemonName', etc. * export KVM daemon name as constant Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 10 Jan, 2014 1 commit
-
-
Klaus Aehlig authored
As 2.10 is the first version from which you can do automatic upgrades, there is nothing to do when going to any other version in the 2.10 branch. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
- 09 Jan, 2014 3 commits
-
-
Jose A. Lopes authored
Design document for KVM daemon which is needed by the instance shutdown detection for KVM. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
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 2 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>
-