- 08 Oct, 2007 2 commits
-
-
Iustin Pop authored
This patch changes the tags opcodes to work with multiple tags at once instead of only one. As such, the opcodes and some parameters are renamed. Reviewed-by: imsnah
-
Iustin Pop authored
Reviewed-by: imsnah
-
- 21 Sep, 2007 1 commit
-
-
Iustin Pop authored
We currently require that hostnames are FQDN not short names (node1.example.com instead of node1). We can allow short names as long as: - we always resolve the names as returned by socket.gethostname() - we rely on having a working resolver These issues are not as big as may seem, as we only did gethostname() in a few places in order to check for the master; we already required working resolver all over the code for the other nodes names (and thus requiring the same for the current node name is normal). The patch moves some resolver calls from within execution path to the checking path (which can abort without any problems). It is important that after this patch is applied, no name resolving is called from the execution path (LU.Exec() or other code that is called from within those methods) as in this case we get much better code flow. This patch also changes the functions for doing name lookups and encapsulates all functionality in a single class. The final change is that, by requiring working resolver at all times, we can change the 'return None' into an exception and thus we don't have to check manually each time; only some special cases will check (ganeti-daemon and ganeti-watcher which are not covered by the generalized exception handling in cli.py). The code is cleaner this way. Reviewed-by: imsnah
-
- 19 Sep, 2007 2 commits
-
-
Iustin Pop authored
This patch allows 'gnt-instance add' to not start the newly-created instance. It also allow 'gnt-instance add' and 'gnt-backup import' to not check for IP conflicts (only when not starting the instance). Reviewed-by: ultrotter
-
Iustin Pop authored
The current result of utils.LookupHostname() is a dict, but this does not allow static checkers to check the correctness of the code. This patch introduces a new class names HostInfo and changes LookupHostname to return an instance of this class; this allows better checking of the code (and also the code is cleaner). Reviewed-by: ultrotter
-
- 18 Sep, 2007 1 commit
-
-
Iustin Pop authored
This patch adds a new OpCode (and corresponding LU) that implements the cluster rename functionality. This is done by shutting down the master role, making the needed sstore modifications and distributing the changed files to all nodes, and then re-enabling the master role. The modification to the man page of gnt-cluster also moves the section on gnt-cluster destroy in order to correct alphabetical ordering. Reviewed-by: imsnah
-
- 17 Sep, 2007 1 commit
-
-
Iustin Pop authored
This patch adds support for instance rename operation at all remaining layers: RPC, OpCode/LU and CLI. Reviewed-by: imsnah
-
- 14 Sep, 2007 5 commits
-
-
Iustin Pop authored
Change this to have the exact same parameters as OpQueryInstances. Also fix burnin which is broken since r146. Reviewed-by: imsnah
-
Iustin Pop authored
As per the changes to LUQueryNodes, the QueryInstances LU is modified to accept a list of instances for which to compute and return information. Reviewed-by: imsnah
-
Iustin Pop authored
Now that LUQueryNodes supports all the functionality of LUQueryNodeData, let's migrate gnt-node.ShowNodeConfig to use it and remove all traces of OpQueryNodeData and LUQueryNodeData. Reviewed-by: imsnah
-
Iustin Pop authored
LUQueryNodes it's very similar to LUQueryNodeData, but it lacks two features: - instance list (it has count though), both primary and secondary - selective node listing In order to support these features, we change it to return raw values instead of stringified ones (like the recent change to LUQueryInstances) and to support query-ing of a restricted set of nodes. This CL also modifies the gnt-node script to conform to the new protocol and the opcode OpQueryNodes to support the new "nodes" attribute. Reviewed-by: imsnah
-
Iustin Pop authored
On closer look, all except one of the current users of _GetWantedNodes are using only the name of the nodes and throw away the other attributes. It makes sense to make this function return only the name list (as in the future this might be faster than computing all attributes). Reviewed-by: imsnah
-
- 13 Sep, 2007 1 commit
-
-
Iustin Pop authored
Currently, LUQueryInstances will provide strings for its results. This makes it hard for other consumers than "gnt-instance list" to use the OpQueryInstances opcode for whatever they wish to. The change moves the formatting in five of the six cases where this happens to the actual gnt-instance.ListInstances procedure and removes the unconditional convert to string in LUQueryInstances.Exec() Reviewed-by: imsnah
-
- 12 Sep, 2007 1 commit
-
-
Iustin Pop authored
This duplicates _GetWantedNodes to _GetWantedInstances, after doing some changes to it: - fix an indentation error that should result in only the last node name passed being chosen - change the function to have a single return statement - remove a redundant 'is not None' check Reviewed-by: imsnah
-
- 30 Aug, 2007 2 commits
-
-
Michael Hanselmann authored
- Replace magic values by constants. Reviewed-by: iustinp
-
Iustin Pop authored
This adds a check that the initial node's IP name doesn't resolve to a loopback address (127.x.y.z). Also remove an unused variable. Reviewed-by: imsnah
-
- 28 Aug, 2007 1 commit
-
-
Iustin Pop authored
This changes the cluster init and node join to refuse a node that has a different hostname than what the resolver returns. Reviewed-by: imsnah
-
- 24 Aug, 2007 1 commit
-
-
Iustin Pop authored
This changes: - cluster setup, we no longer edit /etc/ssh/ssh_known_hosts but our own file - node add, we no longer remove root's known_hosts (twice) - gnt-instance console, both the LU and the script: since now the ssh setup is not standard, we need to build the ssh cmdline in the LU (instead of manually building it in the script) with the correct parameters and use the command line as returned in the script - ssh.py, many changes, split options in module-level constants so that building the command line in different places is easier/more logical - backend.py, we no longer remove root's known_hosts in Add node, and we allow our own known_hosts file to be uploaded Reviewed-by: imsnah
-
- 23 Aug, 2007 1 commit
-
-
Iustin Pop authored
This function used a hand-coded ssh call to remote nodes. Fix it to use the ssh.SSHCall function, and in the process drop the command field from the results, as it's too verbose and we can use (in gnt-cluster) what we passed in. Reviewed-by: schreiberal
-
- 22 Aug, 2007 1 commit
-
-
Iustin Pop authored
_GetWantedNodes is used wrongly by the LUClusterCopyFile. This fixes that. Reviewed-by: imsnah
-
- 20 Aug, 2007 2 commits
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
Iustin Pop authored
appropriate raise. Reviewed-by: imsnah
-
- 16 Aug, 2007 1 commit
-
-
Iustin Pop authored
It fixes the main Makefile.am to create $localstatedir/{lib,log}/ganeti. It fixes the testing Makefile.am after the rename fake_config.py -> mocks.py. It strips the output of "ip link show" to have a nicer output if the master netdev does not exist.
-
- 14 Aug, 2007 1 commit
-
-
Iustin Pop authored
This changes the raising of exceptions from: raise Exception, value to raise Exception(value) as the first form will be removed in python-3000 and the second form is preferred now. The changes also involve a few cases of changing from raising standard exceptions and use our own ones. The new version also fixes many pylint-generated warnings, especially in ganeti-noded where I changed many methods to @staticmethod. There is no functionality changed (barring any bugs).
-
- 08 Aug, 2007 1 commit
-
-
Iustin Pop authored
This is only the backend part, from the command line the tags can't be read/modified yet. Reviewed-by: imsnah
-
- 06 Aug, 2007 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 03 Aug, 2007 2 commits
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
instead use an UUID prefix and a suffix denoting the disk iv_name (sda/sdb) and possibly it's type (data/meta). Reviewed-by: imsnah
-
- 30 Jul, 2007 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 27 Jul, 2007 5 commits
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
- Add the command to gnt-instance.sgml Reviewed-by: iustinp
-
Iustin Pop authored
runnable on non-master nodes (and remove the list of instances and nodes returned by it, that information can be retrieved by other opcodes). Also, remove the node/instance list from "gnt-cluster info" as it doesn't make sense to duplicate this information. Reviewed-by: imsnah
-
Iustin Pop authored
Reason: if left ConfigWriter, nodes don't know to which cluster they belong. This will bite us later when we'll revisit node join operation. Cons: we lose the cluster name from the config file, which means a standalone "cluster.data" is a little bit harder to analyze. But I have a plan for this which will follow shortly. Implementing this will also allow us to cleanly fix "gnt-cluster getmaster". Reviewed-by: imsnah
-
- 26 Jul, 2007 2 commits
-
-
Michael Hanselmann authored
- Implement “gnt-instance reinstall” - Fix two typos Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 25 Jul, 2007 2 commits
-
-
Iustin Pop authored
-
Iustin Pop authored
handling, as it can be static and outside of ganeti. This also means we can get rid of a lot of infrastructure too: - the master/node config files checkers - one rpc function
-
- 24 Jul, 2007 2 commits
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
- Create all --output options using a constant - Put node checking code from opcodes into a single function - Do the same for output fields Reviewed-by: iustinp
-