- Aug 06, 2008
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Aug 04, 2008
-
-
Iustin Pop authored
This patch adds the infrastructure for executing a job in background, instead of foreground, via a new “--submit” option. The behaviour is that the job ID is printed and the script will immediately exit. The patch also converts gnt-node list to this model (yes, this will be a query in the future). Reviewed-by: imsnah
-
- Jul 30, 2008
-
-
Iustin Pop authored
With the recent startup/shutdown changes (and with the master daemon in place), the cluster destroy needs some fixing. This patch moves the finalization of the destroy out from cmdlib into bootstrap, so we can nicely shutdown the rapi and master daemons. Reviewed-by: ultrotter
-
Iustin Pop authored
This is special in the sense that it can run on any node. As such, we just instantiate ssconf and read the data from it. Reviewed-by: ultrotter
-
Iustin Pop authored
This (big) patch reworks the master startup/shutdown and the fixes the master failover. What does the patch do? For master start/stop: - remove the old ganeti-master script and its associated man page - moves the ip start/stop directly into the backend.(Start|Stop)Master - adds start/stop of the master/rapi daemon into these functions, selectively based on the start/stop arguments - makes the master call via rpc StartMaster(start_daemons=False) to the local node so that the master IP is started - and finally changes the example init.d script to directly start and stop all three daemons, since they do the right thing (depending on master/not master role) For master failover: - moves the code from LUMasterFailover into bootstrap.MasterFailover, since we need to start/stop the master during this operation and thus it can't be executed from the master - removes the LUMasterFailover and its associated opcode Notes: ubuntu's /etc/lsb-base-logging.sh is dumb, so the messages 'not master' are not seen during startup on non-master nodes. Reviewed-by: ultrotter
-
- Jul 28, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
The old API is no longer working. Reviewed-by: ultrotter
-
- Jul 24, 2008
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Jul 23, 2008
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Jul 14, 2008
-
-
Iustin Pop authored
I broke gnt-backup in rev 1035, sorry :( Reviewed-by: imsnah
-
- Jul 11, 2008
-
-
Michael Hanselmann authored
"gnt-job list" was broken after my recent changes in the RPC between clients and the master. This patch makes it work again. Reviewed-by: iustinp
-
- Jul 03, 2008
-
-
Iustin Pop authored
The gnt-instance script doesn't run in the same process anymore, so we can't and don't have to unlock. Reviewed-by: ultrotter
-
- Jul 01, 2008
-
-
Iustin Pop authored
This adds the same “-o +...” functionality in gnt-job as in the node and instance scripts. Reviewed-by: imsnah
-
- Jun 27, 2008
-
-
Guido Trotter authored
From the master node we can't start ssh and connect to the remote node, nor we can do it from ganeti-noded as this ssh section will possibly ask for key confirmation and password. So the code to copy the ganeti-noded password and SSL key has been moved to bootstrap.py, and it's called by gnt-node before the AddNode opcode. Reviewed-by: iustinp
-
Guido Trotter authored
In the "new world" we'll need to setup ganeti-noded via ssh on the node before calling the AddNode opcode. Before doing it we'll check that the node is not already in the cluster, if --readd was not passed. This guarantees we're not going to restart ganeti-noded on a running node. This patch also incidentally fixes a non-style-guide conformant docstring. Reviewed-by: iustinp
-
- Jun 25, 2008
-
-
Michael Hanselmann authored
Apparently there were still some leftovers. While removing an instance, I got the message "unhandled exception 'module' object has no attribute 'LD_MD_R1'". Reviewed-by: iustinp
-
- Jun 23, 2008
-
-
Iustin Pop authored
Since the disabling of forking in the master daemon, the two ssh-based subcommands were not working anymore. However, there is no need at all for the commands to be run from the master daemon (permissions to read the cluster private ssh key notwithstanding), they can be run directly from the command line utilities. The patch removes the two opcodes OpRunClusterCommand and OpClusterCopyFile (and their associated LUs) and changes the code in ‘gnt-cluster’ to query the list of nodes and run directly the SshRunner over the list. As such, all forking is done from the gnt-cluster script, and the commands are working again. Reviewed-by: imsnah
-
- Jun 22, 2008
-
-
Iustin Pop authored
Currently there isn't any easy way to list all nodes or instance and their tags; you have to query each node in turn, or list all the tags via something like “gnt-cluster search-tags '.*'”. Of course, this is not optimal. The patch adds a new fields to “gnt-instance list” and “gnt-node list” called ‘tags’, that will list the tags of the object in comma-separated form. This field will be empty if there are no tags (when using a separator this output can still be parsed by other scripts). At opcode level, there is a new fields called ‘tags’ that returns a (python) list of the object tags. Reviewed-by: ultrotter
-
- Jun 19, 2008
-
-
Michael Hanselmann authored
This change allows us to use cleaner dependencies between directories. The build system is basically rewritten in large parts and may contain bugs. Reviewed-by: iustinp
-
- Jun 17, 2008
-
-
Iustin Pop authored
This patch exposes at command line level the grow-disk operation. Reviewed-by: imsnah
-
- Jun 12, 2008
-
-
Michael Hanselmann authored
This allows us to initialize a new cluster. The code certainly contains bugs and hooks aren't implemented yet. Reviewed-by: iustinp
-
- May 31, 2008
-
-
Iustin Pop authored
Author: schreiberal Reviewed-by: iustinp
-
Iustin Pop authored
Another tiny fix. Anybody got a nice brown paper bag I can wear? Author: schreiberal Reviewed-by: iustinp
-
Iustin Pop authored
This patch modifies the code for "gnt-instance info .." to only display instance parameters that actually apply to that instance, i.e. for PVM instances no HVM parameters are shown and vice versa. Author: schreiberal Reviewed-by: iustinp
-
Iustin Pop authored
This patch adds the commandline extensions and the code to store and display the extended HVM features. Author: schreiberal Reviewed-by: iustinp
-
- May 30, 2008
-
-
Iustin Pop authored
This patch removes the last of the md and drbd 0.7 code. Cluster which have the old device types will be broken if they have this applied. Reviewed-by: imsnah
-
- May 15, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- May 13, 2008
-
-
Iustin Pop authored
[Trunk version] Reviwed-by: imsnah
-
Iustin Pop authored
This reverts commit 976. Reviewed-by: ultrotter
-
Iustin Pop authored
[Forward-port of the 1.2 branch patch] This patch removes all the parameters and options from the output "gnt-X" (i.e. the subcommand list for command). This is done in order to uniformize the output, currently only some parameters are shown and they are not always consistent (e.g. required versus important parameters). Reviewed-by: ultrotter
-
- May 05, 2008
-
-
Iustin Pop authored
This shortens the help output in gnt-node so that the output looks nicer, and improves the manual page for gnt-instance with the new 'status' field. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch allows the '-o' option to the list subcommands to add more fields to the default list instead of replacing the default list by prefixing the fields list with '+'. The patch also moves the listing (in the help output) of the default field list from hardcoded to built at runtime from the actual list. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds the backend and frontend changes needed for being able to list the cpu count. Reviewed-by: ultrotter
-
- Apr 28, 2008
-
-
Manuel Franceschini authored
This patch adds the file storage options to gnt-backup import which would otherwise fail since the values of file_storage_dir and file_driver are accessed in LUCreateInstance. Reviewed-by: ultrotter
-
Manuel Franceschini authored
bdev.FileStorage does not have major or minor fields, so gnt-instance info for file backed instances fails with a TypeError. This patch adds checks to prevent that and print 'N/A' instead. Reviewed-by: imsnah
-
- Apr 24, 2008
-
-
Iustin Pop authored
This patch implements secondary replace via the iallocator. The new opcode parameter 'iallocator' behaves like this: if passed, it will always compute and assign a new secondary, behaving in effect as if the secondary node has been passed. It conflicts with actually giving the secondary too. [Note: not tested with remote_raid1, but the code should behave the same, we only touch CheckPrereq and we assign a node.] The patch also adds burnin support for the replace secondary operation; with this in place, burnin can fully work with auto-assigned nodes. Reviewed-by: ultrotter
-
- Apr 23, 2008
-
-
Guido Trotter authored
This patch also fixes the LUExportInstance Prereq docstring. Reviewed-by: iustinp
-
- Apr 16, 2008
-
-
Michael Hanselmann authored
This allows us to readd a node after it failed and required a reinstallation or replacement. Reviewed-by: iustinp
-
Iustin Pop authored
Reviewed-by: amishchenko
-