- Jan 23, 2009
-
-
Iustin Pop authored
This patch changes the iallocator framework to work with and properly export to plugins offline nodes. It does this by only exporting the static configuration data for those nodes, and not attempting to parse the runtime data. The patch also fixes bugs in iallocator related to the RpcResult conversion, changes the should_run to admin_up attribute name (as per the internals change), and adds “-I” as a short option for “--iallocator” in gnt-instance, gnt-backup and burnin. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch changes (significantly) the execution model in burnin: - for all runs, (almost) all instance mods in a single Burn* procedure are done as part of a job; so for example add disk, stop, remove disk, start are no longer done as separate jobs but as a single job consisting of four opcodes - for parallel runs, all Burn* procedures except the rename (which uses a single target name) run in parallel; before, only the creation was done in parallel - due to the single-job execution and also parallel execution, the logging messages are no longer happening synchronously with the execution, so they are more informative than an actual execution log The end result is that burnin now tests properly multi-opcode jobs and also tests all opcodes (except rename) for parallel execution. Note: On a test cluster, parallelization reduces burnin time from 23m to 15m. Reviewed-by: ultrotter
-
- Jan 20, 2009
-
-
Iustin Pop authored
The urllib2 module has very bad error handling. This patch changes to urllib which is simpler, and we derive a custom class from the FancyURLopener. Burning is no longer keeping sockets in CLOSE_WAIT state with this patch. Reviewed-by: ultrotter
-
- Jan 16, 2009
-
-
Iustin Pop authored
In case we pass --disk-grow 0[,0..] then we should not call GrowDisks as it prints confusing log lines. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a burnin option to keep instances at the end, so that debugging after a burnin failure is easier. Also, we reorder the command line parsing and client query so that one can use ./tools/burnin --help even on non-ganeti machines. Reviewed-by: ultrotter
-
- Jan 14, 2009
-
-
Iustin Pop authored
Reviewed-by: ultrotter
-
- Jan 13, 2009
-
-
Iustin Pop authored
This is again a copy of the latest 1.2 burnin code related to migration. Reviewed-by: ultrotter
-
Iustin Pop authored
Since we added many more tests in burnin, the output became almost unreadable. This patch changes the output to an indented one, so that the different phases and operations of burnin are more easily understood. Reviwed-by: ultrotter
-
Iustin Pop authored
Traditionally the start/stop test was the last, so move it back to there (added as last option in commit 854). Reviewed-by: amishchenko
-
Iustin Pop authored
This patch adds instance alive checks after most start operations. The check is done in a custom way: - the instance is expected to have an http server up and running - and it should server the '/hostname.txt' resource containing the hostname of the instance This allows checking that: - creation is working OK - start after failover (and in the future migrate) is ok - rename works correctly By default, the check is disabled since one needs a custom OS for this check. The patch also fixes a wrong variable name from a previous burnin patch. Reviewed-by: ultrotter
-
- Jan 12, 2009
-
-
Iustin Pop authored
This patch adds testing of add/remove disks and NICs to the burnin. Reviewed-by: imsnah
-
- Jan 09, 2009
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
This patch updates burnin to the latest replace disks constant, and changes the constants' values to be more accurate. Reviewed-by: imsnah
-
Iustin Pop authored
This patch makes burnin skip the offline nodes in it's builtin node selection. It also removes an extra line. Reviewed-by: imsnah
-
- Dec 02, 2008
-
-
Iustin Pop authored
These two operations were missing from burnin. The reboot is done with all valid modes (a new constant is added), and the reinstall is done both with and without specifying the OS (to account for the two code paths in the LU). Reviewed-by: imsnah
-
Iustin Pop authored
This is currently not supported, so don't try to do export/import in this case. Reviewed-by: imsnah
-
Iustin Pop authored
This allows burnin to work with diskless instances (since we cannot pass right now no disks to it). Reviewed-by: imsnah
-
- Nov 24, 2008
-
-
Guido Trotter authored
Update the call to CreateInstance used in ImportExport to the new API for multidisk/nic. Reviewed-by: iustinp
-
- Nov 21, 2008
-
-
Iustin Pop authored
This looks beter than '0 disk'. Reviewed-by: ultrotter
-
Iustin Pop authored
Reviewed-by: ultrotter
-
- Nov 20, 2008
-
-
Iustin Pop authored
This patch adds support for mult-disk/multi-nic in: - instance add - burnin The start/stop/failover/cluster verify work as expected. Replace disk and grow disk are TODO. There's also a change gnt-job to allow dictionaries to be listed in gnt-job info. Reviewed-by: imsnah
-
- Oct 20, 2008
-
-
Iustin Pop authored
Since now we use only one function from the logger module (SetupLogging), we move it to utils.py (which is already imported by all users of this function), and we remove the module. Reviewed-by: imsnah
-
- Oct 14, 2008
-
-
Iustin Pop authored
The patch adds a new ‘--no-wait-for-sync’ parameter to grow-disk similar to the one in instance add, and changes the default to wait. This is cleaner as at the moment when the command returns, we either have a fully synced disk or there is an error. This is a forward-port of rev 1183 on the 1.2 branch. Reviewed-by: ultrotter
-
Iustin Pop authored
With this patch both the os and the swap disk are grown during burnin. You can pass an increase size of 0 to skip this operation. and: burnin: don't try to grow diskless instances When burnin is run on a diskless instance, it fails when trying GrowDisk, because a non-existant disk cannot be grown. This patch disables the test for that disk template. This is a forward-port of revisions 1181 and 1606 on the 1.2 branch. Original author: ultrotter Reviewed-by: ultrotter
-
Iustin Pop authored
This big patch changes the master code to use the beparams. Errors might have crept in, but it passes a small burnin. Reviewed-by: ultrotter
-
- Oct 06, 2008
-
-
Iustin Pop authored
Since the objects read from the config file are passed to the various threads, it's unsafe to re-read the config file (and throw away ConfigWriter._config_data). As such, we disable the re-reading of the file (since now the master is the owner the file, it makes not sense to re-read it), and any modifications to the file must be done offline, otherwise they will be overwritten. Reviewed-by: imsnah
-
Iustin Pop authored
This patch introduces a simple framework for executing jobs in parallel in burnin (the ExecJobSet function) and the "--parallel" command line flag. The patch also changes the instance creation to run in parallel when the above flag is given. Error handling/instance removal is currently flacky with this options if there are errors in the instance creation. We also modify burnin to reuse a single client. Reviewed-by: imsnah
-
- Sep 18, 2008
-
-
Guido Trotter authored
There is no such feature in trunk yet. Reviewed-by: iustinp
-
- Sep 12, 2008
-
-
Alexander Schreiber authored
Merged from branches/ganeti/ganeti-1.2 r1648 Use static values for new hvm instance flags Reviewed-by: iustinp
-
- Aug 27, 2008
-
-
Iustin Pop authored
This is a result of the log timestamp changes. Reviewed-by: imsnah
-
- Jul 30, 2008
-
-
Iustin Pop authored
The 'old-style' info, error, debug logs do not make much sense. This patch unifies the SetupLogging and SetupDaemon functions. As a result, all the commands logs to a 'commands.log' file. The patch also changes the log setup to keep going if there's an error in setting up the file logging but we're logging to stderr. Also, burnin now logs to its own file (burnin.log). Reviewed-by: ultrotter
-
- Jul 14, 2008
-
-
Iustin Pop authored
Currently, the feedback_fn argument to SubmitOpCode is no longer used. We still need it in burnin, so we re-enable it by making the code call that function with the msg argument in case feedback_fn is callable. The patch also modifies burnin to accept the new argument format (msg is not a triple instead of a string). The patch also removes the ‘proc’ argument as it's obsolete; instead we can accept a luxi.Client instance (noone uses this right now). Reviewed-by: ultrotter
-
- Jul 01, 2008
-
-
Guido Trotter authored
In 2.0 burnin submits job to the master daemon, so it doesn't need to create an internal Processor anymore. Even if the processor is not used anywhere in the burnin code it was still initialized as a leftover of how burnin used to work. Fixing this. Reviewed-by: iustinp
-
- Jun 23, 2008
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Jun 19, 2008
-
-
Michael Hanselmann authored
This change allows us to use cleaner dependencies between directories. The build system is basically rewritten in large parts and may contain bugs. Reviewed-by: iustinp
-
- Jun 15, 2008
-
-
Guido Trotter authored
Currently the iallocator option is ignored by burnin at import/export time even if passed in. With this patch it becomes used. The log message used by the importer is also changed to reflect this. This patch also improves import/export on the non-iallocator case: - The secondary node is not passed anymore on non-mirrored templates - On mirrored templates the secondary node is logged Reviewed-by: imsnah
-
- Jun 13, 2008
-
-
Michael Hanselmann authored
- Shorter code - Reorder arguments to logger.SetupLogging calls to make more sense Reviewed-by: iustinp
-
- May 30, 2008
-
-
Iustin Pop authored
Currently: the LURemoveInstance.Exec() method uses the ignore_failures attribute of the OpRemoveInstance opcode, but it doesn't check for its existence. The patch adds this attribute to _OP_REQP and to all the places where this opcode was created. This attributes is always passed by gnt-instance, but burnin didn't pass it so it can fail if it enters the 'fail to remove disks' branch of the method (which is why it was not triggered until now). Reviewed-by: ultrotter, imsnah
-