8 Commits

Author SHA1 Message Date
Thomas Goirand
78c08ad6dc Add environment param to service_validation.pp
To be able to pass OS_PASSWORD=, we need the environment param
to be added to this class.

Needed-By: I8ab8a2c7bb1d93d6fb9d16eabd3a1112b1e1237b
Change-Id: If10b57a38c61cadca48e1e3c1e76d659397849fb
2018-05-15 16:11:07 +02:00
Carlos Camacho
a3cef1d6cc Fix lint issues to upgrade to puppet-lint 2.3
2017-07-20 14:41:23.253791 | manifests/db/mysql/host_access.pp:52:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:23.253911 | manifests/db/mysql/host_access.pp:62:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:23.253949 | manifests/policy/base.pp:43:WARNING: arrow should be on the right operand's line
2017-07-20 14:41:23.253987 | manifests/service_validation.pp:94:WARNING: arrow should be on the right operand's line

Change-Id: I4cee893ae8f2e430149e2cd56b2e9d9d592a75d5
2017-07-20 20:42:31 +02:00
ZhongShengping
7ce50f94b8 Update resource references for dependencies
The latest version of puppet now reports these as catalog failures so
this change removes the unnecessary references and the references
should be updated.

Change-Id: Id09c3358c5843510e6a2a8c0e2d4aeb3607e098b
Closes-Bug: #1702964
2017-07-11 17:23:15 +08:00
David Moreau-Simard
48a89dfeea Add a refreshonly parameter to service_validation
This will allow to run the service_validation on demand when required
from a notification, for example.

Change-Id: I18ea45f39cd7f4930de4916d658653d22d8530b3
2016-09-27 10:45:42 -04:00
David Moreau-Simard
ab226968e0 Add support for setting a timeout for service_validation
The default exec timeout in puppet is 300 seconds, this can be a
very long while on services that do not return immediately.
With default values, a command that never returns we're looking at
10*300 seconds (or 50 minutes).
Let's default to something more reasonable, 60 seconds, and also
make it configurable.

Change-Id: I53bd4935fbbb3a86ac1ad522a0f3d8f017151dd0
2016-09-19 12:17:19 -04:00
Emilien Macchi
f37a0a339a service validation: log output on failures
When validating a service, it's useful to have logs when exec output
fails.
This patch adds this feature.

Change-Id: I43c9eff8516ea562bf9bde8d5651ddceeb496163
2016-07-14 18:16:49 -04:00
Oleksiy Molchanov
5aaaff5d90 Add optional params for idempotency in service_validation
Change-Id: Ib3c2d2864a19b0b5761f546d6cbb9c4a51203412
2016-07-12 10:14:26 +00:00
Emilien Macchi
bfbe779b17 Implement Service Validation
Service Validations aims to be used in all OpenStack modules to validate
that services are actually running.

Example in nova::api where we could validate the Nova API is really
working. If it's the case, a Puppet Anchor will be created. This Anchor
could be consummed by external tools to validate a deployment workflow
and improve the orchestration during an OpenStack deployment.

Change-Id: Ia74677b1402c8f872183f873cf9cb73702253874
2014-11-05 10:12:08 +01:00