- Jan 28, 2010
-
-
Iustin Pop authored
This patch adds a configure-time parameter that will set the defaults used by all programs, and command-line parameters in the daemons that allow overriding it. Syslog 'yes' enables syslog in addition to file-based logging, 'only' enables syslog and disables file-based syslog. The log entries will be of the form: Jan 27 08:45:04 node2 ganeti-noded[14504]: INFO 172.24.227.5:50850 PUT /jobqueue_update HTTP/1.0 200 Jan 27 08:45:05 node2 ganeti-noded[14505]: INFO 172.24.227.5:50853 PUT /lv_list HTTP/1.0 200 and (for a multi-threaded program): Jan 27 08:51:48 node1 ganeti-masterd[15491]: (MainThread) INFO ganeti-masterd daemon startup Jan 27 08:51:49 node1 ganeti-masterd[15491]: (MainThread) INFO Inspecting job queue Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 25, 2010
-
-
Iustin Pop authored
Ideally we want to/will have per-device DRBD controls of disk/metadata flushes. In the meantime, we want at least a disable of the barrier functionality for cases where one has battery-backed caches. Background: DRBD has four mechanism of handling ordered disk-writes. From the drbdsetup man-page, these are: barrier, flush, drain and none. DRBD prior to 8.2 only has drain and none. This patch makes all 8.x versions of DRBD disable all methods, and revert to none, in case one fully trusts batteries (either UPS for the whole system or battery for NVRAM). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 14, 2010
-
-
Michael Hanselmann authored
Look it up at configure time instead. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This partially reverts commit e4e7c7df, which made newer pylint versions fail. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 13, 2010
-
-
Michael Hanselmann authored
That is, all Python code except unittests. In particular, autotool/build-bash-completion was missing from the previous list. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 12, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 05, 2010
-
-
Iustin Pop authored
This allows automated builders to override the format, for example. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Jan 04, 2010
-
-
Iustin Pop authored
This runs pylint over all the python files. Yes, it takes a long while, but it's the only way to properly analyze the source codes as only in this way pylint can see all uses of the various modules/classes/etc. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This adds targeted pylint disables, but since _autoconf.py is autogenerated we need to do this in Makefile.am (hence the separate patch). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Dec 05, 2009
-
-
Iustin Pop authored
Patch 4352bf6d changed RAPI docs to RST from the previous SGML format (the last file to be converted to RST). However, it didn't add rapi.rst to the docrst Makefile variable, and as such rapi.html was neither build nor shipped in the archive. We fix this and we also distribute doc/rapi-resources.gen since otherwise “make distcheck” has issues (since this file is built and thus lives in _built whereas rapi.rst is shipped and lives in topsrcdir). Note: yes, this means that no 2.0 release until now had a rapi.html file (in the .tar.gz archive). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 25, 2009
-
-
Michael Hanselmann authored
Comparing a number with None is not a good idea: >>> (0 < None, 0 > None) (False, True) This patch also adds build-bash-completion to the list of checked Python scripts and wraps one line of more than 80 characters. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 13, 2009
-
-
Michael Hanselmann authored
This makes it easier to catch warnings. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 11, 2009
-
-
Michael Hanselmann authored
- Program paths should not be --with-… options (see Autoconf docs) - Simplify checks for escape functionality - Make SOCAT_USE_ESCAPE variable a bool Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 06, 2009
-
-
Iustin Pop authored
Since this is easily configurable at run-time, we remove the configure-time parameter. If anyone is building custom packages, then the default can be tweaked by a one-line patch to constants.py. Note that this also fixes the type of parameter, the default from _autoconf.py is a string parameter. Shouldn't matter except if a cluster run code between commit 78411c60 and this one. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 05, 2009
-
-
Michael Hanselmann authored
Until now, Ganeti started and stopped its own daemons using custom functions. To start, the daemon was just executed and then sent the appropriate signals to stop it again. Init scripts would have to pay attention to the PID file and other things. With this patch, a new script is added (“daemon-util”, installed in $prefix/lib/ganeti/), centralizing the starting and stopping of daemons. The provided example init script is adjusted to use this new script. Ganeti's code no longer calls its own init script. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
Currently we use a static value for the socat path, or we trust the user-provided one. With this patch we still trust any user provided value, but if none is passed we check for socat on the machine we're being configured on. This allows us also to check if we can or cannot use the escape= feature in socat. If the user has forced the path in, he can also pass --with-socat-escape in order to force the escape functionality to be used, even if a check is not done. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 03, 2009
-
-
Iustin Pop authored
This reverts commit 37fc2cf5, since it introduces configure.ac changes that depend on very very new autoconf macros that are not present in current stable distros (and it was not advertised as such). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This requires git and lockfile-progs, and only backs up config.data (see the comments why). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Currently we use a static value for the socat path, or we trust the user-provided one. With this patch we still trust any user provided value, but if none is passed we check for socat on the machine we're being configured on. This allows us also to check if we can or cannot use the escape= feature in socat. If the user has forced the path in, he can also pass --with-socat-escape in order to force the escape functionality to be used, even if a check is not done. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Oct 28, 2009
-
-
Michael Hanselmann authored
Also use grep only to convert find's output to an exit status. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Our admin guide was very very trivial. This patch updates it to contain advice on when to use which commands, removes the instance administration part from the installation guide (moved to the admin guide), and adds a walkthrough document that should be useable as a starting point for new admins. The patch also adds emacs variables to the documents, and rewraps some which were not already at 72 chars. The doc updates also show backwards-compatible commands for Ganeti 2.0, as we don't have a good up-to-date 2.0 document and people might refer to this set of documentation even when running that. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 27, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This was implemented in 350ecfec and reverted in 700bb843 after it broke “make distcheck”. With other changes in this patch series this will work now. Contributing to the original problem was that the news.rst file was not distributed. When we distribute the build documentation, the source must also be included (see Automake manual). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This patch also adds an explicit list of all files written by sphinx (“docoutput”). By using an explicit list the build process is more predictable and will allow us to include the NEWS file again. 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:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Oct 26, 2009
-
-
Guido Trotter authored
Since we have this variable and use it in other places, remove the only leftover hardcoded place. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Oct 22, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Ken Wehr <ksw@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Oct 12, 2009
-
-
Michael Hanselmann authored
The timeout is always between ~0.1 and ~10.0 seconds. A small variation of ±5% is added to prevent different jobs from fighting each other. After 10 attempts to acquire the locks with a timeout, a blocking acquire is made. Lock status reporting will be improved in a separate patch. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Oct 05, 2009
-
-
Jun Futagawa authored
This patch adds three optional parameters: - 'use_bootloader', whether use or not the bootloader - 'bootloader_path', absolute path to the bootloader - 'bootloader_args', extra arguments to the bootloader Syntax: gnt-cluster modify --hypervisor-parameters \ xen-pvm:bootloader_path=/usr/bin/pygrub,use_bootloader=False gnt-instance modify -H use_bootloader=True instance1.example.com If use_bootloader is True, each domU can boot with its own kernel instead of using the dom0 kernel. Signed-off-by:
Jun Futagawa <jfut@integ.jp> Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by: ultortter
-
- Sep 29, 2009
-
-
Guido Trotter authored
Some basic tests for the confd client library Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 25, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 24, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 21, 2009
-
-
Michael Hanselmann authored
This reverts commit 350ecfec. It broke distcheck. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Sep 18, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-