Configuration

Configuration

Magnum has a number of configuration options which will be detailed here.

Magnum Config

The magnum configuration file is called magnum.conf.

Magnum Pipeline

The pipeline details are contained in api-paste.ini.

Healthcheck Middleware

This piece of middleware creates an endpoint that allows a load balancer to probe if the API endpoint should be available at the node or not.

The healthcheck middleware should be placed early in the pipeline. Which is located in your api-paste.ini under a section called [filter:healthcheck]. It should look like this:

[filter:healthcheck]
paste.filter_factory = oslo_middleware:Healthcheck.factory
backends = disable_by_file
disable_by_file_path = /etc/magnum/healthcheck_disable

The main pipeline using this filter should look something like this also defined in the api-paste.ini:

[pipeline:main]
pipeline = cors healthcheck request_id authtoken api_v1

If you wish to disable a middleware without taking it out of the pipeline, you can create a file under the file path defined by disable_by_file_path ie. /etc/magnum/healthcheck_disable.

For more information see oslo.middleware.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.