]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
ts-logs-capture: Collect more logs from CentOS
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 15 Jun 2018 10:14:19 +0000 (11:14 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 12 Jul 2018 15:49:19 +0000 (16:49 +0100)
- Installation logs for both CentOS 6 and 7
- Failed systemd services for CentOS 7

ts-logs-capture

index ebf40721649c7c38698afd18be8d48817e96f8f9..be8f4d8e7cc0bbb258f3dc334cf8cf2d55753c18 100755 (executable)
@@ -143,6 +143,11 @@ sub fetch_logs_host () {
                   /var/log/installer/syslog*
                   /var/log/installer/partman*
 
+                  # CentOS 6
+                  /var/log/anaconda*.log
+                  # CentOS 7
+                  /var/log/anaconda/*.log
+
                   /var/log/xen/xend.log*
                   /var/log/xen/xend-debug.log*
                   /var/log/xen/xen-hotplug.log*
@@ -204,6 +209,9 @@ sub fetch_logs_host () {
          'virsh capabilities',
          'cat /proc/self/limits',
          'cat /proc/modules',
+         # systemctl returns rc=3 when there is a failed service
+         # ignore the return value
+         'systemctl status --state=failed --full "*";:',
          ) {
             try_cmd_output_save($cmd);
         }