Bug 2018922

Summary: When /var/lib/gssproxy/default.sock does not exist, systemd-tmpfiles refuses to create it
Product: [Fedora] Fedora Reporter: Jan Pazdziora <jpazdziora>
Component: gssproxyAssignee: Simo Sorce <ssorce>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: rawhideCC: abokovoy, gdeschner, jpazdziora, ssorce
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-01 13:59:18 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 Jan Pazdziora 2021-11-01 09:24:18 UTC
Description of problem:

The gssproxy in rawhide added /var/lib/gssproxy/default.sock -> /run/gssproxy.default.sock symlink but it also added a tmpfiles config file to create that symlink, in https://src.fedoraproject.org/rpms/gssproxy/c/018e011cb6bc0d40684afa88760a0ecbcab6ee52?branch=rawhide.

However, that tmpfiles config is an effective noop when the symlink does not exist, and it causes systemd-tmpfiles --create to actually fail.

Version-Release number of selected component (if applicable):

gssproxy-0.8.4-5.fc36.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. dnf install -y gssproxy
2. rm -f /var/lib/gssproxy/default.sock
3. systemd-tmpfiles --create
4. echo $?

Actual results:

/usr/lib/tmpfiles.d/gssproxy.conf:1: Invalid age '/run/gssproxy.default.sock'.
65

Expected results:

No error emitted, exit status 0.

Additional info:

That config file also breaks systemd-tmpfiles even if the symlink actually exist (was created by rpm during gssproxy installation):

# ls -la /var/lib/gssproxy/default.sock
lrwxrwxrwx. 1 root root 26 Oct 29 17:07 /var/lib/gssproxy/default.sock -> /run/gssproxy.default.sock
# systemd-tmpfiles --create
/usr/lib/tmpfiles.d/gssproxy.conf:1: Invalid age '/run/gssproxy.default.sock'.
# echo $?
65
# 

The message about Invalid age is also emitted during the package installation:
# dnf install -y gssproxy
[...]
  Running scriptlet: gssproxy-0.8.4-5.fc36.x86_64                            3/3 
  Installing       : gssproxy-0.8.4-5.fc36.x86_64                            3/3 
  Running scriptlet: gssproxy-0.8.4-5.fc36.x86_64                            3/3 
/usr/lib/tmpfiles.d/gssproxy.conf:1: Invalid age '/run/gssproxy.default.sock'.
  Verifying        : gssproxy-0.8.4-5.fc36.x86_64                            1/3

Comment 1 Jan Pazdziora 2021-11-01 09:28:05 UTC
This change broken FreeIPA containerization: https://github.com/freeipa/freeipa-container/runs/4064163089

Comment 2 Simo Sorce 2021-11-01 13:42:04 UTC
Ok, I need to figure out what is wrong there though.

Comment 3 Simo Sorce 2021-11-01 13:46:34 UTC
Found the bug, building a new package

Comment 4 Simo Sorce 2021-11-01 13:59:18 UTC
Should be fixed in the latest build