- Apr 05, 2008
-
-
Manuel Franceschini authored
This is the representation of file VBDs on the backend. It's the first implementation an supports only raw files. Reviewed-by: iustinp
-
Manuel Franceschini authored
Reviewed-by: ultrotter
-
Manuel Franceschini authored
Reviewed-by: ultrotter
-
Manuel Franceschini authored
Add _[Create,Remove,Rename]FileStorageDir function which are needed for file-based instance management. These function check whether the given directory to operate on is under the cluster-wide defined default file storage dir. If this is not the case the won't do anything and return False. This is to prevent cluster manipulation or damage. Reviewed-by: ultrotter
-
- Apr 04, 2008
-
-
Manuel Franceschini authored
Reviewed-by: imsnah
-
Iustin Pop authored
This patch implements an optional parameter to utils.Daemonize() which allows that function to not close some file descriptors. This will allow the master daemon to open the listening socket before fork - in order to be able to notify errors and return a meaningful exit code, and then when we fork we don't close that fd. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a very basic gnt-job script that allows job querying. This goes on top of the previous master daemon patches. Currently, because of the not-changed cmd lock, you can't query the jobs as long as a job is running - you have to rm the cmd lock and then you can query the jobs. Reviewed-by: imsnah
-
Iustin Pop authored
Currently, in ganeti-noded we have the createDaemon function. Since we'll need the same in other daemons, we move this function to utils.py With the move, a few changes were also done: - change the name to Daemonize() - add a parameter, logfile, as different daemons will want to log to different files - remove the try.. except.. around the fork calls, since they were only re-raising the OS exception with less data; unless we want to actually handle fork error (not just re-raising), these try blocks are not useful - change the return style at the end of the function Reviewed-by: imsnah
-
- Apr 02, 2008
-
-
Guido Trotter authored
This new version includes all the possible failure options. Reviewed-by: iustinp
-
Guido Trotter authored
_CheckDiskConsistency outputs "Can't get any data from node NODE" when no drbd is found on the target node. This causes a misleading error message to be output for example on failover (when the primary node is down, or the instance is not running), stating that no data could be got from the secondary node, which scares the user and misleads him. Changing this to "Disk degraded or not found on node %s" still reports that something is missing, but on the other hand doesn't make the user think the node is down, or has no data at all... Reviewed-by: imsnah
-
Guido Trotter authored
Right now if you try to failover an instance which is not marked as up the operation will fail unless you pass the --ignore-consistency flag because the disks won't be considered to be consistent. Allow them to be if we know the instance shouldn't be up. Reviewed-by: imsnah
-
Guido Trotter authored
Currently gnt-backup export chains the ShutdownInstance and StartupInstance opcodes to itself. This works but (a) it's suboptimal, because there's no need to deactivate the instance's disks as we are about to restart it anyway, and (b) doesn't take care of instances which are already down (and should be). This patch takes care of this by just calling the shutdown rpc function instead of the whole opcode, and just starting up the instance if it's configured as up in the first place. Reviewed-by: imsnah
-
Michael Hanselmann authored
ConfigParser.SafeConfigParser doesn't support unicode string objects. Unicode string objects are returned by simplejson. Reviewed-by: iustinp
-
Guido Trotter authored
gnt-instance failover on an instance marked as down will mistakenly bring it up. The watcher will then shut it down again, but it's a lot better (and safer) not to start it at all. Reviewed-by: imsnah
-
Guido Trotter authored
Reviewed-by: imsnah
-
Guido Trotter authored
Reviewed-by: imsnah
-
- Apr 01, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds a very in-progress master daemon. This needs to be launched manually, does not background itself, but can be used for opcode execution. Also parts of this code should be moved to luxi.py. Reviewed-by: ultrotter
-
Guido Trotter authored
The message used to misleadingly say that failover just works with remote_raid1 instances, while of course it works for drbd as well. Since remote_raid1 has been removed from the main development branch only drbd will be shown. Thanks to Jesus Climent who spotted the bug. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds a script which submits a job consisting of the OpTestDelay opcode. This can be helpful for debugging and can be extended to execute other 'debug'-like tasks. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds function that submit jobs or queries over the unix socket interface to lib/cli.py. The will be used by the scripts instead of the SubmitOpCode function. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds a very dumb in-memory only queue implementation. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds an initial implementation of the client-side of the unix socket interface. The code is not yet used by other parts of ganeti. Reviewed-by: imsnah
-
- Mar 31, 2008
-
-
Iustin Pop authored
This patch makes the command execute last on the master (if the master is selected). The order for the other nodes is unchanged. The patch also updates the man page with some explanations and an example. Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: ultrotter
-
Manuel Franceschini authored
- Substitute all occurences of name 'parms' with 'params' - Small codestyle fix Reviewed-by: ultrotter
-
Manuel Franceschini authored
This patch does two things: - Add gnt-cluster modify - Add --no-lvm-storage option to gnt-cluster init Reviewed-by: iustinp
-
Manuel Franceschini authored
Reviewed-by: iustinp
-
Manuel Franceschini authored
Reviewed-by: iustinp
-
Manuel Franceschini authored
This patch does two things: - Remove "vg_name" from _OP_REQP due to the introduction of --no-lvm-storage. Since vg_name option has as default now None and is only set to the DEFAULT_VG if lvm_storage is enabled, this is needed - It changes LUInitCluster.CheckPrereq() to skip _HasValidVG check initializing the cluster with --no-lvm-storage. Furthermore it adds to the help message the statement of the possibility to use --no-lvm-storage if no 'xenvg' volume group is found. Reviewed-by: iustinp
-
Manuel Franceschini authored
Add LUSetClusterParams, which is the LU to modify cluster options. This includes checks: - not to disable lvm storage when it's already disabled - not to enable lvm storage when it is already enabled - not to disable lvm when lvm-based instances are present - that the specified volume group is valid on all cluster-nodes when lvm-storage is going to be enabled Reviewed-by: iustinp
-
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
-