1. 03 Sep, 2007 2 commits
    • Iustin Pop's avatar
      Switch utils.RunCmd from popen2 to subprocess · 113b55aa
      Iustin Pop authored
      This changes the implementation of RunCmd from using the popen2 module
      to using the (new in 2.4) subprocess module.
      This is helpful because the subprocess module has more advanced features
      than popen2, the most important ones being the ability to run code in the
      child process before the exec and ability to launch with modified
      Reviewed-by: imsnah
    • Iustin Pop's avatar
      Add a small unittext extension for utils.RunCmd · 7fcf849f
      Iustin Pop authored
      Reviewed-by: imsnah
  2. 31 Aug, 2007 2 commits
  3. 30 Aug, 2007 19 commits
  4. 29 Aug, 2007 1 commit
  5. 28 Aug, 2007 4 commits
  6. 27 Aug, 2007 1 commit
  7. 24 Aug, 2007 4 commits
    • Michael Hanselmann's avatar
      Implement argument for known_hosts file. · 94508060
      Michael Hanselmann authored
      Reviewed-by: iustinp
    • Michael Hanselmann's avatar
      Set SSH's ClearAllForwardings and ForwardAgent options. · 807d926c
      Michael Hanselmann authored
      Reviewed-by: iustinp
    • Michael Hanselmann's avatar
      - Test “gnt-cluster copyfile” · 180bdd1f
      Michael Hanselmann authored
      - Run “gnt-cluster verify” and “gnt-cluster info” after adding all nodes
      - Remove unused --cleanup option
      - Remove --verbose option and always print executed SSH commands
      Reviewed-by: iustinp
    • Iustin Pop's avatar
      Rework ssh known-hosts handling. · 82122173
      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
        - 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
  8. 23 Aug, 2007 1 commit
    • Iustin Pop's avatar
      Improve LURunClusterCommand · 02715459
      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
  9. 22 Aug, 2007 1 commit
  10. 21 Aug, 2007 2 commits
  11. 20 Aug, 2007 3 commits