- Nov 13, 2009
-
-
Guido Trotter authored
To stay on the safe side, we check for errors in all instances, and refuse to act, reporting on the errors we found, if there are any problems. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 12, 2009
-
-
Guido Trotter authored
We should match for the strings to be the same "==" not to point to the same memory location with is, or we skip the actual check. Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
There's a bug in Ganeti 2.1 rc0 that makes nic parameters be populated from the "filled in" dict, even if we're not changing any values in them. This patch fixes the problem, by populating them from the correct (unfilled) dict. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 11, 2009
-
-
Michael Hanselmann authored
Also add one item to NEWS. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This documents the new error classifier added for OpPrereqError. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
This reverts commit 52b699ec. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
- Program paths should not be --with-… options (see Autoconf docs) - Simplify checks for escape functionality - Make SOCAT_USE_ESCAPE variable a bool Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 10, 2009
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 06, 2009
-
-
Guido Trotter authored
We can do this by adding a new TemporaryReservationManager Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This solves the race conditions in mac reservation, as macs are actually reserved, under the current ec id. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
In order to do this we need to pass a job id when reserving a resource. We have one during _EnsureUUIDs because we passed it in from AddNode and AddInstance. During config upgrade we use a fake job ID which we then cleanup. We can delete the _CleanupTemporaryIDs code, since the cleanup is going to be done at job finish time by mcpu. Signed-off-by:
Guido Trotter <ultrotter@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>
-
Guido Trotter authored
This is ok because adding a node or instance cannot happen in a query. We get the ec id from the LU and pass it to _EnsureUUID, which will then for now not use it. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
For now this function does nothing, but it gets called by mcpu when the execution of an LU is done, making sure any pending reservations are dropped. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
When the processor is executing a job, it can export the execution id to its callers. This is not supported for Queries, as they're not executed in a job. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
It's not used anywhere, so it's dead code. Signed-off-by:
Guido Trotter <ultrotter@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>
-
Iustin Pop authored
This patch adds some silences and tweaks the code slightly so that “pylint --rcfile pylintrc -e ganeti” doesn't give any errors. The biggest change is in jqueue.py, the move of _RequireOpenQueue out of the JobQueue class. Since that is actually a function and not a method (never used as such) this makes sense, and also silences two pylint errors. Another real code change is in utils.py, where FieldSet.Matches will return None instead of False for failure; this still works with the way this class/method is used, and makes more sense (it resembles more closely the re.match return values). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Nowadays we have actual files (tracket by VCS) in autotools/, so we know the directory exists. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Jun Futagawa authored
Currently xen-hvm and kvm use different real time clock by default. To reduce confusion, this patch adds an optional use_localtime parameter. If the real time clock on the instance is set to local time, the parameter use_localtime should be True. The default is False. Note that the real time clock changes from local to UTC in xen-hvm with the default parameter. Signed-off-by:
Jun Futagawa <jfut@integ.jp> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This patch does multiple documentation updates for the new framework, all pretty straightforward. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Since this is easily configurable at run-time, we remove the configure-time parameter. If anyone is building custom packages, then the default can be tweaked by a one-line patch to constants.py. Note that this also fixes the type of parameter, the default from _autoconf.py is a string parameter. Shouldn't matter except if a cluster run code between commit 78411c60 and this one. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch adds support for global hypervisor parameters in instance creation, instance modification, instance query and at instance load time. We basically prevent any query on these parameters, discard them at load time, and do not allow their modification. Together, this should make any such parameters go away if existing and not allowed to be added. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
The rewrite after the introduction of the daemon-util script has a copy-paste error. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 05, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
The sort_keys argument is supported since simplejson 1.3. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Until now, Ganeti started and stopped its own daemons using custom functions. To start, the daemon was just executed and then sent the appropriate signals to stop it again. Init scripts would have to pay attention to the PID file and other things. With this patch, a new script is added (“daemon-util”, installed in $prefix/lib/ganeti/), centralizing the starting and stopping of daemons. The provided example init script is adjusted to use this new script. Ganeti's code no longer calls its own init script. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
If this is enabled at configure time, we pass in different parameters to the socat console, making it a lot more manageable. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Currently we use a static value for the socat path, or we trust the user-provided one. With this patch we still trust any user provided value, but if none is passed we check for socat on the machine we're being configured on. This allows us also to check if we can or cannot use the escape= feature in socat. If the user has forced the path in, he can also pass --with-socat-escape in order to force the escape functionality to be used, even if a check is not done. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
In order to allow working with older versions of autoconf we backport this macro, but only if it's not defined already (by autoconf itself). This commit can be reverted after we decide support for autoconf 2.61 and below should be deprecated. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 04, 2009
-
-
Iustin Pop authored
This patch adds a check for listening on the remote port in Xen and KVM migrations. This will be generating a single “load of migration failed” message for KVM, but otherwise not prevent the migration. For Xen (which has a dedicated, always listening daemon) this should not create any problems. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently the migration of an instance doesn't show any error until the end. We add two messages that show better the progress: node1# gnt-instance migrate -f instance5 Wed Nov 4 04:04:34 2009 Migrating instance instance5 Wed Nov 4 04:04:34 2009 * checking disk consistency between source and target Wed Nov 4 04:04:35 2009 * switching node node3 to secondary mode Wed Nov 4 04:04:35 2009 * changing into standalone mode Wed Nov 4 04:04:35 2009 * changing disks into dual-master mode Wed Nov 4 04:04:40 2009 * wait until resync is done Wed Nov 4 04:04:41 2009 * preparing node3 to accept the instance Wed Nov 4 04:04:41 2009 * migrating instance to node3 Wed Nov 4 04:04:51 2009 Migration failed, aborting Wed Nov 4 04:04:51 2009 * switching node node3 to secondary mode Wed Nov 4 04:04:51 2009 * changing into standalone mode Wed Nov 4 04:04:51 2009 * changing disks into single-master mode Wed Nov 4 04:04:57 2009 * wait until resync is done Failure: command execution error: Could not migrate instance instance5: Failed to migrate instance: Failed to migrate instance instance5: … Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This changes KVM to use HV_MIGRATION_PORT instead of KVM_MIGRATION_PORT and enables passing the port for Xen migrations. Since KVM_MIGRATION_PORT is not used anymore, we stop exporting it from constants.py. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This parameter will replace the direct use of KVM_MIGRATION_PORT and the implicit use of the Xen migration port. While it doesn't make sense to change this at instance level, we don't have any other infrastructure for cluster-wide hypervisor parameters, so we add it here (and document that it usually shouldn't be changed on a per-instance basis). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently the $hypervisor.MigrateInstance takes the instance name. This patch changes it to take the instance object, such that other instance properties (especially hvparams) are available to it. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Since instances can live in different VLANs from nodes (especially in routed mode), based on the 'link' parameter, we shouldn't always restrict having duplicate IPs. Thus we only check the node IPs/cluster IP for now. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Olivier Tharan <olive@google.com>
-
Iustin Pop authored
Currently a few of the LU's CheckPrereq use utils.HostInfo which raises a resolver error in case of failure. This is an exception from the standard that CheckPrereq should raise an OpPrereqError if the error is in the 'pre' phase (so that it can be retried). This patch adds a new error code (resolver_error) and a wrapper over utils.HostInfo that just converts the ResolverError into OpPrereqError(…, errors.ECODE_RESOLVER). It then uses this wrapper in cmdlib, bootstrap and some scripts. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-