Skip to content
Snippets Groups Projects
  1. Jun 15, 2012
  2. May 10, 2012
  3. Mar 28, 2012
  4. Feb 21, 2012
  5. Jan 13, 2012
    • 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
  6. Dec 16, 2011
  7. Dec 08, 2011
  8. Dec 01, 2011
  9. Nov 22, 2011
  10. Nov 14, 2011
  11. Nov 03, 2011
  12. Nov 02, 2011
  13. Oct 26, 2011
  14. Oct 18, 2011
  15. Oct 05, 2011
  16. Sep 30, 2011
  17. Sep 20, 2011
  18. Aug 30, 2011
  19. Aug 25, 2011
  20. Jun 23, 2011
    • 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
  21. Mar 31, 2011
  22. Mar 01, 2011
  23. Feb 28, 2011
  24. Jan 26, 2011
  25. Jan 04, 2011
  26. Dec 08, 2010
  27. Dec 01, 2010
  28. Nov 29, 2010
Loading