1. 31 Jan, 2012 1 commit
  2. 27 Jan, 2012 1 commit
    • Guido Trotter's avatar
      N+1: verify using minimum memory · 827ac163
      Guido Trotter authored
      
      
      Since instances can be started, failed over and migrated with less than
      their maximum memory N+1 will use the minimum memory for verification.
      
      Note that this accounts only for the instances being moved being
      resized, and not for the ones already on the node, as ganeti will not
      automatically resize other instances on the target node now when trying
      to start/failover/migrate an instance.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      827ac163
  3. 26 Jan, 2012 7 commits
  4. 25 Jan, 2012 4 commits
  5. 23 Jan, 2012 4 commits
  6. 20 Jan, 2012 4 commits
  7. 18 Jan, 2012 1 commit
  8. 16 Jan, 2012 1 commit
  9. 13 Jan, 2012 3 commits
    • Iustin Pop's avatar
      Further fixes to instance policy validation · 57dc299a
      Iustin Pop authored
      
      
      As a followup from "Remove extraneous check in policy creation", there
      are more places where we build an ipolicy, and then manually check for
      its validity. This is very bad style, as it duplicates the
      verification code across many places.
      
      This patch removes all such explicit checks (except for one in
      cmdlib.py which is correct), and instead does a bit more validation in
      the builder functions or in the actual dedicated verification
      functions. It also fixes cluster init which used the wrong,
      non-completed ipolicy (this was not detected before as we did call
      check on it, but otherwise we ignored it), and fixes a too-strong
      assert (due to the call chain, we first create the ipolicy from
      cmdline params, and only then we fill it).
      
      Finally, it removes an extraneous logging.info which I forgot from
      debugging.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      57dc299a
    • Iustin Pop's avatar
      Add new disk_templates parameter to instance policy · 2cc673a3
      Iustin Pop authored
      
      
      This is a bit more complex patch, as it requires changing the
      assumption that all keys in the policy dict points to values that are
      themselves dicts. Right now we introduce an assumption that any
      non-dicts are lists, we'll see in the future if this holds or whether
      we need more complex type checking (manual, yay Python).
      
      The patch also does some trivial style changes.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      2cc673a3
    • Iustin Pop's avatar
      Fix handling of errors from InstancePolicy.Check... · 363c0106
      Iustin Pop authored
      
      
      This code raises a configuration error, but we need to transform it
      into a prereq error (or possibly exec error), depending on when we
      call this function.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      363c0106
  10. 12 Jan, 2012 1 commit
  11. 11 Jan, 2012 2 commits
  12. 10 Jan, 2012 4 commits
  13. 09 Jan, 2012 1 commit
  14. 06 Jan, 2012 6 commits