Bug 55678 - Updates for samba without univention-samba4 leave samba in a not fully functional state
Updates for samba without univention-samba4 leave samba in a not fully functi...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Arvid Requate
Julia Bremer
:
Depends on:
Blocks: 55515
  Show dependency treegraph
 
Reported: 2023-02-13 18:17 CET by Arvid Requate
Modified: 2023-02-16 11:58 CET (History)
5 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.343
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2023-02-13 18:17:58 CET
samba.postinst runs 

invoke-rc.d smbd restart
invoke-rc.d nmbd restart
invoke-rc.d samba-ad-dc restart

And that leaves samba in a "half running" state, where

smbclient "//$(hostname -f)/sysvol" -Uuser1%univention -c ls

works but the use case of Bug #55515 doesn't:

smbclient "//$(hostname -f)/sysvol" -W foo -Uuser1%univention -c ls

Apparently there is some delicate interplay between nmbd and samba-ad-dc.


+++ This bug was initially created as a clone of Bug #55677 +++
Comment 1 Arvid Requate univentionstaff 2023-02-13 18:21:03 CET
This is the behavior:

## first it works:
root@primary20:~# smbclient "//$(hostname -f)/sysvol" -W foo -Uuser1%univention -c ls
  .                                   D        0  Mon Jun 21 13:30:58 2021
  ..                                  D        0  Mon Feb 13 18:14:40 2023
  ucs50domain.net                     D        0  Mon Jun 21 13:30:58 2021

                49010764 blocks of size 1024. 42230688 blocks available

## but then:
root@primary20:~# invoke-rc.d samba-ad-dc restart
Warning: The unit file, source configuration file or drop-ins of samba-ad-dc.service changed on disk. Run 'systemctl daemon-reload' to reload units.
root@primary20:~# smbclient "//$(hostname -f)/sysvol" -W foo -Uuser1%univention -c ls
session setup failed: NT_STATUS_CONNECTION_REFUSED
Comment 2 Arvid Requate univentionstaff 2023-02-14 21:55:21 CET
r19750 | Make samba-ad-dc restart more robust
c1ce981856 | Advisory update

Package: samba
Version: 2:4.16.8-1A~5.0.0.202302142143
Branch: ucs_5.0-0
Scope: errata5.0-3
Comment 3 Julia Bremer univentionstaff 2023-02-15 15:07:00 CET
OK: /etc/init.d/samba-ad-dc restart works now
OK: /etc/init.d/samba restart still works
Verified