- Nov 29, 2010
-
-
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:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 01, 2010
-
-
Michael Hanselmann authored
… instead of an object. Allows it to be used in places where only the name is available. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Oct 14, 2010
-
-
Iustin Pop authored
The interaction with cron-launched watcher is a well-known failure mode of QA: ---- 2010-10-14 06:54:55.464839 time=0:00:56.764827 Test tools/move-instance For the following tests it's recommended to turn off the ganeti-watcher cronjob. ---- 2010-10-14 06:54:55.465255 start Test automatic restart of instance by ganeti-watcher … Error: Domain 'instance1' does not exist. Command: ssh -oEscapeChar=none -oBatchMode=yes -l root -t -oStrictHostKeyChecking=yes -oClearAllForwardings=yes -oForwardAgent=yes node2 'ganeti-watcher -d' 2010-10-13 23:55:04,479: pid=1659 ganeti-watcher:626 ERROR Can't acquire lock on state file /var/lib/ganeti/watcher.data: File already locked ---- 2010-10-14 06:55:04.513948 time=0:00:09.048693 Test automatic restart of instance by ganeti-watcher In order to fix this, we disable the watcher during these tests, and re-enable it afterwards. To protect against watcher being disabled, we enable it unconditionally at the start of the QA (we do want it enabled, in order to see the interaction between the watcher and many creation/disk replace jobs, etc.). Note: even after this patch, if a cron-watcher was started and is still running during the test, we'll have locking issues. I think for now this is OK, we'll have to see how often that happens. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 15, 2008
-
-
Michael Hanselmann authored
To my knowledge they're used nowhere and it's at least slightly confusing to people adding new QA checks. Reviewed-by: ultrotter
-
- Feb 14, 2008
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Dec 03, 2007
-
-
Michael Hanselmann authored
- When line wrapping is needed, move spaces to the next line. - Remove embedded line breaks from error messages. Reviewed-by: schreiberal
-
- Nov 22, 2007
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Nov 13, 2007
-
-
Michael Hanselmann authored
This makes the tests much more reliably because it avoids race conditions. It also helps to speed them up a lot. Reviewed-by: iustinp
-
- Nov 01, 2007
-
-
Michael Hanselmann authored
Make the code somewhat smaller. Disable disk failure test for master for now. Reviewed-by: schreiberal
-
- Oct 10, 2007
-
-
Michael Hanselmann authored
- Implement colours in qa_utils. - Print warning for cron script. Reviewed-by: iustinp
-
- Sep 26, 2007
-
-
Michael Hanselmann authored
- Test “gnt-backup export” and “gnt-backup import”. - Move “ResolveInstanceName” to qa_utils.py. - Fix tests for “ganeti-watcher”. - Make instance shutdown and startup configurable. Reviewed-by: schreiberal
-
- Sep 13, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-