1. 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>
  2. 02 Nov, 2009 1 commit
  3. 26 Oct, 2009 1 commit
  4. 22 Oct, 2009 1 commit
  5. 05 Oct, 2009 1 commit
  6. 25 Sep, 2009 1 commit
  7. 24 Sep, 2009 1 commit
  8. 22 Sep, 2009 1 commit
  9. 03 Sep, 2009 1 commit
  10. 17 Aug, 2009 2 commits
  11. 10 Aug, 2009 3 commits
  12. 07 Aug, 2009 1 commit
  13. 06 Aug, 2009 2 commits
  14. 05 Aug, 2009 2 commits
  15. 04 Aug, 2009 1 commit
  16. 03 Aug, 2009 1 commit
  17. 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>
  18. 07 Jul, 2009 1 commit
  19. 18 Jun, 2009 1 commit
  20. 16 Jun, 2009 1 commit
  21. 15 Jun, 2009 2 commits
  22. 12 Jun, 2009 1 commit
  23. 08 Jun, 2009 5 commits
  24. 28 May, 2009 3 commits
  25. 02 Mar, 2009 1 commit
    • Iustin Pop's avatar
      Don't allow spaces in tag names · 28ab6fed
      Iustin Pop authored
      This patch restricts the use of spaces in tags, as this does not allow
      nice exporting of tags to environment in hooks. One can use underscores
      or dashes instead of spaces.
      Reviewed-by: schreiberal
  26. 12 Feb, 2009 1 commit
    • Iustin Pop's avatar
      Handle better broken disks · fd965830
      Iustin Pop authored
      While running burnin:
        File "/usr/lib/python2.4/site-packages/ganeti/objects.py", line 497, in __str__
          val += ", size=%dm)>" % self.size
      TypeError: int argument required
      This happened while handling another error, so we lose the original
      error information.
      So we should try to handle this better.
      Reviewed-by: ultrotter
  27. 10 Feb, 2009 1 commit
    • Iustin Pop's avatar
      Add a ‘drained’ attribute to node objects · af64c0ea
      Iustin Pop authored
      This attribute will be used to prevent any allocation on the node (any
      of replace-disks with new secondary this node, failover to the node,
      migration to the node).
      The patch adds the attribute and initializes it correctly in cluster
      init and for new nodes.
      Reviewed-by: imsnah