Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
ddbbd05b
Commit
ddbbd05b
authored
8 years ago
by
Christian Berendt
Browse files
Options
Downloads
Patches
Plain Diff
Document how to add logging for a service
TrivialFix Change-Id: I2e912176174538fb1aded27e54c6a10acaf7d34b
parent
d2b64b44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/CONTRIBUTING.rst
+28
-6
28 additions, 6 deletions
doc/CONTRIBUTING.rst
with
28 additions
and
6 deletions
doc/CONTRIBUTING.rst
+
28
−
6
View file @
ddbbd05b
...
...
@@ -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).
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment