From nobody Tue Apr 25 19:44:13 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q5XWK3Tfnz46dMm for ; Tue, 25 Apr 2023 19:44:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q5XWK1dxnz4Plt for ; Tue, 25 Apr 2023 19:44:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682451853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/GlQuo/+2gJ8GhLBmo5ksRag9XZ5BY1lWlbPbtZmmyY=; b=h/JMVsmeg+8UZgibqai1SMXLay9FpBla6O63VTXF+8TLv1K8rKlNzdIClEQwVGVcniIdmH T48LoqiEdt1iZF0MEYeA7a5esn424Xgfaydq8MvcZ+vgYD4TfKKCJhyLsUuAKUPJvz/e8u Zdnm5uhM9hGbwchSybCQgI4Xg9nzJMKgYYN3YhqJKb+ZzPuoALxgpRTyDBPJGAkS76QrrT 0Qc2uyz12gRTxbf60M91GuRq0RiH86VQYPCBYLHwUlv3/YrqNBVElnlUeNDxAAguH1PoBd CHyUreaN2vm1CotbrQK8SBaD0iH+e6JeAnrMw7AhM8WiyEZZqlIhAWJy0aZpdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682451853; a=rsa-sha256; cv=none; b=kztk2bOPQCqWIwM6+13lVY47x9212YO3SGvtUcsjDKHtzELHS4cYvAmaDHJqAv7iZeHrOe ZRUrilMlgzgP61ZaSgZWtgWGwnqkY26jCWGgWbMEMGy2iSHcwZdJMciynP3pPLwUq+X+MG BshyIAS8ndRcBEFFQ5ePBWeyIbvo2KwZSi3F/aC7tGAg0JrgnaGdxvdbt3vxUa4mZCWNmM oDToC5ZElxSMNy8Wg2WBkxyDnqaJGUv21Xr7b467gBnAcd7PUHqVbLAg3kCNXMVBd4+ppA wSxrNI/d6CQHCDJaMDOb6rLNW6AhYfKo3/c7Zf/H1ovvVL2AaPL4rPEARFMBwA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q5XWK0lGpz1KhB for ; Tue, 25 Apr 2023 19:44:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33PJiD8M034763 for ; Tue, 25 Apr 2023 19:44:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33PJiDKl034762 for bugs@FreeBSD.org; Tue, 25 Apr 2023 19:44:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271069] syslogd service inside client jail requires restart before server jail receives logs Date: Tue, 25 Apr 2023 19:44:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@svmhdvn.name X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271069 Bug ID: 271069 Summary: syslogd service inside client jail requires restart before server jail receives logs Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: me@svmhdvn.name I'm not sure if this is an actual bug or an issue with my system configurat= ion: PROBLEM: In a centralized logging configuration with one client jail (sending logs) = and one server jail (receiving logs and writing them to local files), syslogd inside the *client* jail requires a restart before I can observe on the *server* jail that the logs are successfully received. This is observed on a fresh start of the *server* jail, followed by a fresh start of the *client* jail. Is there a race condition or order of operations problem somewhere? Let me = know if I need to supply more info about the configuration. DETAILS: I have a simple configuration of two standard thick jails (named 'ssh' and 'logs') with this configuration: =3D=3D=3D=3D=3D /etc/jail.conf =3D=3D=3D=3D=3D mount.devfs; allow.raw_sockets; exec.clean; exec.timeout =3D 30; stop.timeout =3D 30; path =3D "/usr/jail/guests/${name}"; host.hostname =3D "${name}.my.domain"; exec.start =3D "/bin/sh /etc/rc"; exec.stop =3D "/bin/sh /etc/rc.shutdown"; logs { ip6.addr =3D "re0|fdac::aaaa:201/64"; } ssh { ip6.addr =3D "re0|fdac::aaaa:202/64"; depend =3D "logs"; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Each jail has the same content in their host files and no DNS servers (i.e. name resolution is available through hosts files only): =3D=3D=3D=3D=3D /etc/hosts =3D=3D=3D=3D=3D [...] fdac::aaaa:201 logs.my.domain logs fdac::aaaa:202 ssh.my.domain ssh [...] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In the client jail ssh.my.domain: =3D=3D=3D=3D=3D /etc/syslog.conf =3D=3D=3D=3D *.* @logs.my.domain =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D =3D=3D=3D=3D=3D /etc/rc.conf =3D=3D=3D=3D syslogd_flags=3D"-8 -O syslog -s -v -v" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D In the server jail logs.my.domain: =3D=3D=3D=3D=3D /etc/syslog.conf =3D=3D=3D=3D +ssh.my.domain *.* /var/log/ssh.my.domain.log =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D =3D=3D=3D=3D=3D /etc/rc.conf =3D=3D=3D=3D syslogd_flags=3D"-8 -O syslog -a '*.my.domain' -v -v" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Steps to repro (as root): 1. in the jailhost: # service jail onestart logs # service jail onestart ssh 2. inside logs.my.domain (for observing received logs): # tail -f /var/log/ssh.my.domain.log [...] follow the log 3. inside ssh.my.domain: # logger "hello from ssh" <--- *NOT* observed on the log server # service syslogd restart # logger "hello from ssh" <--- SUCCESS visible in log server --=20 You are receiving this mail because: You are the assignee for the bug.=