Support stop provisioning mechanism

* ability to run command at remote nodes using SSH;
* add stop_provision action.

Implements: blueprint fuel-stop-provision

Change-Id: Ibcd588fc3dae5961ea51239cad6f2bdee5f16bbf
Use logdest syslog for puppet

Newer puppet 3.4.3 has working syslog
for puppet apply. Thus we can send messages
to syslog easily without usage of ImFile puppet
module.

Change-Id: Ibfdd4ab094fcf9586376a7f67369db65adc4006c
Closes-bug: #1304286
Merge "Support stop provisioning mechanism"
Fix for rabbitmq3.

Send data in next EventMachine loop. Without this, sending hangs for 10 minutes.

Closes-Bug: #1278336
Change-Id: Ic2dbe4e7a922243573b38ac4a43e91d8156c2132
Fix problem with error handler in puppetd

Change-Id: I67968754c7a91d0cb6d92cc9acd90e15ad344c82
Details: undefined method `any?' for "":String
Merge "Use logdest syslog for puppet"
Deployment artifacts management for upgrades:

* update packages repository source(ubuntu && centos);
* support custom source for manifests and modules;
* tests.

Implements: blueprint fuel-upgrade
Change-Id: Id2d51049a79095c1dd92599dd360218ee9926e69
Update packages repository source(ubuntu && centos)

* add checks && retries for packages repository
source(ubuntu && centos) update process.
* add tests.

Implements: blueprint fuel-upgrade

Change-Id: I9a3eff7431fe8526e99f0fdd29e23c01017b4846
Get Cirros image parameters from node attributes

Implements: blueprint fuel-vmware-hypervisor
Change-Id: I5e7b5cee7ac1ca3b35309058d4b9c77a7a0cbe01
Add evaltrace for debug, fix daemonize for puppet call

Closes bug: #1304286

Change-Id: Ib870d499dafd3e76f4ac9c12f9fc8e8545078218
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Create config file for diagnostic snapshot generation

* create config file on the master node
* pass path to config file as a parameter
* renamed nailgun_dump to shotgun
* fixed test and fixed wrong rspec usage
  (removed before/after hacks for mocking)

Depends on:
* patch in fuel-web for shotgun and nailgun
  https://review.openstack.org/89260

Closes-bug: #1310244
Change-Id: If70badfb90afc16541c79ac99255fc22d54aecf4
Remove hardcoded path to shotgun

Change-Id: I624efa4a67c584bacf9ec104095f6faa1dffd0a9
Related-bug: #1309741
Merge "Get Cirros image parameters from node attributes"
Merge "Add evaltrace for debug, fix daemonize for puppet call"
Merge "Update packages repository source(ubuntu && centos)"
Set minimal memory limit for CirrOs image

TestVM (that is cirros) is installed by fuel
in each new openstack cloud. This image doesn't
have any limits set in openstack. If user tries
to launch this image on flavor with 16Mb of
memory it will go into infinite boot. It would be
good to prevent such accidental hard-to-find
issues by setting limits for image on required
resources.

Change-Id: I37c917c43f89dd37dd07e35f9a7d0379e5f3a72f
Related-Bug: #1304664
Add local puppet log file on the nodes

Change-Id: I4738f2af4367ef948b0c40e1f29ef80c1637b1b4
Send sighup to rsyslogd

After remove_nodes action, create mcollecte client
with execute_shell_command plugin for master node, and perform:

ssh root@#{master_ip} 'pkill -HUP rsyslogd'

Change-Id: I8ab764aaa3bceb9c08c99d5bfe08582c83e267c7
Closes-Bug: #1315382
Erase beginning of all partitions when erasing nodes

When re-deploying nodes with an identical disk layout previous
filesystems can cause problems with Ceph.

Change-Id: I3507472e805278924daff89a146dfdf7f89b4f3c
Closes-bug: #1317296
Merge "Erase beginning of all partitions when erasing nodes"