| Summary: | disable cinder logging in /var/log/messages on the controller node | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Pratik Pravin Bandarkar <pbandark> | |
| Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | |
| Status: | CLOSED ERRATA | QA Contact: | lkuchlan <lkuchlan> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | low | |||
| Version: | 7.0 (Kilo) | CC: | eharney, nlevinki, pbandark, sgotliv, srevivo | |
| Target Milestone: | --- | Keywords: | Reopened, ZStream | |
| Target Release: | 7.0 (Kilo) | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-cinder-2015.1.3-4.el7ost | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1313893 (view as bug list) | Environment: | ||
| Last Closed: | 2016-04-26 15:30:10 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: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 1313893 | |||
|
Description
Pratik Pravin Bandarkar
2016-02-11 14:15:15 UTC
To not see logs in /var/log/messages, set use_stderr=False in cinder.conf. This defaults to on, and the way our services are integrated with systemd means that stderr output is logged to syslog. (For any OpenStack service, this isn't Cinder-specific.) Please, attach your /etc/cinder/cinder.conf. Setting use_stderr=False fixes this for messages that come directly from Cinder. But, there are some messages that come from dependencies of Cinder that may need to be handled with additional code. For example, python-amqp issues messages with the "warnings" module. It looks like we will need to use logging.captureWarnings() via oslo.logging or Cinder to reroute those messages. The DeprecationWarning from oslo.i18n also falls in this category. Tested using:
python-cinderclient-1.2.1-1.el7ost.noarch
python-cinder-2015.1.3-5.el7ost.noarch
openstack-cinder-2015.1.3-5.el7ost.noarch
Verification flow:
1. Set use_syslog=False in /etc/cinder/cinder.conf on the controller nodes
[root@overcloud-controller-0 ~]# grep -i use_syslog /etc/cinder/cinder.conf
use_syslog=False
2. Restart cinder services
[root@overcloud-controller-0 ~]# for i in `systemctl | awk '{print$1}' | grep cinder`; do systemctl restart $i; done
3. Search for cinder logs in /var/log/messages
[root@overcloud-controller-0 ~]# grep -i cinder /var/log/messages | tail
[root@overcloud-controller-0 ~]#
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://rhn.redhat.com/errata/RHBA-2016-0688.html |