- May 13, 2009
-
-
Guido Trotter authored
Even if we cannot modify all of them, they are useful information about the current cluster. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Some fields can be set at cluster init, and perhaps even modifed with SetClusterParams but there's no way to know them. With this patch we export them in the cluster info query. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 11, 2009
-
-
Iustin Pop authored
These were forgotten in commit 01e2ce3a, and caused “make distcheck” to fail. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 07, 2009
-
-
Carlos Valiente authored
This is for Python 2.6 compatibility. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Carlos Valiente authored
The Python interpreter used to run the test cases is hard-coded to be /usr/bin/python. If we use the first one from $PATH instead, it is much easier to test ganeti with other Python versions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 06, 2009
-
-
Guido Trotter authored
These can be set in the defaults file, default to no arguments being passed, and make it easy for local installation to customize the way the ganeti daemons are called. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin <iustin@google.com>
-
Guido Trotter authored
In the example init script we'll execute an optional defaults file to make it easier to add local customizations to the ganeti startup. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin <iustin@google.com>
-
Guido Trotter authored
Currently two of the ;; ending the case bodies are not indented with anything. Reindent all of them to the body of the loop, as it's done somewhere else in the init script. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin <iustin@google.com>
-
- May 05, 2009
-
-
Carlos Valiente authored
Python 2.6 complains about module 'sha' being deprecated. It makes execution of Ganeti commands a bit annoying, and when you run 'ganeti-watcher' in cron jobs, you get a mail message after every execution. Tests pass under under Python 2.6 and Python 2.4. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This allows ganeti-noded to bind only on one interface rather than all the ones on the machine. The default behaviour doesn't change. Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
DRBD 8.3 changes two more things compared to 8.2: - /proc/drbd format changed in multiple ways; the part we're interested is the ‘st:’ to ‘ro:‘ change (in the changelog named as “Renamed 'state' to 'role'” - “drbdsetup /dev/drbdN show” changed the ‘device’ stanza from: device "/dev/drbd0"; to: device minor 0; This patch fixes these both and adds data files and unittests for DRBD 8.3.1. Signed-off-by:
Iustin Pop <iustin@google.com>
-
Karsten Keil authored
This patch adds (and suppresses) the extra ipv4/ipv6 words before the actual address that newer DRBD versions add. [iustin@google.com: slightly changed the patch to conform to style guide, and changed the commit message] Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
In case of missing programs, currently utils.RunCmd doesn't show any information to help debugging, only 'No such file or directory'. This patch adds error handling for the ENOENT case such that at least we have this information in the node daemon logs. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently both hv_fake and hv_kvm implement practically identical code to get the node information. Since future container-like hypervisors will also need this functionality, this patch moves it into the base class (as a separate function) which can then be called from classes which need this info. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 04, 2009
-
-
Iustin Pop authored
Currently we always try to remove the new file, even if the rename succeeded. This patch tracks the existence of the new file and doesn't try to remove it if we managed to rename it. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently, lib/luxi.py used lib/serializer.py for encoding/decoding messages, but the master daemon uses directly the simplejson module. This is wrong as any non-trivial change to serializer.py will break the master daemon. The patch changes masterd to use exactly the same functions as luxi.py for encoding/decoding of messages. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently “gnt-debug submit-job” takes a single argument and has non-trivial startup-costs; in order to exercise the job system, it is better to be able to submit multiple jobs with a single invocation of the script. This patch extends it to take multiple argument, de-serialize the opcodes and then submit all of them as fast as possible, in order to increase pressure on the master daemon. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Alexander Schreiber <als@google.com>
-
Iustin Pop authored
The current validation routine just says "failed", without specifying the node name. This is very confusing, and we should log the node name too. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Alexander Schreiber <als@google.com>
-
Iustin Pop authored
The current implementation of “gnt-cluster getmaster” doesn't work on non-master nodes, which is a regression from 1.2. This patch implements it (again) via ssconf. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Alexander Schreiber <als@google.com>
-
- Apr 27, 2009
-
-
Iustin Pop authored
Reviewed-by: ultrotter
-
- Apr 24, 2009
-
-
Guido Trotter authored
Add the --all argument, and reword a bit the basic information. Reviewed-by: iustinp
-
Guido Trotter authored
Don't show all instances info by default, but require --all to be passed for this time consuming operation. Reviewed-by: iustinp
-
Iustin Pop authored
Since the “list OSes” call is exported via RAPI, this can be used pretty easily to DOS the master daemon during long jobs. The implementation of LUDiagnoseOS makes an RPC call to all nodes; we lock nodes here in order to prevent node removal. However, after closer examination, the worst case is: - we get the list of nodes from the config - another thread removes a node - our RPC queries reach the removed node As this point, if ganeti-noded is stopped or doesn't accept our queries, the RPC call will return failed, and in the current implementation all OSes will become invalid. If we change the ‘failed RPC’ handling to ignore such nodes, this allows us to both remove locking, and to handle transient RPC failures better (not invalidating all OSes). This patch does both these things, with a single drawback: in gnt-os diagnose, the down nodes do not appear at all. I think this is a small drawback, and the alternative is to add them with status failed; this works (3-line patch), but then the output of “list” and “diagnose” will no longer be consistent. As such, my proposal is to not list the nodes. Reviewed-by: ultrotter
-
Iustin Pop authored
When a remote node returns invalid LVM data, we check it, but we don't stop and continue with the rest of the checks (which require a valid volume group). This raises an internal error and breaks verify disks. This seems unchanged for a long while, I don't know why it surfaced just recently. Reviewed-by: ultrotter
-
Iustin Pop authored
When vg_name is not returned at all, we currently abort with an internal error. This is because we don't catch KeyError. This patch adds a custom message for this case, and also adds KeyError to the list of catched exceptions, just for safety. On the other hand, we could also just remove this piece of code since it's not used at all the ["dfree"] value. Reviewed-by: ultrotter
-
- Apr 15, 2009
-
-
Iustin Pop authored
This patch adds a couple of both externally and internally reported issues: - missing SGML tags (Issue 54), report and patch by superdupont - wrong variable used in the init.d script, report and patch by Karsten Keil <karsten-keil@t-online.de> - man page for gnt-instance reinstall needs clarification (Issue 56) - gnt-instance man page missing --disks documentation for replace-disks - gnt-node modify help output is unclear about the -C/-D/-O input format, and the man page doesn't document this command at all - “gnt-node modify -C yes” for offline or drained nodes had wrong error message - “gnt-instance reinstall --select-os” has wrong prompt, we only accept a number for the OS and not the template name Reviewed-by: ultrotter
-
- Apr 14, 2009
-
-
Alexander Schreiber authored
Reviewed-by: iustinp
-
- Apr 08, 2009
-
-
Iustin Pop authored
Burnin tests were successful, release rc3. Reviewed-by: imsnah
-
- Apr 07, 2009
-
-
Iustin Pop authored
This patch changes the way documentation is built in order to distribute the generated output in the 'dist' archive, and thus no longer requiring the presence of the docbook/rst toolchains during build time. This will lower the requirements for installation and also makes the build time insignificant. First, we remove the docbook2pdf rules and variables, since we no longer build this kind of docs. Furthermore, the rst source files are not (today) processed via replace_vars_sed, so the whole .in rules for doc/ go away. Next, we change the ".sgml|.rst -> replace_vars_sed -> .in -> processor -> final file" processing to ".sgml|.rst -> generator -> .in -> replace_vars_sed -> final file"; this means we first process the file using the formatter, with the @VARIABLE@ entries in it, and save the output as .in; this output we distribute, and on the user side, the replace_vars_sed will use the new configure flags to transform the (almost final .in form) to the final form, without needing the toolchain. In configure.ac we also change from ERROR to WARN for the documentation generators, and extra tests in Makefile.am check that the programs have been found. This was tested with distcheck and works as expected. Reviewed-by: ultrotter
-
- Apr 06, 2009
-
-
Iustin Pop authored
This patch raises an error in the master daemon in case the user requests a locking query; accordingly, all clients were modified to send only lockless queries. This is short-term fix, for proper fix the clients should be modified to submit a job when the user request a locking query. The other approach would be to ignore the flag passed by the client; this would be worse as client's wouldn't get at least an error. The possible impact of this is multiple: - some commands could have been not converted, and thus fail; this can be remedied easily - the consistency of commands is lost; e.g. node failover will not lock the node *while we get the node info*, so we could miss some data; this is again in the thread of atomic operations which are missing in the current model of query-and-act from gnt-* scripts Reviewed-by: imsnah, ultrotter
-
Iustin Pop authored
Currently the watcher spews errors message on non-master nodes. This cleans it up. Reviewed-by: imsnah
-
Iustin Pop authored
As per the mailing list discussion, this patch changes the watcher to use a single job (two opcodes) for getting the cluster state (node list and instance list); it will then compute the needed actions based on this data. The patch also archives this job and the verify-disks job. Reviewed-by: imsnah
-
Iustin Pop authored
This patch fixes the Xen soft reboot ("xm reboot") via polling for a specific time for either changed domain ID or decreased CPU run-time. This sould prevent the race-conditions discussed on the mailing list for reboots. Reviewed-by: imsnah
-
Iustin Pop authored
Since the cluster tags are/should be more-or-less static, add them as an ssconf key, so that querying them is possible without creating a job/requiring the masterd to be running. Reviewed-by: imsnah
-
Iustin Pop authored
This patch will log data about queries, which are today completely invisible (at the default log level) in the master log file. Reviewed-by: imsnah
-
- Mar 27, 2009
-
-
Iustin Pop authored
This updates the NEWS file and bumps up the version number. Reviewed-by: ultrotter
-
- Mar 20, 2009
-
-
Guido Trotter authored
Allow expressions longer than one character to match. Reviewed-by: imsnah
-
Guido Trotter authored
set timeout_needs_update to False after calculating the timeout. Reviewed-by: imsnah
-
Guido Trotter authored
# gnt-cluster queue foo Failure: prerequisites not met for this operation: Command 'foo' is not valid. Reviewed-by: iustinp
-
- Mar 12, 2009
-
-
Guido Trotter authored
There is a bug in kvm, when binding vnc to a specific address the constant 'vnc_bind_address' is passed in, instead of the actual requested address. This patch fixes it. Reviewed-by: iustinp
-