Set osapi_compute_workers to number of processors

Closes-bug: #1275988
Change-Id: I5c017e4cd8b345147b3ecdad40deaa4715ccacb1
L23network: allow setup MTU in the network_schema

This commit allow define MTU for interfaces and endpoints

Change-Id: I0038286fc75a6935cfcd6fefcfa6acd071a66f59
Blueprint: set-mtu-for-interfaces
BUG: 1274789
For mysql with syslog, make local logs copy and provide rotation

For syslog mode, save a local copy of *all* mysql logs to /var/log/mysqld.log
and add it ro retation plans as well.
(Does not change remote logging headers)

Closes bug: #1275124

Change-Id: I322594fdf47329e914526168eda42f9dd16a3201
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Specify CIDR netmask for each VIP

Explicitly setting the netmask for each VIP works around a bug
in Pacemaker where an incorrect netmask is calculated. This
subsequently sets an incorrect broadcast address.

Change-Id: Icf208eff1be27765611500ae0e71ead122a7c4ce
Closes-bug: #1277614
Add Ubuntu style syslog reloading to logrotate templates

Change-Id: Id32b0b678bbc2e681adb1974dc4d111dbd354504
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Sort unicast corosync IP addresses

Sort addresses in order to make corosync
config file generation idempotent

Change-Id: I02dcd9bb3458b56e23c9b452db12e0e7e334e0f3
move database section to main neutron config

Closes-bug: #1275943
Change-Id: I3e2077b95527b959e508e04e186edb0de53bf11d
Add missed block_until_ready calls for corosync provider

Closes-bug: #1279211

Change-Id: I995d01bd28ea8ef41f752feb252be49d19b62c83
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Horizon performance tuning

Closes-Bug: #1277292

Some optimizations for Apache/WSGI settings aimed to improve
Apache and Horizon performance:
    - Apache MPM switched from 'prefork' to 'event' for RH-like
      systems
    - Apache/WSGI parameters configuration based on server's
      hardware

Change-Id: Idbd3ccaf05d9ad4a1e8206facece0c53a3fd90e7
Standalone servers for keepalive and receiver

 - added supervisor sections for assassind and receiverd
 - keepalive renamed to assasin (name conflicts) and starts as separate process controlled by supervisor
 - RPC receiver moved to separate server

NOTICE: depends on https://review.openstack.org/#/c/72325/

Change-Id: Ib7c74a2b3304cdb5a7c4dbaa57bcbf776b80dcfa
Implements: blueprint nailgun-move-to-uwsgi
Fix unused puppet agent/master logging templates

- remove obsolete master & agent logs from puppet
- make a local copy of all puppet logs as well to remote ones

Closes-bug: #1275121

Change-Id: I03e2bab8cd28d4e58a2b0fff05015167d1ad43b1
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Get Ordering of ifconfig operations from transformation order if it possible.

Add unordered interfaces and endpoints to the end of list in alphabetical order.

Closes-bug: #1278718
Change-Id: I0519de41c875d50758908974e8e04f014f27831c
Finish configuring a service before adding it to HAProxy

Starting an HAProxy instance for ceilometer-api (and possibly other
similar services) will fail on Ubuntu if the package for that service is
installed but not yet configured: the service is still running in its
default configuration binding to 0.0.0.0 instead of just the management
IP, preventing HAProxy from binding to the management VIP on the same
port.

To prevent a dependency loop (Ceilometer, like most other OpenStack
services, depends on MySQL), Galera dependencies have to be narrowed
down from the whole of HAProxy setup to just the registration of MySQL
service with it. HAProxy related parts of controller_ha and galera
classes are refactored to support reloading HAProxy for each service
independently, and to group together HAProxy options specific to
individual services.

To support granular addition of services into HAProxy, haproxy module
updated to puppetlabs-haproxy 1.0.1 (0d4c50e) and refactored to split
haproxy.cfg into multiple files under /etc/haproxy/conf.d using include
directive as implemented in the patch by Brane F. Gračnar:

http://marc.info/?l=haproxy&m=129235503410444

The define_backends option for haproxy class introduced in Fuel is
renamed to define_backups and ported to the new haproxy module.

Support for selecting exported haproxy::balancermember resources by tag
is dropped since it is no longer used (and not relevant since Fuel no
longer runs puppetmaster).

An ordered list of controllers is passed from osnailyfacter::cluster_ha
to openstack::controller_ha so that haproxy::balancermember always sets
the primary controller as the active server in failover configurations.

HAProxy is now configured as part the "main" stage, so "cluster_head"
stage is no longer necessary. MySQL and RabbitMQ listen blocks are
populated before HAProxy is first started, other listen blocks are added
incrementally with HAProxy being reloaded via OCF. In HA mode, all
dbsync invokations now require HAProxy MySQL (Ceilometer and Heat were
missing), and all OpenStack services now require HAProxy Keystone.

HAProxy configuration for RadosGW is changed from active-passive
failover to active-active load balancing between controller nodes.
Backend IP addresses for RadosGW servers are changed from storage to
internal.

HAProxy mode option handling is cleaned up so that the default "http"
mode now propagates properly for listening services that do not specify
"tcp" mode explicitly.

Syslog facility for Ceilometer changed from SYSLOG to LOG_SYSLOG to
catch up to the cleanup done in LP #1263675.

Added "--no-class_inherits_from_params_class-check" to puppet-lint
options to prevent it from issuing a warning that is not relevant for
Puppet versions 2.7 and newer.

Change-Id: I5fa03dbc3f7e3a7dfa57c226a5396f652c111997
Closes-bug: #1264388
Closes-bug: #1278603
Merge "L23network: allow setup MTU in the network_schema"
Merge "Get Ordering of ifconfig operations from transformation order if it possible."
Merge "Finish configuring a service before adding it to HAProxy"
Merge "For mysql with syslog, make local logs copy and provide rotation"
Merge "Specify CIDR netmask for each VIP"
Merge "Horizon performance tuning"
Merge "move database section to main neutron config"