1. 05 Oct, 2011 2 commits
  2. 30 Sep, 2011 2 commits
  3. 20 Sep, 2011 2 commits
  4. 30 Aug, 2011 1 commit
  5. 25 Aug, 2011 1 commit
  6. 23 Jun, 2011 1 commit
    • Guido Trotter's avatar
      remove bootstrap._InitSharedFileStorage · 0376655e
      Guido Trotter authored
      
      
      This function is a copy of bootstrap._InitFileStorage with the following
      differences:
        - check constants.ENABLE_SHARED_FILE_STORAGE and not
          constants.ENABLE_FILE_STORAGE
        - use different local variable names
        - one different error string
      
      Thus:
        - move the constant check outside of the function call
        - change error string so it's clear where the error is
        - call the same function twice
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      0376655e
  7. 31 Mar, 2011 1 commit
  8. 01 Mar, 2011 2 commits
  9. 28 Feb, 2011 1 commit
  10. 26 Jan, 2011 2 commits
  11. 04 Jan, 2011 1 commit
  12. 08 Dec, 2010 1 commit
  13. 01 Dec, 2010 1 commit
  14. 29 Nov, 2010 3 commits
  15. 22 Oct, 2010 2 commits
    • Iustin Pop's avatar
      ConfigWriter: prevent using a foreign config · eb180fe2
      Iustin Pop authored
      
      
      If the configuration file doesn't denote this node as master, we prevent
      startup. This would have detected our previous race condition more
      easily, hence we add it as a permanent check.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      eb180fe2
    • Iustin Pop's avatar
      Fix bootstrap.MasterFailover race with watcher · 21004460
      Iustin Pop authored
      
      
      This fixes a recently diagnosed race condition between master failover
      and the watcher.
      
      Currently, the master failover first stops the master daemon, checks
      that the IP is no longer reachable, and then distributes the updated
      configuration. Between the stop and the distribution, it can happen that
      the watcher starts the master daemon on the old node again, since ssconf
      still points the master to it (and all nodes vote so).
      
      In even more weird cases, the master daemon starts and before it manages
      to open the configuration file, it is updated, which means the master
      will respond to QueryClusterInfo with another node as the real master.
      
      This patch reorders the actions during master failover:
      
      - first, we redistribute a fixed config; this means the old master will
        refuse to update its own config file and ssconf, and that most jobs
        that change state will fail to finish
      - we then immediately kill it; after this step, the watcher will be
        unable to start it, since the master will refuse startup
      - and only then we check for IP reachability, etc.
      
      I've tested the new version against concurrent launch of the watcher;
      while my tests are not very exhaustive, two things can happen: watcher
      see the daemons as dead, and tries to restart them, which also fail; or
      it simply get an error while reading from the master daemon. Both these
      should be OK.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      21004460
  16. 12 Oct, 2010 1 commit
  17. 15 Sep, 2010 2 commits
  18. 25 Aug, 2010 1 commit
  19. 23 Aug, 2010 1 commit
  20. 20 Aug, 2010 2 commits
  21. 19 Aug, 2010 2 commits
  22. 18 Aug, 2010 4 commits
  23. 21 Jul, 2010 1 commit
  24. 09 Jul, 2010 1 commit
  25. 08 Jul, 2010 1 commit
  26. 07 Jul, 2010 1 commit