From f2940d583f9228776eaae42e61a9545377854d2c Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Mon, 25 Nov 2024 17:34:22 +0100 Subject: [PATCH] Enable lingering Signed-off-by: Ondra Machacek --- data/ignition.template | 4 ++++ test/e2e/e2e_agent_test.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/data/ignition.template b/data/ignition.template index 3cd7199..6dbf948 100644 --- a/data/ignition.template +++ b/data/ignition.template @@ -52,6 +52,10 @@ storage: location = "{{.InsecureRegistry}}" insecure = true {{end}} + - path: /var/lib/systemd/linger/core + mode: 0644 + contents: + inline: "" - path: /etc/ssh/sshd_config.d/40-rhcos-defaults.conf overwrite: true contents: diff --git a/test/e2e/e2e_agent_test.go b/test/e2e/e2e_agent_test.go index c502d33..c0c7341 100644 --- a/test/e2e/e2e_agent_test.go +++ b/test/e2e/e2e_agent_test.go @@ -248,6 +248,8 @@ func (p *plannerAgentLibvirt) IsServiceRunning(agentIp string, service string) b func (p *plannerAgentLibvirt) DumpLogs(agentIp string) { stdout, _ := RunCommand(agentIp, "journalctl --no-pager --user -u planner-agent") fmt.Fprintf(GinkgoWriter, "Journal: %v\n", stdout) + stdout, _ = RunCommand(agentIp, "journalctl --no-pager --user -u planner-agent-opa") + fmt.Fprintf(GinkgoWriter, "Journal: %v\n", stdout) } func NewPlannerService(configPath string) (*plannerService, error) {