On Fri, 3 Nov 2017 at 12:29 joehuang firstname.lastname@example.org wrote:
As you are talking about how to distinguish the request to local Neutron
and central Neutron, do you mean how to set the "USERAGENT" in the request
header, and how to extract the "USERAGENT" and stored it in the context?
Though it's mentioned in
This field has not been extracted neither in oslo.context, nor neutron-lib
May be we can add it in oslo.context?
Chaoyi Huang (joehuang)
*Sent:* 01 November 2017 19:49
*Subject:* [openstack-dev] [tricircle]Distinguish the direction of
I have some questions in how to distinguish the direction of requests
between local neutron and central neutron.
There is the preliminary plan
- For how to distinguish the requests in central neutron
we can add a filter in neutron/…./etc/api-paste.ini. Using this filter we
can get some values about the source.
But the question is that the process of loading filter is in Neutron.
Without changing Neutron how could we add a filter? Could we change Neutron?
- For how to add a signal in the requests
The module of common.client in Tricircle is responsible for sending
requests. So we can add a signal in the header of requests. And central
plugin will get this signal using the filter.
Zhuangzhuang Xu (Lyman Xu)
OpenStack Development Mailing List (not for usage questions)