Bug 1145108 - systemd-nspawn: mkdir_safe_label() failed: File exists
Summary: systemd-nspawn: mkdir_safe_label() failed: File exists
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-22 12:04 UTC by Jan Synacek
Modified: 2014-09-27 10:02 UTC (History)
8 users (show)

Fixed In Version: systemd-208-22.fc20
Clone Of:
Environment:
Last Closed: 2014-09-27 10:02:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch (3.24 KB, patch)
2014-09-23 07:12 UTC, Jan Synacek
no flags Details | Diff

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.


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