1. 14 Sep, 2007 1 commit
    • Iustin Pop's avatar
      Change _GetWanted* to return names instead of objects · a7ba5e53
      Iustin Pop authored
      On closer look, all except one of the current users of _GetWantedNodes are
      using only the name of the nodes and throw away the other attributes. It makes
      sense to make this function return only the name list (as in the future this
      might be faster than computing all attributes).
      
      Reviewed-by: imsnah
      a7ba5e53
  2. 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
      8a23d2d3
  3. 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
      3312b702
  4. 30 Aug, 2007 2 commits
  5. 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
      ff98055b
  6. 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
          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
  7. 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
      02715459
  8. 22 Aug, 2007 1 commit
  9. 20 Aug, 2007 2 commits
  10. 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.
      8925faaa
  11. 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
      to
        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).
      3ecf6786
  12. 08 Aug, 2007 1 commit
  13. 06 Aug, 2007 1 commit
  14. 03 Aug, 2007 2 commits
  15. 30 Jul, 2007 1 commit
  16. 27 Jul, 2007 5 commits
  17. 26 Jul, 2007 2 commits
  18. 25 Jul, 2007 2 commits
  19. 24 Jul, 2007 2 commits
  20. 23 Jul, 2007 4 commits
  21. 19 Jul, 2007 2 commits
  22. 16 Jul, 2007 1 commit