Bug 1145108

Summary: systemd-nspawn: mkdir_safe_label() failed: File exists
Product: [Fedora] Fedora Reporter: Jan Synacek <jsynacek>
Component: systemdAssignee: Jan Synacek <jsynacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-208-22.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-27 10:02:31 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:
Attachments:
Description Flags
patch none

Description Jan Synacek 2014-09-22 12:04:37 UTC
Description of problem:
When running systemd-nspawn with -u <user>, it fails with "mkdir_safe_label() failed: File exists".


Version-Release number of selected component (if applicable):
systemd-208-21.fc20.x86_64


Steps to Reproduce:
1. Set up a fedora rawhide container in /srv/rawhide.
2. In the container, create a user
   $ useradd jsynacek
3. Run systemd-nspawn
   $ sudo systemd-nspawn -D /srv/rawhide -u jsynacek


Actual results:
$ sudo systemd-nspawn -D /srv/rawhide-scratch -u jsynacek
Spawning namespace container on /srv/rawhide-scratch (console is /dev/pts/2).
Init process in the container running as PID 15375.
mkdir_safe_label() failed: File exists
Container failed with error code 1.


Expected results:
/bin/bash is loaded and everything proceeds as expected.


Additional info:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=f418f31d5042398344740f2d8ac4dc1c2583151c seems to be fixing this problem in the newer code.

Comment 1 Jan Synacek 2014-09-23 07:12:42 UTC
Created attachment 940294 [details]
patch

Comment 2 Fedora Update System 2014-09-24 13:25:45 UTC
systemd-208-22.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/systemd-208-22.fc20

Comment 3 Fedora Update System 2014-09-25 10:44:42 UTC
Package systemd-208-22.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-208-22.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11478/systemd-208-22.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-09-27 10:02:31 UTC
systemd-208-22.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.