Bug 1209518

Summary: config file from samba-ad-dc causes error on named (bind) start
Product: [openSUSE] openSUSE Distribution Reporter: Michal Kubeček <mkubecek>
Component: SambaAssignee: The 'Opening Windows to a Wider World' guys <samba-maintainers>
Status: RESOLVED DUPLICATE QA Contact: The 'Opening Windows to a Wider World' guys <samba-maintainers>
Severity: Normal    
Priority: P5 - None CC: scabrero
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michal Kubeček 2023-03-20 14:23:59 UTC
After an upgrade from Leap 15.4 to (beta) 15.5, then named daemon (bind)
fails to start with the following error:

> named.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/samba/bind-dns: No such file or directory

While searching for the errror, I found

  https://forums.opensuse.org/t/bind-broken-after-zypper-dup/144767/2

The path in question is in

  /usr/lib/systemd/system/named.service.d/26-samba-dlz.conf

which belongs to samba-ad-dc package. Based on the suggestion from the
forum, I tried to shadow this file with /etc/../26-samba-dlz.conf where
I prefixed the path with "**-**". This seemed to work well but today bind
failed to start again, this time with

> /etc/systemd/system/named.service.d/26-samba-dlz.conf:2: ReadWritePaths= path is not absolute, ignoring: **-**/var/lib/samba/bind-dns

As I'm not familiar with the way systemd handles mount namespaces and
I do not really need or want Samba AD or anything related to it, I tried
to uninstall the samba-ad-dc package; now named starts without any issue.
Comment 1 Samuel Cabrero 2023-03-23 10:03:34 UTC
(In reply to Michal Kubeček from comment #0)
> After an upgrade from Leap 15.4 to (beta) 15.5, then named daemon (bind)
> fails to start with the following error:
> 
> > named.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/lib/samba/bind-dns: No such file or directory
> 
> While searching for the errror, I found
> 
>   https://forums.opensuse.org/t/bind-broken-after-zypper-dup/144767/2
> 
> The path in question is in
> 
>   /usr/lib/systemd/system/named.service.d/26-samba-dlz.conf
> 
> which belongs to samba-ad-dc package. Based on the suggestion from the
> forum, I tried to shadow this file with /etc/../26-samba-dlz.conf where
> I prefixed the path with "**-**". This seemed to work well but today bind
> failed to start again, this time with
> 
> > /etc/systemd/system/named.service.d/26-samba-dlz.conf:2: ReadWritePaths= path is not absolute, ignoring: **-**/var/lib/samba/bind-dns
> 
> As I'm not familiar with the way systemd handles mount namespaces and
> I do not really need or want Samba AD or anything related to it, I tried
> to uninstall the samba-ad-dc package; now named starts without any issue.

Will be fixed by next samba-ad-dc update.

*** This bug has been marked as a duplicate of bug 1205946 ***