- 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
-
Iustin Pop authored
This patch adds support for mult-disk/multi-nic in: - instance add - burnin The start/stop/failover/cluster verify work as expected. Replace disk and grow disk are TODO. There's also a change gnt-job to allow dictionaries to be listed in gnt-job info. Reviewed-by: imsnah
-
Iustin Pop authored
This adds some more listing cases (useful for scripting/rapi): - disk.sizes for a list of all sizes - nic.(ips|macs|bridges) Reviewed-by: imsnah
-
Iustin Pop authored
Currently the iv_name is very linux-specific, and will break with the multi-disk changes. The patch changes this to generate sdX names based on the disk index in the disks structure, instead of relying on the iv_name. Reviewed-by: imsnah
-
- Nov 19, 2008
-
-
Michael Hanselmann authored
Before we had lots, lots and lots of code duplication. This patch changes the code to use four central functions. Reviewed-by: iustinp
-
Michael Hanselmann authored
This allows a single HttpClientManager to be used from more than one thread at the same time. We discussed having one HttpClientManager per job queue thread. Assuming there should be one HTTP thread per node, this would mean quadratic growth with the number of nodes. By being able to reuse the manager, this problem is a defused a bit. This patch also fixes a typo in HttpClientRequestExecutor. Reviewed-by: iustinp
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Oleksiy Mishchenko authored
Split parameters filter to the separate function and reuse it in instance creation.
-
- Nov 18, 2008
-
-
Iustin Pop authored
The waiting sharer blocks exclusive is another not-possible to test right now. Sorry for missing it the first time; there are no other testWaiting... tests. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds support for querying in gnt-instance list of: - disk.count - nic.count - disk.size/$N - nic.(ip|mac|bridge)/$N The patch also disables the exception raised when the header description is missing, that should be fixed in the future (together with better handling of variable numeric fields). Reviewed-by: imsnah
-
Iustin Pop authored
This patch converts the current usage of _CheckOutputFields to the FieldSet class, but it doesn't start to use its variable matching features. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds a _FieldSet class that can be used for the new variable parameter sets: e.g. the sda_size will change to disk/0.size (or similar) and we need to both check validity and extract the index of the parameter easily. The patch also sorts the unittest list in Makefile.am. Reviewed-by: ultrotter
-
Iustin Pop authored
Until we have a way to properly test this, we'll skip the test. Reviewed-by: imsnah
-
- Nov 17, 2008
-
-
Iustin Pop authored
This patch removes the client-api.txt document (since it's obsoleted by the documentation inside the design-2.0.rst document) and adds many updates to the latter. Reviewed-by: imsnah
-
Iustin Pop authored
Adding a new filetype/make rule requires more work than the previous patch. Sorry! Now pases distcheck. Reviewed-by: imsnah
-
- Nov 16, 2008
-
-
Iustin Pop authored
This adds a simple diagram for the cluster architecture and also adds a dependency on graphviz (both doc and in configure). Reviewed-by: imsnah
-
Iustin Pop authored
This patch combines all the design documents for 2.0 except the security one into a single document, in order to ease reading and reduce duplication of information. Future patches will start removing wrong pointers to old document names and some better integration between the sections. Reviewed-by: imsnah
-
- Nov 14, 2008
-
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-
Oleksiy Mishchenko authored
Reviewed-by: imsnah
-