nova send None global_request_id on neutron calls

Bug #1809943 reported by Zhang Shuaiyi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Fan Zhang
Queens
Fix Committed
Medium
Matt Riedemann
Rocky
Fix Committed
Medium
Matt Riedemann

Bug Description

I config logging_context_format_string in cinder.conf, neutron.conf and nova.conf。
[default]
logging_context_format_string=%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(global_request_id)s %(request_id)s %(user_identity)s] %(instance)s%(message)s

After boot a new instance, I get the request_id of the nova request which is req-3acf5bf3-3fcb-40c7-b9f2-3a96947836cc.

[root@shyiq ~(keystone_admin)]# openstack server event list 96e0c916-0ca9-4b35-9663-3129944d7e81
+------------------------------------------+--------------------------------------+--------+----------------------------+
| Request ID | Server ID | Action | Start Time |
+------------------------------------------+--------------------------------------+--------+----------------------------+
| req-3acf5bf3-3fcb-40c7-b9f2-3a96947836cc | 96e0c916-0ca9-4b35-9663-3129944d7e81 | create | 2018-12-28T02:04:35.000000 |
+------------------------------------------+--------------------------------------+--------+----------------------------+

I can find req-3acf5bf3-3fcb-40c7-b9f2-3a96947836cc as global_request_id in /var/log/nova/nova-placement-api.log and /var/log/cinder/api.log, but None in /var/log/neutron/server.log。

Nova send request_id to glance, cinder and neutron in the following Change-Id
Ic5ee9161cd1174a2dd32b7f155194a7110cc5219
I16f9dda3c904c4a2578fa6a691fed646a41f6793
I866b8c6593c76c089da6bed55cf863ac556c9a8e
But since I41724a612a5f3eabd504f3eaa9d2f9d141ca3f69 nova send context.global_request_id which may be None on neutron calls.

stable/rocky and stable/queens also have this bug.

Tags: neutron
Zhang Shuaiyi (shuaiyi)
Changed in nova:
assignee: nobody → Zhang Shuaiyi (shuaiyi)
Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/627603

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/627604

tags: added: neutron
Changed in nova:
assignee: Zhang Shuaiyi (shuaiyi) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem)
Changed in nova:
assignee: Matt Riedemann (mriedem) → Zhang Shuaiyi (shuaiyi)
importance: Undecided → Medium
Changed in nova:
assignee: Zhang Shuaiyi (shuaiyi) → Fan Zhang (fanzhang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/627034
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a31157c527ae88af2e8c283e8b5156e9ace55dfa
Submitter: Zuul
Branch: master

commit a31157c527ae88af2e8c283e8b5156e9ace55dfa
Author: ZhangShuaiyi <email address hidden>
Date: Sat Dec 22 16:33:26 2018 +0800

    Send context.global_id on neutron calls

    In I866b8c6593c76c089da6bed55cf863ac556c9a8e nova sends global_id
    on neutron calls, but in I41724a612a5f3eabd504f3eaa9d2f9d141ca3f69
    it changed to global_request_id which may be None.

    A simple unit test wrinkle is added to avoid future regressions.

    Closes-Bug:#1809943

    Change-Id: Iaa47304755db66a834dde38dcd55cc259c1008a3

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/rocky)

Reviewed: https://review.openstack.org/627603
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=6e1120ae3025a532ff8957a6952f445152a69967
Submitter: Zuul
Branch: stable/rocky

commit 6e1120ae3025a532ff8957a6952f445152a69967
Author: ZhangShuaiyi <email address hidden>
Date: Sat Dec 22 16:33:26 2018 +0800

    Send context.global_id on neutron calls

    In I866b8c6593c76c089da6bed55cf863ac556c9a8e nova sends global_id
    on neutron calls, but in I41724a612a5f3eabd504f3eaa9d2f9d141ca3f69
    it changed to global_request_id which may be None.

    A simple unit test wrinkle is added to avoid future regressions.

    Closes-Bug:#1809943

    Change-Id: Iaa47304755db66a834dde38dcd55cc259c1008a3
    (cherry picked from commit a31157c527ae88af2e8c283e8b5156e9ace55dfa)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/queens)

Reviewed: https://review.openstack.org/627604
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=dcd7a30c9548512eaee91b96d0ed0f4b18bcdbff
Submitter: Zuul
Branch: stable/queens

commit dcd7a30c9548512eaee91b96d0ed0f4b18bcdbff
Author: ZhangShuaiyi <email address hidden>
Date: Sat Dec 22 16:33:26 2018 +0800

    Send context.global_id on neutron calls

    In I866b8c6593c76c089da6bed55cf863ac556c9a8e nova sends global_id
    on neutron calls, but in I41724a612a5f3eabd504f3eaa9d2f9d141ca3f69
    it changed to global_request_id which may be None.

    A simple unit test wrinkle is added to avoid future regressions.

    Closes-Bug:#1809943

    Change-Id: Iaa47304755db66a834dde38dcd55cc259c1008a3
    (cherry picked from commit a31157c527ae88af2e8c283e8b5156e9ace55dfa)
    (cherry picked from commit 6e1120ae3025a532ff8957a6952f445152a69967)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 19.0.0.0rc1

This issue was fixed in the openstack/nova 19.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 17.0.10

This issue was fixed in the openstack/nova 17.0.10 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 18.2.0

This issue was fixed in the openstack/nova 18.2.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.