1. 16 Apr, 2010 1 commit
    • Michael Hanselmann's avatar
      Add daemon for instance import and export · 2d76b580
      Michael Hanselmann authored
      This backend daemon for instance import and export will be used to
      transfer instance data to other machines. It is implemented in a generic
      way to support different ways of data input and output. The third-party
      program “socat”, which is already used by the KVM hypervisor abstraction,
      is used to connect to remote machines using SSL/TLS. After starting the
      child processes in a separate process group, the import/export daemon
      monitors their output and updates a status file regularily. This status
      file can then be read by ganeti-noded (not in this patch).
      Three I/O methods are supported: Raw disk, file and script. Each of these
      can be used for import and export.
      Similar to daemon-util, an incomplete set of tests written in Bash is
      Two future enhancements are planned:
      - Run parts of the command chain as a dedicated user (privilege
      - Currently users of this daemon have to poll the status file while data
        is transferred. This is inefficient and creates unnecessary delays. By
        adding “dd” into the chain and sending it SIGUSR1 regularily, we can get
        some statistics, optimize the polling frequenc and even provide the user
        with an ETA (which isn't available with all current methods to
        import/export instance data).
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
  2. 12 Apr, 2010 1 commit
  3. 08 Apr, 2010 1 commit
  4. 25 Mar, 2010 1 commit
  5. 23 Mar, 2010 1 commit
  6. 09 Mar, 2010 1 commit
  7. 08 Mar, 2010 1 commit
  8. 12 Feb, 2010 1 commit
  9. 10 Feb, 2010 1 commit
    • Iustin Pop's avatar
      Fix dumpers/loaders after __slots__ cleanup · adf385c7
      Iustin Pop authored
      Commit 154b9580
       changed (correctly) the __slots__ usage, but this broke
      dumpers/loaders since we relied directly on the own class __slots__
      To compensate, we introduce a simple function for computing the slots
      across all parent classes (if any), and use this instead of __slots__
      Note: the _all_slots() function is duplicated between objects.py and
      opcodes.py, but the only other options is to introduce a lang.py for
      such very basic language items.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
  10. 27 Jan, 2010 1 commit
  11. 25 Jan, 2010 1 commit
  12. 04 Jan, 2010 2 commits
  13. 28 Dec, 2009 1 commit
  14. 12 Nov, 2009 1 commit
  15. 06 Nov, 2009 2 commits
    • Iustin Pop's avatar
      Fix pylint 'E' (error) codes · 6c881c52
      Iustin Pop authored
      This patch adds some silences and tweaks the code slightly so that
      “pylint --rcfile pylintrc -e ganeti” doesn't give any errors.
      The biggest change is in jqueue.py, the move of _RequireOpenQueue out of
      the JobQueue class. Since that is actually a function and not a method
      (never used as such) this makes sense, and also silences two pylint
      Another real code change is in utils.py, where FieldSet.Matches will
      return None instead of False for failure; this still works with the way
      this class/method is used, and makes more sense (it resembles more
      closely the re.match return values).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      Introduce 'global hypervisor parameters' support · 7736a5f2
      Iustin Pop authored
      This patch adds support for global hypervisor parameters in instance
      creation, instance modification, instance query and at instance load
      We basically prevent any query on these parameters, discard them at load
      time, and do not allow their modification. Together, this should make
      any such parameters go away if existing and not allowed to be added.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  16. 02 Nov, 2009 1 commit
  17. 26 Oct, 2009 1 commit
  18. 22 Oct, 2009 1 commit
  19. 05 Oct, 2009 1 commit
  20. 25 Sep, 2009 1 commit
  21. 24 Sep, 2009 1 commit
  22. 22 Sep, 2009 1 commit
  23. 03 Sep, 2009 1 commit
  24. 17 Aug, 2009 2 commits
  25. 10 Aug, 2009 3 commits
  26. 07 Aug, 2009 1 commit
  27. 06 Aug, 2009 2 commits
  28. 05 Aug, 2009 2 commits
  29. 04 Aug, 2009 1 commit
  30. 03 Aug, 2009 1 commit
  31. 16 Jul, 2009 1 commit
    • Guido Trotter's avatar
      Get rid of the default_hypervisor slot · 066f465d
      Guido Trotter authored
      Currently we have both a default_hypervisor and an enabled_hypervisors
      list. The former is only settable at cluster init time, while the latter
      can be changed with cluster modify.
      This becomes cumbersome in a few ways: at cluster init time for example
      if we pass in a list of enabled hypervisors which doesn't include the
      "default" xen-pvm one, we're also forced to pass a default hypervisor,
      or an error will be reported. It is also currently possible to disable
      the default hypervisor in cluster-modify (with unknown results).
      In order to avoid this we get rid of this field altogether, and define
      the "first" enabled hypervisor as the default one. This allows ease of
      changing which one is the default, and at the same time maintains
      At configuration upgrade we make sure that the old default is first in
      the list, so that 2.0 cluster defaults are preserved.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
  32. 07 Jul, 2009 1 commit
  33. 18 Jun, 2009 1 commit