[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST] ts-host-install: Arrange for ssh logins to have no corefile size limit



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@xxxxxxxxxx>
---
 ts-host-install | 7 +++++++
 ts-logs-capture | 1 +
 2 files changed, 8 insertions(+)

diff --git a/ts-host-install b/ts-host-install
index 2e3e84b..ea5511e 100755
--- a/ts-host-install
+++ b/ts-host-install
@@ -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 .");
 
diff --git a/ts-logs-capture b/ts-logs-capture
index 45b0a38..4ad55b9 100755
--- a/ts-logs-capture
+++ b/ts-logs-capture
@@ -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);
         }
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.