Bug 1686048
| Summary: | samba 4.6.2-11.el7_4: unreliable winbindd start with Type=notify and double forking [rhel-7.2.z] | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | RAD team bot copy to z-stream <autobot-eus-copy> |
| Component: | samba | Assignee: | Andreas Schneider <asn> |
| Status: | CLOSED ERRATA | QA Contact: | Andrej Dzilský <adzilsky> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.2 | CC: | adobriyan, adzilsky, asn, chorn, gdeschner, ian.donaldson, jarrpa, jstephen, lmiksik, peter.clark, rhack, toneata, tscherf |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | samba-4.2.10-12.el7_2 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: When systemd starts a daemon (smbd, nmbd, winbindd) in notify mode it should not double fork.
Consequence: systemd sometimes thinks that smbd has been started incorrectly and sends a terminate signal (SIGTERM) to the process. This means that in some cases smbd isn't running because systemd killed it.
Fix: Don't start the smbd, nmbd and winbindd daemon in double forking mode, instead as a foreground process.
Result: systemd can track smbd correctly.
|
Story Points: | --- |
| Clone Of: | 1510872 | Environment: | |
| Last Closed: | 2019-04-02 14:48:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1510872 | ||
| Bug Blocks: | |||
|
Description
RAD team bot copy to z-stream
2019-03-06 15:32:21 UTC
I've fixed the version in this bugzilla if you don't mind. Sanity_only. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0699 "Consequence: systemd sometimes thing smbd has been started correctly and sends a terminate signal (SIGTERM) to the process. This means that in some cases smbd isn't running because systemd killed it." I was about to use that in a kbase, and think this does not apply. Could you please doublecheck? I think the following might apply: "Consequence: systemd sometimes thinks that smbd has been started incorrectly and sends a terminate signal (SIGTERM) to the process. This means that in some cases smbd isn't running because systemd killed it." Sorry, one more question. Fujitsu looked at the fix ( samba-4.2.99-fix_systemd_forking.patch ), and wonders why also this commit here was taken: ---------------------------------------- # cat samba-4.2.99-fix_systemd_forking.patch ... From c78b24c5852ae484f9cd1c00e74fb6a6d52a104d Mon Sep 17 00:00:00 2001 From: Andreas Schneider <asn> Date: Tue, 12 Dec 2017 08:36:57 +0100 Subject: [PATCH 3/4] systemd: Only start samba and nmbd when network interfaces are up For samba and nmbd we need to wait till a network interface is up or they wont be operational. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13184 Signed-off-by: Andreas Schneider <asn> Reviewed-by: Jeremy Allison <jra> Autobuild-User(master): Jeremy Allison <jra> Autobuild-Date(master): Wed Dec 20 04:21:51 CET 2017 on sn-devel-144 --- packaging/systemd/nmb.service | 3 ++- packaging/systemd/samba.service | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service index 1804dcc99ea..07b1dfbe02e 100644 --- a/packaging/systemd/nmb.service +++ b/packaging/systemd/nmb.service @@ -1,6 +1,7 @@ [Unit] Description=Samba NMB Daemon -After=syslog.target network.target +Wants=network-online.target +After=syslog.target network.target network-online.target [Service] Type=notify diff --git a/packaging/systemd/samba.service b/packaging/systemd/samba.service index 1b64c3b779d..79b22a0da7a 100644 --- a/packaging/systemd/samba.service +++ b/packaging/systemd/samba.service @@ -1,6 +1,7 @@ [Unit] Description=Samba AD Daemon -After=syslog.target network.target +Wants=network-online.target +After=syslog.target network.target network-online.target [Service] Type=notify -- 2.21.0 ---------------------------------------- It seems like that was fixed in RHEL7.6 but is not included in BZ#1510872. Is it possible to get the background? |