senlin/tools
pallavi 8542ba8457 Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of senlin-api. The
purpose of this middleware is to set up the request URL correctly in
the case there is a proxy (For instance, a loadbalancer such as HAProxy)
in front of senlin-api.

So, when TLS connections are terminated at the proxy, and one tries to
get the versions from the '/' resource from senlin-api, one will notice
that the protocol is incorrect; It will show 'http' instead of 'https'.
So this middleware handles such cases, thus helping Keystone discovery
work correctly.

The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.

Change-Id: Ia65ecdcc07084514884258661f840e6edcb200a4
Closes-Bug: #1590608
Co-Authored-By: pallavi <pallavi.s@nectechnologies.in>
2016-12-14 20:46:01 -05:00
..
README.rst Complete README file under tools subdirectory 2015-10-21 04:55:12 -04:00
config-generator.conf Add http_proxy_to_wsgi to api-paste 2016-12-14 20:46:01 -05:00
cover.sh Fix coverage test script 2016-08-29 22:28:11 -04:00
gen-config Modified conf file path for config generation 2015-03-02 11:50:28 +08:00
gen-pot-files Rename gen_pot to gen-pot-files 2015-10-21 00:57:26 -04:00
senlin-db-recreate Add db_sync to senlin-db-recreate 2015-04-20 03:27:45 -04:00
setup-service Revise tools/setup-service to make it work with keystone v3 2016-08-25 02:38:53 -04:00

README.rst

Files in this directory are tools for developers or for helping users install the senlin software.

Contents

config-generator.conf

This is a configuration for the oslo-config-generator tool to create an initial senlin.conf.sample file. When installing senlin manually, the generated file can be copied to /etc/senlin/senlin.conf with customized settings.

gen-config

This is a wrapper of the oslo-config-generator tool that generates a config file for senlin. The correct way to use it is:

cd /opt/stack/senlin
tools/gen-config

Another way to generate sample configuration file is:

cd /opt/stack/senlin
tox -e genconfig

gen-pot-files

This is a script for extracting strings from source code into a POT file, which serves the basis to generate translations for different languages.

senlin-db-recreate

This script drops the senlin database in mysql when database is corrupted.

Warning Be sure to change the 'MYSQL_ROOT_PW' and 'MYSQL_SENLIN_PW' before running this script.

setup-service

This is a script for setting up the senlin service. You will need to provide the host IP address and the service password for the senlin user to be created. For example:

cd /opt/stack/senlin/tools
./setup-service 192.168.52.5 TopSecrete

NOTE You need to have some environment variables properly set so that you are the admin user for setting up the senlin service. For example:

cd $HOME
source devstack/openrc admin