- Oct 27, 2008
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
The newer_than variable can be either None or an int, and we normalize it to an integer previously and save it in the 'serial' variable, which should be used instead. Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Currently gnt-backup list exits with the same error code even if can't contact som nodes for backup information. The patch changes it to return 1 instead in this case. Reviewed-by: imsnah
-
Iustin Pop authored
The patch also adds a 'return 0' to a function that was missing it. Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
- Oct 25, 2008
-
-
Iustin Pop authored
This patch converts all of backend.py to epydoc formatting. Reviewed-by: imsnah
-
Iustin Pop authored
The return from this error path is a dict, but the actual return value (on the non-error handling) is a list of dicts. Change accordingly. Reviewed-by: imsnah
-
- Oct 24, 2008
-
-
Iustin Pop authored
Found while reviewing documentation. Reviewed-by: ultrotter
-
Guido Trotter authored
Reviewed-by: iustinp
-
Guido Trotter authored
In the end we ended up taking a slightly different approach for import/export than the one discussed in the design doc, after trying/talking about a few more alternatives. Document this in the document. Reviewed-by: iustinp
-
Iustin Pop authored
This fixes a few doc issues and converts a few docstrings to epydoc. Reviewed-by: imsnah
-
Iustin Pop authored
Currently we launch processes via the shell in a few places only to redirect standard output and error to a log file ("&> $file"). It is better to do such redirection from within RunCmd itself. This patch splits RunCmd in two parts, the setup and the execution part, the latter being implemented in two different functions depending on whether we write to a file or not. We also update the unittests with this new case. Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: killerfoxi
-
Michael Hanselmann authored
At the same time, simplify the interface a bit by not using a tuple. Reviewed-by: killerfoxi, ultrotter
-
- Oct 23, 2008
-
-
Alexander Schreiber authored
Document the new options for gnt-cluster modify and the new queue command. Reviewed-by: imsnah
-
Alexander Schreiber authored
This patch updates the gnt-cluster man page to reflect the current changes to gnt-cluster. Reviewed-by: imsnah
-
Alexander Schreiber authored
Reviewed-by: imsnah
-
Iustin Pop authored
Currently we don't catch the JobSubmittedException (although the code to format it nicely is there). The patch adds the exception name to the catch list and makes --submit work. Reviewed-by: imsnah
-
Iustin Pop authored
We want to export the disk index as some OSes will only want to export the first disk (or the second one, etc.), even if we have multiple disks. The patch also updates the backend.ExportSnapshot docstring. Reviewed-by: ultrotter
-
Iustin Pop authored
Reviewed-by: imsnah
-
Alexander Schreiber authored
Reviewed-by: imsnah
-
Michael Hanselmann authored
It turned out that clients not sending a full request will stop us from responding to further requests. This patch leverages the situation a bit by always forking before handling the request, but we still have DoS situations. Reviewed-by: ultrotter
-
Michael Hanselmann authored
We don't have timers yet, hence waking up is not needed at all. Reviewed-by: ultrotter
-
- Oct 22, 2008
-
-
Oleksiy Mishchenko authored
RAPI: Export beparams as dict. The patch also enables LUQueryInstances to accept beparams as valid field. Reviewed-by: iustinp
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-
Guido Trotter authored
Previously we used to handle only one disk. Now we'll import all the ones present in the export, in order, on the instance's disks. Any disk which was present on the original instance but wasn't exported is just skipped in the target instance. Reviewed-by: iustinp
-
Guido Trotter authored
- Change ImportOSIntoInstance not to get any "os_disk" and "swap_disk" arguments but to accept multiple target images to import, and to return a list of booleans with the result of each import - Change the relevant rpc call and the only caller to conform - Pass arguments to the import script through the environment - Run one import os script for each disk image, passing an IMPORT_DEVICE Reviewed-by: iustinp
-
Guido Trotter authored
We pass the data via the environment rather than on the command line, as API 10 says. All the rest remains the same, and we export just one disk, as the master calls this function for every snapshotted disk. Reviewed-by: iustinp
-
Guido Trotter authored
Rather than just snapshotting the "sda" disk, we'll snapshot all of the instance disks. If we can't snapshot a disk for any reason we'll log an error and proceed anyway: in this case the resulting export will miss a disk. This also changes all the warning messages to self.LogWarning(). Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
- Oct 21, 2008
-
-
Oleksiy Mishchenko authored
Reviewed-by: iustinp
-
Iustin Pop authored
We change some messages which are obviously intended for the user to use the proc.Log* functions instead of (only) the logging ones. We also fix some wrong uses of feedback_fn. Reviewed-by: imsnah
-
Iustin Pop authored
As discussed previously, many of the routinges in cmdlib.py are using logging functions as a carry-over from 1.2 (when these also showed the message on stderr/to the user), instead of actually warning the user. This patch extends the syntax for Processor.LogInfo/LogWarning in order to be easier to use them. Reviewed-by: imsnah
-
Iustin Pop authored
Please configure your editors to strip it, or enable your git hooks... Reviewed-by: ultrotter
-