Skip to content
  • Iustin Pop's avatar
    Change QA log output · f89d59b9
    Iustin Pop authored
    
    
    Currently, the logging in QA doesn't show the duration of the various
    steps, and if it is needed one has to perform log manipulation. This
    patch changes the output so that the log informatio is line based (as
    opposed to block-based), such that it's easy to grep for all log lines:
    
    ./qa/ganeti-qa.py --yes-do-it qa.json  2>&1|grep ^----
    ---- 2010-10-08 14:40:21.730382 start Test SSH connection --------------
    ---- 2010-10-08 14:40:23.156633 time=0:00:01.426251 Test SSH connection
    ---- 2010-10-08 14:40:23.156735 start ICMP ping each node --------------
    ---- 2010-10-08 14:40:24.230479 time=0:00:01.073744 ICMP ping each node
    ---- 2010-10-08 14:40:24.230583 start Test availibility of Ganeti commands
    ---- 2010-10-08 14:40:32.314586 time=0:00:08.084003 Test availibility of Ganeti commands
    ---- 2010-10-08 14:40:32.314734 start gnt-node info --------------------
    ---- 2010-10-08 14:40:32.860884 time=0:00:00.546150 gnt-node info ------
    
    or just for the duration of the steps:
    ./qa/ganeti-qa.py --yes-do-it ../qa-mpgntac5.fra.json  2>&1|grep ^----.*time=
    ---- 2010-10-08 14:42:12.630067 time=0:00:01.239256 Test SSH connection
    ---- 2010-10-08 14:42:14.204393 time=0:00:01.574221 ICMP ping each node
    ---- 2010-10-08 14:42:22.170828 time=0:00:07.966331 Test availibility of Ganeti commands
    ---- 2010-10-08 14:42:22.701030 time=0:00:00.530037 gnt-node info ------
    
    This will help with identifying slow steps or even graphing the QA
    duration.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    f89d59b9