Skip to content
Snippets Groups Projects
  1. Feb 10, 2010
    • 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__
      field.
      
      To compensate, we introduce a simple function for computing the slots
      across all parent classes (if any), and use this instead of __slots__
      directly.
      
      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>
      adf385c7
  2. Jan 27, 2010
  3. Jan 25, 2010
  4. Jan 04, 2010
  5. Dec 28, 2009
  6. Nov 12, 2009
  7. Nov 06, 2009
    • 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
      errors.
      
      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>
      6c881c52
    • 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
      time.
      
      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>
      7736a5f2
  8. Nov 02, 2009
  9. Oct 26, 2009
  10. Oct 22, 2009
  11. Oct 05, 2009
  12. Sep 25, 2009
  13. Sep 24, 2009
  14. Sep 22, 2009
  15. Sep 03, 2009
  16. Aug 17, 2009
  17. Aug 10, 2009
  18. Aug 07, 2009
  19. Aug 06, 2009
  20. Aug 05, 2009
  21. Aug 04, 2009
  22. Aug 03, 2009
  23. Jul 16, 2009
    • 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
      coherency.
      
      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>
      066f465d
  24. Jul 07, 2009
  25. Jun 18, 2009
  26. Jun 16, 2009
  27. Jun 15, 2009
  28. Jun 12, 2009
  29. Jun 08, 2009
Loading