!47 KubeOS:support generate coredump

From: @li-yuanrong 
Reviewed-by: @duguhaotian 
Signed-off-by: @duguhaotian
This commit is contained in:
openeuler-ci-bot 2023-06-15 01:48:10 +00:00 committed by Gitee
commit ee4f85074a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 20d0487753b045a0a0af19dffd0d5deec25fd672 Mon Sep 17 00:00:00 2001
From: liyuanr <liyuanrong1@huawei.com>
Date: Wed, 14 Jun 2023 16:00:03 +0800
Subject: [PATCH] KubeOS:support generate coredump
For Go language applications, generating coredump
requires declaring the environment variable GOTRACEBACK=crash,
so the service of os agent adds Environment=GOTRACEBACK=crash
to support generating coredump
Signed-off-by: liyuanr <liyuanrong1@huawei.com>
---
files/os-agent.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/files/os-agent.service b/files/os-agent.service
index cf71d08..f778804 100644
--- a/files/os-agent.service
+++ b/files/os-agent.service
@@ -12,6 +12,7 @@
Description=Agent For KubeOS
[Service]
+Environment=GOTRACEBACK=crash
ExecStart=/usr/bin/os-agent
KillMode=process
Restart=on-failure
--
2.33.0.windows.2

View File

@ -2,11 +2,12 @@
Name: KubeOS
Version: 1.0.3
Release: 2
Release: 3
Summary: O&M platform used to update the whole OS as an entirety
License: Mulan PSL v2
Source0: https://gitee.com/openeuler/KubeOS/repository/archive/v%{version}.tar.gz
Patch1: 0001-KubeOS-add-oci-image-digests-check-when-upgrade-and-.patch
Patch2: 0002-KubeOS-support-generate-coredump.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: make
BuildRequires: golang >= 1.13
@ -107,6 +108,12 @@ install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files
rm -rfv %{buildroot}
%changelog
* Wed June 14 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.3-3
- Type:requirement
- CVE:NA
- SUG:restart
- DESC:support generate coredump
* Tue May 30 2023 liyuanrong<liyuanrong1@huawei.com> - 1.0.3-2
- Type:requirement
- CVE:NA