Confusing error message on interactive run

Bug #1685521 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-zunclient
Fix Released
Medium
haobing1

Bug Description

If I run a container with an incorrect command in interactive mode, it showed a confusing error message "ERROR: Invalid websocket link when attach ...". This error message is sub-optimal because the root cause of the failure is the container entered an error state (because users specify an incorrect command).

$ zun run -i cirros not-a-command
....
Waiting for container start
Waiting for container start
ERROR: Invalid websocket link when attach container:c581f573-3c17-469f-ab0c-10f6f59812eb

We need to fix it by checking the state of the container and failed it with a correct message if the container entered an error state.

hongbin (hongbin034)
Changed in zun:
importance: Undecided → High
status: New → Triaged
hongbin (hongbin034)
Changed in zun:
importance: High → Medium
haobing1 (haobing1)
Changed in zun:
assignee: nobody → haobing1 (haobing1)
haobing1 (haobing1)
affects: zun → python-zunclient
Changed in python-zunclient:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-zunclient (master)

Reviewed: https://review.openstack.org/459091
Committed: https://git.openstack.org/cgit/openstack/python-zunclient/commit/?id=a7fce1d2007352a7304028ecb7df5b496537d0e7
Submitter: Jenkins
Branch: master

commit a7fce1d2007352a7304028ecb7df5b496537d0e7
Author: haobing1 <email address hidden>
Date: Sun Apr 23 14:00:26 2017 +0800

    Fix confusing error message on interactive run

    If run a container with an incorrect command in interactive mode,
    it showed a confusing error message "ERROR: Invalid websocket link when attach ...".
    This error message is sub-optimal because the root cause of the failure is the container
    entered an error state (because users specify an incorrect command).
    We need to fix it by checking the state of the container and failed it
    with a correct message if the container entered an error state.

    Change-Id: I630de2414d5e36e86b246460a6d24992b06696e3
    Closes-Bug: #1685521

Changed in python-zunclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zunclient 0.3.0

This issue was fixed in the openstack/python-zunclient 0.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.