Use systemd-journald instead of log files
This patch aims to migrate service from usage of regular syslog files to journald. We also disable uwsgi logging, since it dublicates requests that are logged by service itself. Change-Id: I4cd3270ef873b6f595b151014e82c8b4b35f12aa
This commit is contained in:
parent
c942081ee7
commit
6fb1e18a97
@ -83,7 +83,6 @@ cloudkitty_keystone_auth_plugin: password
|
||||
cloudkitty_output_backend: cloudkitty.backend.file.FileBackend
|
||||
cloudkitty_output_pipeline: osrf
|
||||
cloudkitty_output_basepath: /var/cloudkitty/reports
|
||||
cloudkitty_log_dir: /var/log/cloudkitty
|
||||
|
||||
cloudkitty_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
|
||||
cloudkitty_galera_address: "{{ galera_address | default('127.0.0.1') }}"
|
||||
|
@ -26,18 +26,5 @@
|
||||
static: no
|
||||
when: not is_metal
|
||||
|
||||
- include: common-tasks/os-log-dir-setup.yml
|
||||
vars:
|
||||
log_dirs:
|
||||
- src: "/openstack/log/{{ inventory_hostname }}-cloudkitty"
|
||||
dest: "/var/log/cloudkitty"
|
||||
|
||||
roles:
|
||||
- role: "os_cloudkitty"
|
||||
|
||||
post_tasks:
|
||||
- include_tasks: "common-tasks/rsyslog-client.yml"
|
||||
vars:
|
||||
rsyslog_client_log_rotate_file: cloudkitty_log_rotate
|
||||
rsyslog_client_log_dir: "/var/log/cloudkitty"
|
||||
rsyslog_client_config_name: "99-cloudkitty-rsyslog-client.conf"
|
||||
|
@ -6,7 +6,7 @@ gid = {{ cloudkitty_system_group_name }}
|
||||
virtualenv = /openstack/venvs/cloudkitty-{{ cloudkitty_venv_tag }}
|
||||
wsgi-file = {{ cloudkitty_bin }}/cloudkitty-wsgi.py
|
||||
http = :{{ cloudkitty_service_port }}
|
||||
logto = {{ cloudkitty_log_dir }}/cloudkitty-api.log
|
||||
disable-logging = true
|
||||
|
||||
master = true
|
||||
enable-threads = true
|
||||
|
@ -5,6 +5,7 @@
|
||||
use_stderr = False
|
||||
debug = {{ debug }}
|
||||
notification_topics = {{ cloudkitty_notification_topics }}
|
||||
use_journal = True
|
||||
|
||||
## Oslo Messaging RPC
|
||||
transport_url = {{ cloudkitty_oslomsg_rpc_transport }}://{% for host in cloudkitty_oslomsg_rpc_servers.split(',') %}{{ cloudkitty_oslomsg_rpc_userid }}:{{ cloudkitty_oslomsg_rpc_password }}@{{ host }}:{{ cloudkitty_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ cloudkitty_oslomsg_rpc_vhost }}{% if (cloudkitty_oslomsg_rpc_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user