]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
ts-host-install: Arrange for ssh logins to have no corefile size limit
authorIan Campbell <ian.campbell@citrix.com>
Wed, 25 Mar 2015 14:29:50 +0000 (14:29 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Sat, 2 May 2015 09:00:59 +0000 (10:00 +0100)
Collect the output of "cat /proc/self/limits" so we get some clue if
this isn't working for some reason.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-install
ts-logs-capture

index cfd51180b6892e27164e69df6693ce0f3ab84faf..b13f2932e043fb68231679750458c8a90a8ea820 100755 (executable)
@@ -146,6 +146,13 @@ END
                  # %p==pid,%e==executable name,%t==timestamp
                  "/var/core/%t.%p.%e.core") });
     target_cmd_root($ho, "sysctl --load /etc/sysctl.conf");
+    my $coredumps_conf = <<'END';
+#<domain>      <type>  <item>       <value>
+*               soft    core         -1
+root            soft    core         -1
+END
+    target_putfilecontents_root_stash($ho,10,$coredumps_conf,
+                               '/etc/security/limits.d/coredumps.conf');
 
     target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 .");
 
index 45b0a38320bd5c128a494f37baee2ff197ce40ef..4ad55b9a8484569ac0410eacfd1573165612f12a 100755 (executable)
@@ -168,6 +168,7 @@ sub fetch_logs_host_guests () {
          'lspci -tv',
          'cat /proc/partitions',
          'virsh capabilities',
+         'cat /proc/self/limits',
          ) {
             try_cmd_output_save($cmd);
         }