- Apr 30, 2013
-
-
Michele Tartara authored
Mon-collector kept being compiled even if monitoring was disabled during configure. Fixes Issue 441. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 25, 2013
-
-
Guido Trotter authored
Currently this is checked only when distcheck-release is called. Check it in check-news instead, for all versions before the "current" one (as defined by configure.ac) Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 17, 2013
-
-
Guido Trotter authored
We need to do this, so that backend.py doesn't need to import mcpu, and thus indirectly cmdlib. This reduces the size of the node daemon by about half, which is very important as it is pinned in memory. This solves Issue 419. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 11, 2013
-
-
Guido Trotter authored
Due to a bug in 8e55e20f burnin's installation path got changed. Moving tools/burnin to the right makefile target reverts this (while preserving the value of the original commit). Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
We test on two minimal examples, a positive and a negative one, where the possibility to allocate a node depends on whether the disk policy is checked on a per-disk level or on the total amount of disk space requested. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 09, 2013
-
-
Michele Tartara authored
When executed in split user mode, Ganeti requires a specific set of users and groups to be created in the appropriate way. This commit introduces a tool that takes care of that automatically. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 06, 2013
-
-
Iustin Pop authored
Currently the man page build rule is run without ‘-e’, so the actual checks in there are just warnings (check-man-warnings, check-man-dashes). The patch fixes this and also fixes the man pages which made me see the problem. Additionally, check-man-dashes is now verbose, otherwise it's hard to find out actually where in the page the error is. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
Currently we only symlink this into two hard-coded directories, which breaks the source code viewing for all the others. The patch replaces this with automatic building; as playing with relative symlinks is non-trivial, I just generate it many times (the file is small enough (<250) that it shouldn't matter, size-wise, and it takes 2ms to do it). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Mar 05, 2013
-
-
Iustin Pop authored
This patch does multiple enhancements to the way we build the Haddock docs, motivated by the fact that if we don't run Haddock over test files as well, bad formatting can be submitted and will accumulate over time (without any checks). The patch does: - replace manual built ALL_APIDOC_HS_DIRS with automatically built one (from HS_DIRS) - change Haddock so that it runs from the top directory (instead of from src/) - change HsColour target file to be built via bash parameter substitution, rather than sed (I don't know how to do it in one go, so I use 2 intermediate variables) - change 'hs-apidoc' target so that it depends on the real target file; in case no source file has been modified, running 'make hs-apidoc' twice will not result in two runs - run HsColour/Haddock under en_US.UTF-8 locale, otherwise they can't parse correctly the Unicode chars in the test files Additionally, wrong formatting (oops) in a test file has been corrected. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Feb 15, 2013
-
-
Iustin Pop authored
Back when this was introduced, I mentioned that it breaks heavily tab completion (ob<TAB> doesn't work anymore), but at that moment I didn't have a suggestion what to name it. I think outils is good and short enough, and doesn't conflict with anything else, so here it goes. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Feb 12, 2013
-
-
Iustin Pop authored
The documentation still points to /etc/ganeti/remote-commands, although the code is already using restricted-command. Update the documentation and a few docstrings accordingly. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Stratos Psomadakis authored
Add unit tests for the RADOSBlockDevice JSON output parsing function, and modify the unit tests for the plain output parsing function to work with the new code. Signed-off-by:
Stratos Psomadakis <psomas@grnet.gr> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Feb 07, 2013
-
-
Iustin Pop authored
When hlint sees a perfectly nice code tree, it will skip generating the reports (both stdout and html). This means that usually the old report will remain in place, so it makes development harder, as the html file is out of sync with the tree. To workaround this, we generate an empty/minimal file in this case. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Feb 05, 2013
-
-
Iustin Pop authored
This would have caught the log file problem fixed in the previous patch (9411474b), for example. Also we test user/group equivalence, name only. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 18, 2013
-
-
Michael Hanselmann authored
Stop hardcoding the path in “hv_xen.py”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
If the placeholder has exactly the same name as the variable used in autoconf it would be replaced as well. In the case of “@ENABLE_SPLIT_QUERY@” this led to the sed command “s#False#False#g”. Inserting additional quotes after the first @ sign prevents this. Since ENABLE_SPLIT_QUERY was not actually used it is removed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Jan 17, 2013
-
-
Michael Hanselmann authored
Documentation with included man pages should not be distributed as it contains fixed paths. Since the documentation with man pages is actually written to a separate directory, tarball creation is still possible. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 16, 2013
-
-
Michael Hanselmann authored
To preserve disk space on copying all files to a temporary directory, the “doc” directory is only copied when building documentation. A comment describing the need is also added to Makefile.am, as well as a superfluous direct invocation of Bash removed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
This commit adds the part of the JSON report generation code that will be common to all the data collectors, according to the format specified in the design document. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
When new a new disk template is added, burnin should be updated. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Similar to other scripts, “tools/burnin” just becomes a wrapper script. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 15, 2013
-
-
Michael Hanselmann authored
This patch depends on “Option to include man pages in documentation”. In the documentation build including man pages, all “:manpage:`…`” references are converted to links. For man pages not provided by Ganeti, Sphinx' standard formatting is used. A small dance is necessary to hook into Sphinx' processing of man page roles and to generate automatically resolved links. The code converts “:manpage:`…`” for known man pages to the data structure equivalent of “:doc:`$name($section) <man-$name>`”. Additionally it checks the section numbers and formatting of references (in all builds). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Before this patch, HTML versions of man pages (man/*.rst) were already built. However, since they are separate from the normal documentation, their content is not indexed for Sphinx' search functionality. Additionally it would simply be nice to have everything in one place. To this end a new configure-time option is added to enable the inclusion of man pages into the documentation. A dedicated option is necessary to still be able to provide a static documentation build in the tarball (not including man pages) as man pages contain build-specific paths and values. The documentation with man pages is written to the directory “doc/man-html”. A future patch will extend Sphinx to link occurences of “:manpage:`…`” to these man pages. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 14, 2013
-
-
Guido Trotter authored
One is the --help output for kvm 1.1.2 and the second one is the same as 0.9.1 but with a fake option added between -drive and its boot=on|off option: this tests that if boot=on|off appears in another option after -drive it is not accepted by our regexp. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 10, 2013
-
-
Michael Hanselmann authored
When man pages should be included they need to be copied from man/*.rst. This means documentation can no longer be built from the static reST files alone (which are referenced using “abs_top_srcdir”). Similar to Python files, automake doesn't copy or link the input files for documentation into the build tree. This patch adds all files required to build the documentation to “srclink_files”, renames the “docrst" variable to “docinput”, and then references the files in the build tree using “abs_top_builddir”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This script checks for some of the most obvious mistakes when formatting man page references (which should have the form “**ganeti**\(7)”). While this works now, it is very hard to avoid ambiguities (e.g. references within verbatim blocks) when using regular expressions. Also fixes a typo in Makefile.am by replacing “harcoded” with “hardcoded”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 09, 2013
-
-
Michael Hanselmann authored
Commit dbee5c92 had a wrong path. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michael Hanselmann authored
Based on MediaWiki's monobook skin. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Bernardo Dal Seno authored
Also amended a comment of a tested method. The tests are for methods introduced in commit 63c73073 (LVM disk creation uses dedicated PVs). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 08, 2013
-
-
Michele Tartara authored
This commits enables the DRBD data collector to use the Confd client to gather information about the pairing between DRBD minors and instances. For testing purposes, the DRBD data collector now requires either zero or two parameters: one is the DRBD file, one is the pairings file. When no parameter is passed, the collector is in "production mode" and takes the data from /proc/drbd and from the Confd client. The shell tests of mon-collector are updated accordingly. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Commit 6aff0514 removed an intermediate step, but forgot to add “footer.rst” as a direct dependency. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This removes entirely the standalone dot files by inlining them in the RST documents - as they weren't referenced from more than one document either way. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
The first dot files we added way back in the 2.0 release are managed manually: we build the .pngs ourselves, track them in .gitingore, etc. Since then, we have switched to allow sphinx to build/manage them itself, so it makes sense to cleanup the build system and covert everything to this simpler method. This patch simply converts from "image: x.png" to "graphviz: x.dot", as an externally-referenced dot file, and removes all the custom makefile rules for png conversion. The next patch will bring the conversion further (by inlining then). Additionally, while checking that the patch doesn't change the html output, I saw that the use of "shape=diamond" with non-trivial labels results in very ugly diagrams; so we split the question in such decision boxes to make them more reasonably looking. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This makes the (very dull) html version of the man pages a bit more readable, until such a time that we can switch over to sphinx fully. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
I don't remember why I introduced these when switching to pandoc, but they are not absolutely needed. Instead of pre-generating them (which might save some trivial cpu time), we can simply pass footer.rst as an additional input file to pandoc. The advantage in doing so is that semantic information is preserved; when pre-generating and including them as-is, the entire structure is lost, as pandoc won't reinterpret them, so things like a potential table of contents will simply ignore the footer. The patch also adds a new target to rebuild all man pages (both groff and html formats), for testing changes to the pages easier. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 07, 2013
-
-
Michael Hanselmann authored
When working on documentation it can be helpful to use a browser. In some environments it's not possible to access the files directly from a graphical browser. This trivial webserver exports all files in the current directory and unlike alternatives such as thttpd, doesn't check for world-readable permissions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Commit acaf3ca7 missed this space before a backslash. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jan 04, 2013
-
-
Michele Tartara authored
The mon-collector binary was erroneously installed twice: once in /usr/bin/ and once in /usr/lib/ganeti/. With this modification, it is now installed in /usr/lib/ganeti/ only, as intended. In order to do this in a proper way, some parts of the Makefile.am where refactored. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Dec 28, 2012
-
-
Iustin Pop authored
This removes one more tab conflict; this is the last module in our code where we have both x.hs and x/. Furthermore, we collapse all actual code into the new Main.hs module, leaving the htools.hs basically empty (will allow better testing in the future). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Dec 27, 2012
-
-
Iustin Pop authored
- gen-coverage → gen-py-coverage - coverage-htools.tix → coverage-hs.tix Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-