- Dec 28, 2009
-
-
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
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@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 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>
-
- Sep 29, 2009
-
-
Iustin Pop authored
The timestamp need special formatting, which was done for the internal buffer storage but not for the messages logged in verbose mode. This patch unifies the formatting for these two cases. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
QA passed successfully, let's try to have a release. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 25, 2009
-
-
Iustin Pop authored
Currently, the actual exception raised during an LU execution (one of OpPrereqError, OpExecError, HooksError, etc.) is lost because the jqueue.py code simply sets that to a str(err), and the code in cli.py simply passes that string to OpExecError. This patch moves to encoding the errors as per errors.EncodeError and changes the cli code to parse and raise that (if possible). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> (cherry picked from commit bcb66fca)
-
Iustin Pop authored
Currently the luxi error handling is hardcoded as special encoding on the masterd-side and special decoding on the client side. This patch moves it to errors.py such that other parts of the code can reuse the same encoding. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> (cherry picked from commit 6956e9cd)
-
Iustin Pop authored
Before, it used to say: ssh/hostname verification failed node1.example.com -> hostname mismatch, got node2 Now it says for wrong hostnames (maybe too verbose): ssh/hostname verification failed (checking from node1.example.com): hostname mismatch, expected node2.example.com but got node3 And for non-FQDN hostnames: ssh/hostname verification failed (checking from node1.example.com): hostname not FQDN: expected node2.example.com but got node2 Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
We don't bump up the version yet, pending more QA tests. 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> (cherry picked from commit 34d657ba)
-
Iustin Pop authored
We will need this in another place, so we abstract the 'compute all current IDs' functionality into a separate function. We also change the name of the _ComputeAllLVs to _AllLVs to match the other _All*s functions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> (cherry picked from commit 34e54ebc)
-
Iustin Pop authored
Currently the config upgrade is done at each object instantiation, that means that ganeti-noded will run UpgradeConfig on all objects received remotely (instances, disks, nics). This is not so good, so this patch changes it so that only the ConfigWriter runs this method at configuration load time. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> (cherry picked from commit 90d726a8)
-
Iustin Pop authored
* commit 'origin/next': (74 commits) Fix gnt-node modify online help Fix gnt-job info entry in gnt-job(8) locking: Don't swallow exceptions Add check for duplicate MACs in instance add scripts/gnt-node: fix a help string Optimise multi-job submit Extend gnt-debug with more debugging options Return cluster tags from LUQueryClusterInfo Add script to clean archived jobs after 21 days rapi: export more static node information Pass the correct signal to handlers cli: Use ToStdout/ToStderr instead of print Fix small typo in gnt-node Simplify handling of boolean args in rapi Fix checks in LUSetNodeParms for the master node Improve the example startup script Fix insserv dependencies Fix a typo in InitCluster Ignore results from drained nodes in iallocator Ship the ethers hook ...
-
- Sep 14, 2009
-
-
Guido Trotter authored
This completes what was began in commit 862b1b2b Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
It currently reports "cancel" in its syntax, which is obviously a cut&paste error. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 11, 2009
-
-
Michael Hanselmann authored
This is an indentation bug. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Sep 08, 2009
-
-
Iustin Pop authored
Currently LUAddInstance doesn't check for duplicate MACs, and it fails during the Exec() phase when trying to add the instance to the config (ConfigWriter checks for this). This patch copies the code from LUModifyInstance (which already does it). This fixed issue #70. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Sep 07, 2009
-
-
Guido Trotter authored
gnt-node modify says it wants an "<instance>". Changing it to "<node_name>" as for the other commands. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Currently, on multi-job submits we simply iterate over the single-job-submit function. This means we grab a new serial, write and replicate (and wait for the remote nodes to ack) the serial file, and only then create the job file; this is repeated N times, once for each job. Since job identifiers are ‘cheap’, it's simpler to simply grab at the start a block of new IDs, write and replicate the serial count file a single time, and then proceed with the jobs as before. This is a cheap change that reduces I/O and reduces slightly the CPU consumption of the master daemon: submit time seems to be cut in half for big batches of jobs and the masterd cpu time by (I can't get consistent numbers) between 15%-50%. Note that this doesn't change anything for single-job submits and most probably for < 5 job submits either. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch extends gnt-debug to be able to submit multiple copies of the input jobs and job contents, in order to simplify testing. It also adds a timing mode, and splits the execution into separate submit and execution stages (for timing purposes). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 31, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Aug 28, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 25, 2009
-
-
Iustin Pop authored
Currently not all static node information is exported over rapi, and this makes it less complete than gnt-node list. This patch attempts to reduce the difference. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 21, 2009
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
In case there are gaps in /proc/drbd related to the minors sequence, this can lead to empty lines (see the attached data file). In this case, we currently fail to parse the file correctly. The patch fixes this by skipping empty lines in bdev.BaseDRBD._MassageProcData and adds a data file and unittest for this condition. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 20, 2009
-
-
Guido Trotter authored
Mainloop currently calls all handlers with the signal number harcoded to sigchild. Fixing this. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
- Aug 19, 2009
-
-
Iustin Pop authored
While this patch doesn't do a full match of on-disk size to config-size for child devices, it does a sanity check (for DRBD only) that the child size is not less than the DRBD size. While this would be a strange occurrence (failed growth and masterd crash or similar), it does prevent replace-disks from working. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 17, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit 03298ebe)
-
- Aug 14, 2009
-
-
Iustin Pop authored
The iallocator option is '-I' not '-i'. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch replaces hardcoded boolean-type args with bool(_checkIntVariable). There should be no other cases of this left, I think. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
There was a check already in the LU for the master node, however is wasn't correct. This patch disallows any role changes on the master node via LUSetNodeParms (and as this LU can't change anything else, it practically prevents it from touching the master node). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 13, 2009
-
-
Iustin Pop authored
Currently, the supplised script has two issues: - it doesn't use start-stop-daemon --start correctly, leading to messages like "ganeti.errors.GenericError: /var/run/ganeti/ganeti-rapi.pid contains a live process" in the logs - it doesn't allow start/stop/restart of a single daemon, which leads to manual launch, which is bad because we don't reuse the settings from the defaults file For the first one, we change from ‘--exec …’ to ‘--startas …’, which is the actual option used for start, whereas exec is a test (that also supplies the default to startas). We also add ‘--oknodo’ as per recent Debian policy changes. For the second, we do a bigger change; we basically remove the full-path and pid variables, and construct these two from the daemon name. We then check if we are given a daemon name (in which case we only do that) otherwise we do the requested action on all daemons. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-