- Oct 20, 2008
-
-
Iustin Pop authored
This patch allows rpc.call_upload_file to use addresses (if passed), and also converts the ConfigWriter._DistributeConfig to pass them, since this is an often-done operation. Reviewed-by: imsnah
-
Iustin Pop authored
This patch converts all non-staticmethods rpc calls to pass addresses to the Client calls. This is done via two new small helpers. These functions also deal with nodes that are not (yet) in the configuration file, and pass None for the address instead (which allow NodeControllers to do resolving). Reviewed-by: imsnah
-
Iustin Pop authored
The patch adds support for passing node addresses to NodeController objects, which should speed up the connect sequence. The patch also adds another very small optimization of computing the content-length header value in the parent Client class instead of each NodeController. Reviewed-by: imsnah
-
Iustin Pop authored
This patch renames some internal function to camel case, for compliance with the style guide. It also fixes the module docstring (how old was that?). Reviewed-by: imsnah
-
Guido Trotter authored
Forward-port-of: r1889, Reviewed-by: imsnah Reviewed-by: imsnah
-
Guido Trotter authored
Forward-port-of: (r1888, r1891), Reviewed-by: (iustinp, imsnah) Reviewed-by: imsnah
-
Guido Trotter authored
When importing an instance with the same name as the exported one if the mac address is "auto" we try to reuse the previous mac address. One can still force generation of a new one with mac="generate". Forward-port-of: r1887, Reviewed-by: iustinp Reviewed-by: imsnah
-
Guido Trotter authored
VALUE_GENERATE is handled exactly the same as VALUE_AUTO and the mac address is generated randomly. Forward-port-of: r1886, Reviewed-by: iustinp Reviewed-by: imsnah
-
Guido Trotter authored
Before 'auto' was the only allowed possibility Forward-port-of: r1885, Reviewed-by: iustinp Reviewed-by: imsnah
-
Guido Trotter authored
'auto' is used in multiple place in the code with a meaning similar to 'default', 'generate' will be used to force generation of mac addresses when the default would be to reuse an old one. Forward-port-of: r1884, Reviewed-by: iustinp Reviewed-by: imsnah
-
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
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
Note that many uses of logger.Error were used in 1.2 for their side-effect of logging to stderr, where the user will see the messages, and not for having the entry in the log. As such, we need to go over and review every use of logging.* and decide if it should use feedback_fn instead of being a logging call. 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
Some names were wrong, and similar stuff detected by pylint. gnt-debug.GenericOpCode is still broken. Reviewed-by: imsnah
-
Iustin Pop authored
Currently the gnt-* scripts are using a mix of print, logger.ToStd* and sys.stderr.write. We convert them all to using cli.ToStdout/err. This way, we can easily change the implementation for all at once. Reviewed-by: imsnah
-
Iustin Pop authored
We also add two function for printing messages, so that scripts won't have to import logger to get these. They are a simple extension over the logger ones, as they accept the call style from logging: ToStdout("Message: %s", msg) (instead of requiring formatting by the client. Reviewed-by: imsnah
-
Iustin Pop authored
The gnt-instance modify didn't work correctly w.r.t the be parameters. There was also a typo in the corresponding LU. Reviewed-by: imsnah
-
Alexander Schreiber authored
We no longer use a single, cluster-wide hypervisor, but configure the actual to be used hypervisor on the instance level. The option has already been removed from gnt-cluster. Reviewed-by: imsnah
-
Michael Hanselmann authored
All users of this code have been migrated to the new and shiny HttpServer class. It also fixes a typo in the ApacheLogfile unittests. It has not yet been decided whether we should keep ApacheLogfile or not, hence leaving it in. Reviewed-by: ultrotter
-
Alexander Schreiber authored
We no longer use a single, cluster-wide hypervisor, but configure the actual to be used hypervisor on the instance level. Reviewed-by: imsnah
-
- Oct 18, 2008
-
-
Alexander Schreiber authored
Reviewed-by: iustinp
-
Alexander Schreiber authored
Reviewed-by: iustinp
-
- Oct 17, 2008
-
-
Guido Trotter authored
- remove now unused osdev and swapdev arguments from backend, noded, rpc, cmdlib - convert docstrings to epydoc Reviewed-by: iustinp
-
Guido Trotter authored
Since they're not converted to API 10 yet, we temporarily disable the import/export functions. Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
Guido Trotter authored
This function calculates the basic environment for OS scripts in API version 10. Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
Guido Trotter authored
Plus update it with the real variable name Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
Guido Trotter authored
Reviewed-by: iustinp
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Guido Trotter authored
This fixes removals of the pid files and clean exit in the init script Reviewed-by: iustinp
-
Guido Trotter authored
There is no point in initializing sigchld_handler as an empty dict, when it will be overwritten by an instance of utils.SignalHandler immediately after. Reviewed-by: iustinp
-
Michael Hanselmann authored
I broke it with rev 1864. This patch also removes whitespace at line endings. Reviewed-by: amishchenko
-