Skip to content
Snippets Groups Projects
  1. Jan 18, 2011
  2. Jan 14, 2011
  3. Jan 06, 2011
  4. Dec 31, 2010
  5. Dec 30, 2010
    • Michael Hanselmann's avatar
      Initial import of listrunner · da7e44ee
      Michael Hanselmann authored
      
      This tool was used and worked on internally for quite a long time. We
      decided to include it in Ganeti.
      
      Known issues:
      - Code doesn't match rest of Ganeti (e.g. using “print” all over the
        place, hardcoded calls to sys.exit deep in functions)
      - Code duplication from Ganeti library (e.g. PingByTcp/netutils.TcpPing,
        GetHosts/utils.ReadFile)
      - Using ssh-agent doesn't work with more than one worker (Paramiko keeps
        the socket open and the file descriptor is used from different
        workers)
        - No clear separation between parent and child process in code
      - Uses getopt instead of optparse
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      da7e44ee
  6. Nov 30, 2010
  7. Nov 29, 2010
  8. Nov 02, 2010
  9. Oct 29, 2010
  10. Oct 21, 2010
  11. Oct 05, 2010
  12. Sep 30, 2010
    • Iustin Pop's avatar
      Change behaviour of OpDiagnoseOS w.r.t. 'valid' · d22dfef7
      Iustin Pop authored
      
      This patch changes the behaviour of OpDiagnoseOS with regards to the
      'valid' field to be similar to the one for the hidden/blacklisted
      fields: unless this field is requested, invalid OSes are filtered out.
      
      The rationale is that, except for the gnt-os info/diagnose, all other
      users of this opcode are requesting the valid field just to filter out
      invalid OSes, and not for any other use. Thus, changing this behaviour
      makes these callers simpler.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      d22dfef7
  13. Sep 09, 2010
  14. Sep 06, 2010
  15. Sep 03, 2010
  16. Sep 01, 2010
  17. Aug 27, 2010
  18. Aug 25, 2010
  19. Aug 23, 2010
    • Iustin Pop's avatar
      setup-ssh: fix updating of authorized_keys · 634a9a35
      Iustin Pop authored
      
      Due to what seems like a bug (or inconsistency) in paramiko, files
      opened with a+ over SFTP need a seek() in order for the user to be able
      to read data from them. We implement this, and rely on the fact that we
      do iterate over all lines before writing and that the file is opened in
      append mode (which at least on Linux should work correctly).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      634a9a35
    • Iustin Pop's avatar
      setup-ssh: Also use keys from the ssh-agent · 3dc66ebc
      Iustin Pop authored
      
      Currently, setup-ssh only uses one disk-based key. This means that any
      setup where we use keys from ssh-agent (which do not necessarily exist
      on disk) will break when moving from the old method to setup-ssh.
      
      This patch moves the SSH key handling to separate functions, and uses
      both the disk key (first) and the agent keys for login.
      
      The patch also fixes the root_logger setup level (I tried to hard to
      reduce noise and broke the debug level, sorry).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      3dc66ebc
  20. Aug 20, 2010
  21. Jul 30, 2010
  22. Jul 29, 2010
    • Iustin Pop's avatar
      burning: fix handling of empty job sets · 78bb78b1
      Iustin Pop authored
      
      If we call burning with only existing instance, then it will fail to
      create any of them, and thus in the removal phase it won't have anything
      to remove. Since calling luxi.SUBMIT_MULTIPLE_JOBS with an empty job set
      is an error (and will raise an exception), this creates a very strange
      error in burnin (which is unfortunately hidden by ExecJobSet()).
      
      As such, we modify CommitQueue to return immediately if it has an empty
      op queue.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      78bb78b1
    • Michael Hanselmann's avatar
      workerpool: Change signature of AddTask function to not use *args · b2e8a4d9
      Michael Hanselmann authored
      
      By changing it to a normal parameter, which must be a sequence, we can
      start using keyword parameters.
      
      Before this patch all arguments to “AddTask(self, *args)” were passed as
      arguments to the worker's “RunTask” method. Priorities, which should be
      optional and will be implemented in a future patch, must be passed as a keyword
      parameter. This means “*args” can no longer be used as one can't combine *args
      and keyword parameters in a clean way:
      
      >>> def f(name=None, *args):
      ...   print "%r, %r" % (args, name)
      ...
      >>> f("p1", "p2", "p3", name="thename")
      Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       TypeError: f() got multiple values for keyword argument 'name'
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      b2e8a4d9
  23. Jul 23, 2010
  24. Jul 21, 2010
  25. Jul 20, 2010
Loading