Skip to content
Snippets Groups Projects
  1. Jan 26, 2011
    • Michael Hanselmann's avatar
      Fix bug in “gnt-node list-storage” · 5ae7cd11
      Michael Hanselmann authored
      
      LVM PV storage units would always show as allocatable, even when they
      weren't. For some reason I have not been able to determine, the function
      parsing the attributes (“_GetAllocatable”) was not even called and the
      list opcode simply returned the attribute string as the value (e.g.
      “a-”).  Removing “@staticmethod” did the trick and then I just moved it
      to module level.
      
      A QA test is included.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      5ae7cd11
  2. Jan 12, 2011
    • Iustin Pop's avatar
      Run pylint over QA code too · 3582eef6
      Iustin Pop authored
      
      Right now, the QA code is not covered by pylint, and this shows at
      least one low-impact bug.
      
      This patch does the necessary changes to make QA pylint-clean, and the
      changes the makefile to run pylint for it.
      
      Notable changes:
      
      - qa_utils.GenericQueryTest: randfields was not used at all, and my
        belief is that it was indented to be used in order not to modify the
        input list; so I replaced randfields with fields, so we only shuffle
        the our local copy
      - qa_node.TestOutOfBand was using it's own copy of AcquireNode(), so I
        replaced it with the existing version
      - qa_os: was using 'dir' in a couple of places, replaced with dirname
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      3582eef6
  3. Jan 06, 2011
  4. Jan 04, 2011
  5. Dec 17, 2010
  6. Dec 16, 2010
  7. Dec 14, 2010
  8. Dec 10, 2010
  9. Nov 29, 2010
    • Iustin Pop's avatar
      Simplify QA commands · 2f4b4f78
      Iustin Pop authored
      
      Currently, 95% of the QA commands are executed in the same way: on the
      master, based on a command list and with expectancies for succes:
      
          AssertEqual(StartSSH(master['primary'],
                               utils.ShellQuoteArgs(cmd)).wait(), 0)
      
      The rest 5% are variations on this theme (maybe the command needs to
      fail, or the node is different, etc.). Based on this, we can simplify
      the code significantly if we abstract the common theme into a new
      AssertCommand() function. This saves ~250 lines of code in the QA suite,
      around 8% of the entire QA code size.
      
      Additionally, the output was very cryptic before (the famous "QA error:
      1 != 0" messages), whereas now we show a clear error message (node,
      command, exit code and failure mode).
      
      The patch replaces single quotes with double quotes in all the parts of
      the code that I touch; let me know if that's not OK…
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      2f4b4f78
  10. Oct 20, 2010
  11. Aug 25, 2010
  12. Aug 20, 2010
  13. Nov 25, 2009
  14. Nov 02, 2009
  15. Aug 28, 2009
  16. Aug 18, 2008
  17. Aug 15, 2008
  18. May 13, 2008
  19. Apr 16, 2008
  20. Feb 14, 2008
  21. Dec 03, 2007
  22. Nov 08, 2007
  23. Nov 01, 2007
    • Michael Hanselmann's avatar
      Cleanup QA scripts. · b1ffe1eb
      Michael Hanselmann authored
      - Split main() function into several small ones.
      - Current work on disk failure tests. This is not yet finished.
      - Fix small typo in qa_node.py.
      
      Reviewed-by: schreiberal
      
      b1ffe1eb
  24. Oct 12, 2007
  25. Sep 13, 2007
Loading