Skip to content
Snippets Groups Projects
  1. Oct 24, 2012
  2. Oct 19, 2012
  3. Oct 17, 2012
  4. Oct 16, 2012
  5. Oct 15, 2012
  6. Oct 12, 2012
  7. Oct 11, 2012
  8. Oct 10, 2012
  9. Oct 05, 2012
  10. Oct 03, 2012
  11. Oct 01, 2012
  12. Sep 27, 2012
  13. Sep 21, 2012
  14. Sep 12, 2012
  15. Sep 07, 2012
    • Iustin Pop's avatar
      Fix bug in non-mirrored instance allocation · 14b5d45f
      Iustin Pop authored
      
      The function `allocateOnSingle' has a bug in the calculation of the
      cluster score used for deciding which of the many target nodes to use
      in placing the instance: it uses the original node list for the score
      calculation.
      
      Due to this, since the original node list is the same for all target
      nodes, it means that basically `allocateOnSingle' returns the same
      score, no matter the target node, and hence the choosing of the node
      is arbitrary, instead of being done on the basis of the algorithm.
      
      This has gone uncaught until reported because the unittests only test
      1 allocation at a time on an empty cluster, and do not check the
      consistency of the score. I'll send separate patches on the master
      branch for adding more checks to prevent this in the future.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      14b5d45f
  16. Sep 05, 2012
  17. Sep 04, 2012
Loading