1. 09 Mar, 2010 1 commit
    • Iustin Pop's avatar
      Fix redistribute config and offline nodes · 6819dc49
      Iustin Pop authored
      
      
      We need to manually filter out offline nodes before using
      rpc.call_upload_file and rpc.call_write_ssconf_files, since these method
      are static (they work without a ConfigWriter instance) and thus do not
      know which nodes are offline and which are not).
      
      Note that we add a new ConfigWriter._UnlockedGetOnlineNodeList() method
      rather than hardcoding the filtering of online nodes in _WriteConfig.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      6819dc49
  2. 08 Mar, 2010 1 commit
  3. 04 Jan, 2010 2 commits
  4. 25 Nov, 2009 1 commit
  5. 16 Nov, 2009 1 commit
  6. 13 Nov, 2009 1 commit
  7. 06 Nov, 2009 7 commits
  8. 04 Nov, 2009 2 commits
  9. 03 Nov, 2009 2 commits
  10. 27 Oct, 2009 1 commit
    • Michael Hanselmann's avatar
      Provide feedback from redistributing configuration · a4eae71f
      Michael Hanselmann authored
      
      
      This is particularily useful for “gnt-cluster redist-conf”, but
      also for all other cases where the configuration files are
      rewritten on other nodes.
      
      $ gnt-cluster redist-conf
      … Copy of file /var/lib/ganeti/config.data to node … failed: Error while
      executing backend function: [Errno 1] Operation not permitted
      … Error while uploading ssconf files to node …: Error while executing backend
      function: [Errno 1] Operation not permitted
      
      $ gnt-node modify --offline no --force node3.example.com
      … - WARNING: Not enough master candidates (desired 10, new value will be 4)
      … Copy of file /var/lib/ganeti/config.data to node node8.example.com failed:
      Error while executing backend function: [Errno 1] Operation not permitted
      Modified node node3.example.com
       - offline -> True
       - master_candidate -> auto-demotion due to offline
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      a4eae71f
  11. 16 Oct, 2009 1 commit
  12. 07 Oct, 2009 1 commit
  13. 02 Oct, 2009 1 commit
  14. 01 Oct, 2009 1 commit
  15. 25 Sep, 2009 4 commits
  16. 24 Sep, 2009 3 commits
  17. 22 Sep, 2009 1 commit
  18. 17 Sep, 2009 1 commit
  19. 03 Sep, 2009 1 commit
  20. 17 Aug, 2009 1 commit
  21. 11 Aug, 2009 1 commit
  22. 10 Aug, 2009 1 commit
  23. 05 Aug, 2009 2 commits
  24. 16 Jul, 2009 2 commits
    • Guido Trotter's avatar
      Add a few more checks to verify config · 9a5fba23
      Guido Trotter authored
      
      
      - Check that the enabled hypervisors list is valid
      - Check that the master node is a valid node
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      9a5fba23
    • 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