Requests without my requet id go well, I see an entry in opensearch
2023-08-06 03:51:31.951 35 INFO nova.api.openstack.requestlog [None req-bbcafeda-8d1a-4b80-948d-58c48c408060 b2098ef1f52a4451a8c9860708a118d4 8e0ea207eddd4960abaddd3c610640ba - - default default] 172.31.153.100 "GET /v2.1/os-availability-zone" status: 200 len: 97 microversion: 2.93 time: 0.012029
it is not in Opensearch, there is an entry in /var/log/kolla/nova/nova-api.log
2023-08-06 03:51:31.885 34 INFO nova.api.openstack.requestlog [req-3dccb8c4-08fe-4706-a91d-aeaeaeaeaeae req-231c5129-eca9-41fd-8486-ccec69c978f9 b2098ef1f52a4451a8c9860708a118d4 8e0ea207eddd4960abaddd3c610640ba - - default default] 172.31.153.100 "GET /v2.1/limits?tenant_id=b1c3908d4a8342b18df522b6f53d6049" status: 200 len: 302 microversion: 2.93 time: 0.017379
The filter kolla-venv/share/kolla-ansible/ansible/roles/common/templates/conf/input/00-global.conf.j2 is missing an entry to handle the extra request id field.
What you expected to happen:
В конфигурации fluentd необходимо дополнительное поля для Request ID
How to reproduce it:
curl --location 'http://172.31.168.100:9696/v2.0/networks' \
--header 'X-Auth-Token: $TOKEN' \
--header 'X-Openstack-Request-Id: req-3dccb8c4-08fe-4706-a91d-aeaeaeaeaeae'
**Environment**:
* OS (e.g. from /etc/os-release): Rocky Linux
* Kernel (e.g. `uname -a`): 5.14.0-162.12.1.el9_1.0.2.x86_64
* Docker version if applicable (e.g. `docker version`): Docker version 20.10.21, build baeda1f
* Kolla-Ansible version (e.g. `git head or tag or stable branch` or pip package version if using release): https://github.com/openstack/kolla-ansible/tree/stable/zed
* Docker image Install type (source/binary): binary
* Docker image distribution: zed
* Are you using official images from Docker Hub or self built?
* If self built - Kolla version and environment used to build:
* Share your inventory file, globals.yml and other configuration files if relevant
**Bug Report**
What happened:
Hi. /docs.openstack .org/api- guide/compute/ faults. html it doesn't show up in opensearch.
If I enter my request id as stated in the documentation https:/
Requests without my requet id go well, I see an entry in opensearch openstack. requestlog [None req-bbcafeda- 8d1a-4b80- 948d-58c48c4080 60 b2098ef1f52a445 1a8c9860708a118 d4 8e0ea207eddd496 0abaddd3c610640 ba - - default default] 172.31.153.100 "GET /v2.1/os- availability- zone" status: 200 len: 97 microversion: 2.93 time: 0.012029
2023-08-06 03:51:31.951 35 INFO nova.api.
But when i send my own tracking request id
curl --location 'http:// 172.31. 168.100: 9696/v2. 0/networks' \ Request- Id: req-3dccb8c4- 08fe-4706- a91d-aeaeaeaeae ae'
--header 'X-Auth-Token: $TOKEN' \
--header 'X-Openstack-
it is not in Opensearch, there is an entry in /var/log/ kolla/nova/ nova-api. log openstack. requestlog [req-3dccb8c4- 08fe-4706- a91d-aeaeaeaeae ae req-231c5129- eca9-41fd- 8486-ccec69c978 f9 b2098ef1f52a445 1a8c9860708a118 d4 8e0ea207eddd496 0abaddd3c610640 ba - - default default] 172.31.153.100 "GET /v2.1/limits? tenant_ id=b1c3908d4a83 42b18df522b6f53 d6049" status: 200 len: 302 microversion: 2.93 time: 0.017379
2023-08-06 03:51:31.885 34 INFO nova.api.
The filter kolla-venv/ share/kolla- ansible/ ansible/ roles/common/ templates/ conf/input/ 00-global. conf.j2 is missing an entry to handle the extra request id field.
What you expected to happen:
В конфигурации fluentd необходимо дополнительное поля для Request ID
How to reproduce it: 172.31. 168.100: 9696/v2. 0/networks' \ Request- Id: req-3dccb8c4- 08fe-4706- a91d-aeaeaeaeae ae'
curl --location 'http://
--header 'X-Auth-Token: $TOKEN' \
--header 'X-Openstack-
**Environment**: 162.12. 1.el9_1. 0.2.x86_ 64 /github. com/openstack/ kolla-ansible/ tree/stable/ zed
* OS (e.g. from /etc/os-release): Rocky Linux
* Kernel (e.g. `uname -a`): 5.14.0-
* Docker version if applicable (e.g. `docker version`): Docker version 20.10.21, build baeda1f
* Kolla-Ansible version (e.g. `git head or tag or stable branch` or pip package version if using release): https:/
* Docker image Install type (source/binary): binary
* Docker image distribution: zed
* Are you using official images from Docker Hub or self built?
* If self built - Kolla version and environment used to build:
* Share your inventory file, globals.yml and other configuration files if relevant
cat kolla-venv/ share/kolla- ansible/ ansible/ roles/common/ templates/ conf/input/ 00-global. conf.j2 enabled_ input_openstack _services | length > 0 -%} enabled_ input_openstack _services %}/var/log/kolla/{{ service }}/*.log{% if not loop.last %},{% endif %}{% endfor %} log/kolla/ neutron/ dnsmasq. log",
"/var/ log/kolla/ ironic/ dnsmasq. log",
"/var/ log/kolla/ */*-access. log",
"/var/ log/kolla/ */*-error. log",
"/var/ log/kolla/ */*_access. log",
"/var/ log/kolla/ */*_error. log"] td-agent/ kolla-openstack .pos repeated_ permission_ error true watch_timer false firstline /^\d{4}-\d{2}-\d{2} \d{2}:\ d{2}:\d{ 2}.\d{3} \d+ \S+ \S+ \[.*\]/ module> \S+) \[(\S+ req-)?( (?<x_request_ id>\S+) (?<request_id>\S+) (?<user_id>\S+) (?<tenant_id>\S+) (?<domain_id>\S+) (?<system_ scope>\ S+) (?<user_domain>\S+) (?<project_ domain> \S+)|-) \] (?<Payload>.*)?$/
#jinja2: trim_blocks: False
{% if fluentd_
<source>
@type tail
path {% for service in fluentd_
exclude_path ["/var/
pos_file /var/run/
tag kolla.*
ignore_
enable_
<parse>
@type multiline
format_
format1 /^(?<Timestamp>\S+ \S+) (?<Pid>\d+) (?<log_level>\S+) (?<python_
time_key Timestamp
keep_time_key true
time_format %F %T.%L
</parse>
</source>
{%- endif %}