Bug#770504: systemd: log all members of cyclic dependencies (loops)
On Fri, 05 Dec 2014 at 07:27:35 +0100, Martin Pitt wrote: But still exists in unstable's/testing's 215 version, but important bugs don't qualify for jessie any more as per freeze policy. If someone wants to convince the release team, by all means go ahead, of course -- I'm happy to cherry-pick it into unstable. I've asked the RT. S -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#770504: systemd: log all members of cyclic dependencies (loops)
Control: tags 770504 + patch fixed-upstream On Sat, 22 Nov 2014 at 00:53:46 +0100, Zbigniew Jędrzejewski-Szmek wrote: C.f. http://cgit.freedesktop.org/systemd/systemd/commit/?id=14fe721b5f6d Thanks! Corresponding patch attached. S From 14fe721b5f6d8457cc8737fa75f2ed79e7fa534b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= zbys...@in.waw.pl Date: Sun, 2 Nov 2014 12:10:42 -0500 Subject: [PATCH] Raise level of 'Found dependency...' lines This way they always show up together with 'Found ordering cycle...'. Ordering cycles are a serious error and a major pain to debug. If quiet is enabled, only the first and the last line of output are shown: systemd[1]: Found ordering cycle on basic.target/start systemd[1]: Breaking ordering cycle by deleting job timers.target/start systemd[1]: Job timers.target/start deleted to break ordering cycle starting with basic.target/start which isn't particularly enlightening. So just show the whole message at the same level. Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1158206 Bug-Debian: https://bugs.debian.org/770504 Origin: upstream, 218, commit:14fe721b5f6d --- src/core/transaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/transaction.c b/src/core/transaction.c index 488cb86..bbaa6da 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -376,9 +376,9 @@ static int transaction_verify_order_one(Transaction *tr, Job *j, Job *from, unsi for (k = from; k; k = ((k-generation == generation k-marker != k) ? k-marker : NULL)) { /* logging for j not k here here to provide consistent narrative */ -log_info_unit(j-unit-id, - Found dependency on %s/%s, - k-unit-id, job_type_to_string(k-type)); +log_warning_unit(j-unit-id, + Found dependency on %s/%s, + k-unit-id, job_type_to_string(k-type)); if (!delete hashmap_get(tr-jobs, k-unit) !unit_matters_to_anchor(k-unit, k)) { -- 2.1.3
Bug#770504: systemd: log all members of cyclic dependencies (loops)
Package: systemd Version: 215-6 Severity: wishlist (Bug carefully titled to include both cycl and loop since those are the searches I've been using to find related bugs :-) Looking at https://bugs.debian.org/768548, which involved a cyclic dependency: systemd logs that there was a loop, and which arbitrary point it tried to use to break it. However, it does not log (an example of) the whole path around the loop before it started trying to break it. It would be great if it could. See also http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2014-November/004764.html where I tried to look for a general solution to cyclic dependencies between rcS things that need networking, and rc2 things that provide or want to come before networking, without having this as a prerequisite. S -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#770504: systemd: log all members of cyclic dependencies (loops)
On Fri, 21 Nov 2014 20:20:45 + Simon McVittie s...@debian.org wrote: dependency: systemd logs that there was a loop, and which arbitrary point it tried to use to break it. However, it does not log (an example of) the whole path around the loop before it started trying to break it. IIRC it does log that. If you don't see it, make sure that is not caused by visible log level issues or such. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#770504: systemd: log all members of cyclic dependencies (loops)
On Sat, Nov 22, 2014 at 01:20:13AM +0200, Uoti Urpala wrote: On Fri, 21 Nov 2014 20:20:45 + Simon McVittie s...@debian.org wrote: dependency: systemd logs that there was a loop, and which arbitrary point it tried to use to break it. However, it does not log (an example of) the whole path around the loop before it started trying to break it. IIRC it does log that. If you don't see it, make sure that is not caused by visible log level issues or such. C.f. http://cgit.freedesktop.org/systemd/systemd/commit/?id=14fe721b5f6d Zbyszek -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org