Add updates support to puppet-pull

Modify puppet-pull script to support
passing puppet modules and manifests
from the astute.yaml during update.

Closes-Bug: 1361600
Change-Id: I5649e0cde20daa428826add58eee27686bf351b5
Use $((EXPRESSION)) instead of $[EXPRESSION]

$((EXPRESSION)) is POSIX-conform and should be preferred.

Change-Id: I2d401f047cb5749a654a4745c8fa5e5b936b61bf
Fix dump_cib for corosync provider

W/o this patch, dump_cib sometimes may
return an empty xml

Related-bug: #1375842

Change-Id: Ia2dafe173f03bce82757d6e9522b405fb0969fb4
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
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
ubuntu-1204.preseed: avoid bashisms

Provisioning fails with kernel 3.13 because of preseed/late_command errors.
These errors are caused by bashisms (echo -e and similar). The default shell
in Ubuntu is dash, also bash is not available in the installer environment
(which uses busybox shell).

Change-Id: Ia47ffe0584424e67f173ca9467334679071053c7
Related-bug: #1390044
Related-bug: #1383641
Enable Neutron metering extension by default

Neutron metering extension should be enabled by default because
it's required for some Tempest test. Also there's no need to set this option
for compute nodes

Change-Id: I401b51895c7dd3ba8bd8734640f5afa72c3d77dd
Closes-bug: #1387658
don't start radosgw service from puppet

radosgw can't properly initialize until the Ceph cluster is populated
with enough OSD nodes, and we already have radosgw restart as a
post-deployment action in Astute.

Closes-Bug: #1390649
Change-Id: If7eaa9371f498f04876b84a4b6420440af26a9ff
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
Set iser_ip_address with a storage network address

The iser_ip_address parameter in /etc/cinder/cinder.conf
has a wrong value.

This parameter has to be configured with the storage
endpoint address, since it is no longer inherits the
iscsi_ip_address by default.

Currently it uses the $my_ip value, which is not capable
to work with RDMA transport (with its default value).

This fix assures that the default iser_ip_address will
use an address with RDMA support, if iSER is chosen as
the iSCSI transport by the user.

Closes-bug: #1387794

Change-Id: If0f67a9dbe80bfc8655dab85a96d3621bdaf38da
Fixing neutron-mlnx-agent service crash bug

Incorrect permissions for mlnx_conf.ini made the service crash.
The fix sets the owner as 'neutron' since the service is being run as neutron user.

Closes-bug: #1390185
Change-Id: Ieb0927d644c5a1d7eead12a32580f88d4d790e43
Signed-off-by: Gil Meir <gilmeir@mellanox.com>
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
Fix nailgun task check before backup/restore

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

Change-Id: Ice725d93ba7ffa674d3bdf74a9decb1a80762a54
Closes-Bug: #1352847
Fix field name for neutron_subnet in case of NSX

'gateway' field for neutron_subnet type was changed to
'gateway_ip' in commit 247ea68f2. But the NSX module is using this filed
by an old name.

Change-Id: Ibfefdc7bd79fb64906d78cb79bdf44127b17f46f
Closes-Bug: 1389317
Fix missing openstack::corosync dependency for HA services

W/o this fix, pacemaker and corosync could be installed too
late causing pcs resource start operation timed out.
Also, ::corosync class could install pacemaker and corosync
packages out of openstack::corosync class evaluation, but we
want these packages installed while openstack::corosync is being
evaluated as well.

The solution is:
* ensure all pcs provided services will be
  evaluated after openstack::corosync class.
* add missing anchor dependency for ::corosync class call
  in openstack::corosync

Related-bug: #1390745

Change-Id: Icea3cdbb857a742cc35705f4de3b2cfba1847d1c
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Move mongodb logs to mongod.log

Enables consolidation of MongoDB logs in one location,
instead of polluting /var/log/messages.

Added rotation for /var/log/mongod.log on deployed nodes,
while the current Fuel Master rotation requires no changes.

Change-Id: I3bbc6b87ed9d125191041c310069136c59d8d1f9
Closes-Bug: 1367234
Merge "Disable the waiting for user input if the last boot failed"
Add use_syslog_rfc_format for neutron and ceilometer

After syncing upstream manifests, this option was lost.
This is necessary for rsyslog to aggregate service logs
on upstream rsyslog server.

Change-Id: Ie2970ac9b526f3877f3c915b08f4a641c9dcb37f
Closes-Bug: #1388111
Add check for keystone container

keystone token-get is now run from within
the keystone container to verify that
keystone is correctly configured.

Change-Id: I3657059951e87d505647b6c3991dc37f1d76975d
Related-Bug: #1391145
Closes-Bug: #1390137
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
Merge "Fix missing openstack::corosync dependency for HA services"