Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1027854[details]
Error message displayed in the ui
Description of problem:
The attached screenshot shows that when the command that you pass to a Docker container cannot be found, an error complaining about the HTTP error code returned is displayed. This is not very useful because the real issue, the fact that the command passed cannot be found, is not being passed on to the user.
Version-Release number of selected component (if applicable):
* Satellite 6.1 GA SNAP 5
How reproducible:
Steps to Reproduce:
1. Try to provision a new Docker container
2. Pass a made up command (i.e. zebra) to the container
3.
Actual results:
The UI displays the error: "Error - Expected([200, 201, 202, 203, 204, 304]) <=> Actual(404 Not Found)"
Expected results:
The UI should inform the user that the command was not found (equivalent to what you'd get if you were to run docker start on the container itself; see below)
Additional info:
[root@ibm-x3250m4-03 ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c70697875e53 registry.access.redhat.com:443/rhel7:latest "/usr/bin/top" 8 minutes ago docker-rhel7-1
d912c458943b centos:7 "/bin/bash" 29 minutes ago Up 15 minutes partha-test
7e5527c77e1a registry.access.redhat.com:443/rhel7.0:latest "/usr/bin/top" About an hour ago docker-rhel70-1
d9cb731b1d4f mongo:latest "/usr/bin/top" About an hour ago docker-mongo-1
4bf9e9e96ab9 registry.access.redhat.com:443/rhel7.1:latest "top" About an hour ago docker-rhel71-1
b1c243a74c82 ibm-x3250m4-03.lab.eng.rdu2.redhat.com:5000/default_organization-dockerproduct-centos:7 "top" About an hour ago Up 10 minutes docker-centos-1
[root@ibm-x3250m4-03 ~]# docker start c70697875e53Error response from daemon: Cannot start container c70697875e53: [8] System error: exec: "/usr/bin/top": stat /usr/bin/top: no such file or directory
FATA[0000] Error: failed to start one or more containers
Comment 3Daniel Lobato Garcia
2016-03-14 11:56:57 UTC
Can you try this out again? When I try to reproduce this and create a container with a made up command, I see this error (using the hub in case that mattered):
Error: Error - Cannot start container 7eca005cbe885a04a728f1a6a88978db2d745fd97b876fe77c3095d01486060d: [8] System error: exec: "zebra": executable file not found in $PATH
I'm guessing that 404 came from the Docker API, and now it returns the full error so that's why it now displays the proper text
VERIFIED.
@satellite-6.2.0-15.1.beta.el7sat.noarch
I created a container with non-existent command 'zebra' and upon running it I get popup with relevant error msg
(x) Error: Error - Cannot start container d9e2621f1b3dce1298ba4e878cbb6952c89179332d05d75137afc518522ee056: [8] System error: exec: "zebra": executable file not found in $PATH
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:1501
Created attachment 1027854 [details] Error message displayed in the ui Description of problem: The attached screenshot shows that when the command that you pass to a Docker container cannot be found, an error complaining about the HTTP error code returned is displayed. This is not very useful because the real issue, the fact that the command passed cannot be found, is not being passed on to the user. Version-Release number of selected component (if applicable): * Satellite 6.1 GA SNAP 5 How reproducible: Steps to Reproduce: 1. Try to provision a new Docker container 2. Pass a made up command (i.e. zebra) to the container 3. Actual results: The UI displays the error: "Error - Expected([200, 201, 202, 203, 204, 304]) <=> Actual(404 Not Found)" Expected results: The UI should inform the user that the command was not found (equivalent to what you'd get if you were to run docker start on the container itself; see below) Additional info: [root@ibm-x3250m4-03 ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c70697875e53 registry.access.redhat.com:443/rhel7:latest "/usr/bin/top" 8 minutes ago docker-rhel7-1 d912c458943b centos:7 "/bin/bash" 29 minutes ago Up 15 minutes partha-test 7e5527c77e1a registry.access.redhat.com:443/rhel7.0:latest "/usr/bin/top" About an hour ago docker-rhel70-1 d9cb731b1d4f mongo:latest "/usr/bin/top" About an hour ago docker-mongo-1 4bf9e9e96ab9 registry.access.redhat.com:443/rhel7.1:latest "top" About an hour ago docker-rhel71-1 b1c243a74c82 ibm-x3250m4-03.lab.eng.rdu2.redhat.com:5000/default_organization-dockerproduct-centos:7 "top" About an hour ago Up 10 minutes docker-centos-1 [root@ibm-x3250m4-03 ~]# docker start c70697875e53Error response from daemon: Cannot start container c70697875e53: [8] System error: exec: "/usr/bin/top": stat /usr/bin/top: no such file or directory FATA[0000] Error: failed to start one or more containers