Bug 1380685
| Summary: | 'docker run IMAGE nonexistingcmd' error message is hard to get | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jakub Filak <jfilak> | ||||
| Component: | oci-register-machine | Assignee: | Daniel Walsh <dwalsh> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | adimania, admiller, amurdaca, dwalsh, ichavero, imcleod, jberan, jcajka, jchaloup, jfilak, lsm5, marianne, miminar, mpatel, nalin, riek, vbatts | ||||
| Target Milestone: | --- | Keywords: | Reopened | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | oci-register-machine-0-2.7.gitbb20b00.fc25 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1386320 1386321 (view as bug list) | Environment: | |||||
| Last Closed: | 2016-10-26 22:30:49 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: | 1386320, 1386321 | ||||||
| Attachments: |
|
||||||
|
Description
Jakub Filak
2016-09-30 10:34:04 UTC
I'll take a look at this shortly but this seems similar to https://bugzilla.redhat.com/show_bug.cgi?id=1379706 which should have been fixed in build 28. Can you disable selinux and try again please? Created attachment 1206226 [details]
system logs
[root@photon ~]# setenforce 0
[root@photon ~]# getenforce
Permissive
[root@photon ~]# MARK=$(date +"%F %H:%M:%S")
[root@photon ~]# docker run fedora -ti /usr/bin/bash
/usr/bin/docker-current: Error response from daemon: oci runtime error: exit status 1:.
[root@photon ~]# journalctl --since="$MARK" > /tmp/journald.txt
Thanks, I'll spin up a Rawhide vm and test this out. This is an issue with "oci-register-machine" hook rather than a docker issue: $ docker run busybox -ti sh docker: Error response from daemon: oci runtime error: exit status 1:. $ sudo mv /usr/libexec/oci/hooks.d/oci-register-machine /tmp/oci-register-machine The command above will prevent docker from running that hook, try re-running the original command now: $ docker run busybox -ti sh docker: Error response from daemon: oci runtime error: exec: "-ti": executable file not found in $PATH. Now you can see the useful "executable file not found in $PATH" error. This looks like an old problem we had where the pid did not exist when oci-register-machine is called. Which is not supposed to happen when using runc? Actually it looks like the problem is on Terminate. Oct 17 11:56:44 dhcp-10-19-62-196.boston.devel.redhat.com oci-register-machine[31825]: 2016/10/17 11:56:44 Register machine: prestart b80799775658cf7cf95c75634a3a6f2f9f0a7196d346d94e3b075468f0919547 31807 /var/lib/docker/overlay2/3725ea6691c2a35bd0be05db96084424fa0cb77c3d9505c9f505d522eedeae61/merged Oct 17 11:56:44 dhcp-10-19-62-196.boston.devel.redhat.com oci-register-machine[31840]: 2016/10/17 11:56:44 Register machine: poststop b80799775658cf7cf95c75634a3a6f2f9f0a7196d346d94e3b075468f0919547 0 /var/lib/docker/overlay2/3725ea6691c2a35bd0be05db96084424fa0cb77c3d9505c9f505d522eedeae61/merged Oct 17 11:56:44 dhcp-10-19-62-196.boston.devel.redhat.com oci-register-machine[31840]: 2016/10/17 11:56:44 TerminateMachine failed: No machine 'b80799775658cf7cf95c75634a3a6f2f9f0a7196d346d94e3b075468f0919547' known I think we need to check if the return from systemd is the UUID does not exist, just exit without a message. https://github.com/projectatomic/oci-register-machine/pull/28 should fix this bug. Fixed in oci-register-machine-0-2.7.gitbb20b00.fc26 oci-register-machine-0-2.7.gitbb20b00.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f1316b121d oci-register-machine-0-2.7.gitbb20b00.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |