|
|
ac3a84 |
From 922c24e6b2074d63dd5554f2f0015a680958293e Mon Sep 17 00:00:00 2001
|
|
|
ac3a84 |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
ac3a84 |
Date: Mon, 23 Jan 2023 18:40:38 +0100
|
|
|
ac3a84 |
Subject: [PATCH] test: bump the client-side timeout in sd-bus as well
|
|
|
ac3a84 |
|
|
|
ac3a84 |
Since c78d18215b D-Bus services now have 60s to start, but the client
|
|
|
ac3a84 |
side (sd-bus) still waits only for 25s before giving up:
|
|
|
ac3a84 |
|
|
|
ac3a84 |
```
|
|
|
ac3a84 |
[ 226.196380] testsuite-71.sh[556]: + assert_in 'Static hostname: H' ''
|
|
|
ac3a84 |
[ 226.332965] testsuite-71.sh[576]: + set +ex
|
|
|
ac3a84 |
[ 226.332965] testsuite-71.sh[576]: FAIL: 'Static hostname: H' not found in:
|
|
|
ac3a84 |
[ 228.910782] sh[577]: + systemctl poweroff --no-block
|
|
|
ac3a84 |
[ 232.255584] hostnamectl[565]: Failed to query system properties: Connection timed out
|
|
|
ac3a84 |
[ 236.827514] systemd[1]: end.service: Consumed 2.131s CPU time.
|
|
|
ac3a84 |
[ 237.476969] dbus-daemon[566]: [system] Successfully activated service 'org.freedesktop.hostname1'
|
|
|
ac3a84 |
[ 237.516308] systemd[1]: system-modprobe.slice: Consumed 1.533s CPU time.
|
|
|
ac3a84 |
[ 237.794635] systemd[1]: testsuite-71.service: Main process exited, code=exited, status=1/FAILURE
|
|
|
ac3a84 |
[ 237.818469] systemd[1]: testsuite-71.service: Failed with result 'exit-code'.
|
|
|
ac3a84 |
[ 237.931415] systemd[1]: Failed to start testsuite-71.service.
|
|
|
ac3a84 |
[ 238.000833] systemd[1]: testsuite-71.service: Consumed 5.651s CPU time.
|
|
|
ac3a84 |
[ 238.181030] systemd[1]: Reached target testsuite.target.
|
|
|
ac3a84 |
```
|
|
|
ac3a84 |
|
|
|
ac3a84 |
Let's override the timeout in sd-bus as well to mitigate this.
|
|
|
ac3a84 |
|
|
|
ac3a84 |
Follow-up to c78d18215b3e5b0f0896ddb1d0d72c666b5e830b.
|
|
|
ac3a84 |
|
|
|
ac3a84 |
(cherry picked from commit e0cbb739113b9e2fbb67b27099430c351f03315c)
|
|
|
ac3a84 |
|
|
|
ac3a84 |
Related: #2138081
|
|
|
ac3a84 |
---
|
|
|
ac3a84 |
test/test-functions | 3 +++
|
|
|
ac3a84 |
1 file changed, 3 insertions(+)
|
|
|
ac3a84 |
|
|
|
ac3a84 |
diff --git a/test/test-functions b/test/test-functions
|
|
|
ac3a84 |
index 6e4ea80d89..1608644cbb 100644
|
|
|
ac3a84 |
--- a/test/test-functions
|
|
|
ac3a84 |
+++ b/test/test-functions
|
|
|
ac3a84 |
@@ -1920,6 +1920,9 @@ EOF
|
|
|
ac3a84 |
<limit name="service_start_timeout">60000</limit>
|
|
|
ac3a84 |
</busconfig>
|
|
|
ac3a84 |
EOF
|
|
|
ac3a84 |
+ # Bump the client-side timeout in sd-bus as well
|
|
|
ac3a84 |
+ mkdir -p "$initdir/etc/systemd/system.conf.d"
|
|
|
ac3a84 |
+ echo -e '[Manager]\nDefaultEnvironment=SYSTEMD_BUS_TIMEOUT=60' >"$initdir/etc/systemd/system.conf.d/bus-timeout.conf"
|
|
|
ac3a84 |
fi
|
|
|
ac3a84 |
}
|
|
|
ac3a84 |
|