FS#59805 - [ceph-libs] shadow.service fails due to missing /run/ceph

Attached to Project: Community Packages
Opened by Darrell (denns) - Saturday, 25 August 2018, 17:22 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 26 August 2018, 21:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This package causes the systemd shadow.service to fail with the error "user 'ceph': directory '/run/ceph' does not exist". The home directory for the ceph user is set to /run/ceph, but this directory will not exist unless something creates it (before shadow.service runs) because /run is on tmpfs.

I think we either need something to create /run/ceph before shadow.service runs, or it should be moved to a non-tmpfs location (maybe /var/lib/ceph?).
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 26 August 2018, 21:42 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Saturday, 25 August 2018, 17:39 GMT
systemd-tmpfiles should be running before the shadow timer is run AFAIK.

shadow.timer is even OnCalendar, so it's EXTREMELY unlikely that it's triggering the service before tmpfiles sets up the required dir.
Comment by loqs (loqs) - Saturday, 25 August 2018, 18:03 GMT
@denns was the package ceph still installed on the system? I would expect to see the issue after the package was removed.
Edit:
ceph package even as that provides tmpfiles.d and sysusers.d configs.
Comment by Doug Newgard (Scimmia) - Saturday, 25 August 2018, 23:48 GMT
Yeah, I'm assuming we're talking ceph as well, as the user has nothing to do with with lib package.
Comment by Darrell (denns) - Sunday, 26 August 2018, 20:43 GMT
Yes, apologies. I thought it was part of ceph-libs, but it looks like the user is actually added by the ceph package.
Comment by Darrell (denns) - Sunday, 26 August 2018, 20:45 GMT
@loqs Yes, I think that was actually the issue. I forgot that I had ceph installed at one point, and have since removed it and thought the user was created by ceph-libs.
Comment by Doug Newgard (Scimmia) - Sunday, 26 August 2018, 21:42 GMT
So this is a simple cleanup issue. Users are left for security reasons, it's on the user/admin to clean things up if they want.

Loading...