- Mar 31, 2011
-
-
Iustin Pop authored
This is not needed for this function, and can interfere with debugging of ssh failures. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 11, 2011
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 03, 2010
-
-
Manuel Franceschini authored
Signed-off-by:
Manuel Franceschini <livewire@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 25, 2010
-
-
Manuel Franceschini authored
Due to the syntax used for the target in scp <target>:<path>, it is necessary when the target is an IPv6 address to enclose it in square brackets. Signed-off-by:
Manuel Franceschini <livewire@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
And provide unittests for them Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 20, 2010
-
-
Manuel Franceschini authored
Signed-off-by:
Manuel Franceschini <livewire@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 19, 2010
-
-
Manuel Franceschini authored
Signed-off-by:
Manuel Franceschini <livewire@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 10, 2010
-
-
Michael Hanselmann authored
Use actual path, not something hardcoded. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 10, 2010
-
-
Balazs Lecz authored
This is required to avoid the "Pseudo-terminal will not be allocated because stdin is not a terminal." ssh error message in case a Ganeti script is run non-interactively. Signed-off-by:
Balazs Lecz <leczb@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 07, 2010
-
-
Guido Trotter authored
We also create a generic SECURE_DIR_MODE constant, rather than hardcoding 0700 in the code. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
-
- Apr 22, 2010
-
-
Iustin Pop authored
Currently both CopyFileToNode and BuildCmd hardcode "-q" in the options. This patch moves this setting as a configurable option to _BuildSshOptions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Since we use the cluster name for the SSH known_hosts file, ssh will always detect a changed IP (since we never connect to the cluster master name, but the node names), and will complain about it/try to update the user known hosts file (since that is /dev/null, it doesn't matter, but it's not nice). So we disable the IP check. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Mar 08, 2010
-
-
Iustin Pop authored
This passes a full burnin with lots of instances, and should be safe as we mostly to join a known root (various constants) to a run-time variable. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Feb 22, 2010
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Feb 18, 2010
-
-
Iustin Pop authored
In case we add a node with “--no-ssh-key-check”, this should override any default yes/ask values in the system-wide (or user) ssh key check. Currently this only works in batch mode, whereas in non-batch we only override a 'no'. The patch fixes SshRunner such that in non-batch mode we enforce the value of StrictHostKeyChecking in all cases. Bug found and initial investigation by Theo Van Dinter. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Dec 16, 2009
-
-
Iustin Pop authored
The cluster verify checks for fqdn are done via address lookups, and there we actually use the FQDN. However, for the ssh hostname check which is done at node add time, we rely on the default of the “hostname” command. And Debian for example recently changed the default to return the shortname unless one passes ‘--fqdn’. This patch is imported from the Debian packaging. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 03, 2009
-
-
Iustin Pop authored
A newer version of pylint, more warnings… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 25, 2009
-
-
Iustin Pop authored
Before, it used to say: ssh/hostname verification failed node1.example.com -> hostname mismatch, got node2 Now it says for wrong hostnames (maybe too verbose): ssh/hostname verification failed (checking from node1.example.com): hostname mismatch, expected node2.example.com but got node3 And for non-FQDN hostnames: ssh/hostname verification failed (checking from node1.example.com): hostname not FQDN: expected node2.example.com but got node2 Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jul 07, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 03, 2009
-
-
Iustin Pop authored
In case we fail without output from the ssh command, we should at least add the exit code or any other failure reason to the error message, and log it and the cmdline used to the node daemon log. Reviewed-by: imsnah
-
Guido Trotter authored
Reviewed-by: iustinp
-
- Dec 14, 2008
-
-
Iustin Pop authored
This only means most of our error paths in this module were not working (and generating exceptions). Reviewed-by: amishchenko
-
Iustin Pop authored
Reviewed-by: amishchenko
-
- 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
-