- Oct 10, 2007
-
-
Alexander Schreiber authored
This patch completely gets rid of fping - replace all fping invocations with TcpPing calls - update documentation accordingly. - associated cleanups (use constant for localhost IP, use more sensible defaults for TcpPing and _use_ those) Reviewed-by: iustinp
-
Michael Hanselmann authored
- Implement colours in qa_utils. - Print warning for cron script. Reviewed-by: iustinp
-
Iustin Pop authored
This adds: - fix the case when a dumb caller didn't stringify its values - explicitly raise a ProgrammerError in case a field is missing from the headers dictionary Reviewed-by: imsnah
-
Iustin Pop authored
Currently, AskUser dies with -ESPIPE if the user gives more than one character plus newline. This is because the python library, while returning only two chars from the readline(2) call, will cache the rest of the input, and when we do a write, it will try to seek back to just after the last returned char. This fails on /dev/tty, so an exception is raised. However, then opening the file descriptor in O_APPEND mode, python will not issue such seeks, thereby fixing this problem. The other alternative, opening in unbuffered mode, is not as good, since then python will issue one-byte reads at a time, but the tty will read the entire line, so at the next readline call, whatever remained in the descriptor buffer is returned from the kernel to python, and the user doesn't get a chance to enter something at all. Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
This patch adds a new 'evacuate' subcommand to gnt-node. The command will do a replace disks for all instances having that node as secondary with the new target being the new node given. The syntax is: gnt-node evacuate src_node target_node The command by itself doesn't do any resource checks, and instead relies on the LUFailoverInstance code to do that. Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
Since modules are not directly executables, remove the shebang from them. This helps with lintian warnings. Also make the autogenerated _autoconf.py contain two comment lines at the beginning, like the other modules. Reviewed-by: ultrotter
-
Michael Hanselmann authored
- Change format of watcher state file to JSON. - Move log path for watcher script to constants.py. Reviewed-by: iustinp
-
- Oct 09, 2007
-
-
Iustin Pop authored
This patch implements a simple failover command for failing over all primary instances. This is just a batched form of gnt-instance failover. Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Guido Trotter authored
The new version debugs Hidden OSes as well. Reviewed-by: iustinp
-
Iustin Pop authored
This was introduced in rev 208. Reviewed-by: imsnah
-
Iustin Pop authored
This patch moves the error formatting into a separate function that will be exported so that scripts that execute multiple opcodes can create the same output as for GenericMain. Also, GenericMain becomes more readable. Reviewed-by: imsnah
-
Iustin Pop authored
As far as I understand, this was just a debugging aid. Remove it so that configuration errors are nicely handled. Reviewed-by: imsnah
-
Iustin Pop authored
This patch allows the SubmitOpcode function to take a pre-created Processor instance and a different feedback function. This is helpful when submitting more than one opcode from a shell script. Reviewed-by: imsnah
-
- Oct 08, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
This patch adds a simple handler for TagError that prints the error (better than having a stack dump). Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a '--from' option to the {add,remove}-tags commands that allows the command to read from a file or from stdin (when passing a dash for the filename). Reviewed-by: imsnah
-
Iustin Pop authored
This adds documentation on the {list,add,remove}-tags commands to the gnt-{cluster,node,instance} man pages. Reviewed-by: imsnah
-
Iustin Pop authored
This brings this man page in conformity to gnt-node and (partially) to gnt-instance. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds generic functions for tag manipulations to cli.py and modifies gnt-{cluster,node,instance} to export {list,add,remove}-tags commands that use those. Reviewed-by: imsnah
-
Iustin Pop authored
This patch changes the tags opcodes to work with multiple tags at once instead of only one. As such, the opcodes and some parameters are renamed. Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
This allows scripts to pass options to generic functions (options that are not visible in the command line). Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
- Move symlink to “ganeti” to top dir - Add ganeti.config_unittest.py to tests to be run - Make sure everything is built before tests are run Reviewed-by: iustinp
-
Michael Hanselmann authored
dot. Reviewed-by: iustinp
-
- Oct 04, 2007
-
-
Guido Trotter authored
This isdir() check leads to a broken error message. Even fixing it creates some cases in which the error message is nebulous and unclear while removing it makes this situation be dealt with a lot better by the _OSOndiskVersion checks. Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp, ultrotter
-
Guido Trotter authored
- Document the expected change to errors.InvalidOS - Always pass the additional argument - Modify DiagnoseOS output to show the path Reviewed-by: iustinp, imsnah
-
Michael Hanselmann authored
- Add NEWS file with major changes between versions. - Bump RPC version number - No longer serialize in RPC, but just convert to dict Old Pickle based configuration files can be converted using the cfgupgrade utility. Reviewed-by: iustinp, ultrotter
-
Guido Trotter authored
As of now only the last OS was taken into consideration by diagnose, fix by storing them all and displaying for now only the first. Also display the source path for valid OSes. Reviewed-by: imsnah
-
- Oct 03, 2007
-
-
Guido Trotter authored
Abstract the _OSSearch function, to look for an OS in the search path Make OSFromDisk accept an optional base_dir, rather than the os_dir itself Reviewed-by: iustinp
-
Guido Trotter authored
First part of the OS search path cleanup. _OSOndiskversion is only ever called once, and with that argument set, so let's make it mandatory. Reviewed-by: iustinp
-
- Oct 02, 2007
-
-
Guido Trotter authored
People might not have read all the documentation and might not expect their ssh configuration and specially keys to be changed. Adding this warning will inform them before it happens. Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-