An error occurred fetching the project authors.
- Nov 27, 2008
-
-
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
-
Michael Hanselmann authored
Instead of parsing the configuration on the node, we pass the ssconf values from the master. Reviewed-by: iustinp
-
Michael Hanselmann authored
Reusing the private key and certificate objects gave us problems. This patch changes the code to only cache the PEM data, but the objects themselves. For every socket, the private key and certificate objects are created again. Reviewed-by: iustinp
-
- Nov 24, 2008
-
-
Michael Hanselmann authored
Ssconf files shouldn't be updated when running unittests. Reviewed-by: ultrotter
-
Michael Hanselmann authored
There's no need to read the SSL certificate and key for every node in a request. Also add a TODO for better error reporting. Reviewed-by: amishchenko
-
Iustin Pop authored
This is the only change needed to make mcpu epydoc-compliant. Reviewed-by: ultrotter
-
Guido Trotter authored
Previously on import LUCreateInstance used to recycle the mac if the instance name was the same than the one used at export time. Now we do the same, but apply the setting separately for each nic. Reviewed-by: iustinp
-
Guido Trotter authored
Update the call to CreateInstance used in ImportExport to the new API for multidisk/nic. Reviewed-by: iustinp
-
Guido Trotter authored
When creating a new instance, after saving the instance data to the config file and creating the disks, but before waiting for sync and installing the OS, we release the node locks, to allow for more instance creations to proceed in parallel. Reviewed-by: iustinp
-
Guido Trotter authored
Currently free_memory just reports the amount of free ram, as seen by the hypervisor. We adjust this amount by subtracting the memory for any instance which is down, and the difference for any instance which is configured to have more memory than the amount it's currently running at. Reviewed-by: iustinp
-
Guido Trotter authored
GetAllInstancesInfo, in the backend, returns just a dict, not a dict of dicts. Reviewed-by: iustinp
-
Guido Trotter authored
Since the hypervisor is instance dependent we'll get one on instance creation, and use the one in the instance config on relocation. Reviewed-by: iustinp
-
Guido Trotter authored
- reuse the previously called cluster_info, rather than calling it again - get all the instances from the config atomically, to prevent race conditions - use a list comprehension, for simplicity Reviewed-by: iustinp
-
Guido Trotter authored
With static minors we don't have a race condition anymore when starting/stopping/rebooting/reinstalling more than one instance on the same node, so we'll drop node locking altogether. Reviewed-by: iustinp
-
Guido Trotter authored
_ComputeDiskSize's API was changed for multidisk support in r2010, but iallocator's call to it were not fixed. Converting them now. Reviewed-by: iustinp
-
- Nov 23, 2008
-
-
Iustin Pop authored
This makes cmdlib.py not throw epydoc errors anymore. Reviewed-by: ultrotter
-