- 15 Oct, 2008 1 commit
-
-
Iustin Pop authored
This patch adds a generic method to identify the ganeti error given its class name, and implements this across the luxi protocol. Reviewed-by: imsnah
-
- 06 Oct, 2008 1 commit
-
-
Iustin Pop authored
This patch adds a new luxi call that implements auto-archiving of jobs older than a certain age (or -1 for all completed jobs), and the gnt-job command that makes use of this (with 'all' for -1). Reviewed-by: imsnah
-
- 01 Oct, 2008 1 commit
-
-
Michael Hanselmann authored
This can be used to retrieve certain cluster config values from within clients. OpDumpClusterConfig was not used anywhere, hence I'm just reusing it. The way ConfigWriter.DumpConfig returned the configuration was not thread-safe, anyway (no deepcopy). Reviewed-by: iustinp
-
- 29 Aug, 2008 1 commit
-
-
Iustin Pop authored
This patch alters the WaitForJobChanges luxi-RPC call to have a configurable timeout, so that the call behaves nicely with long jobs that have no update. We do this by adding a timeout parameter in the RPC call, and returning a special constant when the timeout is reached without an update. The luxi client will repeatedly call the WaitForJobChanges until it gets a real change. The timeout is hardcoded as half the RWTO value. The patch also removes an unused variable (new_state) from the WaitForJobChanges method. Reviewed-by: imsnah,ultrotter
-
- 28 Aug, 2008 1 commit
-
-
Michael Hanselmann authored
Reported by Iustin. Reviewed-by: iustinp
-
- 27 Aug, 2008 1 commit
-
-
Michael Hanselmann authored
This is a large patch, but I can't figure out how to split it without breaking stuff. The old way of getting messages by always getting the last one didn't bring all messages to the client if they were added too fast, thereby making commands like “gnt-cluster verify” less than useful. These changes now introduce some sort a serial number per log entry to keep track what message a client already received. They also remove the log lock per opcode to make reading log entries thread safe. Reviewed-by: ultrotter
-
- 11 Aug, 2008 1 commit
-
-
Michael Hanselmann authored
This way clients can react faster to status or message changes and don't have to poll anymore. Reviewed-by: ultrotter
-
- 08 Aug, 2008 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 06 Aug, 2008 2 commits
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Queries don't create jobs and are more efficient. Log messages are not yet stored anywhere. Reviewed-by: iustinp
-
- 30 Jul, 2008 1 commit
-
-
Iustin Pop authored
This is mostly: - whitespace fix (space at EOL in some files, not all, broken indentation, etc) - variable names overriding others (one is a real bug in there) - too-long-lines - cleanup of most unused imports (not all) Reviewed-by: ultrotter
-
- 09 Jul, 2008 3 commits
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
- Introduce abstraction class on client side - Use constants for method names - Adopt legacy function SubmitOpCode to use it Reviewed-by: iustinp
-
Michael Hanselmann authored
- Use constants for dict entries - Handle exceptions on server side - Rename client function to CallMethod to match server side naming Reviewed-by: iustinp
-
- 08 Jul, 2008 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 21 Jun, 2008 1 commit
-
-
Iustin Pop authored
Currently the generic handling of ganeti errors in cli.py (GenericMain and FormatError) only handles the core ganeti errors, and not the client protocol errors (which live in a separate hierarchy). This patch adds handling of luxi errors too, and also adds another luxi error for the case when the master is not running. This gives us a nice: gnta1:~# gnt-node list Cannot communicate with the master daemon. Is it running and listening on '/var/run/ganeti-master.sock'? error message instead of a traceback. Reviewed-by: amishchenko
-
- 10 Apr, 2008 1 commit
-
-
Iustin Pop authored
Currently the luxi.client.SubmitJob and Query methods return the unserialized result without processing it at all. This patch changes this by adding a 'RequestException' error that is raised if the query itself or the submission of the job failed, and (if not) returning only the 'result' field from the message. The patch also does processing on the result of a query if we queried for jobs, as the 'op_list' field in the result has serialized opcodes and we need the de-serialized. Reviewed-by: ultrotter
-
- 07 Apr, 2008 1 commit
-
-
Iustin Pop authored
The idea of cli.py and luxi.py is that all protocol checks should be in luxi, and cli.py should just offer some helpful shortcuts for the command line scripts. This patch removes the result checks from cli and adds some other checks to luxi. It does no longer check the success/failure since it's not yet clear how that should be handled - probably exceptions. Reviewed-by: ultrotter
-
- 01 Apr, 2008 2 commits
-
-
Iustin Pop authored
This patch adds function that submit jobs or queries over the unix socket interface to lib/cli.py. The will be used by the scripts instead of the SubmitOpCode function. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds an initial implementation of the client-side of the unix socket interface. The code is not yet used by other parts of ganeti. Reviewed-by: imsnah
-