- Jan 22, 2010
-
-
Michael Hanselmann authored
* stable-2.1: Bump version to 2.1.0~rc4 KVM: fix pylint warning KVM: be more resilient on broken migration answers Add unittests for cli.GenerateTable cli: Fix bug when not using headers daemon-util: Fix quoting issue Bump version to 2.1.0~rc3
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
This patch updates the man page of gnt-instance to include the newly added tags filtering. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Signed-off-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Specify string format arguments as logging function parameters Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
Before, when doing kvm live migrations we use to accept an "unknown status" but to reject anything that didn't match our regexp. Since we've seen "info migrate" return a completely empty answer, we'll be more tolerant of completely unknown results (while still logging them) and at the same time we'll limit the number of them which we're willing to accept in a row. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 21, 2010
-
-
René Nussbaumer authored
This change introduces startup, shutdown, reboot, reinstall by using instance respectively node tags as a selection criteria. Signed-off-by:
René Nussbaumer <rn@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 20, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Commit 9fe72672 added code to not write spaces at the end of each line. Unfortunately it didn't work properly when not printing headers—there would still be spaces. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 19, 2010
-
-
Michael Hanselmann authored
This patch fixes a quoting issue in daemon-util: $ EXTRA_MASTERD_ARGS=--no-voting /etc/init.d/ganeti restart […] * ganeti-masterd... /…/ganeti/daemon-util: line 65: local: `--no-voting': not a valid identifier The reason was that the generated variables were not quoted properly and the troublesome line expanded to “local args=$MASTERD_ARGS $EXTRA_MASTERD_ARGS” instead of the correct “local args="$MASTERD_ARGS $EXTRA_MASTERD_ARGS"”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 15, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
* stable-2.1: (22 commits) Fix long-standing race condition bug in locking unittest confd client: copy the peers in UpdatePeerList testutils: Print name of test program before running it Don't use hardcoded name for pylint Partially revert "Makefile.am: Run pylint on all Python code" build-bash-completion: Take care of pylint warnings Makefile.am: Run pylint on all Python code Small improvements for release script check-python-code: Use “set -e” to abort on errors build-bash-completion: Fix a few pylint warnings Generate hmac file with a newline at the end jqueue: Don't return negative number for unchecked jobs when archiving cli.GenerateTable: Don't write EOL spaces Improve logging for workerpool tasks by providing __repr__ workerpool: Simplify log messages workerpool: Use worker name as thread name workerpool: Make worker ID alphanumeric locking: Fix race condition in LockSet mcpu: Log lock status with sorted names locking: Append to list outside error handling block ...
-
Iustin Pop authored
This tiny patch switches the SplitKeyVal function (and thus the command line options like -H, -B, etc.) to UnescapeAndSplit, thus allowing one to use escaped commas in the values of parameters. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Every once in a while we saw failures in the locking unittest, but weren't able to determine the cause. This patch fixes it by using threading.Event instead of plain threading.Condition to notify another thread. In most cases, threading.Condition must be used with another variable to keep the actual state. threading.Event does this for us. Otherwise it can happen that the waiter only gets the lock after condition was notified. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 14, 2010
-
-
Guido Trotter authored
Since the peer list is shuffled by the client, we don't keep a reference to the list which was passed in, but copy it internally. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
While the name can be looked up in Makefile.am, this is useful when an automated test just hangs and needs to be killed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Look it up at configure time instead. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This partially reverts commit e4e7c7df, which made newer pylint versions fail. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
In many cases, where we accept (usually from the command line) a list of parameters, we remove the use of the separator as an component of any of the elements. This patch adds a new function that can split strings of the form 'a,b\,c,d' into ['a', 'b,c', 'd'], with proper un-escaping of double-backslashes. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 13, 2010
-
-
Michael Hanselmann authored
That is, all Python code except unittests. In particular, autotool/build-bash-completion was missing from the previous list. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
- Print usage if no tree-ish (tag, branch or commit) was specified. - Use “gntrelease.XXXXXXXXXX” as temporary directory template. This makes it easier to find all of them. - Compute MD5 checksum. This doesn't cost a lot and might come in handy one day. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This makes it slightly easier to cut&paste its content. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
When the queue was empty, the calculation for unchecked jobs while archiving would return -1. ``last_touched`` is set to 0, the job ID list (``all_job_ids``) is empty. Calculating ``len(all_job_ids) - last_touched - 1`` resulted in -1. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
With this change, there won't be unnecessary space characters at the end of lines. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Before it would log something like “starting task (<ganeti.http.client._HttpClientPendingRequest object at 0x2aaaad176790>,)”, which isn't really useful for debugging. Now it'll log “[…] <ganeti.http.client._HttpClientPendingRequest req=<ganeti.http.client.HttpClientRequest 172.24.x.y:1811 PUT /node_info at 0x2aaaaab7ed10> at 0x2aaaaab823d0>”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This way it shows up in debug logs. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Having a proper name instead of just a number makes debugging easier. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This patch fixes a race condition when acquiring all locks in a LockSet instance. The list of lock names needs to be sorted to guarantee a consistent locking order, but the names were not sorted when acquiring all locks in the set. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Reading and comparing sorted lists is easier when debugging locking problems. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
In case an exception was thrown while acquiring the lock, not necessarily all owned locks are also really acquired. Before this change, an exception could be masked by another exception thrown here. There is no good clean-up strategy when acquiring a lock fails with an exception in either case. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 12, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
-
- Jan 11, 2010
-
-
René Nussbaumer authored
This change will normalize the MAC to all lower after validation. Signed-off-by:
René Nussbaumer <rn@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 05, 2010
-
-
Iustin Pop authored
This changes from submitting jobs to get the tags (in cli scripts) to queries, which (since the tags query is a cheap one) should be much faster. The tags queries are already done without locks (in the generic query paths for instances/nodes/cluster), so this shouldn't break tags query via gnt-* list-tags. On a small cluster, the runtime of gnt-cluster/gnt-instance list tags more than halves; on a big cluster (with many MCs) I expect it to be more than 5 times faster. The speed of the tags get is not the main gain, it is eliminating a job when a simple query is enough. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Since the cluster name might be used for various purposes on nodes, we should let all nodes "know" about a cluster rename by running the post hook on all nodes. This will make cluster rename slightly slower/costlier, but it is not/shouldn't be an operation that is run very often. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
This allows automated builders to override the format, for example. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-