- 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
-
Iustin Pop authored
This patch adds the newly-introduced node flags to the design document, as they currently are missing from there. The patch also reduces the TOC depth to 3, as it was too big. Reviewed-by: ultrotter
-
Iustin Pop authored
Similar to the --disk fixes a while ago, --net is broken too. This patch fixes it. Reviewed-by: imsnah
-
- Mar 10, 2009
-
-
Guido Trotter authored
s/"vnc_bind_address"/constants.HV_VNC_BIND_ADDRESS/ Reviewed-by: imsnah
-
- Mar 09, 2009
-
-
Iustin Pop authored
Currently, the watcher startup sequence does: - open a luxi client - get the instance list - get the node boot ids - open and lock the status file, and: - archive jobs - restart the down instances - check disks This, of course, can lead to problems when a node is (genuinely or not) locked for more than (watcher interval * maximum query clients) time. At that time, the master is completely unresponsive until the node is unlocked and all the watchers exit with error due to the state file being locked by the first instance. This patch reworks the startup sequence to first open/lock the status file, and only then open a luxi client. This should prevent the above case. Reviewed-by: ultrotter
-
Iustin Pop authored
Currently cluster-verify doesn't handle the (admitedly invalid) case where we have reservation for instances that were removed in the meantime. This patch adds a check for this and prevents code errors in cluster-verify in this case: * Verifying node node4.example.com (master candidate) - ERROR: ghost instance \'instance3.example.com\' in temporary DRBD map Reviewed-by: imsnah
-
Iustin Pop authored
Currently the _CreateSingleBlockDev function only raises OpExecError and not BlockDeviceError. This means that we don't release the instance's temporary minors properly, and this creates problems later if the instance is removed without master restart. We could just use OpExecError, but adding it and leaving BlockDeviceError in seems safer. Reviewed-by: imsnah
-
- Mar 06, 2009
-
-
Iustin Pop authored
The instance objects did not get a serial_no field. This patch adds a new constants for the field name and uses it for all three cases (cluster, nodes, instances). Reviewed-by: imsnah
-
- Mar 05, 2009
-
-
Guido Trotter authored
Now it displays: --hypervisor-parameters hypervisor:hv-param=value [ ,hv-param=value ... ] --backend-parameters be-param=value [ ,be-param=value ... ] Sorry for the super-long lines :( Is there a better way to insert spaces without pushing them to the resulting man page? Reviewed-by: iustinp
-
- Mar 04, 2009
-
-
Iustin Pop authored
This patch makes the cfgupgrade script to handle: - instance changes - disk changes - further cluster fixes - adds configuration checks at the end, in non-dry-run mode Reviewed-by: ultrotter
-
Iustin Pop authored
This patch makes cfgupgrade work on empty cluster (i.e. no instances), up to a point that the config file can be converted from 1.2 to 2.0. This is not yet complete, though. Reviewed-by: ultrotter
-
Iustin Pop authored
“copyfile” takes a file argument, so we enable file-completion for it. “gnt-cluster command” takes a command, so we enable command completion. Reviewed-by: imsnah
-
- Mar 02, 2009
-
-
Iustin Pop authored
This patch updates the NEWS file and increases the version to 2.0 rc1. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch export the cluster and node tags to the cluster verify hook scripts. The tags are exported as a space-separated list, which allows easy parsing from the shell (e.g. “for tag in $GANETI_CLUSTER_TAGS; do ...”) and therefore requires the previous “Don't allow spaces in tag names” patch. The patch also fixes a minor line length style problem. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch restricts the use of spaces in tags, as this does not allow nice exporting of tags to environment in hooks. One can use underscores or dashes instead of spaces. Reviewed-by: schreiberal
-
Iustin Pop authored
This updates the iallocator documentation to 2.0, bumps up the iallocator version (and moves a constants to lib/constants.py), and fixes a style on install.rst. Reviewed-by: ultrotter
-
Iustin Pop authored
This fixes a bug introduced in rev 2562 and also fixes the indentation. Reviewed-by: ultrotter
-
Iustin Pop authored
This adds a small paragraph about the “master” role of a node, and fixes a wrong indentation in the bash completion file. Reviewed-by: imsnah
-
- Feb 27, 2009
-
-
Guido Trotter authored
The KVM hypervisor has also code to ensure a list of directories exist. Substitute it with our new utils function. Reviewed-by: iustinp
-
Guido Trotter authored
Some hypervisors (KVM) need RUN_GANETI_DIR to exist even at cluster init time. This patch creates it in InitCluster just before hv parameter checking. Since the code to make list of directories is already repeated twice in the code, and this would be the third time, we abstract it into an utils.EnsureDirs function and we call that one from ganti-noded, ganeti-masterd and bootstrap. Reviewed-by: iustinp
-
Guido Trotter authored
If we're only file based and out volume group is set to "None" there's no point in asking nodes for their volume groups, logical volumes, and drbd devices, and checking those. Reviewed-by: iustinp
-
Iustin Pop authored
This patch changes the RAPI document, and the RAPI resources autogenerated-documentation to restructured text. This meant changing the autogen tool. The new fragment can be included via RST directives, and doesn't need passing through replace-sed-vars. This was also the last sgml document in doc/, so we remove old makefile rules about it. Reviewed-by: imsnah
-
Iustin Pop authored
99% of the epydoc return tags are "@return:", but each of the modified files had one "@returns:" line. We fix this for consistency. Reviewed-by: imsnah
-
Iustin Pop authored
This switches back to the hardcoding of the version number, as we don't yet have a wrapper for rst files that passes them through replace-sed-vars. Reviewed-by: imsnah
-
- Feb 26, 2009
-
-
Iustin Pop authored
I've somehow left these two out. Sorry! Reviewed-by: imsnah
-
Iustin Pop authored
This is a not-complete bash completion file for ganeti commands (gnt-*) and the burnin tool. It is based on previous work by Minghua Ye <yeminghua@google.com> for Ganeti 1.1, which wasn't used because the lack of ssconf keys (which allow easy inspection by the shell of the existing nodes and instances) made it too slow. The file works as expected, however I realized that our custom (like comma-separated, or a=b:c,e:f) options are not very nice for auto-completion. There are a few FIXMEs in the source for that. The file is not installed at make install time, but it should be put in the correct place by packages. Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: iustinp
-