Bug 2018922 - When /var/lib/gssproxy/default.sock does not exist, systemd-tmpfiles refuses to create it
Summary: When /var/lib/gssproxy/default.sock does not exist, systemd-tmpfiles refuses ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gssproxy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-01 09:24 UTC by Jan Pazdziora
Modified: 2021-11-01 13:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-01 13:59:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7194 0 None None None 2021-11-01 09:28:12 UTC

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


Note You need to log in before you can comment on or make changes to this bug.