|
|
ac3a84 |
From f2a1b51350d535cbb6ed3a3d11071651e54f5c3c Mon Sep 17 00:00:00 2001
|
|
|
ac3a84 |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
ac3a84 |
Date: Tue, 17 Jan 2023 18:04:30 +0100
|
|
|
ac3a84 |
Subject: [PATCH] test: bump D-Bus service start timeout if we run without
|
|
|
ac3a84 |
accel
|
|
|
ac3a84 |
|
|
|
ac3a84 |
The default (25s) doesn't seem to be enough in some cases (especially
|
|
|
ac3a84 |
in VMs without acceleration), causing spurious timeouts:
|
|
|
ac3a84 |
|
|
|
ac3a84 |
[ 174.297658] dbus-daemon[647]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.0' (uid=0 pid=645 comm="hostnamectl " label="kernel")
|
|
|
ac3a84 |
[ 184.202313] systemd[1]: systemd-update-utmp-runlevel.service: Consumed 1.253s CPU time.
|
|
|
ac3a84 |
[ 197.335422] systemd[1]: Started dbus.service.
|
|
|
ac3a84 |
[ 199.211468] testsuite-71.sh[639]: + assert_in 'Static hostname: H' ''
|
|
|
ac3a84 |
[ 199.347192] dbus-daemon[647]: [system] Failed to activate service 'org.freedesktop.hostname1': timed out (service_start_timeout=25000ms)
|
|
|
ac3a84 |
[ 199.394879] testsuite-71.sh[657]: + set +ex
|
|
|
ac3a84 |
[ 199.438918] testsuite-71.sh[657]: FAIL: 'Static hostname: H' not found in:
|
|
|
ac3a84 |
[ 200.966006] systemd-logind[631]: Watching system buttons on /dev/input/event0 (Power Button)
|
|
|
ac3a84 |
[ 201.008178] systemd-logind[631]: Watching system buttons on /dev/input/event1 (AT Translated Set 2 keyboard)
|
|
|
ac3a84 |
[ 201.034106] systemd-logind[631]: New seat seat0.
|
|
|
ac3a84 |
[ 201.238267] sh[658]: + systemctl poweroff --no-block
|
|
|
ac3a84 |
[ 201.329890] systemd[1]: Starting systemd-hostnamed.service...
|
|
|
ac3a84 |
[ 202.156622] systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully.
|
|
|
ac3a84 |
[ 204.818913] hostnamectl[645]: Failed to query system properties: Connection timed out
|
|
|
ac3a84 |
[ 205.195583] systemd[1]: testsuite-71.service: Main process exited, code=exited, status=1/FAILURE
|
|
|
ac3a84 |
[ 205.227237] systemd[1]: testsuite-71.service: Failed with result 'exit-code'.
|
|
|
ac3a84 |
[ 205.712780] systemd[1]: Failed to start testsuite-71.service.
|
|
|
ac3a84 |
|
|
|
ac3a84 |
(cherry picked from commit c78d18215b3e5b0f0896ddb1d0d72c666b5e830b)
|
|
|
ac3a84 |
|
|
|
ac3a84 |
Related: #2138081
|
|
|
ac3a84 |
---
|
|
|
ac3a84 |
test/test-functions | 12 ++++++++++++
|
|
|
ac3a84 |
1 file changed, 12 insertions(+)
|
|
|
ac3a84 |
|
|
|
ac3a84 |
diff --git a/test/test-functions b/test/test-functions
|
|
|
ac3a84 |
index 94e11a686a..6e4ea80d89 100644
|
|
|
ac3a84 |
--- a/test/test-functions
|
|
|
ac3a84 |
+++ b/test/test-functions
|
|
|
ac3a84 |
@@ -1909,6 +1909,18 @@ install_dbus() {
|
|
|
ac3a84 |
</policy>
|
|
|
ac3a84 |
</busconfig>
|
|
|
ac3a84 |
EOF
|
|
|
ac3a84 |
+
|
|
|
ac3a84 |
+ # If we run without KVM, bump the service start timeout
|
|
|
ac3a84 |
+ if ! get_bool "$QEMU_KVM"; then
|
|
|
ac3a84 |
+ cat >"$initdir/etc/dbus-1/system.d/service.timeout.conf" <
|
|
|
ac3a84 |
+
|
|
|
ac3a84 |
+
|
|
|
ac3a84 |
+ "https://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
ac3a84 |
+<busconfig>
|
|
|
ac3a84 |
+ <limit name="service_start_timeout">60000</limit>
|
|
|
ac3a84 |
+</busconfig>
|
|
|
ac3a84 |
+EOF
|
|
|
ac3a84 |
+ fi
|
|
|
ac3a84 |
}
|
|
|
ac3a84 |
|
|
|
ac3a84 |
install_user_dbus() {
|