- Nov 22, 2007
-
-
Michael Hanselmann authored
If we didn't sort this list, files would be in arbitrary order. Reviewed-by: iustinp
-
- Nov 20, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- Nov 12, 2007
-
-
Iustin Pop authored
The code assumes all lines have at least two elements which are whitespace separated - i.e. it does not deal with empty lines or comment lines with no spaces. This patch fixes this. Also, the patch replaces the blank between IP and the canonical name with a tab (restoring previous behaviour). Reviewed-by: imsnah
-
Michael Hanselmann authored
This is a critical file. Breaking it would be very bad. Thus, if the system crashes before the data is synched to the disk, it should have the complete file afterwards. Reviewed-by: iustinp
-
Michael Hanselmann authored
- Combine hostname and aliases on one line - Fix bug with wrongfully removed newline characters - Use wrapper for SetEtcHostsEntry in cmdlib Reviewed-by: iustin
-
Michael Hanselmann authored
-
Michael Hanselmann authored
Reviewed-by: TODO
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Nov 09, 2007
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Nov 05, 2007
-
-
Iustin Pop authored
This patch fixes some minor pylint warnings (unused variables, wrong indentation, etc.) and a real bug in the recovery for drbd8 rename procedure. Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Oct 28, 2007
-
-
Guido Trotter authored
The two function 'any' and 'all' are copied as-is from the python 2.4 documentation for the itertools module. They are useful (and are already builtin function in python 2.5). Reviewed-by: iustinp
-
- Oct 12, 2007
-
-
Iustin Pop authored
Currently there are a few version of "write a file safely" in the code. This patch adds a generic function that should be able to replace all the other versions. The "take attributes from the target file" option, while useful, is not implemented by this patch. Reviewed-by: imsnah,ultrotter
-
Iustin Pop authored
Currently GetHomeDir accepts UIDs only. Enhance it to accept either a user name or a user id, to allow for nicer usage. Reviewed-by: imsnah
-
- Oct 11, 2007
-
-
Michael Hanselmann authored
This removes the dependency on either the uuid module or e2fsprogs' uuidgen. Reviewed-by: iustinp
-
Iustin Pop authored
This can be used to replace hardcoded "/root/" paths. Reviewed-by: imsnah
-
- 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
-
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
-
- Oct 08, 2007
-
-
Michael Hanselmann authored
dot. Reviewed-by: iustinp
-
- Sep 27, 2007
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- Sep 21, 2007
-
-
Iustin Pop authored
We currently require that hostnames are FQDN not short names (node1.example.com instead of node1). We can allow short names as long as: - we always resolve the names as returned by socket.gethostname() - we rely on having a working resolver These issues are not as big as may seem, as we only did gethostname() in a few places in order to check for the master; we already required working resolver all over the code for the other nodes names (and thus requiring the same for the current node name is normal). The patch moves some resolver calls from within execution path to the checking path (which can abort without any problems). It is important that after this patch is applied, no name resolving is called from the execution path (LU.Exec() or other code that is called from within those methods) as in this case we get much better code flow. This patch also changes the functions for doing name lookups and encapsulates all functionality in a single class. The final change is that, by requiring working resolver at all times, we can change the 'return None' into an exception and thus we don't have to check manually each time; only some special cases will check (ganeti-daemon and ganeti-watcher which are not covered by the generalized exception handling in cli.py). The code is cleaner this way. Reviewed-by: imsnah
-
- Sep 19, 2007
-
-
Iustin Pop authored
The current result of utils.LookupHostname() is a dict, but this does not allow static checkers to check the correctness of the code. This patch introduces a new class names HostInfo and changes LookupHostname to return an instance of this class; this allows better checking of the code (and also the code is cleaner). Reviewed-by: ultrotter
-
- Sep 17, 2007
-
-
Alexander Schreiber authored
Reviewed-by: iustinp, imsnah
-
Alexander Schreiber authored
To be used to replace the currently fping(8) based reachability test. Reviewed-by: imsnah
-
- Sep 12, 2007
-
-
Michael Hanselmann authored
- Set only LC_ALL, it overrides any other variable - Restore environment after unittest Reviewed-by: iustinp
-
- Sep 11, 2007
-
-
Iustin Pop authored
This filters out the LANG and LC_ variables from the environment of programs executed by RunCmd, in order to get consistent output of execute programs like lvs, etc. Reviewed-by: imsnah
-
- Sep 05, 2007
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Sep 03, 2007
-
-
Iustin Pop authored
This changes the implementation of RunCmd from using the popen2 module to using the (new in 2.4) subprocess module. This is helpful because the subprocess module has more advanced features than popen2, the most important ones being the ability to run code in the child process before the exec and ability to launch with modified environment. Reviewed-by: imsnah
-
- Aug 14, 2007
-
-
Iustin Pop authored
This changes the raising of exceptions from: raise Exception, value to raise Exception(value) as the first form will be removed in python-3000 and the second form is preferred now. The changes also involve a few cases of changing from raising standard exceptions and use our own ones. The new version also fixes many pylint-generated warnings, especially in ganeti-noded where I changed many methods to @staticmethod. There is no functionality changed (barring any bugs).
-
- Jul 26, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Jul 16, 2007
-
-
Iustin Pop authored
-