From a4b6051afd09b7294843a95c5ec33f38d110cd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Peccatte?= Date: Mon, 26 Feb 2024 16:02:08 +0100 Subject: [PATCH 1/4] Fixes #22731: Rudder-plugin-glpi sends inventory of node that no longer exists --- .../node-post-deletion/20-clean-inventories | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 glpi/etc/hooks.d/node-post-deletion/20-clean-inventories diff --git a/glpi/etc/hooks.d/node-post-deletion/20-clean-inventories b/glpi/etc/hooks.d/node-post-deletion/20-clean-inventories new file mode 100755 index 000000000..d382acad5 --- /dev/null +++ b/glpi/etc/hooks.d/node-post-deletion/20-clean-inventories @@ -0,0 +1,21 @@ +#!/bin/sh + +# Hooks parameter are passed by environment variable: +# +# - RUDDER_NODE_ID: the nodeId +# - RUDDER_NODE_HOSTNAME: the node fully qualified hostname +# - RUDDER_NODE_POLICY_SERVER_ID: the node policy server id +# - RUDDER_AGENT_TYPE : agent type ("cfengine-community" or "dsc") +# - RUDDER_POLICIES_DIRECTORY_CURRENT: the full path of the base directory containing policies for that node +# - RUDDER_POLICIES_DIRECTORY_NEW: the full path of the base directory containing next policies for that node (during a generation) +# - RUDDER_POLICIES_DIRECTORY_ARCHIVE: the full path of the base directory containing previous policies for that node +# - RUDDER_NODE_KIND: node kind: root, relay or node + + +# Errors code on hooks are interpreted as follow: +# - 0 : success, no log (apart if debug one) , continue to next hook +# - 1-31 : error , error log in /var/log/rudder/webapp/, stop processing +# - 32-63 : warning, warning log in /var/log/rudder/webapp/, continue to next hook +# - 64-255: reserved for future use case. Behavior may change without notice. + +rm -f /var/rudder/inventories/received/${RUDDER_NODE_HOSTNAME}-${RUDDER_NODE_ID}.ocs* From e64c42a51a28dae61791de2cd6be2349a4bc1e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Membr=C3=A9?= Date: Wed, 28 Feb 2024 15:29:57 +0100 Subject: [PATCH 2/4] Prepare nightly branch --- main-build.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-build.conf b/main-build.conf index 65160730d..d6404ac2c 100644 --- a/main-build.conf +++ b/main-build.conf @@ -13,7 +13,7 @@ # Only rudder branch is defined here. # Version of Rudder used to build the plugin. # It defined the API/ABI used and it is important for binary compatibility -branch-type=next +branch-type=nightly rudder-version=8.0.6 common-version=2.1.1 private-version=2.1.0 From 591a2274ddcb969f5b796b7900ae05979c52a97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Membr=C3=A9?= Date: Wed, 28 Feb 2024 15:32:12 +0100 Subject: [PATCH 3/4] Prepare nightly branch --- main-build.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main-build.conf b/main-build.conf index 9526436bd..b5dc39ba4 100644 --- a/main-build.conf +++ b/main-build.conf @@ -13,7 +13,7 @@ # Only rudder branch is defined here. # Version of Rudder used to build the plugin. # It defined the API/ABI used and it is important for binary compatibility -branch-type=next +branch-type=nightly rudder-version=7.3.12 common-version=2.1.1 private-version=2.1.0 From 51ef5cf661b59c08d6734ac368dc06b2338f5521 Mon Sep 17 00:00:00 2001 From: Nicolas Charles Date: Thu, 29 Feb 2024 16:57:44 +0100 Subject: [PATCH 4/4] Fixes #24293: change validation plugin documentation refers to Rudder 5.0 --- change-validation/README.adoc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/change-validation/README.adoc b/change-validation/README.adoc index 97b3bb7b2..015f6c5c6 100644 --- a/change-validation/README.adoc +++ b/change-validation/README.adoc @@ -27,15 +27,6 @@ is optional and can be disabled at any time without any problem, besides risking image::docs/images/Enabling.png[] -== Rudder compatibility and breaking changes - -=== Version 5.0-1.1 needs Rudder 5.0.1 or above - -The problem was that on some condition, the change request was not saved in the correct data back-end: it was using the Rudder one in place of the plugin one. - -- Rudder ticket: https://issues.rudder.io/issues/13609 -- Plugin ticket: https://issues.rudder.io/issues/13630 - == What is a Change request ?