Bug 1502860
Summary: | rhosp-director: difficult to map certain containers to their logs. | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> |
Component: | openstack-tripleo-heat-templates | Assignee: | Jiri Stransky <jstransk> |
Status: | CLOSED ERRATA | QA Contact: | Omri Hochman <ohochman> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 12.0 (Pike) | CC: | achernet, ahrechan, dbecker, dprince, emacchi, imain, jamsmith, jschluet, jstransk, maandre, m.andre, mburns, mcornea, morazi, ohochman, rhel-osp-director-maint, slinaber |
Target Milestone: | z3 | Keywords: | Triaged, ZStream |
Target Release: | 12.0 (Pike) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-tripleo-heat-templates-7.0.12-1.el7ost | Doc Type: | Enhancement |
Doc Text: |
This update helps operators locate log files after an upgrade from a non-containerized to a containerized deployment.
If old log files are present when the upgrade begins, the old files are moved to a new file location. A readme.txt file is placed in the old file location. The file points to the new log file location.
For example, if a /var/log/nova directory exists, a /var/log/nova/readme.txt file is created, advising the reader to look in the /var/log/containers/nova directory instead.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-08-20 12:58:30 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
Alexander Chuzhoy
2017-10-16 20:45:05 UTC
We could make use of the Ansible upgrade framework to handle this during the upgrade by doing the following for each service: 1) Move the existing logs for any baremetal services into a subdirectory. So /var/log/keystone/*.log gets moved to /var/log/keystone/backup/*.log 2) Add a README file in the /var/log/<service> directory that points to the new log file location in /var/log/containers/<service>. This will also mention that the old log files above have been moved into the 'backup' directory. ---- The above 2 things should help users who upgrade and new users know where to look for the new logs in /var/log/containers. By moving the old logs to backup directories we prevent confusion from SOS reports or other tools that might grab the old files. We should also be more explicit about this new log location in our documentation. Additionally, we should rename any ambiguous log files in /var/log/containers (app.log for example) to more closely match the service names. A combination of the above should greatly help on this front. It's too late to get into osp12 GA --> should be in zstream 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, 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/RHSA-2018:2331 |