]> git.proxmox.com Git - ovs.git/commitdiff
ovs-bugtool: Run the 'dmesg' command without condition.
authorGurucharan Shetty <guru@ovn.org>
Tue, 25 Jul 2017 07:20:57 +0000 (00:20 -0700)
committerGurucharan Shetty <guru@ovn.org>
Mon, 7 Aug 2017 16:12:30 +0000 (09:12 -0700)
Currently we look for files with the name of "dmesg"
in "/var/log". If it exists, we don't run the command
"dmesg". This is unreliable as the file does not always
contain the latest dmesg information.

Since OVS kernel module emits information to dmesg,
we need this information to debug bugs. So always
run the "dmesg" command and collect its output.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Tested-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Ben Pfaff <blp@ovn.org>
utilities/bugtool/ovs-bugtool.in

index b47d9a4244977142fa24a3e1fc224a24c12daadf..e88684466e5f6a1b90b77966c6f3a6723ea7a97b 100755 (executable)
@@ -637,9 +637,7 @@ exclude those logs from the archive.
         prefix_output(CAP_OPENVSWITCH_LOGS, log,
                       last_mod_time=log_last_mod_time)
 
-    if not os.path.exists('/var/log/dmesg') and \
-       not os.path.exists('/var/log/boot'):
-        cmd_output(CAP_SYSTEM_LOGS, [DMESG])
+    cmd_output(CAP_SYSTEM_LOGS, [DMESG])
 
     cmd_output(CAP_SYSTEM_SERVICES, [CHKCONFIG, '--list'])