Bug 1286787
| Summary: | docker should create /etc/machine-id | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Frantisek Kluknavsky <fkluknav> |
| Component: | docker | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | atomic-bugs, jpazdziora, lnykryn, lsm5, lsu, rcyriac, vrutkovs, walters |
| Target Milestone: | rc | Keywords: | Extras |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1285805 | Environment: | |
| Last Closed: | 2016-06-23 16:17:42 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1286812 | ||
|
Comment 1
Daniel Walsh
2015-12-01 22:30:28 UTC
This functionality should be in docker-1.10 from us and hopefully hooks patch will get accepted upstream. Hooks patch was closed upstream, but we will continue to carry it. https://github.com/projectatomic/oci-systemd-hook Handles this for now, need to complete packaging of this for Fedora and then ship it in RHEL. https://github.com/projectatomic/oci-systemd-hook Handles this for now, need to complete packaging of this for Fedora and then ship it in RHEL. Fixed in docker-1.10 Whoa, it's magic of all magics with unicorns.
I confirm that without oci-systemd-hook installed, I get
# docker run --rm -ti rhel7.2 /usr/sbin/init
Failed to mount tmpfs at /run: Operation not permitted
[!!!!!!] Failed to mount API filesystems, freezing.
When I install oci-systemd-hook-1.10.3-31.el7.x86_64, running the same command yields
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization docker.
Detected architecture x86-64.
Welcome to Red Hat Enterprise Linux Server 7.2 (Maipo)!
Set hostname to <461aeee99967>.
[ OK ] Reached target Encrypted Volumes.
[ OK ] Reached target Remote File Systems.
[ OK ] Reached target Swap.
[ OK ] Reached target Paths.
[ OK ] Created slice Root Slice.
[ OK ] Created slice System Slice.
[ OK ] Created slice system-getty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on Journal Socket.
Starting Rebuild Dynamic Linker Cache...
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Rebuild Journal Catalog...
Starting Rebuild Hardware Database...
Starting Journal Service...
[ OK ] Reached target Slices.
[ OK ] Listening on Delayed Shutdown Socket.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Journal Service.
[ OK ] Started Rebuild Journal Catalog.
Starting Flush Journal to Persistent Storage...
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Rebuild Dynamic Linker Cache.
[ OK ] Started Rebuild Hardware Database.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Reached target System Initialization.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
Starting D-Bus System Message Bus...
Starting Permit User Sessions...
Starting Login Service...
Starting Cleanup of Temporary Directories...
[ OK ] Started Cleanup of Temporary Directories.
[ OK ] Started Permit User Sessions.
[ OK ] Started Console Getty.
Starting Console Getty...
[ OK ] Reached target Login Prompts.
[ OK ] Started Login Service.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
Red Hat Enterprise Linux Server 7.2 (Maipo)
Kernel 3.10.0-327.el7.x86_64 on an x86_64
461aeee99967 login:
and
# docker exec -ti 461aeee99967 systemctl get-default
multi-user.target
On the other hand, on Fedora 23 with docker-1.10.3-24.gitf476348.fc23.x86_64 installed from updates-testing, I don't see oci-systemd-hook available: # dnf install oci-systemd-hook Last metadata expiration check: 2:27:38 ago on Tue Jun 7 10:13:21 2016. No package oci-systemd-hook available. We have not released oci* tools to anything newer the fedora 24. In docker-1.10.3-40.el7.x86_64 oci-register-machine-1.10.3-40.el7.x86_64 oci-systemd-hook-1.10.3-40.el7.x86_64 # docker run --name systemd1 -t -v /sys/fs/cgroup:/sys/fs/cgroup:ro fedora /usr/sbin/init # docker exec -ti systemd1 systemctl get-default multi-user.target BTW The following should not longer be necessary. -v /sys/fs/cgroup:/sys/fs/cgroup:ro Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1274 |