- Mar 02, 2009
-
-
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
-
- Feb 25, 2009
-
-
Iustin Pop authored
The current implementation of the combining of the instance lists will only do this for instances whose all four-fields match in both hypervisors; however, this is broken for the dynamic fields (state, times) which can change between the invocations of the two different hypervisors if the instance is busy. The patch checks only the memory and VCPUs, and makes mixed clusters work even with 100% CPU instances. Reviewed-by: imsnah
-
Iustin Pop authored
xen-hvm doesn't have KERNEL_ARGS, and I just changed blindly all old extra_args to HV_KERNEL_ARGS. This makes xen-hvm work again. Reviewed-by: imsnah
-
Iustin Pop authored
Since we are quite close to final RPC and hooks APIs, we update the hooks and protocol_version constants. Reviewed-by: imsnah
-
Iustin Pop authored
This also updates the hooks document to 2.0. Reviewed-by: ultrotter
-
Iustin Pop authored
While reviewing the hooks document, I realised we are not correctly exporting the instance properties. This patch fixes: - export the disk and disk template in all LUs, not only (hardcoded) in the instance create - removes the instance create INSTANCE_ prefix on some non-instance variables (those are LU-related, not instance-related) - adds a couple of more variables to other LUs The hook document will be updated in a separate patch. Reviewed-by: ultrotter
-
- Feb 24, 2009
-
-
Iustin Pop authored
This patch removes the extra_args parameter and instead switches the instance to the HV_KERNEL_ARGS hypervisor option. This is a big change, but it's a needed cleanup, this extra parameter on all RPC calls is not generic and we also need to have a persistent value here. Reviewed-by: imsnah
-
Iustin Pop authored
Instead of “instance.hvparams”, we use a shorter “hvp” name to make readability better. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a new hypervisor parameter for the hypervisors that can actually start and instance with external kernels. Reviewed-by: imsnah
-
Iustin Pop authored
This is a no-contents change, this doc will need update to conform to 2.0 message contents (and also the code will need increase to version 2 of the iallocator protocol). Reviewed-by: imsnah
-
Iustin Pop authored
The RST format holds a little bit less information, as all the <file class="directory"> and <userinput> tags are gone, however we're not really losing important context here. And it's way easier to read and update. Reviewed-by: imsnah
-
Guido Trotter authored
Having hvattr descriptions is only confusing for the user, because even if they explain better what an attribute is about, they don't help in deciding what keyword should be used to actually set it. If in the future we want descriptions they should probably live in constants.py, and be displayed together with the key, rather than instead of it. This patch also changes the handling of the vnc console connection description, making compatible work with both kvm and xen-hvm. Reviewed-by: iustinp
-
Iustin Pop authored
This simply makes LUQueryInstanceData return the same information as for a static query when one or both of the nodes are down. Reviewed-by: imsnah
-
- Feb 20, 2009
-
-
Guido Trotter authored
This was forgotten when drained nodes were added. Reviewed-by: iustinp
-
Iustin Pop authored
This would help in generating online-viewable docs, which could link to the man pages. Reviewed-by: imsnah
-
- Feb 19, 2009
-
-
Iustin Pop authored
Note that the RAPI change is in a docstring (i.e. example), not in code. Reviewed-by: ultrotter
-
- Feb 17, 2009
-
-
Iustin Pop authored
This patch also logs the output of the xm commands in case of failures; some corner cases were forgotten in the last redo. Reviewed-by: imsnah
-
Iustin Pop authored
This is not a real update, just a quick pass changing the obvious parts. Reviewed-by: imsnah
-
- Feb 16, 2009
-
-
Iustin Pop authored
This patch adds support for optionally doing the rename burnin test, and adds an example to the sample QA file. To disable, either remove or specify an empty rename target. Reviewed-by: imsnah
-
Iustin Pop authored
There are two issues fixed in this patch: - first, the recent RPC changes caused loss of data in hard reboot type; we weren't reporting any results from the stop/start instance calls; - second, in soft or hard reboots, we didn't initialized the disk physical ID; based on the last state of the instance's disks, this can create a failure in identifying the disks After this patch, burnin works again with reboot, and reports errors correctly. Reviewed-by: imsnah
-
Iustin Pop authored
In rename, we must stop different names in the first and second phases, so we create two different opcodes for this purpose (instead of using the same one twice, which doesn't work). Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
If /proc/drbd can't be opened, this raises an IOError, but all the error-handling behaviour in backend treats only BlockDeviceErrors. This creates a plain failure in cluster verify and in other RPC calls. This patch simply converts EnvironmentErrors into BlockDeviceErrors, and also changes the RPC result for NV_DRBDLIST and its handling to be able to show the error. The other RPC calls work by default now, due the existing error handling. Reviewed-by: ultrotter
-
Guido Trotter authored
Remove it from the suggested development ./configure line Reviewed-by: iustinp
-
Guido Trotter authored
As discussed with 2.0 msdos partition style should be the default in the instance OS, so we're changing the default instance params accordingly. A followup patch will update the debootstrap os. Reviewed-by: iustinp
-
Iustin Pop authored
The recent change (commit 2151) to the watcher to make it handle offline nodes also saves the offline attribute to the state file, but this is not needed and also breaks the checking of the boot ID. This patch simply removes it, restoring the correct behaviour. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds auto-archiving of jobs older than 6 hours to the watcher. Reviewed-by: imsnah
-