- Aug 03, 2011
-
-
Iustin Pop authored
This adds a new ConfigWriter.GetMultiNodeInfo function and replaces multiple/looping calls to GetNodeInfo with it. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
It turns out that the only use of the operator module was for itemgetter, so patch eb62069e should have removed that import too. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
operator.itemgetter(0) → fst operator.itemgetter(1) → snd snd is not used yet, but it makes sense to add both. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Aug 02, 2011
-
-
Iustin Pop authored
Iallocator mode reloc, parameter reloc_from takes a list; half of the code already forced this parameter to list, we add the other two cases where it is needed. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently we use absolute symlinks, but this doesn't work when we install remotely (due to install first to local temp dir, then rsync to remote machines). To fix, we change to manually-computed relative paths, which is not best, but it works. One possible alternative would be to use hard-links… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
By sleeping for 100ms after receiving a notification for a changed job file the job is given some additional time to change again. This significantly reduces the number of LUXI calls for WaitForJobChanges (depending on the job, in my tests with “gnt-cluster verify --debug-simulate-errors” by about 80%), and improves performance (the same job went from around 7 seconds to around 3.5 seconds). This method is not perfect. The algorithm could be made more complex, e.g. by increasing the delay on each change, etc., but for now this simple change provides a good improvement. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
These will be very useful for ganeti-watcher as it needs to retrieve instances by group. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Commit 54ca6e4b renamed some arguments, but didn't also renames them in the docstrings. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jul 29, 2011
-
-
Michael Hanselmann authored
For now this will do another query to the master daemon, but with the split for node groups this issue will go away. 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
Until now the state class would receive instances as objects (ganeti.watcher.Instance), but this is not necessary. By using strings the interface is simplified. This patch also simplifies some code accessing the internal structures, e.g. setting a key of a dictionary. Some instances of “del dict[key]” are replaced with “dict.pop(key, None)” to suppress any exceptions if the key doesn't exist. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Also, remove punctuation from one error message. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Make them match with style guide. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
WATCHER_STATEFILE will be removed at the end of this patch series. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Stephen Shirley authored
Signed-off-by:
Stephen Shirley <diamond@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
ganeti-watcher will use this constant to pass the option to itself for processing all node groups. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
I still don't know why Michael is a fan of %r, but in the meantime this patch changes: WARNING: import u'import-2011-07-29_01_39_33-y3gZKV' on node1 failed: Exited with status 1 into: WARNING: import 'import-2011-07-29_01_39_33-y3gZKV' on node1 failed: Exited with status 1 Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Stephen Shirley authored
During instance installations, you do not want the instance to reboot and start again with the same parameters, as that will most likely re-start the install process. Therefore, when the instance requests a reboot it should instead shutdown. This flag allows this to be controlled. Signed-off-by:
Stephen Shirley <diamond@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The OS scripts currently run with the whole noded environment; this is different from the hooks which run with a cleared one and most likely an oversight. This _might_ create problems when upgrading, so it needs to be clearly announced for the new version. 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>
-
Michael Hanselmann authored
“upfile” is a bad name. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Andrea Spadaccini authored
Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jul 28, 2011
-
-
Michael Hanselmann authored
The node maintenance class is standalone. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Andrea Spadaccini authored
Sphinx 1.0.7 complains if an indented block in .warning starts with :option. This fixes it. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
* devel-2.4: Add support for cluster/OS parameters in QA Add OS search path to gnt-cluster info Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This removes: - the check in backend that such OSes have a variants file or if it exists that is non-empty; in order for this to work, we also rework the logic in backend._TryOSFromDisk to allow for optional OS files - the check in cluster verify such OSes to have a non-empty variant list (the check for consistent variants is still kept) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently there is no way to QA with (for example) an initrd because the QA only inits the cluster with the default parameters. This makes it impossible to QA using anything but the default parameters, which doesn't always work. Additionally, we add OS parameters and OS hypervisor parameters, for completeness and for testing that these commands also work. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This reverts commit 7421df8e. The feedback_fn argument to JobExecutor is used for PollJob, and thus has a fixed signature: a single arg, tuple of (timestamp, log type, log message). It's use as drop-in replacement for ToStdout doesn't work, as that function has a different signature. For now, I propose to revert this, until we either change JobExecutor to use the same log messages (and add an intermediate wrapper between JobExecutor and ToStdout) or we add another parameter to JobExecutor.__init__. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Agata Murawska authored
Signed-off-by:
Agata Murawska <agatamurawska@google.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This seems to be used and reused multiple times, let's abstract it… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Commit aef59ae7 reworked the file verification, but forgot to take into account offline nodes. The fact that this was not detected yet is due to the fact that we don't test clusters with offline nodes in QA :( Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jul 27, 2011
-
-
Iustin Pop authored
Otherwise we get no variant checks at all, but the variant is still recorded. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The patch changing the OS api in QA to 20 was not complete, sorry. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
v20 is (mostly) a superset of the other versions, so testing with it should be better than with V10. This detects properly the breakage fixed by the previous patch. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
OS parameters is a list of tuples, so we can't pass it directly to utils.NiceSort, hence we use a sort key. This was not detected in QA since QA only tests API v10 :( Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jul 26, 2011
-
-
Iustin Pop authored
This patch adds a function for abstracting “dict.fromkeys(locking.LEVELS, 1)”. It also removes a duplicate assignment for the share_locks in LUInstanceQuerydata. Additionally, it moves the _SupportsOob function to the helper function list. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
This adds the infrastructure necessary to check opcode results using ht-based functions. Checks are added for two opcodes. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Until now verifying disks, which is also used by the watcher, would lock all nodes and instances. With this patch the opcode is changed to operate on per nodegroup, requiring fewer locks. Both “gnt-cluster” and “ganeti-watcher” are changed for the new interface. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-