- Dec 11, 2008
-
-
Iustin Pop authored
This patch should fix all outstanding epydoc parsing errors; as such, we switch epydoc into verbose mode so that any new errors will be visible. Reviewed-by: imsnah
-
- Oct 20, 2008
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
- Oct 06, 2008
-
-
Iustin Pop authored
Currently the SshRunner uses a SimpleConfigReader instance, however this is not best. We change it to use the cluster name directly (and its constructor now takes this as parameter, instead of SCR), and its callers are change to pass the name directly. As a consequence, we can now remove the initialization of SCR in gnt-cluster (copyfile and command), and instead we query the master for the cluster name). Reviewed-by: imsnah
-
- Oct 01, 2008
-
-
Michael Hanselmann authored
Get rid of ssconf and convert to configuration instead. Reviewed-by: iustinp
-
- Aug 15, 2008
-
-
Michael Hanselmann authored
This will be used to add nodes without user interaction, specifically in QA tests. Reviewed-by: ultrotter
-
Michael Hanselmann authored
I'm going to add another option and it would make maintaining them in constants even more complicated. Reviewed-by: ultrotter
-
Michael Hanselmann authored
This patch changes SshRunner.Run to pass all arguments to SshRunner.BuildCmd. They had the same arguments before and should stay that way. This change makes it easier to add new or change existing arguments. Reviewed-by: ultrotter
-
- Aug 13, 2008
-
-
Michael Hanselmann authored
If a node hasn't been part of the cluster before being added it'll not have the cluster's SSH key. This patch makes sure to accept those by not aliasing the machine name to the cluster name. Reviewed-by: ultrotter
-
- Apr 01, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- Mar 18, 2008
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
This allows callers to allocate a pseudo-TTY easily. Reviewed-by: ultrotter
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
Michael Hanselmann authored
This renames some functions and does some minor codestyle cleanup. Reviewed-by: ultrotter
-
Michael Hanselmann authored
The whole Ganeti cluster has a single SSH key. Its fingerprint is written to Ganeti's known_hosts file, together with an alias. This allows us to always use that alias instead of the real hostname, making management of the known_hosts file much easier. This patch does not handle an upgrade from an earlier version. Reviewed-by: ultrotter
-
- Oct 19, 2007
-
-
Iustin Pop authored
Reviewed-by: imsnah
-
- Oct 16, 2007
-
-
Iustin Pop authored
The node's ssh keys filenames are now provided as constants; this should allow easier customization. Also, the user's ssh key computing has been abstracted into ssh.py Reviewed-by: imsnah
-
- Oct 10, 2007
-
-
Iustin Pop authored
Since modules are not directly executables, remove the shebang from them. This helps with lintian warnings. Also make the autogenerated _autoconf.py contain two comment lines at the beginning, like the other modules. Reviewed-by: ultrotter
-
- Sep 13, 2007
-
-
Iustin Pop authored
Explanation: since we use lists and not a string, every argument we give is passed unchanged to the remote shell. So, for example, passing '/etc/init.d/ganeti restart' to the remote shell, it will try to run the path /etc/init.d/ganeti\ restart. With the s space included. This breaks, for example, gnt-node add and gnt-cluster command. The original problem with the backup routines that led to the "'" change is that they use a plain " ".join(list), but we don't need to quote the whole ssh remote command for this. We can simply use the existing utils.ShellQuoteCmd(list) which does the proper quoting of the ';' or '&&' metacharacters. With this change, both gnt-node add, gnt-cluster command and export/import work. This also improves the error-handling behaviour of one cat command by making it conditional on the preceding mkdir. Reviewed-by: ultrotter
-
- Sep 07, 2007
-
-
Guido Trotter authored
This avoids forgetting some parameters, as it's happening right now (the correct known host file is not being passed) In order to do so we split SSHCall into an auxiliary BuildSSHCmd which builds the command but doesn't actually call it, and SSHCall itself which runs RunCmd on top of BuildSSHCmd's result. BuildSSHCmd is then explicitely called by import/export who has to build a more complex command to be run later.
-
- Aug 24, 2007
-
-
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
-
- Aug 20, 2007
-
-
Iustin Pop authored
In case we use StrictHostKeyChecking=ask, also add HashKnownHosts=no so that debugging is easier. The nodes to which we are connecting are anyway visible in /etc/ssh/ssh_known_hosts.
-
- Aug 14, 2007
-
-
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).
-
- Jul 26, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Jul 16, 2007
-
-
Iustin Pop authored
-