- Jan 28, 2008
-
-
Iustin Pop authored
This patch allows the selection of the hypervisor type for the QA process; this is useful when testing hypervisor-independent changes that don't require a Xen setup. The patch also fixes the OS name in the sample QA config file provided. Reviewed-by: imsnah
-
Iustin Pop authored
The new QA tests for instance modify uncovered a bug in the modify initrd operation when setting the initrd to none. Reviewed-by: imsnah
-
- Jan 27, 2008
-
-
Iustin Pop authored
As reported by hypnoce@gmail.com, this is missing a check on None. As we don't care about uppercase, we keep the check simple by removing the lower() call. Reviewed-by: ultrotter
-
- Jan 25, 2008
-
-
Guido Trotter authored
It was wrongly deleted when converting if a in dict.keys(): to if a in dict: Reviewed-by: imsnah
-
- Jan 22, 2008
-
-
Iustin Pop authored
Currently, the tools are installed under $prefix/share/ganeti. This prevents installing other things in a nice way under share/ganeti (like arch-independent OS definitions), therefore we want the tools to live under share/ganeti/tools. A second change is that since these are programs, they would better live under libdir than datadir - we might have to change them later to binaries in which case 'share' is definitely not the way to go. This patch therefore changes the install directory for the tools to $prefix/lib/ganeti/tools. Reviewed-by: imsnah
-
- Jan 21, 2008
-
-
Guido Trotter authored
Those tests were added in the wrong place. This patch removes them. One day we'll implement proper command line regression testing and they should go in there. Reviewed-by: iustinp
-
Guido Trotter authored
This tests both that those two aliases have not been removed and also that aliases handling hasn't been broken. Reviewed-by: iustinp
-
Guido Trotter authored
These aliases are widely used to think of these operations and save some typing too. Even though there is some thought to make start/stop the default operation name I don't think this should happen for 1.2, for now adding it as an alias is fine. Reviewed-by: iustinp
-
Guido Trotter authored
Alias activate_block_devs to activate-disks, for ganeti 1.1 compatibility. Reviewed-by: iustinp
-
Guido Trotter authored
Passing a new aliases dict to generic main we can easily support aliases for compatibility reasons or simply useability. Reviewed-by: iustinp
-
Guido Trotter authored
The upload tool can be used to submit the current code to an arbitrary list of nodes. This helps developers in easily testing their changes before submitting them. Reviewed-by: iustinp
-
Guido Trotter authored
Before iterating over the list of exports present on a node, check that what ganeti returned is actually a list. This solves the case when one of the nodes is down, and an error value is returned. This fixes issue 21 Reviewed-by: imsnah
-
Iustin Pop authored
LVM code sometimes adds an extra separator at the end of the field list. Make the code strip it if exists. Reviewed-by: imsnah
-
- Jan 20, 2008
-
-
Iustin Pop authored
Currently, the function backend._GetVGInfo only checks for errors via the exit code of the 'vgs' command. However, there are other ways of failure so we need to also check for valid output before parsing. Furthermore, the checks on the exit code were reported via a 'raise LVMError', however this exception is not handled anywhere and so the remote caller will not get reasonable data. This patch does two main things: - change the calling protocol for this function to not raise an error, and instead return the same type of argument always (dict) with the requested keys but values changed into None; this allows in the parent rpc call node_info to have valid memory information but "error" value for disk space, if there's an error with disks - check the validity of the output so that in case we fail to parse it, we don't abort with a backtrace in the node daemon but instead return the default result value (containing errors), and log these cases in the node daemon log file We also bump the protocol version to 11. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch does two things: - checks that the result values from call_node_info are valid integer values and aborts otherwise - skips disk space computation for the DT_DISKLESS case The most important point of the patch is the verification of results from the rpc call, as it prepares for a patch that allows failures to be better reported from the remote node. Reviewed-by: ultrotter
-
Iustin Pop authored
The checking of a node's free memory (via rpc.call_node_info) is done in both start instance an failover. This patch abstracts this call, together with the appropriate error handling, into a separate function called _CheckNodeFreeMemory. The patch also has some related changes: - the check is done in prereq and not in exec for start instance - the redundant check in exec for failover has been removed Reviewed-by: ultrotter
-
Iustin Pop authored
The function backend.UploadFile still uses "/etc/hosts" directly instead of the existing constant; this patch fixes this. Reviewed-by: ultrotter
-
Iustin Pop authored
Even if this doesn't have any practical use for actually creating instances, it can be used for very fast burnin and testing just the add/start/stop/remove functionality. This has also revealed a bug in export/import related to diskless instances, so it's educational value is proved. Reviewed-by: ultrotter
-
Iustin Pop authored
Currently the fake hypervisor has hardcoded ‘/var/run’ as a base directory for its store. This patch adds a constant RUN_DIR that is used for both the fake hypervisor and for BDEV_CACHE_DIR. Reviewed-by: ultrotter
-
Iustin Pop authored
The script (which is geared towards Debian) is actually not fully compliant, as lintian generates a warning on it - the S runlevel is not a valid one in the "Stop" stanza. This patch removes "S" from the stop list. Reviewed-by: imsnah
-
- Jan 18, 2008
-
-
Iustin Pop authored
In revision 459 I added a bug in the make dist rule in the sense that the archive will include *all* of test/data directory, including the .svn directory if it exists. This patch fixes that problem and adds a distcheck hook that tests for such errors in the future (files/directories matching the .svn and .git patterns). It also fixes a typo in the NEWS file. Reviewed-by: imsnah
-
Iustin Pop authored
This a merge to trunk of revision 494. Reviewed-by: imsnah
-
- Jan 16, 2008
-
-
Iustin Pop authored
This is a merge from the 1.2 branch Reviewed-by: imsnah
-
Iustin Pop authored
This is a merge from the 1.2 branch Reviewed-by: imsnah
-
- Jan 14, 2008
-
-
Guido Trotter authored
Even though burnin was born just to do that test it now contains a lot more things one might try, so it makes sense to make instance start/stop optional too. This creates a burnin that at the bare minimum tests instance create and remove, if all the --no options are specified, but usually does a lot more. Reviewed-by: iustinp
-
Guido Trotter authored
Instances get exported to a remote node, then removed and imported back to their original nodes. This should be an idempotent option from the instance point of view, and help making sure ImportExport is kept up to date. It will also help making burnin take a lot longer, which is nice to take a nap. "...but I'm doing a cluster burnin...". Unfortunately this subfeature is a bit jeopardized by the fact that the new code can be skipped with the --no-importexport option, but nobody needs to know that, do they? Reviewed-by: iustinp
-
Iustin Pop authored
The burnin code deals with "-t plain", but the command line parser doesn't allow that as an option. This patch fixes this issue. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch fixes two name typos and a style issue (which makes pylint complain). Reviewed-by: ultrotter
-
Guido Trotter authored
Some new paramenters of the CreateInstance opcode are optional (namely kernel_path, initrd_path and hvm_boot_order) but their absence makes the code crash. Fix this by initializing them to a default value if they're not present. Reviewed-by: iustinp
-
Guido Trotter authored
Mac is now a mandatory option for OpCreateInstance. Add it when we call this opcode at import time too. This is a quick fix for the code, but probably more work needs to be done to integrate mac addresses with the import/export functionality in a nice way. Reviewed-by: iustinp
-
- Jan 11, 2008
-
-
Alexander Schreiber authored
This patch adds support for specifying and changing the boot device order for HVM instances. The boot device order specification is ignored for non HVM instances. Reviewed-by: iustinp
-
- Jan 10, 2008
-
-
Guido Trotter authored
The second paramenter of --node was not described in gnt-backup. Add information about it. Reviewed-by: imsnah
-
Guido Trotter authored
Copy it from gnt-instance(8) for uniformity Reviewed-by: imsnah
-
Guido Trotter authored
Reviewed-by: imsnah
-
Guido Trotter authored
Since it's an import the os is implied to be the one which performed the export. No -o option is accepted. Reflect this in the manpage. Reviewed-by: imsnah
-
Guido Trotter authored
Update gnt-backup import to be in line with gnt-instance add about the os disk size option. Thanks to Gunnar Wagenknecht for spotting the issue. Reviewed-by: imsnah
-
- Jan 09, 2008
-
-
Alexander Schreiber authored
First step to support custom boot device order for HVM instances, add a location to actually store that information for the instance. Reviewed-by: iustinp
-
- Jan 08, 2008
-
-
Iustin Pop authored
Reviewed-by: schreiberal
-
Iustin Pop authored
Reviewed-by: schreiberal
-
Iustin Pop authored
This patch modifes the ‘gnt-instance’ instance manpage with the new ‘--kernel’ and ‘--initrd’ options. Reviewed-by: imsnah
-