Skip to content
Snippets Groups Projects
  1. Sep 03, 2007
    • 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
      environment.
      
      Reviewed-by: imsnah
      113b55aa
    • Iustin Pop's avatar
      Add a small unittext extension for utils.RunCmd · 7fcf849f
      Iustin Pop authored
      Reviewed-by: imsnah
      7fcf849f
  2. Aug 31, 2007
  3. Aug 30, 2007
  4. Aug 29, 2007
  5. Aug 28, 2007
  6. Aug 27, 2007
  7. Aug 24, 2007
    • Michael Hanselmann's avatar
      Implement argument for known_hosts file. · 94508060
      Michael Hanselmann authored
      Reviewed-by: iustinp
      94508060
    • Michael Hanselmann's avatar
      Set SSH's ClearAllForwardings and ForwardAgent options. · 807d926c
      Michael Hanselmann authored
      Reviewed-by: iustinp
      807d926c
    • 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
      180bdd1f
    • 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
          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
      82122173
  8. Aug 23, 2007
    • 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
      02715459
  9. Aug 22, 2007
  10. Aug 21, 2007
  11. Aug 20, 2007
Loading