Issue in openstack-client that stops nova being in a common-venv

Install the openstack client libraries with 'pip install .' and
not python setup.py develop. The reason for this is that
python setup.py develop had the side effect of changing the
python path inside the virtualenv causing the problems whereas
pip install . doesn't.

I also want to delete the /opt/stack/python-client git directories
later.

Change-Id: Idc68e85c68f1c423f083e656d65d1654688dc84b
Enable additional neutron passthrough configuration

This change enables config passthrough support for ls_agent.ini,
dhcp_agent.ini, metadata_agent.ini and rootwrap.conf in neutron.

Change-Id: I750d5cb87127236823399bc2c5c162516d1c2e9e
blueprint: passthrough-config
Store swift data, db & objects on /mnt filesystem

This commit moves the location of the swift account, container and
object data from the root filesystem (/srv/node) to the /mnt
filesystem. This is done for 2 reasons:
  1. The root filesystem tends to be quite small, swift data can fill
     it quite quickly with nasty consequences (for the OS and swift)
  2. Swift data on the root filesystem does not survive a re-install.
     While swift data on the /mnt filesystems does survive.

This commit creates the /mnt/state/srv/node directory and sets
'devices = /mnt/state/srv/node' in the account, container and object
conf files. It also sets 'path = /mnt/state/srv/node/' in
/etc/rsyncd.conf.

Change-Id: I39f70ba9cf4a8c4c068c95667608afafe700f301
Configure neutron-ovs-cleanup to run after openvswitch

Closes-bug: #1269467
Change-Id: Icae00a907be88538485bdb36c51e3dbcb5949b4d
Drop some unnecessary lsb_release calls

Since Ib4b05eb7191dd50d25799a0bac51fd15c01b74cb, it's possible to know
the Operating System name with the $DISTRO_NAME environment variable.

This patch makes use of this variable when it's possible.

Change-Id: I3252fb60c8bfcc2859ea4b5b138f5888638aaf3c
Add keepalive option to rabbitmq config

Add keepalive and other socket options to the rabbitmq config.
This instructs rabbitmq to apply keepalive to its sockets, based on the
global keepalive settings, which can be configured via the sysctl
element.

Default is for rabbitmq keepalive to be enabled.

Change-Id: I4fa26f9cab0ecfe39698a3ef5ac440e2892450d3
Enable cinder.conf passthrough configuration

This change enables config passthrough support for cinder.conf

Change-Id: I87e680af653e0bfcf3f178e79c3829ebd913ccb3
blueprint: passthrough-config
Add config passthrough support for ironic

Adding support for passthrough config options to ironic.conf

Change-Id: Id5dfba5b40741a1fcf720ec7ca7b6017b43a6a01
MySQL: Enable passthrough configuration

This adds an extra MySQL conf file in etc/mysql/passthru.cnf
which is loaded last and therefore overrides all other MySQL options

MySQL passthrough parameters can be injected into devtest
by setting the environment variable OVERCLOUD_EXTRA_CONFIG to a JSON structure such as:

    {
        "mysql": {
            "config": [
    	    {
    	        "section": "mysqld",
    		"values": [
    		    {
    		        "option": "innodb_buffer_pool_size",
    			"value": "200M"
    		    },
                        {
                            "option": "skip_name_resolve"
                        }
    	        ]
                }
    	]
        }
    }

This Json structure can be injected into devtest by setting the environment
variable OVERCLOUD_EXTRA_CONFIG:

export OVERCLOUD_EXTRA_CONFIG="{\"mysql\": {\"config\": [{\"section\": \
            \"mysqld\",\"values\": [{\"option\": \"innodb_buffer_pool_size\", \"value\": \
            \"200M\"},{\"option\": \"skip_name_resolve\"}]}]}}"

Change-Id: Ia2b963cdfb7029f72ac4773509258f2863f36b4b
Don't restart mysql during reset-db

A part of reset-db script is cleaning up old files and
restarting DB, this is not ideal in cluster environment
where simple restart is not sufficient - cluster has to
be bootstrapped at first.

Proper mysql startup is handled by a separate orc script.

Cleaning mysql files is not needed too because both percona
and mariadb installations do not pre-create these files.
File ownership is set properly for mysql/mariadb too.

Change-Id: Ida81b53a33bdf0240ccd1432e6ee5da1e7fb0133
Update openstack services to listen on stunnel connect port

If haproxy+stunnel is used, openstack services should not listen
on all addresses (0.0.0.0) but only on address where stunnel is
connected to.

If haproxy is used but stunnel not, services should bind to local-ipv4
address.

Related-to: blueprint tripleo-icehouse-ha-production-configuration

Change-Id: I2aca62a8da61221d67f7a99bc33a6e4ebfa53acd
Do not use cat in sysctl-set-value

Use of cat | grep is an anti-pattern, grep can read files, so drop
the use of cat, saving two processes being forked off.

Change-Id: I64bf8aad5bebcd3f2f89c67ac47d8e527a5d9117
10-mysql was missing -u

And -u is a standard for us.

Change-Id: Ic803342e778c3a46c36ca0ca7aaff47439d9579f
Add CM signing directory for keystone client

Adding a signing directory for ceilometer-api
to avoid the performance issues created by keystone
client use of temp directory (default behavior when
not specified).

Addresses bug: https://bugs.launchpad.net/python-keystoneclient/+bug/1180998

Change-Id: I831780e7cd34358fd2899db00cce002ed4284a9b
Adds local storage Boot support on PXE failures.

When used with partition image, adds capability to be able to
boot from local storage upon first PXE boot so that if subsequent
PXE boot fails, instances can still boot from local storage.

Change-Id: I4f412b604c1b21ef14c7e578851887fe7b7d0f7d
Enable ip nonlocal binds

We require nonlocal binds enabled for our HAProxy VIPs to work.

Change-Id: I6b8ecb46f6b9b381e92a16df4c829d1a7aecd2c4
Switch from upstart to os-refresh-config for MySQL server-id's

This is both more reliable, and more cross-platform. With the
mysql element, this upstart job is never run, as a sysvinit rather
than upstart job triggers mysql.

Change-Id: I208310048d7617ec7726eceee9e4e269f1473510
Merge "Update openstack services to listen on stunnel connect port"
Merge "Enable ip nonlocal binds"
Check if stunnel.connect_ip is set

We already define stunnel metadata, but stunnel.connect_ip is not yet
defined. In such case empty IP is generated in ports.conf which causes
syntax error.

Change-Id: Ic85779aa06f1331c0c73a83a874a38c806bd6ad4