Rework ssh known-hosts handling.
authorIustin Pop <iustin@google.com>
Fri, 24 Aug 2007 09:20:37 +0000 (09:20 +0000)
committerIustin Pop <iustin@google.com>
Fri, 24 Aug 2007 09:20:37 +0000 (09:20 +0000)
commit821221737967d65208a5831ed3e7349d5f1e7d7e
tree4c75b9caf349e25597b14f1fe70f294d9545b77e
parent027154593c1435a181a3bf99696043fd1e49feb6
Rework ssh known-hosts handling.

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
lib/backend.py
lib/cmdlib.py
lib/constants.py
lib/ssh.py
scripts/gnt-instance