Request ID header is lost between nova.virt.ironic and ironic-api service

Bug #1350608 reported by aeva black
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Low
Unassigned
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

Services pass request-id headers around to assist with operator interpretation of log files.

This "req-XXX" header is being logged at the nova.virt.ironic layer, but does not seem to be passed to ironic's API service (or is not received / logged there).

Tags: api ironic
aeva black (tenbrae)
Changed in ironic:
status: New → Triaged
importance: Undecided → Medium
aeva black (tenbrae)
Changed in ironic:
status: Triaged → Confirmed
tags: added: api
Changed in ironic:
assignee: nobody → Abhishek Tripathi (abhishek-tripathi-i)
Changed in ironic:
assignee: Abhishek Tripathi (abhishek-tripathi-i) → nobody
aeva black (tenbrae)
Changed in ironic:
milestone: none → kilo-rc1
aeva black (tenbrae)
Changed in ironic:
importance: Medium → Low
milestone: kilo-rc1 → next
Anusha (anusha-iiitm)
Changed in ironic:
assignee: nobody → Anusha (anusha-iiitm)
Revision history for this message
Anusha (anusha-iiitm) wrote :

As per my understanding, this bug is related to the following blueprint http://specs.openstack.org/openstack/nova-specs/specs/juno/approved/log-request-id-mappings.html

As each service generates their own request-id, may be complete solution should be changes in both nova and ironic.
Please correct me if I'm wrong.

Revision history for this message
Ramakrishnan G (rameshg87) (rameshg87) wrote :

Yes, I think we need changes in both nova ironic virt driver and ironic. Ironic should be modified to accept request-id headers and log it in API and conductor, and probably after that nova ironic virt driver should pass the request id in headers with Ironic. Might require a change in ironicclient as well.

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

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

Changed in ironic:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Anusha Ramineni (<email address hidden>) on branch: master
Review: https://review.openstack.org/210293

Dmitry Tantsur (divius)
Changed in ironic:
status: In Progress → Confirmed
assignee: Anusha (anusha-iiitm) → nobody
tags: added: ironic
Revision history for this message
Sean Dague (sdague) wrote :

It is unclear to me what Nova changes are actually needed here, and the ironic ones to do basic logging are all abandoned. Putting this into incomplete state until it becomes detailed enough to be actionable.

Changed in nova:
status: New → Incomplete
Dmitry Tantsur (divius)
Changed in ironic:
milestone: next → none
Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

This is covered on the Ironic side by this RFE: https://bugs.launchpad.net/ironic/+bug/1505119

That will return the request ID in the API response, and then return it from the client to the caller.

Once that's all in place, we'll just need to log it in Nova once the request is complete.

Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote :

Going to close this one on the Ironic side in favor of the RFE https://bugs.launchpad.net/ironic/+bug/1505119

Changed in ironic:
status: Confirmed → Invalid
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Cleanup
=======

This bug report has the status "Incomplete" since more than 30 days
and it looks like that there are no open reviews for it. To keep
the bug list sane, I close this bug with "won't fix". This does not
mean that it is not a valid bug report, it's more to acknowledge that
no progress can be expected here anymore. You are still free to push a
new patch for this bug. If you could reproduce it on the current master
code or on a maintained stable branch, please switch it to "Confirmed".

Changed in nova:
status: Incomplete → Won't Fix
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.