Hello Douglas Schilling Landgraf, Amador Pahim, Dan Kenigsberg,

I'd like you to do a code review.  Please visit

    https://gerrit.ovirt.org/41474

to review the following change.

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 <apa...@redhat.com>
Reviewed-on: https://gerrit.ovirt.org/41072
Continuous-Integration: Jenkins CI
Reviewed-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
Reviewed-by: Yaniv Bronhaim <ybron...@redhat.com>
Reviewed-by: Dan Kenigsberg <dan...@redhat.com>
---
M init/systemd/Makefile.am
A init/systemd/unlimited-core.conf
M vdsm.spec.in
3 files changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/74/41474/1

diff --git a/init/systemd/Makefile.am b/init/systemd/Makefile.am
index 3f721c5..946fa1e 100644
--- a/init/systemd/Makefile.am
+++ b/init/systemd/Makefile.am
@@ -39,6 +39,7 @@
        vdsm-tmpfiles.d.conf.in \
        vdsmd.service.in \
        vdsm-network.service.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..45c0770
--- /dev/null
+++ b/init/systemd/unlimited-core.conf
@@ -0,0 +1,4 @@
+## beginning of configuration section by vdsm
+[Service]
+LimitCORE=infinity
+## end of configuration section by vdsm
diff --git a/vdsm.spec.in b/vdsm.spec.in
index 1b8c826..02d13d8 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -743,6 +743,8 @@
 %if 0%{?with_tmpfiles_macro}
 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}
@@ -986,6 +988,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/41474
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I068e1c6386a9076d3e713bc63e7895a5ac458d62
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Yaniv Bronhaim <ybron...@redhat.com>
Gerrit-Reviewer: Amador Pahim <apa...@redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to