Lookup does not fallback on 401
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ironic-python-agent |
Fix Released
|
Critical
|
Lucas Alvares Gomes |
Bug Description
Newer versions of IPA (> Mitaka) uses the new endpoints v1/lookup and v1/heartbeat of the ironic api instead of the vendor passthru ones by default. It's suppose to fallback to the old endpoints when there's an error but, currently the code is only looking for a 404 error to be returned.
In some cases a 401 will be returned instead a 404 because Ironic will check the policies before routing the request. We should also fallback on that error code.
Logs:
2016-08-12 14:25:09.250 35 INFO keystonemiddlew
2016-08-12 14:25:09.251 35 INFO ironic_api [-] 10.237.223.28 "GET /v1/lookup?
Changed in ironic-python-agent: | |
importance: | Undecided → Critical |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
Fix proposed to branch: master /review. openstack. org/354802
Review: https:/