- Nov 08, 2011
-
-
Michael Hanselmann authored
I passed the timeout calculation function in the wrong field of the definition. A small change is also needed in “build-rpc” to not abort when writing the docstring. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 07, 2011
-
-
Michael Hanselmann authored
This avoids having to override the function in the RPC runner. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This way the generated code no longer contains arbitrary code. Post-processing functions are used by reference. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Until now “autotools/build-rpc” would read the definition of all RPCs and write them to a new file, “lib/_generated_rpc.py” with some modifications. With this patch the generated code loads the definitions and, at module load time, gets references to the actual definitions. Further patches will even remove the calls to the post-processing functions from the generated code. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is in preparation to reducing the amount of generated code. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 02, 2011
-
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Ensures licence and copyright headers are correct. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Nov 01, 2011
-
-
Michael Hanselmann authored
Instead of in-place code now each argument has an (optional) kind assigned. The RPC client will then take care of encoding each argument according to its definition. A new base (_RpcClientBase) is added to take care of encoding and dispatching calls. Future patches will also use these definitions in the node daemon. A nice side-effect of this change is the ability to use stand-alone functions, as opposed to class member methods, for most of the encoding. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Oct 26, 2011
-
-
Michael Hanselmann authored
A new script, “autotools/build-rpc”, will be used to generate code for RPC client wrappers. This is done because “lib/rpc.py” contains lots and lots of boilerplate code. Forthcoming patches will start converting RPC wrappers. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Oct 07, 2011
-
-
Andrea Spadaccini authored
lib/constants.py * add to each CV_E* tuple the documentation of the error code * add the DOCUMENTED_CONSTANTS constant for the doc preprocessor autotools/docpp * add a new directive class CONSTANTS_<kind>, that gets data from constants.DOCUMENTED_CONSTANTS lib/cmdlib.py * modify the code that unpacked the CV_E* tuples to ignore the documentation parameter Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
autotools/docpp * handle generic custom directives in the form <class>_<kind> * adapt handling of query fields build/sphinx_ext.py * add the BuildValuesDoc function to output definitions using the sphinx syntax that was already used for query fields * adapt BuildQueryFields to use BuildValuesDoc Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 30, 2011
-
-
Michael Hanselmann authored
This check will abort if one of the standalone modules (currently lib/rapi/client.py and tools/ganeti-listrunner) imports anything from the Ganeti source directory. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Andrea Spadaccini authored
In version 0.21, pylint unified all the disable-* (and enable-*) directives to disable (resp. enable). This leads to a lot of DeprecationWarning being emitted even if one uses the recommended version of pylint (0.21.1, as stated in devnotes.rst). This commit changes all the disable-msg directives to disable. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 25, 2011
-
-
Michael Hanselmann authored
Until now it would only say that there was a line longer than 80 characters, but not where. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 24, 2011
-
-
Michael Hanselmann authored
This saves another 5 kB from the generated script. An old debug comment written to the generated output is also removed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 19, 2011
-
-
Michael Hanselmann authored
… not the global line number. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This grouping, which was a TODO for a long time, reduces the script size by about 5kB. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is just a style check. Option names should be consistent. Since all of them go through the “build-bash-completion” script, this seemed to be a good place. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jul 13, 2011
-
-
Iustin Pop authored
First, auto-generated files were not processed if HsColour thus the 'source' link in Haddock documentation was dangling. Second, we document the original Python constant name in the Ganeti.Constants source, so that it's easily retrievable (as opposed to undoing the name transformation). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- May 24, 2011
-
-
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>
-
- Mar 22, 2011
-
-
Iustin Pop authored
Since we have two sets of coverage data, we make the naming consistent: - doc/py-coverage for Python coverage - doc/hs-coverage for Haskell coverage We also need to exclude some more dirs from the list of checked directories. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Feb 24, 2011
-
-
Michael Hanselmann authored
- All lines matching "@QUERY_FIELDS_${resource}@" in the input will be replaced with a definition list describing the fields for $resource - The core code is kept in the Sphinx extension, so that it could be used from there, too Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jan 18, 2011
-
-
Michael Hanselmann authored
This will detect human errors when setting a release date in NEWS. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 01, 2010
-
-
Adeodato Simo authored
This implements `gnt-group list`. Signed-off-by:
Adeodato Simo <dato@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 30, 2010
-
-
Michael Hanselmann authored
The tilde needs to be escaped and I forgot the space which should be used instead. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 25, 2010
-
-
Michael Hanselmann authored
Don't ask … all I say is distcheck. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 24, 2010
-
-
Michael Hanselmann authored
Only versions of the format “x.y.z” and “x.y.z~(rc|beta)N” (for N>0) are allowed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Currently, the coverage reports include the unittests themselves, and this skewes unfairly the reports, as the coverage for the tests is very high (since they all run). To fix this, we export the ganeti temp dir from run-in-temp-dir, and we use that to exclude the tests directory. The patch also fixes a but related to multiple directories to be omitted (--omit a --omit b is wrong, it needs to be --omit a,b). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 15, 2010
-
-
Iustin Pop authored
This patch removes the last traces of docbook. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Nov 09, 2010
-
-
Michael Hanselmann authored
A new script, autotools/check-tar, is used to check the resulting .tar.gz file for unwanted contents like wrong file owners or permissions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 14, 2010
-
-
Guido Trotter authored
We autocomplete both by nodegroup name and uuid. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 07, 2010
-
-
Michael Hanselmann authored
The completion script for bash has to know about these options. Until now the list was in two places--once in cli.py and once in autotools/build-bash-completion. A shared list is used with this patch. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jul 15, 2010
-
-
Michael Hanselmann authored
Also add unittest. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jun 02, 2010
-
-
Iustin Pop authored
I was wrong, actually LANG-vs-LC_ALL only fixed one case, by mistake. To get proper UTF-8 encoding, we need to enforce any UTF-8 locale. We choose the 'default' of en_US.UTF-8. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Again, check-man :) Commit 5fa16422 removed LC_ALL=C, since that breaks the check. However, with no LANG/LC_* variables, man-db is still broken. We import the new lintian behaviour, i.e. LANG=C (which seems to differ from LC_ALL=C, even with empty environment). I'm not sure of the difference, though. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 23, 2010
-
-
Iustin Pop authored
This option type enforces its value to either True or False, relieving the scripts from manually parsing the values in each function. We also update the bash completion code to use the option type if possible. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 15, 2010
-
-
Iustin Pop authored
First, we don't need to check man pages at sed time, because this means everyone building the package will do - we only need to check at docbook time, which is mostly at developer time. Second, don't force LC_ALL to C, as this breaks newer man-db. I've verified and removing LC_ALL works fine across etch, hardy, lenny aid squeeze/sid. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 12, 2010
-
-
Michael Hanselmann authored
This test doesn't cover everything, but it's better than nothing. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-