- Mar 31, 2008
-
-
Manuel Franceschini authored
Reviewed-by: iustinp
-
Manuel Franceschini authored
This adds a check to fail instance creation if lvm-storage is disabled (cluster-wide). If lvm-storage is disabled (by initializing the cluster with --no-lvm-storage) only instances with disk template in frozenset DTS_NOT_LVM are allowed to create. Reviewed-by: iustinp
-
Manuel Franceschini authored
DTS_NOT_LVM: This constant is needed when checking if an instance can be created with the given disk template if no lvm-storage is available, i.e. the ganeti cluster does not have a volume group DEFAULT_VG: 'xenvg' has been hardcoded before. Reviewed-by: iustinp
-
- Mar 30, 2008
-
-
Iustin Pop authored
In the start and stop instance LUs, the configuration update is done right at the end. This means that if, for example, the instance shutdown succeeds, but the drive deactivation fails, the next run of the watcher will start the instance again, as it's still marked in running mode. This patch changes these two LUs so that first the update the configuration to the desired state, and only then we proceed to update the config. This ensures that the state saved is the desired state. Because the config might be updated even though the LU failed, this patch also modifies the mcpu.Processor.ExecOpCode method to run the RunConfigUpdate hook in a finally: phase while the lu.Exec is done in its try phase. This ensures that config update hooks (tries to) run at all times when the config is updated. Reviewed-by: schreiberal
-
- Mar 27, 2008
-
-
Iustin Pop authored
This oneliner fixes a bug in listing more than twenty instances for multiple operations (shutdown, startup, etc.). Reviewed-by: imsnah
-
Iustin Pop authored
This patch just removes an extraneous \n from the log message making it nicer to view. Reviewed-by: schreiberal
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
This enables us to run automated tests on “gnt-instance console”, at least to some degree. Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Mar 25, 2008
-
-
Manuel Franceschini authored
Reviewed-by: iustinp
-
Manuel Franceschini authored
Reviewed-by: iustinp
-
Iustin Pop authored
This patch removes the options that allow to create local_raid1 or remote_raid1 instances. It also modifies the documentation and removes these disk templates from burnin and from qa. Reviewed-by: imsnah
-
Iustin Pop authored
These two operations are related to md/drbd7 code (remote_raid1). Remove them as part of the md/drbd7 removal. Reviewed-by: imsnah
-
- Mar 20, 2008
-
-
Manuel Franceschini authored
This patch adds three things: - it normalizes the file storage directory path passed to gnt-cluster init - if the file-storage-path doesn't exist on the master node, ganeti tries to create it - adds additional check if the passed file-storage-dir is not a directory Reviewed-by: iustinp
-
Iustin Pop authored
The BlockDev.GetStatus() method and some associated constants were never used in the rest of the code. This patch removes them. Reviewed-by: imsnah
-
- Mar 19, 2008
-
-
Iustin Pop authored
This patch adds a new top-level class (BaseJO) that is used for both opcodes and a new Job class. This new class and the related changes to the OpCode abstract class are used to implement simple to-dict/from-dict transformations, so that we can easily serialize the classes using json. Reviewed-by: imsnah
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
Manuel Franceschini authored
Author: manuel.franceschini Reviewed-by: iustinp
-
Manuel Franceschini authored
This adds the possibility to specify at configure-time the default file-storage-dir. Author: manuel.franceschini Reviewed-by: iustinp
-
Iustin Pop authored
Currently in order to deal with tmpfs /var/run, we create the BDEV_CACHE_DIR in the init script. However, that does not cover all the cases, and it's not a proper place to deal with it: for example, dealing with not initialized clusters and the master node is more complicated. Therefore, this patch does: - make ganeti-noded create the directory automatically - make ganeti-noded error out if it can't create it or it's already there but not a directory - remove the creation from the init.d script Reviewed-by: ultrotter
-
- Mar 18, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
This replaces very old code. Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
This allows callers to allocate a pseudo-TTY easily. Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
This renames some functions and does some minor codestyle cleanup. Reviewed-by: ultrotter
-
Michael Hanselmann authored
The whole Ganeti cluster has a single SSH key. Its fingerprint is written to Ganeti's known_hosts file, together with an alias. This allows us to always use that alias instead of the real hostname, making management of the known_hosts file much easier. This patch does not handle an upgrade from an earlier version. Reviewed-by: ultrotter
-
Guido Trotter authored
Reviewed-by: imsnah
-
Guido Trotter authored
Previously if a shared thread was notified, together with the rest, and was not fast enough in waking up and acquiring the lock, another one could release it, decide there were no more sharers, and let an exclusive one in instead. With this patch we make sure all the shared holders which were waiting have passed, before declaring it's time to make an exclusive one pass. This also allows us to reintroduce a slight variation of the assertion removed in r665, which makes our code safer. Reviewed-by: imsnah
-
- Mar 11, 2008
-
-
Guido Trotter authored
The -s option when changing secondary node on a drbd template is implied, and thus optional. Specify this in the manpage. Reviewed-by: iustinp
-
Iustin Pop authored
Make the cluster init fail if the IP to which the cluster name resolved is already reachable by the master node. This is not a foolproof solution, but it allows a cheap method of detecting simple mistakes. It will also disallow using the master node name as cluster name (which is something good). The only drawbacks that I see are: - you are not allowed to do this, which might come in handy in cluster upgrades; but since we support rename, this is mitigated - cluster init takes longer now (+the timeout value, set to 5 seconds), but since this is a one-off operation, it should be ok Reviewed-by: ultrotter
-
Iustin Pop authored
This patch modifies TcpPing and its callers to make the source address selection optional. Usually, the kernel will know better what source address to use, just in some cases we want to enforce a given source address so it makes sense to make this optional. Reviewed-by: ultrotter
-
- Mar 06, 2008
-
-
Guido Trotter authored
The "quick" online help just reported the option to change secondary node. Add the ones to just replace the disk locally on-primary or on-secondary. It is of course impossible to espress in one line everything needed to use this command, but at least now the most common options are spelled out immediately. Reviewed-by: iustinp, imsnah
-
- Mar 05, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-