Bug 1728142
| Summary: | cinder service-get-log filters inconsistency | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | bkopilov <bkopilov> |
| Component: | openstack-cinder | Assignee: | Sofia Enriquez <senrique> |
| Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> |
| Severity: | low | Docs Contact: | Chuck Copello <ccopello> |
| Priority: | low | ||
| Version: | 15.0 (Stein) | CC: | abishop, gfidente, igallagh, senrique |
| Target Milestone: | z4 | Keywords: | Triaged, ZStream |
| Target Release: | 16.1 (Train on RHEL 8.2) | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-cinder-15.3.1-6.el8ost | Doc Type: | Bug Fix |
| Doc Text: |
Before this update, the `--server` option was being ignored when passed with the `cinder service-get-log` command, which resulted in the logs for all hosts being returned instead of just the logs for a specific host. With this update, using the `--server` option correctly filters the logs for the specified host.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-03-17 15:30:39 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
bkopilov
2019-07-09 06:41:58 UTC
I confirmed the --server filter isn't working, and it even ignores bogus names ("--server bogus").
@Sofi, could you please take a look? Gorka wrote the original code, but it would be great for another squad member to know how it works.
Just for the sake of completeness I'm going to summarize the issue:
The '--server' filter was completely ignored by Cinder and because of that the command always
returns all the host information instead of the specified one.
The fix consisted in checking body.get('server') and adding a conditional statement to display
only the logs of that server/host.
Hi , I verified the fix. if you run the command multiple times, sometimes it will display *cinder-api* logs and other times won't. This happens because cinder-api is changing hosts all the time. Benny Just adding some detailed information as Benny points out during the verification process with RHOS 16.2 on titan92 if you run the command multiple times, sometimes it will display *cinder-api* logs and other times won't. It's the expected behaviour. This happens because it uses a load balancer and not RabbitMQ so cinder-api changes between services in every call, so when filtering by server the api will not be presented if the API that receives it is not the one we used in the filter. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.4 director bug fix advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:0817 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.4 director bug fix advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:0817 |