- Aug 20, 2009
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This decorator can be used to call a function holding with protection from a given signal. The function should accept a dict of utils.SignalHandler, indexed by signal number, and make use of it. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
utils.SignalHandler can accept either a list of signals or a single signal, but it's always called with a list. Removing the single signal option. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
IO is never unregistered in our current usage, so dropping that functionality for now. Also putting the poller outside of the Run() function allows us to avoid the double step of adding tuples to an _io_wait_add queue and adding them later in the main loop. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Timers are currently unused, slightly buggy (for example timeout doesn't get updated correctly), and unneeded in the current form. Confd will have timeouts in more simple fashion, and is not a mainloop user anyway. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 19, 2009
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This option is gone since 1ac0f5e6d2f06a5bf12815e1b92d1338af32833c, fixing the QA suite to deal with this. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 18, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Merging them gets rid of two public functions in cli.py and optparse explicitly supports more than one option type per class. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 17, 2009
-
-
Michael Hanselmann authored
Replacing the secondary node always replaces it for all disks. Commit 2945fd2d added an error message for this case. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This patch adds querying of ctime/mtime for the cluster/nodes/instances. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch adds ctime/mtime support to the “main” config objects - the config data itself, and the cluster/nodes/instances objects. These are not added on auto-upgrade, but rather should be migrated if it makes sense when 2.0 is upgraded to 2.1. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
We don't format with subsecond-precision. 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
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>
-
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>
-
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>
-
Michael Hanselmann authored
This will be used by another new function, too. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
It'll be used for repairing storage units. 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
__setitem__ is used to emulate container objects. We don't use this, and the method is not used in a couple of normal operations (add/remove instance, add/remove disk). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Aug 14, 2009
-
-
Iustin Pop authored
This can be used for a 'plain' type instance when the underlying storage went away, to recreate the storage (and reinstall) instead of removing the instance and readding it. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 13, 2009
-
-
Michael Hanselmann authored
We move all disks anyway. 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>
-
Iustin Pop authored
* commit 'origin/next': (28 commits) Fix a typo in InitCluster Ignore results from drained nodes in iallocator Ship the ethers hook Ethers hook, compatibility with old lockfile Remove a few unused imports from noded/masterd Move HVM's device_model to a hypervisor parameter Implement the KERNEL_PATH parameter for xen-hvm Upgrade be/hv params with default values Add cluster-init --no-etc-hosts parameter objects: add configuration upgrade system Update NEWS and version for 2.0.3 release example ethers hook: use lockfile-progs ethers hook lock: use logger not echo ethers hook: reduce the probability of data loss devel/upload: revert rsync -p export: add meaningful exit code Fix detecting of errors in export Implement gnt-cluster check-disk-sizes rpc: add rpc call for getting disk size bdev: Add function for reading actual disk size ... Conflicts: daemons/ganeti-masterd - trivial, kept 2.1 version lib/bootstrap.py - trivial, kept 2.1 version lib/cmdlib.py - integrated the 2.0.3 changes lib/constants.py - trivial lib/hypervisor/hv_xen.py - trivial, kept 2.1 version lib/objects.py - trivial, kept 2.1 version lib/opcodes.py - integrated the 2.0.3 changes Signed-off-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>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit 022c3a0b)
-
- Aug 12, 2009
-
-
Iustin Pop authored
Since drained nodes could be (partially or fully) broken in iallocator, we ignore results from these nodes when building the cluster map in preparation for sending it to the script. This is a cheap change for the stable branch; ideally we should not query them at all. The patch also fixes a typo in iallocator.rst. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This implements CONFD_REQ_NODE_PIP_BY_INSTANCE_IP, and maps instance ips to primary node ips. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Rather than composing them every time, we'll keep "ready-made" tuples for unknown entries and internal errors (which is, yet, unused) Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Add the following functions to SimpleConfigReader: GetInstanceByIp, nic ip -> instance name GetNodePrimaryIp, node name -> node primary ip GetInstancePrimaryNode, instance name -> primary node For the first one we precalculate the _ip_to_instance, so we don't have to loop over all instances for each query. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This implements CONFD_REQ_NODE_ROLE_BYNAME. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Adding a way to retrieve the three node status flags, all in one go, from SimpleConfigReader. Non-existing nodes are handled by returning "None". Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-