- Jan 04, 2010
-
-
Iustin Pop authored
This is a very slow checker, estimated to be O(n²) by its author; so using it all the time is not good. It can be re-enabled on the command line via “--disable-checker=”. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
The node_list argument to _DiagnoseByOS is not used, and is obsoleted by the fact that the rlist argument already has the valid nodes as keys (assuming RPC behaviour didn't change). Thus, we remove it and silence the warning. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Of all daemons, only rapi did abort when given argument. None of our daemons use any arguments, but they accepted them blindly. This is a very bad experience for the user. This patch adds checking and exiting in all daemons, in a uniform way. One other option would have been to add a flag to GenericMain (noargs=True). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
The disk template is not needed, all that's used is the disk data. As such, remove this parameter from the function. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Currently only the rpc call, but not its description (which also shows the argument) is logged. We change this to log failmsg too, and this also silences a warning. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
So we just silence the warning. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
The 'name' argument is not used anymore, probably since before 2.0. Since this is an internal function, we can just remove it (from its caller too). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Plus a silence for a wrong "uninitialized var". Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Many methods are simple pure functions, and not depending on the object state. We convert these to staticmethods. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This removes unused variables in the rest of the code (outside lib/). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This patch should have only: - pylint disables - docstring changes - whitespace changes Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Similar to commit c881c5, we move the decorators out of classes, such that they become simple functions instead of methods. This more clean, since only the wrapped functions need to be methods/have access to ‘self’. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
'file' is a builtin keyword/type. Like many others, it should not be used as a variable/argument name. No code is actually passing in this argument so renaming it is simple. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This runs pylint over all the python files. Yes, it takes a long while, but it's the only way to properly analyze the source codes as only in this way pylint can see all uses of the various modules/classes/etc. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
The chroot and fake hypervisors were missing: - the powercycle node functionality - proper handling of migration requests The powercycle was just used as in the other hypervisors (use the standard linux powercycle). The migration for chroot was disabled explicitly, whereas for the fake one it was implemented to simulate correctly. This required some work on the fake hypervisor, but now the implementation of start/stop/etc. is much more clean. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This adds targeted pylint disables, but since _autoconf.py is autogenerated we need to do this in Makefile.am (hence the separate patch). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
We don't get any useful out of this - a git grep is as effective, and these only pollute the pylint output. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This patch adds explicit errors (instead of notimplemented) in FileStorage (and the associated TODOs). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Wrong argument name and wrong number of arguments in string formatting. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This patch abstract the check "is instance stopped" into a separate function, and thus simplifies a couple of higher-level functions. It also moves from manual read of the pidfile to use the (correct abstraction of) _InstancePidAlive. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
In some cases we only need the pidfile, but not the pid or the alive status. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Detected by an 'Unused variable' warning. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Note there are some cases left which need extra cleanup. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
The logging functions expand the arguments themselves, thus it's safer to let them do it rather than manual string formatting. Also re-wraps one comment. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Dec 28, 2009
-
-
Iustin Pop authored
* devel-2.0: Fix indentation in hv_kvm Implement BuildHooksEnv for NoHooksLU Clarifiy some more wide pylint disables Fix two bugs in seldom-used codepaths Update pylintrc Add targetted pylint disables Partial cherry-pick of 6c881c52 from the 2.1 branch Add a release script Fix a typo in the doc string Conflicts: lib/cli.py lib/cmdlib.py lib/hypervisor/hv_kvm.py lib/jstore.py lib/locking.py lib/mcpu.py lib/rapi/rlib2.py Many of the conflicts were on code removed from 2.1, so the resolving was trivial.
-
Iustin Pop authored
Per pylint warnings. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This just adds a stub function that raises an assertion error; this accomplishes two things: - silences many pylint warnings - if we ever stumble upon this, a specific assertion error is (hopefully) clearer than just a not implemented error Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This removes/updates some module-wide pylint disables. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
New version of pylint, new bugs found! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Since the current pylintrc is in now way good for our style, we update it: - remove docstring checks, since we have too many cases where a docstring doesn't make sense - relax naming rules to cover more alternatives (but not break the naming rules) - increase many of the limits Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This patch adds targeted pylint disables, where it makes sense (either due to limitations in pylint or due to historical usage), and also a few blanket ones in rapi where all the names are… “different”. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This cherry-picks the utils.FieldSet.Matches changes and the significant jqueue.py change. These are stable in the 2.1 branch and therefore make sense to backport to 2.0 (are basically cleanups). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Dec 18, 2009
-
-
Iustin Pop authored
Currently releases are done via the manual procedure on http://code.google.com/p/ganeti/wiki/ReleaseProcess , but that is not very reliable, and breaks for rc releases. The 1.2.9/2.0.5/2.1.0~rc2 releases were done with this new script that eases the process. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
MaybeRaise in lib/errors.py had a typo in the doc string Signed-off-by:
René Nussbaumer <rn@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 16, 2009
-
-
Iustin Pop authored
* stable-2.1: Bump version to 2.1.0~rc2 Update NEWS file and release Ganeti 2.0.5 Security issue: add validation of script names Move the hooks file mask into constants.py Improve LUQueryNodes for lockless case Ship rapi.rst/rapi.html in the dist archive
-
Iustin Pop authored
-
Iustin Pop authored
* stable-2.0: Update NEWS file and release Ganeti 2.0.5 Security issue: add validation of script names Move the hooks file mask into constants.py Improve LUQueryNodes for lockless case Ship rapi.rst/rapi.html in the dist archive Conflicts: Makefile.am (reverted, not needed) NEWS (simple fix for RST-ification) configure.ac (reverted, not needed) lib/backend.py (adapted to new RPC result style) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-