This CLI helper tool gathers all log lines related to resource | req-id from particular folder with logs. All related resources and their IDs used in Tempest tests are stored in machine-readable YAML file with the following format:
: status: PASSED|FAILED resources: <openstack-service name (nova|neutron|glance|keystone)>: <resource-name (port|server|security-group|router)>: <request-id (req-xxxx) >: name: <resource name (test-port-mytest|test-vm-)> id/uuid: request: http: error: status_code: <>
Extract/save all openstack pod logs to folder (ex. pod-logs)
Generate tempest report using report_parcer tool
Run log_helper tool with folder name and tempest report YAML file as input parameters:
python3 log_helper.py <folder-with-logs> <tempest-report-yaml>