Agent does not provide enough information to troubleshoot failed image downloads

Bug #1420981 reported by Jay Faulkner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Jim Rollenhagen

Bug Description

In this run:

http://logs.openstack.org/37/141737/29/check/check-tempest-dsvm-ironic-agent_ssh/8a87dcb/logs/ironic-bm-logs/baremetalbrbm_0_console.txt.gz

We discovered IPA only send back image ID and URL when it fails to download; it doesn't provide a status code or any details of the response, making troubleshooting nearly impossible.

We should update the ImageDownloadError to require status code and response text and ensure that gets logged locally and passed on to the Ironic API.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-python-agent (master)

Fix proposed to branch: master
Review: https://review.openstack.org/155080

Changed in ironic:
assignee: nobody → Jay Faulkner (jason-oldos)
status: New → In Progress
Changed in ironic:
assignee: Jay Faulkner (jason-oldos) → Jim Rollenhagen (jim-rollenhagen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/155080
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=e5d88be8cb98298323b4644dff08b38fc970f1cd
Submitter: Jenkins
Branch: master

commit e5d88be8cb98298323b4644dff08b38fc970f1cd
Author: Jay Faulkner <email address hidden>
Date: Wed Feb 11 14:20:02 2015 -0800

    Log required troubleshooting info on image dl fail

    Currently, we only log the image ID and attempted URL. Now, we log the
    status code recieved and detailed information about how and when things
    failed.

    Change-Id: I718c7facbe1500d98be78b7b6137e92fdfb2fdf1
    Closes-bug: 1420981
    Depends-On: I69f6f6eef4ad573f406d64d579a9811c70ac5d28

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ironic:
milestone: kilo-3 → 2015.1.0
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.