From 1ba64d1b95a1e62e6d7e92e8b61cccbfc2066da5 Mon Sep 17 00:00:00 2001 From: Jose Caballero Bejar Date: Tue, 5 Jul 2022 11:06:38 +0100 Subject: [PATCH] ncm-metaconfig: Add service action condrestart Current list of allowed service actions includes restart, reload, and stop_sleep_start. This creates problems when the metaconfig component issues a reload action for a given service on a brand new host. Since the host is new, that service has never been started, and therefore the reload command fails. This also prevents the rest of Quattor components depending on metaconfig from running. To solve this, allow service command condrestart, which works whether the service is already running or not. --- ncm-metaconfig/src/main/pan/components/metaconfig/schema.pan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncm-metaconfig/src/main/pan/components/metaconfig/schema.pan b/ncm-metaconfig/src/main/pan/components/metaconfig/schema.pan index 87517096e0..e3ee6935a9 100644 --- a/ncm-metaconfig/src/main/pan/components/metaconfig/schema.pan +++ b/ncm-metaconfig/src/main/pan/components/metaconfig/schema.pan @@ -84,7 +84,7 @@ type ${project.artifactId}_textrender_convert = { true; }; -type caf_service_action = string with match(SELF, '^(restart|reload|stop_sleep_start)$'); +type caf_service_action = string with match(SELF, '^(restart|condrestart|reload|stop_sleep_start)$'); type ${project.artifactId}_actions = { @{Always run, happens before possible modifications.