Document how to add logging for a service
TrivialFix Change-Id: I2e912176174538fb1aded27e54c6a10acaf7d34b
This commit is contained in:
parent
d2b64b4473
commit
ddbbd05be0
@ -137,7 +137,29 @@ that Kolla uses throughout that should be followed.
|
||||
include service specific setup and steps as not all services can be upgraded
|
||||
in the same way.
|
||||
|
||||
Other than the above, most roles follow the following pattern::
|
||||
* Log delivery
|
||||
|
||||
- For OpenStack services the service has be added oo the ``file_match`` paramater
|
||||
in the ``openstack_logstreamer_input`` section in the ``heka-openstack.toml.j2``
|
||||
template file in ``ansible/roles/comm/templates`` to deliver log messages to
|
||||
Elasticsearch.
|
||||
|
||||
* Logrotation
|
||||
|
||||
- For OpenStack services there should be a ``cron-logrotate-PROJECT.conf.j2``
|
||||
template file in ``ansible/roles/common/templates`` with the following
|
||||
content:
|
||||
|
||||
.. code::
|
||||
|
||||
"/var/log/kolla/PROJECT/*.log"
|
||||
{
|
||||
}
|
||||
|
||||
- For OpenStack services there should be a entry in the ``services`` list
|
||||
in the ``cron.json.j2`` template file in ``ansible/roles/common/templates``.
|
||||
|
||||
Other than the above, most roles follow the following pattern:
|
||||
|
||||
- ``Register``: Involves registering the service with Keystone, creating endpoints, roles,
|
||||
users, etc.
|
||||
|
Loading…
Reference in New Issue
Block a user