- Dec 02, 2008
-
-
Iustin Pop authored
This allows burnin to work with diskless instances (since we cannot pass right now no disks to it). Reviewed-by: imsnah
-
- Dec 01, 2008
-
-
Michael Hanselmann authored
There are still issues, especially with "gnt-instance modify" and resetting values. However, this is a start. Reviewed-by: ultrotter
-
Michael Hanselmann authored
They're not used anymore. Reviewed-by: ultrotter
-
Michael Hanselmann authored
Unfortunately, a rpc.Client object was passed as the first parameter, causing the function to always fail. Found during QA testing. Reviewed-by: ultrotter
-
Guido Trotter authored
Currently it was left alone, and thus its value was "null". Reviewed-by: imsnah
-
Iustin Pop authored
[Forward-port from the 1.2 branch] If ganeti starts before xend, the node information will not have all the fields filled in. The patch changes so that missing keys will be treated as unknown (this applies to other cases as well, not only xend not started). Reviewed-by: ultrotter
-
- Nov 28, 2008
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
- Add new "canceling" status - Notify clients when job is canceled - Give a return value from CancelJob - Handle it in the client library Reviewed-by: iustinp
-
- Nov 27, 2008
-
-
Iustin Pop authored
Currently, the node add operation uses a job to query the node name and the bootstrap function directly reads the config file for the cluster name. This patch changes to that both the cluster name and the verification of the node is done via queries to the master. Reviewed-by: ultrotter
-
Iustin Pop authored
In revision 2072 "ConfigWriter: change cluster serial meaning" I misread the serial_no update logic: it was about updating the serial number on the object itself, not on the cluster. So we don't actually have at all cluster serial number increase when a node is changed (not removed/added). This patch revers to the original always increase the target serial number and adds increase of the cluster serial number in case a node has been changed. Reviewed-by: ultrotter
-
Iustin Pop authored
Dictionaries raise KeyError, and not ValueError when invalid keys are passes to del. Reviewed-by: imsnah
-
Iustin Pop authored
Currently, we increase the cluster serial number for instance additions, removals and renames. This is conforming with the REST paradigm, however it means that for each of these operations, we need to push ssconf updates to all nodes. In order to support future cases with reduced set of master-eligible nodes, we want to reduce the ssconf pushes (which need to be to all nodes). This patch changes the meaning for the cluster serial number so that it doesn't track instance operations at all. This means that addition of an instance can fail due to concurrent additions, even if the cluster serial has not changed. It slightly breaks the REST paradigm, but IMHO it's better for actual usage. Reviewed-by: ultrotter
-
Iustin Pop authored
This is mostly a copy from gnt-instance add; import works, but it's not optimal - device count/parametrs should be able to be reused. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch fixes a bug in disk calculation for gnt-backup export, which completely broke one-disk instance export. The patch also corrects some error messages and style issues. Reviewed-by: ultrotter
-
Iustin Pop authored
We never verified the node name before, so this is most likely not a non-retrieve but a wrong name case. Reviewed-by: ultrotter
-
Iustin Pop authored
Currently there's no way to specify no NICs for an instance, even though this is a supported configuration. The patch adds a --no-nics option to gnt-instance add. Reviewed-by: amishchenko
-
Iustin Pop authored
The submit function was using a very old API. This patch brings it up to date. Reviewed-by: imsnah
-
Iustin Pop authored
Currently, job failures are done by raising OpExecError(job result). For a one-opcode job that failed, this is very non-intuitive: Failure: command execution error: [u'Disk size change not possible, use grow-disk'] This patch changes the output in two ways: - for a job which didn't have opcodes which succeeded, it changes it to: Failure: command execution error: Disk size change not possible, use grow-disk - for a job with partial completion, to: Failure: command execution error: partial failure (opcode 1): Cannot remove the last disk of an instance The actual error type is not changed. A job that doesn't have at least an error-ed opcode is shown as before. Reviewed-by: imsnah
-
Iustin Pop authored
We changed a while ago the protocol for opening block devices, but FileStorage was not changed. This patch makes it work again. Reviewed-by: imsnah
-
Iustin Pop authored
This patch fixes the diskless and drbd/file based instances. Sorry :( Reviewed-by: ultrotter
-
- Nov 26, 2008
-
-
Guido Trotter authored
Since we're not sure ganeti-noded has started yet, we need to create RUN_GANETI_DIR before SOCKET_DIR as well, with the proper permissions. Reviewed-by: imsnah
-
Guido Trotter authored
ganeti-noded used to create all directories under /var/run with an hard-coded mode. convert it to a constant. Reviewed-by: imsnah
-
Michael Hanselmann authored
By logging more information, a user can see how far it is in inspecting the queue. This can be useful with a large number of jobs. Also, instead of loading all jobs in one go, load only the list of job IDs and then load jobs one by one. Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Iustin Pop authored
This patch removes the duplicate serialization and calls to utils.GetNodeDaemonPort in rpc.Client, and instead moves them to calling functions (the _*NodeCall ones recently introduced). Reviewed-by: ultrotter
-
- Nov 25, 2008
-
-
Guido Trotter authored
Before it was in the abstract linux namespace, where unfortunately we couldn't easily check from python the credentials of the connecting clients. Now we also have to remove the file on exit and when starting. Reviewed-by: imsnah
-
Guido Trotter authored
If SOCKET_DIR doesn't exist we create it in the master daemon, before trying to put a socket inside it. Reviewed-by: imsnah
-
Guido Trotter authored
We want the socket dir to have a restricted permission. Reviewed-by: imsnah
-
Guido Trotter authored
This new directory under /var/run will be used for file based unix sockets. Reviewed-by: imsnah
-
Guido Trotter authored
Reviewed-by: imsnah
-
Iustin Pop authored
This big patch adds support for: - changing NIC/disks in the multi-device model - adding/removing NICs - adding/removing disks The patch is big and not very nice; the error checking paths are not very clear. The biggest problem is that from a simple instance.ATTR=VAL change (which didn't throw errors before) now we are creating and removing disks in this LU. Reviewed-by: imsnah
-
Iustin Pop authored
This patch adds support for a separate LU.CheckArguments() method which should do syntactic checks without holding locks and without polluting the ExpandNames which is a lock-related function. See for example the FIXME in LUSetInstanceParams.CheckPrereq. The patch also removes the REQ_MASTER and IsCluster checks since with the current architecture, inside LU code we are always in a valid cluster and we are always running on the master node. Reviewed-by: ultrotter
-
Iustin Pop authored
The wrong names were reused in a copy-paste. Reviewed-by: imsnah
-
Iustin Pop authored
The mode parameter needs to be exported and shown in the info output. Reviewed-by: imsnah
-
Iustin Pop authored
Currently the _GenerateDiskTemplate assumes it does initial creation of disks (i.e. it starts with index 0). For dynamic disk adds, we need to pass an additional offset. This patch adds this offset and modifies its sole current caller. Reviewed-by: imsnah
-
Iustin Pop authored
Previously we had only one nic, so the NIC information was all on one line. This patch changes it to: - NICs: - nic/0: MAC: aa:00:00:e8:b2:ef, IP: None, bridge: None - nic/1: MAC: aa:00:00:53:ca:92, IP: None, bridge: xen-br0 - nic/2: MAC: aa:00:00:ba:e5:30, IP: None, bridge: None Reviewed-by: ultrotter
-