- Jan 04, 2010
-
-
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>
-
Iustin Pop authored
This patch modifies burnin to accept the --no-name-check option and also adds --no-ip-check (which was always set to True before). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Since gnt-instance start doesn't do any checks on the IP, it doesn't make much sense to do so in instance create (with start) if the user expressly passes in ‘--no-ip-check’. Removing this requirement eases the no-name-check mode (otherwise one would have to create --no-start and then only start). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch adds --no-name-check to gnt-instance add and gnt-backup import. This is opposite to the opcode parameter (name_check) as it is similar to ip_check and start. It also adds it to RAPI and gnt-instance batch-create as a parameter in the input (JSON-formatted) file. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This adds a new opcode parameter ‘name_check’ (similar to ip_check) that is not required to be present (to easy backwards compatibility for tools). It also adds a CheckArguments to LUCreateInstance and changes the workflow related to instance IP checks and NIC initialisation based on it. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
The cluster verify checks for fqdn are done via address lookups, and there we actually use the FQDN. However, for the ssh hostname check which is done at node add time, we rely on the default of the “hostname” command. And Debian for example recently changed the default to return the shortname unless one passes ‘--fqdn’. This patch is imported from the Debian packaging. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Dec 14, 2009
-
-
Iustin Pop authored
This patch unifies the search for external script to always go through utils.FindFile and implements in that function a restriction on valid chars in file names and (additionally) that the passed name is the basename of the final (absolute) name. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This will allow reuse of the same mask for multiple validations. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
In most uses of LUQueryNodes, we don't take a lock. This means that the instance data is not protected across GetInstanceList and GetInstanceInfo, and this can lead to instances not existing anymore. Switching to GetAllInstanceInfo means that we get a single, semi-consistent snapshot (since instances can still be modified, but it's much better). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Dec 10, 2009
-
-
Iustin Pop authored
This patch adds the 'cache' parameter for KVM; currently this is only customisable at the hypervisor level, so it's the same for all drives (except any CDROM image, which gets the default). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
On some distributions pyinotify is installed in a different way, and the actual module just contains an internal pyinotify entry, which is the actual library. On others the main pyinotify module contains the library itself. We'll try both, in order to be more compatible. Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
- Dec 05, 2009
-
-
Iustin Pop authored
Patch 4352bf6d changed RAPI docs to RST from the previous SGML format (the last file to be converted to RST). However, it didn't add rapi.rst to the docrst Makefile variable, and as such rapi.html was neither build nor shipped in the archive. We fix this and we also distribute doc/rapi-resources.gen since otherwise “make distcheck” has issues (since this file is built and thus lives in _built whereas rapi.rst is shipped and lives in topsrcdir). Note: yes, this means that no 2.0 release until now had a rapi.html file (in the .tar.gz archive). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Dec 02, 2009
-
-
Guido Trotter authored
By allowing also the primary ip field to be fetched directly, we avoid one more confd lookup, or dns request, to find out which address the master node lives at. Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
Change the ClusterMasterQuery to allow a query, and if present accept a list of fields to be returned. Currently only name and ip are accepted. This feature will be used by NLD to route the cluster ip over the nbma. Backwards compatibility is preserved. Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
- Dec 01, 2009
-
-
Iustin Pop authored
The documentation for file objects' read method states that if the size is "negative or ommitted", all data is read; thus we can simplify it to have size=-1 by default and not have the if test. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The DRBD driver can ignore dead disks but not dead meta devices (for which it refuses to configure the minor). To handle this case, we check that the meta device is readable and if not we ignore it (the same as when backend._RecursiveAssembleBD didn't find it). A needed change is the move of some checks and initialisers before this test (which is before the super().__init__ call), but that should be fine. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 30, 2009
-
-
Michael Hanselmann authored
The warning will be generated if the clocks diverge by more than 150 seconds. Due to the way the RPC system works, we cannot get exact time differences, e.g. if one of the queried nodes is broken. The comparision is done using a time window. Confd queries will fail if the clock on the client and server are more than 300 seconds from each other. This check helps keeping at least the nodes of a cluster in sync. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-