1. 13 Sep, 2007 1 commit
    • Iustin Pop's avatar
      Move string formatting out of LUQueryInstances · 8a23d2d3
      Iustin Pop authored
      Currently, LUQueryInstances will provide strings for its results. This makes it
      hard for other consumers than "gnt-instance list" to use the OpQueryInstances
      opcode for whatever they wish to.
      The change moves the formatting in five of the six cases where this happens to
      the actual gnt-instance.ListInstances procedure and removes the unconditional
      convert to string in LUQueryInstances.Exec()
      Reviewed-by: imsnah
  2. 12 Sep, 2007 1 commit
    • Iustin Pop's avatar
      Clone cmdlib._GetWantedNodes into _GetWantedInstances · 3312b702
      Iustin Pop authored
      This duplicates _GetWantedNodes to _GetWantedInstances, after doing some
      changes to it:
        - fix an indentation error that should result in only the last node
          name passed being chosen
        - change the function to have a single return statement
        - remove a redundant 'is not None' check
      Reviewed-by: imsnah
  3. 30 Aug, 2007 2 commits
  4. 28 Aug, 2007 1 commit
    • Iustin Pop's avatar
      Refuse nodes with non-FQDN hostnames. · ff98055b
      Iustin Pop authored
      This changes the cluster init and node join to refuse a node that has a
      different hostname than what the resolver returns.
      Reviewed-by: imsnah
  5. 24 Aug, 2007 1 commit
    • 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
  6. 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
  7. 22 Aug, 2007 1 commit
  8. 20 Aug, 2007 2 commits
  9. 16 Aug, 2007 1 commit
    • Iustin Pop's avatar
      Some small fixes. · 8925faaa
      Iustin Pop authored
      It fixes the main Makefile.am to create $localstatedir/{lib,log}/ganeti.
      It fixes the testing Makefile.am after the rename fake_config.py ->
      mocks.py.  It strips the output of "ip link show" to have a nicer output
      if the master netdev does not exist.
  10. 14 Aug, 2007 1 commit
    • Iustin Pop's avatar
      Style changes for pep-8 and python-3000 compliance. · 3ecf6786
      Iustin Pop authored
      This changes the raising of exceptions from:
        raise Exception, value
        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).
  11. 08 Aug, 2007 1 commit
  12. 06 Aug, 2007 1 commit
  13. 03 Aug, 2007 2 commits
  14. 30 Jul, 2007 1 commit
  15. 27 Jul, 2007 5 commits
  16. 26 Jul, 2007 2 commits
  17. 25 Jul, 2007 2 commits
  18. 24 Jul, 2007 2 commits
  19. 23 Jul, 2007 4 commits
  20. 19 Jul, 2007 2 commits
  21. 16 Jul, 2007 1 commit