Add host_uuid to libvirtd.conf

Add host_uuid generated by uuidgen to libvirtd.conf

Change-Id: I238652e0a42fc3e15fd6cf7416343fb900336784
Closes-Bug: 1378962
Correct space calculation for backup

The test should be numeric and not
lexographical.

Change-Id: I0852717f09277d9e4de7f55a7edcea2bed22835d
Closes-Bug: #1375810
(cherry picked from commit 4fc37f1caf498bcde0c6943af01d64271df79225)
Disable the waiting for user input if the last boot failed

Add the option GRUB_RECORDFAIL_TIMEOUT to grub and
set it to the same value as the GRUB_TIMEOUT

Change-Id: Iff1a65f90ecc1ff41763ed6b1a614a8b27589327
Closes-bug: #1356278
Add new filter for Nova Scheduler

We need to use filter ServerGroupAffinityFilter
in nova.conf to fix issues with fails of several
Tempest tests. We want to deploy OpenStack cloud
which will pass all Tempest tests and in this case
we need to add this filter to Nova config file.

Change-Id: I3e74078d69917c295ca27a054610f78c186292bb
Closes-Bug: #1389701
Set explisit mysql-wsrep package name for zabbix

So as there is trend to support wsrep mysql package only and
seems that normal package works not so good, so I set wsrep
install for zabbix explicitly.

Change-Id: I87e62a34d7cbc572cc1f9ec6baded1404c76f0e3
Closes-Bug: #1368151
Flush expired tokens from Keystone

Outdated tokens will be cleaned (removed) to avoid running out
of space in long term.

DocImpact
Change-Id: Ic688cc9cc03a4167f9cb55af799b326654e9ef13
Implements: blueprint access-control-master-node-improvments
(cherry picked from commit 0214e23d1ed58d1ae21550f9f7f710f3fb44557d)
Ensure that crontabs package is installed

Keystone container do not have crontabs package installed which
breaks 'cron' usage in puppet manifests.

Change-Id: Id4d9258d149acd046bb7c4c4002c766dae9e3c29
Closes-Bug: #1386098
(cherry picked from commit 13d6b14810f6cff5ac729c494f39b28a5d2c3176)
Merge "Set explisit mysql-wsrep package name for zabbix" into stable/5.1
Merge "Flush expired tokens from Keystone" into stable/5.1
Merge "Ensure that crontabs package is installed" into stable/5.1
Improve "dockerctl check"

- Make number of check retries configurable.
- Exit with "1" exit code if one or more containers failed to pass
  tests.

Change-Id: Ic06eb53efb8fd4b728f87ef3205638eb05742490
Related-bug: #1390129
(cherry picked from commit 593848cd376ba9b9012dfabf48badbeddabbd79e)
Merge "Disable the waiting for user input if the last boot failed" into stable/5.1
Raise number of nailgun uWSGI workers and sockets

Fixes issue where nailgun stops responding to requests
because all workers are occupied and the queue of
available uWSGI sockets fills up by increasing the
number of workers (double) and raising the connection
limit from 100 to 4096.

Closes-Bug: #1391935

Change-Id: Id6bb0fc259ee78fa5dc33ce072ba426e595278f7
(cherry picked from commit e2e1166a55f2dea80ed29dc37ebcaed93f8122c3)
Set nginx default settings for master node

- increase number of workers from 2 to half available CPUs.
- enable epoll by default
- enable tcpnopush
- enable tcpnodelay
- disable server_token

These settings allow to bootstrap many nodes in parallel allowing
anaconda and debian installer to get all files without timeout.

Partial-Bug: 1384510
Partial-Bug: 1349360

Change-Id: I44054cf2afa1fa5a70ba064f4957b964947b2b2c
Implements: blueprint 100-nodes-support
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
Merge "Improve "dockerctl check"" into stable/5.1
Fix nailgun task check before backup/restore

* Adds check to restore
* Fixes typo in command 'fuel task'

Change-Id: Ice725d93ba7ffa674d3bdf74a9decb1a80762a54
Closes-Bug: #1352847
(cherry picked from commit 27df393db262314613fffbfc551b844fcc648005)
Reduce dnsmasq verbosity and fix logrotate

dnsmasq dhcp logging is extremely verbose and can quickly
fill up logs for dnsmasq. It is not needed in most cases,
so it is now disabled.

Logrotate contained paths relative to rsyslog container,
but logrotate is actually run on Fuel Master host itself.
The paths were updated to be compatible for running
logrotate in a container or on the host.

Closes-Bug: #1382658
blueprint 100-nodes-support

Change-Id: I4290da4c8e3e5585396d105ce8e1f0cfceed61b3
(cherry picked from commit 709a377e1f846b3ea1981f0c6fb3e034f65ef7f2)
Merge "Raise number of nailgun uWSGI workers and sockets" into stable/5.1
Merge "Set nginx default settings for master node" into stable/5.1
Revert "Raise number of nailgun uWSGI workers and sockets"

Revert necessary because of trying to set sysctl inside unprivileged container.
This reverts commit 88a8b82db851434bca098918eda644074b24943f.

Change-Id: I0ef7f6e760f040728c15593da2bab278ed437e10