loopingcall logging ERROR for HTTPBadRequest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
David Shrewsbury |
Bug Description
When deploying a node even if everything went well one ERROR still being logged which may cause some confusion. For some operations the HTTPBadRequest is not an error, but part of the workflow. For e.g:
As part of the spawn() process unplug_vif() will be called and Nova Ironic Driver will then send a request to the Ironic API asking it to remove the extra/vif_port_id attribute of the node, but the attribute may not be set, so it will return a HTTPBadRequest which should be handled and just 'passed'... As this exception happens inside a loopingcall loop it will then log it as an error.
2014-04-14 11:00:55.500 DEBUG ironicclient.
HTTP/1.0 400 Bad Request
date: Mon, 14 Apr 2014 10:00:55 GMT
content-length: 187
content-type: application/json
server: WSGIServer/0.1 Python/2.7.5
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Couldn't apply patch '[{'path': '/extra/
from (pid=12177) log_http_response /opt/stack/
2014-04-14 11:00:55.500 WARNING ironicclient.
2014-04-14 11:00:55.500 ERROR nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
2014-04-14 11:00:55.500 TRACE nova.openstack.
Changed in ironic: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
importance: | Undecided → Medium |
Changed in ironic: | |
assignee: | Lucas Alvares Gomes (lucasagomes) → David Shrewsbury (dshrews) |
Changed in ironic: | |
status: | New → In Progress |
Changed in ironic: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | juno-1 → 2014.2 |
Reviewed: https:/ /review. openstack. org/86993 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=2291251b3dc 99b18e4b29c6e75 d60e320ef023f8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2291251b3dc99b1 8e4b29c6e75d60e 320ef023f8
Author: David Shrewsbury <email address hidden>
Date: Fri Apr 11 14:46:00 2014 -0400
Complete wrapping ironic client calls
This makes all ironic client calls use the new client wrapper that
encapsulates the retry logic.
Change-Id: I3dcbacee4c8870 4b8c2553a2f39cb cc32e8c306e
Closes-Bug: #1295870
Closes-Bug: #1307589