1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-30 17:33:07 +00:00

realmd_join_cockpit: do systemctl daemon-reload before starting

In https://openqa.fedoraproject.org/tests/2724005 , it seems that
cockpit.service was restarted by a systemctl daemon reload during
install of the necessary packages to enrol to the domain, which
causes the web UI to unexpectedly show a "Server has closed the
connection" error and fail the test.

It seems like we can mitigate this by triggering a daemon reload
manually before launching cockpit - the reload seems to be sort
of 'queued' at this point, I'm not sure why - so let's do that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-07-11 12:02:39 -07:00
parent 0bde610430
commit 0a1818263f

View File

@ -35,6 +35,10 @@ sub run {
# optional as it's not really part of the test # optional as it's not really part of the test
script_run "dnf -y install sssd-tools", 220; script_run "dnf -y install sssd-tools", 220;
script_run "sss_debuglevel 9"; script_run "sss_debuglevel 9";
# trigger a systemctl daemon reload now to try and avoid it being
# sometimes triggered during realm package install and causing
# cockpit to restart and breaking the test
script_run "systemctl daemon-reload", 90;
my $cockpitver = script_output 'rpm -q cockpit --queryformat "%{VERSION}\n"'; my $cockpitver = script_output 'rpm -q cockpit --queryformat "%{VERSION}\n"';
# run firefox and login to cockpit # run firefox and login to cockpit
# note: we can't use wait_screen_change, wait_still_screen or # note: we can't use wait_screen_change, wait_still_screen or