7 Commits

Author SHA1 Message Date
Tobias Urdin
79481df8ef Use puppet4 functions-api
Depends-On: https://review.openstack.org/#/c/614782/
Change-Id: I7bb50c4e591585b80661fe0d41c7cc2dfec5fdf8
2018-11-01 16:31:22 +01:00
Bogdan Dobrelya
c08013d004 Fixes for new pacemaker versions
* Improve missing cib sections filters
* Change is_online? to use dc-version to determine if CIB is ready
* Cleanup primitives by their full names
* Change node id references to node name as 'id' does not represent
  node name for new pacemaker versions
  (related change: Id84994df3bf2a990d2925b595aa448746db45383
* Switch location add implementation from pcs to cibadmin --patch
  as this provder claims to be crmsh/pcs agnostic and
  to solve problems with cib changes not being synced to other nodes
  then has been applied concurrently.
* Add missing debug info
* Update rspecs

Author: Dmitry Ilyin <dilyin@mirantis.com>
Closes-bug: #1416378

Change-Id: I2185b17286e46086674abe985bfc48260e7c397b
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-02-10 11:17:46 +01:00
Jenkins
537ed9e375 Merge "Fix primitive_status for pacemaker" 2015-01-23 17:33:01 +00:00
Javier Pena
908103d89a Fix primitive_status for pacemaker
When calling primitive_status using a node param, the status is not
detected properly if the node id in the CIB is not equal to its
hostname. Fixing this by looping through all nodes and checking the
uname key.

Change-Id: Id84994df3bf2a990d2925b595aa448746db45383
2015-01-23 12:07:41 +01:00
Javier Pena
bbfc89f427 Support native OS primitive classes in Pacemaker
When creating a Pacemaker service that uses an OS native class (e.g. systemd),
the pacemaker provider stops the native service before starting it again as
part of the resource, which creates some issues.

Change-Id: I5c86376f710cf747b8a7450c29b9f581f44b2cab
2015-01-19 17:07:08 +01:00
Bogdan Dobrelya
d5b4999b8c Add pacemaker provider for HA services
* Add pacemaker service provider and unit tests
* Add generic OCF handler script for RA scripts
* Add service class and docs for pacemaker primitives creation with
  default OCF type = pacemaker
* Add specs for pacemaker service define

Implements step 1 of blueprint pacemaker-provider-for-openstack

Change-Id: I5d98d8f9494bb7df4466022b3d49ac6392deb1a5
Co-Author: Dmitry Ilyin (idv1985 <dilyin@mirantis.com>)
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-12-23 10:08:49 +01:00
Michael Chapman
0fc013377b Add hash based repository management
This patch adds support for managing repos
for major distros, separated by osfamily at
the top level and operatingsystem below that.

Since redhat, fedora and centos can all install
from rdo, which is the only current option, the
fedora and centos classes simply wrap around the
redhat one. This may change in the future if any
of them change (for example if RHOS support is
added and redhat is now different to fedora)

Change-Id: I5b18f393999d6f70757a2dfd9b12da049d6b64e1
2014-11-27 22:12:25 +11:00