Change in osmo-ci[master]: repo-install-test: get journal of failed services

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Apr 26 19:43:17 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/23902 )

Change subject: repo-install-test: get journal of failed services
......................................................................

repo-install-test: get journal of failed services

Depending on the service, error messages are not shown with the
systemctl command. Run journalctl for failed services so we get the
reason for the failure in the jenkins log.

Related: OS#5130
Change-Id: Ib454424d7867137246fadd73255d4dbff63731a6
---
M scripts/repo-install-test/run-inside-docker.sh
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



diff --git a/scripts/repo-install-test/run-inside-docker.sh b/scripts/repo-install-test/run-inside-docker.sh
index 4a5f01a..91c8375 100755
--- a/scripts/repo-install-test/run-inside-docker.sh
+++ b/scripts/repo-install-test/run-inside-docker.sh
@@ -379,6 +379,7 @@
 	for service in $services_feed; do
 		if ! systemctl --no-pager -l -n 200 status $service; then
 			failed="$failed $service"
+			journalctl -u "$service" -n 200
 		fi
 	done
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/23902
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ib454424d7867137246fadd73255d4dbff63731a6
Gerrit-Change-Number: 23902
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210426/26fc236d/attachment.htm>


More information about the gerrit-log mailing list