1. 07 Mar, 2012 3 commits
    • Iustin Pop's avatar
      Do not rely on no-secondary for movable tests · a7667ba6
      Iustin Pop authored
      
      
      Currently, the code in Loader.hs marks as un-movable any instances
      which don't have a secondary. This is not valid for any shared storage
      templates, so let's remove that check completely. The initial state of
      the instance will reflect correctly the movable status, based on the
      disk template of the instance, so we don't need to re-do this check.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      a7667ba6
    • Iustin Pop's avatar
      Handle nodes without local storage · b7743258
      Iustin Pop authored
      
      
      Our current cluster model is based on per-node storage, and as such we
      don't handle shared disk templates. Until we can improve the model,
      let's handle nodes without local storage better: in order to still
      compute a valid cluster score, we need to handle nodes with tDsk == 0.
      
      For this, we abstract the in-line computation of pDsk (which is used
      in the cluster score) to a separate function which, for tDsk == 0,
      returns instead 1 (i.e. disk fully used).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      b7743258
    • Iustin Pop's avatar
      Fix tempfile reset code & test on newer Python · 035b33e2
      Iustin Pop authored
      Python 2.7.3 (rc status) and 3.2.3/3.3 (rc, respectively alpha status)
      have fixed http://bugs.python.org/issue12856 which we worked around
      ourselves.
      
      This means two things:
      
      - we don't need to manually reset the module
      - we can't test for the no-reset case
      
      Unfortunately current Debian Sid has the 2.7.3 RC but still labeled as
      2.7.2+ 
      
      , so we have to manually do an extra check (in the unit test
      only); I expect Debian will update to official 2.7.3 as soon as it's
      released, and then we can remove this override.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      035b33e2
  2. 06 Mar, 2012 1 commit
  3. 05 Mar, 2012 3 commits
  4. 03 Mar, 2012 5 commits
  5. 01 Mar, 2012 1 commit
  6. 29 Feb, 2012 16 commits
  7. 28 Feb, 2012 3 commits
  8. 27 Feb, 2012 4 commits
  9. 23 Feb, 2012 2 commits
  10. 22 Feb, 2012 2 commits