enable gear logging configuration

Geard logging configuration is not enabled by default. This results in
geard floods /var/log/messages with debug info.
Change 568234 provides default geard logging configuration file. With
this change this configuration is being enabled.

Also collect additional logs for gear.

Depends-On: https://review.openstack.org/568234/
Change-Id: I0bfdb398dd806ec92f15eaff67ca5f8251ec193f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Artem Goncharov 2018-05-14 10:52:11 +02:00 committed by Paul Belanger
parent f2a7f8e55b
commit 419e46ea0c
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
4 changed files with 18 additions and 3 deletions

View File

@ -95,3 +95,14 @@ gear_file_ssl_key_content: |
7NSS/HJJGlt/SqWSbASpt9gfw1k6a0wffIq6h0+I6bNeajfwMz8bGAMIdHqGRhze
TPw69kX4BM39nK3lP2/aiTQ=
-----END PRIVATE KEY-----
# openstack.logrotate
logrotate_configs:
- name: gear
log: /var/log/gear/debug.log /var/log/gear/gear.log
options:
- compress
- missingok
- rotate 7
- daily
- notifempty

View File

@ -20,6 +20,10 @@
include_role:
name: openstack.gearman
- name: Setup openstack.logrotate role.
include_role:
name: openstack.logrotate
post_tasks:
- name: Run gear validation.
include_role:

View File

@ -5,5 +5,5 @@
{% if ansible_host | ipv4 %}
Environment="STATSD_HOST={{ hostvars['statsd01'].ansible_host }}"
{% endif %}
Environment="ARGS=--ssl-ca {{ gear_file_ssl_ca_dest }} --ssl-cert {{ gear_file_ssl_cert_dest }} --ssl-key {{ gear_file_ssl_key_dest }}"
Environment="ARGS=--ssl-ca {{ gear_file_ssl_ca_dest }} --ssl-cert {{ gear_file_ssl_cert_dest }} --ssl-key {{ gear_file_ssl_key_dest }} --log-config /etc/gear/logging.conf"
Environment="PREFIX={{ gear_pip_virtualenv }}"

View File

@ -48,8 +48,8 @@
src: "{{ item }}"
verify_host: true
with_items:
- /etc/gear
- /var/log/gear
- /etc/gear/logging.conf
- /var/log/gear/*.log
- hosts: nb01
tasks: