diff options
| author | Christian Berendt <berendt@betacloud-solutions.de> | 2016-09-12 22:35:52 +0200 |
|---|---|---|
| committer | Christian Berendt <berendt@betacloud-solutions.de> | 2016-09-15 12:07:52 +0000 |
| commit | ddbbd05be0070629d211aecbc40fd5910790bba0 (patch) | |
| tree | 7580cb43d422254cdedcc7510ab2c42e7b3fae0d /doc/CONTRIBUTING.rst | |
| parent | d2b64b4473531e97809ea55136d142519ec6d5de (diff) | |
| download | kolla-ddbbd05be0070629d211aecbc40fd5910790bba0.tar.gz kolla-ddbbd05be0070629d211aecbc40fd5910790bba0.zip | |
Document how to add logging for a service
TrivialFix
Change-Id: I2e912176174538fb1aded27e54c6a10acaf7d34b
Diffstat (limited to 'doc/CONTRIBUTING.rst')
| -rw-r--r-- | doc/CONTRIBUTING.rst | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/doc/CONTRIBUTING.rst b/doc/CONTRIBUTING.rst index f99e73078..7791d3099 100644 --- a/doc/CONTRIBUTING.rst +++ b/doc/CONTRIBUTING.rst @@ -137,18 +137,40 @@ 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 - - ``Register`` : Involves registering the service with Keystone, creating endpoints, roles, + - 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. - - ``Config`` : Distributes the config files to the nodes to be pulled into the container on + - ``Config``: Distributes the config files to the nodes to be pulled into the container on startup. - - ``Bootstrap`` : Creating the database (but not tables), database user for the service, + - ``Bootstrap``: Creating the database (but not tables), database user for the service, permissions, etc. - - ``Bootstrap Service`` : Starts a one shot container on the host to create the database tables, + - ``Bootstrap Service``: Starts a one shot container on the host to create the database tables, and other initial run time config. - - ``Start`` : Start the service(s). + - ``Start``: Start the service(s). |
