Remove 'ceph-deploy osd activate'

Remove Exec['ceph-deploy osd activate'] because the same
is done by Service['ceph'], that is more preferable.

Change-Id: I47cae0a4f937be565238818b597811f936ca493a
Closes-Bug: 1374160
Refactor fuel syntax check script

- Check syntax for changed modules only
- Use 'rake lint' instead of 'puppet-lint' where possible
- Use 'bundle' for rake lint tests
- Fix current syntax errors that break 'rake lint' or disable
  'fail_on_warnings' option for lint

Closes-bug: #1340336
Change-Id: I66c5b4799dafc32e7903c16365a277109cfb6723
Disable DF bit for tunneled installations

Due to the way how OVS handles GRE tunnels
it tries to copy DF flag to wrapping GRE
packet header, thus making it impossible
for packets of more than 1430 bytes size
to be transfered through regular interfaces
this breaks almost all applications. Thus
we are setting dont_fragment option to false
and we will also need to make ovs agent
set df_inherit flag to this option for
OVS versions that support df_inherit flag

We will also need to document that user should
extend his MTU size to reasonable one according
to http://docs.openstack.org/icehouse/install-guide/install/yum/content/neutron-ml2-network-node.html
in order to not get performance issues.

DocImpact
Change-Id: I031351b36f56881f21986b412bfae79fba0e884b
Partial-bug: #1402046
Add pretend_min_part_hours_passed before rebalance

Add pretend_min_part_hours_passed before rebalancing swift ring.
Make sure some dirs are created with proper ownership.

Closes-bug: #1402701
Change-Id: Id49a6ee1852e5d65a9994802c5949eac26dc1821
Add forgotten vlan_start parameter to cluster_simple.pp

Change-Id: Iaf098f5f7ec6ae74844ddd8877e3939d0bb84d15
Closes-bug: #1402768
Merge "Add pretend_min_part_hours_passed before rebalance"
Fix ceilometer notifications in neutron

Also fixes broken logic of passing neutron param to classes:
  openstack::ceilometer
  openstack::horizon

Class openstack::horizon does not seem to use its 'quantum'
parameter at all, but still we should fix it.

Change-Id: Ie78103a760fdd661ebc37b02cb7765453f7e5920
Closes-bug: #1403135
Merge "Remove 'ceph-deploy osd activate'"
Merge "Fix ceilometer notifications in neutron"
Merge "Refactor fuel syntax check script"
Wrap OCF rabbitmq commands to timeout -KILL

W/o this patch, rabbitmqctl commands issued by rabbitmq RA
could outlast the given timeout for action notify (60 seconds).
That may bring rabbitmq cluster to a state then join_cluster
and start_app commands would never ended as well as the
cluster reassemble process.

The solution is:
* Use limited interval for rabbitmqctl commands which depends on the
  OCF action in progress. Looks like start and notify actions require
  the most of the time to be finished.
* Evaluate interval as (timeout / 6 + 5).
  So, for notify 180 sec timeout it would be 180/6+5=35 sec
  to wait before any command issued by action notify would be killed
* Adjust timeout values for failure-timeout, start and notify 60->180.
  That is required in order to provide enough time for the
  commands to complete consequently w/o being killed by timeout.
* Fix start/shutdown timeout evaluation then recieved a negative value for
  small timeouts (timeout=60s would result in -4 value)

Related-bug: #1396946

Change-Id: I33a0390b311646266522ddd0f4e8c75d762afe30
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Fixes for rabbit OCF logic

W/o this fix,
* forget_cluster_node command could take a lot of
  the time (and even out of the time given to post-stop notify event)
  if rabbit node is under heavy load.
* It is also possible that all
  rabbitmq resources could persist as a slaves and there won't be
  any master elected.
* Sometimes, join_cluster could take quite a long of a time. If it exceeded,
  the node will enter into join-wait-reset loop for ever.

The solution includes:
* Disconnect the node being unjoined forcibly from
  the every node issuing the forget action. That would make the forget
  action an instant and would ensure the node will be unjoined and
  reset w/o any issues.
* Increase action start timeout even more and increase minimal value
  for command timeout as well.
* Add info messages about timeouts given for commands execution
* Fix missing OCF_FAILED_MASTER status processing for events and actions
* Fix promote/demote/notify actions - return OCF_FAILED_MASTER then required
* Fix reset_mnesia() procedure and logging prefixes for it
* Replace detached stop_app call to timeout wrapper in stop_rmq_server_app()
  and stop_server_process(). Del del OCF_RESKEY_shutdown_time (unneeded).
* Fix exit code for start_rmq_server_app()
* Fix missing return for jjj_join
* Fix my_host return codes to differ from OCF_ERR_GENERIC
* Fix missing local declarations rc var
* Fix missing rc checks for stop_rmq_server_app() and some other functions
* Add some missing ocf_run wrappers
* Fix shutdown/startup logs redirection

Related-bug: #1396946

Change-Id: I951825badb712c5575d469403cf65bf26713aff0
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Sync puppetlabs rabbitmq module

commit 4832bd61b5b1bfea7c9cc985508e65cd10081652
Source: https://github.com/puppetlabs/puppetlabs-rabbitmq.git

Related blueprint merge-openstack-puppet-modules

Fuel-CI: disable
Change-Id: I924a2a4489dc329fefbee859a4b4bde0b79e86d1
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Adapt rabbitmq module for Fuel

* Add dependency modules: garethr-erlang, nanliu-staging
* Add support for rabbimtq >1.0 <=4.1 for nova module and make it
  backward compatible (otherwise can't be contributed in upstream)
  (https://bugs.launchpad.net/puppet-nova/+bug/1386309)
* Adjust other existing rabbit class calls for new 4.1 rabbit module
* Remove deprecated usage of rabbitmq::server class and replace it
  to ::rabbitmq (cinder, murano, openstack, zabbix, mcollective,
  nailgun)
* Move rabbit.pub.key template from rabbitmq to openstack module
  (Fuel uses it for offline installation of rabbitmq)
* Move custom rabbit OCF file from nova to openstack and remove
  OS-aware services disable from rabbit's manifests
* Make pacemaker provider HA wrapper for rabbitmq service and move
  it to pacemaker_wrappers::rabbitmq
* Fix linting
* Fix rabbitmq service name for zabbix mon
* Port fix for #MODULES-1488
* Fix env_config for rabbitmq::nailgun, unify RABBIT_* env args.
* Use key_content, package_gpg_key, config_*, cluster_*,
  environment_* params to ensure the same rabbit configuration as
  before and make offline installation possible.
* Add cluster_partition_handling for nova::rabbitmq and
  openstack::controller
  (https://bugs.launchpad.net/puppet-nova/+bug/1386309)
* Del unused rabbitmq_node_ip_address and rename as node_ip_address
* Del unneeded rabbit_cluster due to it is being evaluated via
  passed rabbitmq_cluster_nodes as well
* Adjust debug log_levels for rabbit config as well
* For '$production !~ /docker/' case, remove custom init scripts
  for rabbit as non relevant anymore.
* Add retries in rabbitmq provider
  (https://tickets.puppetlabs.com/browse/MODULES-1452)

Related blueprint merge-openstack-puppet-modules
Related-bug: #1377491

Change-Id: I6e631b975c5835d2d6f1984d5a070a45231fe9ab
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>