Bug #4111
closed
Inventory is never made due to the use of a wrong function ("isfile") in the promises
Added by Vincent MEMBRÉ about 11 years ago.
Updated over 9 years ago.
Description
When installing / upgrading rudder agent to 2.8.0~rc1 we get an error
2013-10-28T17:46:35+0100 notice: Server is starting...
rudder-agent[12210]: [OK] CFEngine Community cf-serverd started after 1 seconds
rudder-agent[12211]: [INFO] Launching CFEngine Community cf-execd...
/var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf:100:122: error: Unknown function
"rudder_inventory_cpuid_tool_present" expression => isfile("\"${g.rudder_dependencies}\cpuid-windows-V1.0.vbs\"");
^
/var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf:102:112: error: Unknown function
"rudder_inventory_userlist_tool_present" expression => isfile("\"${g.rudder_dependencies}\userlist.bat\"");
^
/var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf:106:115: error: Unknown function
"rudder_inventory_cpuid_tool_present" expression => isfile("${g.rudder_dependencies}/cpuid-linux-V1.0.sh");
^
2013-10-28T17:46:37+0100 error: Syntax errors were found in policy files included from the main policy
2013-10-28T17:46:37+0100 error: Policy failed validation with command '"/var/rudder/cfengine-community/bin/cf-promises" -c "/var/rudder/cfengine-community/inputs/promises.cf"'
2013-10-28T17:46:37+0100 error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe
- Status changed from New to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/237
- Status changed from Pending technical review to Discussion
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
This looks pretty bad, indeed! How come it doesn't apply to anything pre-2.8?
- Status changed from Discussion to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Pull Request changed from https://github.com/Normation/rudder-techniques/pull/237 to https://github.com/Normation/rudder-techniques/pull/238
Damn right. PR updated !!!
- Status changed from Pending technical review to Discussion
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
This looks pretty serious if it applied to 2.4... But I know that 2.4 used to work... So I don't see how this is possible. What commit introduced these errors, and what is the related ticket?
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
It affects our 2.4 (2.6 2.7 too) nightlies, not our latest release.
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
Vincent MEMBRÉ wrote:
It affects our 2.4 (2.6 2.7 too) nightlies, not our latest release.
Phew, that's OK then! Thanks for clarifying :)
- Status changed from Discussion to Pending release
Applied in changeset commit:ceb8aed50e75677986c7d529c14c13f96bfc2c68.
Applied in changeset commit:ccee26d7156482d75748eacac38611d1a3ef74fd.
- Subject changed from Initial promises are not valid in 2.8; function "isfile" does not exist to Inventory Technique is not valid: "isfile" function does not exist
- Target version changed from 2.8.0~rc2 to 2.4.12
- Subject changed from Inventory Technique is not valid: "isfile" function does not exist to Inventory is never made due to th use of a wrong function ("isfile") in the promises
- Subject changed from Inventory is never made due to th use of a wrong function ("isfile") in the promises to Inventory is never made due to the use of a wrong function ("isfile") in the promises
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.4.12 which was released today.
Check out:
- Project changed from 24 to Rudder
- Category changed from Techniques to Techniques
Also available in: Atom
PDF