- Nov 25, 2008
-
-
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
-
Iustin Pop authored
Currently the temporary directory used for modules is under the current directory; this patch changes it so a temp directory is used; so we could build the apidocs with a R/O filesystem. Reviewed-by: ultrotter
-
Iustin Pop authored
There is no need to update ssconf if the cluster serial number has not changed. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch enables by default the old 'human-readable' option, but in a slightly different model. The option is now called "units" and takes either: - 'h' for automatic formatting - 'm', 'g' or 't' for mebi/gibi/tebibytes If 'h' is used, we add a unit suffix, otherwise nothing is added so that parsing is easy. The default value of this unit is: - 'h' if a separator is not passed - 'm' if a separator is passed Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds nicer formatting for some gnt-instance list operations. Reviewed-by: ultrotter
-
- Nov 21, 2008
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Iustin Pop authored
This changes cli.py to FieldSet usage so that gnt-instance list will format nicely the disk.size/*, and the count of disks/nics. Reviewed-by: ultrotter
-
Iustin Pop authored
Since we can use the FieldSet class in cli.py to nicely format disk sizes and such, we move it to utils.py and also move its associated unittest. I didn't remove the cmdlib.py unittest file as that's not the good direction :) Reviewed-by: ultrotter
-
Iustin Pop authored
This looks beter than '0 disk'. Reviewed-by: ultrotter
-
Iustin Pop authored
Reviewed-by: ultrotter
-
Iustin Pop authored
This patch replaces the hand validation of the disk index with the instance.FindDisk method (actually reverting to previous method, before the multi-disk, but now with indexes). Reviewed-by: ultrotter
-
Iustin Pop authored
This patch changes the instance.FindDisk method to take index arguments (instead of iv_names), and changes GrowDisk and list instances accordingly. Reviewed-by: ultrotter
-
Michael Hanselmann authored
This patch enables SSL between masterd and noded. Reviewed-by: iustinp
-
Michael Hanselmann authored
With the new SSL client certificate stuff it's no longer needed. Reviewed-by: iustinp
-
Michael Hanselmann authored
Otherwise we would read them for every request the HTTP client makes against a server and this is not needed. Reviewed-by: iustinp
-
Michael Hanselmann authored
Removing the PID file should be the last thing done. This patch makes sure it's also removed when master.server_cleanup() throws an exception. Also initialize logging only after writing the PID file. Reviewed-by: iustinp
-
Michael Hanselmann authored
ganeti-masterd: Add initialization and shutdown of RPC pool. It needs to be shutdown before forking. ganeti.cli: Add decorator function to initialize and shutdown RPC pool. ganeti.rpc: Add functions to initialize and shutdown RPC pool. Throw exception when used without proper initialization. gnt-cluster, gnt-node: Use decorator function to initialize and shutdown RPC pool. Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
Also fix an error in the CheckPrereq. Reviewed-by: imsnah
-
- Nov 20, 2008
-
-
Michael Hanselmann authored
This function will be used to write ssconf files from the node daemon. By creating a lock file, we synchronize different child processes of ganeti-noded to not overwrite each other's changes. Also, external processes could use this lock to make sure they don't read ssconf files while changes are going on. The socket module is not used (anymore) in ganeti.ssconf, removing it. Reviewed-by: iustinp
-
Iustin Pop authored
This patch changes the drbd8 replace disk only (no secondary change) to work in with multi-disk. This mode of replaces works correctly with replacing only a subset of disks. Reviewed-by: imsnah
-