Bug 1363862 - oci-register-machine subtle errors
Summary: oci-register-machine subtle errors
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: oci-register-machine
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-03 18:20 UTC by Antonio Murdaca
Modified: 2016-08-19 12:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-19 12:38:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Antonio Murdaca 2016-08-03 18:20:49 UTC
Description of problem:

oci-register-machine causes containers to fail with:

$ docker run -ti alpine bash
docker: Error response from daemon: oci runtime error: exit status 1:.

Instead:

$ docker run -ti alpine sh

The above works fine and here are containerd logs:

Aug 03 14:15:38 rawhide-0 oci-register-machine[1537]: 2016/08/03 14:15:38 Register machine: prestart 6b286286e08b746ac9b2220913b0dd62bd186ba7c1e08e70e055d946e920bb5c 1517 /var/lib/docker/devicemapper/mnt/a3468910cb63a378503fabdeb7b1331b1fe93f77f99ed577cd12181ad9470d73/rootfs
Aug 03 14:15:38 rawhide-0 oci-systemd-hook[1543]: systemdhook <debug>: Skipping as container command is bash, not init or systemd
Aug 03 14:15:38 rawhide-0 oci-register-machine[1547]: 2016/08/03 14:15:38 Register machine: poststop 6b286286e08b746ac9b2220913b0dd62bd186ba7c1e08e70e055d946e920bb5c 0 /var/lib/docker/devicemapper/mnt/a3468910cb63a378503fabdeb7b1331b1fe93f77f99ed577cd12181ad9470d73/rootfs
Aug 03 14:15:38 rawhide-0 oci-register-machine[1547]: 2016/08/03 14:15:38 TerminateMachine failed: No machine '6b286286e08b746ac9b2220913b0dd62bd186ba7c1e08e70e055d946e920bb5c' known
Aug 03 14:15:39 rawhide-0 docker-containerd[1265]: time="2016-08-03T14:15:38.877338453-04:00" level=error msg="containerd: start container" error="oci runtime error: exit status 1: " id=6b286286e08b746ac9b2220913b0dd62bd186ba7c1e08e70e055d946e920bb5c
Aug 03 14:16:11 rawhide-0 oci-register-machine[1678]: 2016/08/03 14:16:11 Register machine: prestart c16f45842f5c517eac971fb86581165c35414d02406a527df900c0faad00d960 1659 /var/lib/docker/devicemapper/mnt/256d3f4fc25109c44f431dd6f49993e880f9b8693a498e4211eab1f2540c7572/rootfs
Aug 03 14:16:11 rawhide-0 docker-containerd[1265]: time="2016-08-03T14:16:11.604967582-04:00" level=error msg="containerd: notify OOM events" error="open /sys/fs/cgroup/memory/system.slice/system.slice/memory.oom_control: no such file or directory"
Aug 03 14:16:35 rawhide-0 oci-register-machine[1701]: 2016/08/03 14:16:35 Register machine: poststop c16f45842f5c517eac971fb86581165c35414d02406a527df900c0faad00d960 0 /var/lib/docker/devicemapper/mnt/256d3f4fc25109c44f431dd6f49993e880f9b8693a498e4211eab1f2540c7572/rootfs

Version-Release number of selected component (if applicable):

docker-1.12.0-5.gitad4812e.fc26.x86_64

The above can be found in http://koji.fedoraproject.org/koji/taskinfo?taskID=15123002 if it's not already in Rawhide dnf

How reproducible:
always

Steps to Reproduce:
1. install docker-1.12.0-5.gitad4812e.fc26.x86_64
2. start docker
3. docker run -ti alpine bash (see failure)
4. docker run -ti alpine sh (works)

Actual results:

doesn't work with "bash"
works with "sh"

Expected results:

Not sure, but error message is cryptic

Additional info:

Comment 1 Antonio Murdaca 2016-08-03 18:21:07 UTC
spotted into https://bugzilla.redhat.com/show_bug.cgi?id=1362623#c8

Comment 2 Antonio Murdaca 2016-08-03 18:21:52 UTC
Of course, if I remove oci-register-machine from the hooks directory under /usr/libexec/oci/hooks.d/ everything works ok.

Comment 3 Daniel Walsh 2016-08-19 12:38:07 UTC
I removed oci-register-machine and I see the same.  alpine does not ship with bash

# docker run -ti alpine sh
/ # which bash
/ # bash
sh: bash: not found


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