Change in vdsm[master]: Configure libvirt to generate VM's core dumps

apahim at redhat.com apahim at redhat.com
Mon May 18 14:59:06 UTC 2015


Amador Pahim has uploaded a new change for review.

Change subject: Configure libvirt to generate VM's core dumps
......................................................................

Configure libvirt to generate VM's core dumps

On RHEL 7, with default libvirt configuration, no VM core dump is generated
after kill the qemu process.

This patch is adding the required configuration to libvirt's systemd.

Change-Id: I068e1c6386a9076d3e713bc63e7895a5ac458d62
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1220993
Signed-off-by: Amador Pahim <apahim at redhat.com>
---
M init/systemd/Makefile.am
A init/systemd/unlimited-core.conf
M vdsm.spec.in
3 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/72/41072/1

diff --git a/init/systemd/Makefile.am b/init/systemd/Makefile.am
index 07c4ae8..c3a6f7f 100644
--- a/init/systemd/Makefile.am
+++ b/init/systemd/Makefile.am
@@ -26,6 +26,7 @@
 	vdsmd.service \
 	vdsm-network.service \
 	vdsm-tmpfiles.d.conf \
+        unlimited-core.conf \
 	$(NULL)
 
 CLEANFILES = \
@@ -39,6 +40,7 @@
 	vdsmd.service.in \
 	vdsm-network.service.in \
 	vdsm-tmpfiles.d.conf.in \
+        unlimited-core.conf \
 	$(NULL)
 
 all-local: \
diff --git a/init/systemd/unlimited-core.conf b/init/systemd/unlimited-core.conf
new file mode 100644
index 0000000..3881e41
--- /dev/null
+++ b/init/systemd/unlimited-core.conf
@@ -0,0 +1,2 @@
+[Service]
+LimitCORE=unlimited
diff --git a/vdsm.spec.in b/vdsm.spec.in
index 8905cfe..ffe5dee 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -800,6 +800,8 @@
 %if 0%{?with_systemd}
 install -Dm 0644 init/systemd/vdsm-tmpfiles.d.conf \
                  %{buildroot}%{_tmpfilesdir}/%{vdsm_name}.conf
+install -Dm 0644 init/systemd/unlimited-core.conf \
+                 %{buildroot}%{_sysconfdir}/systemd/system/libvirtd.service.d/unlimited-core.conf
 %endif
 
 %if 0%{?rhel}
@@ -1033,6 +1035,7 @@
 %{_unitdir}/vdsmd.service
 %{_unitdir}/vdsm-network.service
 %{_unitdir}/supervdsmd.service
+%{_sysconfdir}/systemd/system/libvirtd.service.d/unlimited-core.conf
 %else
 %{_initrddir}/vdsmd
 %{_initrddir}/supervdsmd


-- 
To view, visit https://gerrit.ovirt.org/41072
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I068e1c6386a9076d3e713bc63e7895a5ac458d62
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Amador Pahim <apahim at redhat.com>


More information about the vdsm-patches mailing list