Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1930747

Summary: [RHEL7.9] smb.service stops when samba rpms are updated
Product: Red Hat Enterprise Linux 7 Reporter: Sebastien Aime <saime>
Component: sambaAssignee: Andreas Schneider <asn>
Status: CLOSED ERRATA QA Contact: sssd-qe <sssd-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.9CC: asn, dkarpele, gdeschner, jarrpa, jreznik, mkosek, tscherf
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: samba-4.10.16-14.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-08 22:30:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sebastien Aime 2021-02-19 14:04:46 UTC
This is a "clone" of https://bugzilla.redhat.com/show_bug.cgi?id=1924571 where the same problem was reported on RHEL8.

The problem also affects RHEL7.


---

Hello all,

If samba rpm packages are updated while smb.service is running, it stops.

systemctl status smb.service shows:

● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2021-01-28 16:08:20 CET; 12s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 3581 (code=exited, status=1/FAILURE)

Jan 28 16:08:20 localhost.localdomain systemd[1]: Stopped Samba SMB Daemon.
Jan 28 16:08:20 localhost.localdomain systemd[1]: Starting Samba SMB Daemon...
Jan 28 16:08:20 localhost.localdomain smbd[3581]: /usr/sbin/smbd: /usr/lib64/samba/libreplace-samba4.so: version `SAMBA_4.9.1' not found (required by /lib64/libwbclient.so.0)
Jan 28 16:08:20 localhost.localdomain smbd[3581]: /usr/sbin/smbd: /usr/lib64/samba/libwinbind-client-samba4.so: version `SAMBA_4.9.1' not found (required by /lib64/libwbclient.so.0)
Jan 28 16:08:20 localhost.localdomain systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
Jan 28 16:08:20 localhost.localdomain systemd[1]: smb.service: Failed with result 'exit-code'.
Jan 28 16:08:20 localhost.localdomain systemd[1]: Failed to start Samba SMB Daemon.

Restarting smb.service fixes the issue.

Steps to reproduce:

1. I install a RHEL8.0 VM (any minor version will do as long as it's not the most recent one)
2. Set the system release version to 8.0

    # subscription-manager release --set=8.0

3. Install samba rpms packages
4. Enable and start smb.service

    # systemctl enable smb.service ; systemctl start smb.service

5. Set the system release version to 8.3 (any minor version will do as long as it's not the oldest one)

    # subscription-manager release --set=8.3

6. While smb.service is running, update samba packages

7. Check the status of smb.service (you will find it failed)

Comment 13 errata-xmlrpc 2021-06-08 22:30:45 UTC
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 (Moderate: samba security and bug fix update), 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/RHSA-2021:2313