Actions
Bug #12665
closedUser story #12501: New rudder technique : SNMP configuration to monitor the rudder agent health
Generation error with SNMP technique
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
I tried SNMP techniques, and generation failed with:
⇨ Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. stdout: stderr: '/var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:49:20: error: syntax error package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:49:20: error: Expected promiser string, got 'package_present_' package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:49:37: error: Expected ';', got '${canon_pkg_name}' package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:53:5: error: syntax error !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:53:5: error: Expected promiser string, got '!' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:53:21: error: Unknown attribute 'package_present_' for promise type 'methods' in bundle with type 'agent' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:53:38: error: Expected '=>', got '${canon_pkg_name}' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:53:49: error: Invalid r-value type '_repaired::' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:54:17: error: Check previous line, Expected ';', got '"reporting"' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:54:27: error: Expected promiser string, got 'usebundle' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:54:30: error: Expected ';', got '=>' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:54:51: error: Expected promiser string, got 'rudder_common_report' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/cfengine-community/inputs.new/rudderSNMP/1.0/rudderSNMP.cf:54:52: error: Expected ';', got '(' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ Too many errors ' ; Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. stdout: stderr: '/var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:49:20: error: syntax error package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:49:20: error: Expected promiser string, got 'package_present_' package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:49:37: error: Expected ';', got '${canon_pkg_name}' package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:5: error: syntax error !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:5: error: Expected promiser string, got '!' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:21: error: Unknown attribute 'package_present_' for promise type 'methods' in bundle with type 'agent' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:38: error: Expected '=>', got '${canon_pkg_name}' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:49: error: Invalid r-value type '_repaired::' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:17: error: Check previous line, Expected ';', got '"reporting"' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:27: error: Expected promiser string, got 'usebundle' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:30: error: Expected ';', got '=>' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:51: error: Expected promiser string, got 'rudder_common_report' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/33f6a1d8-6e16-4305-bb77-a1cdb1f35214/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:52: error: Expected ';', got '(' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ Too many errors ' ; Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. stdout: stderr: '/var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:49:20: error: syntax error package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:49:20: error: Expected promiser string, got 'package_present_' package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:49:37: error: Expected ';', got '${canon_pkg_name}' package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:5: error: syntax error !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:5: error: Expected promiser string, got '!' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:21: error: Unknown attribute 'package_present_' for promise type 'methods' in bundle with type 'agent' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:38: error: Expected '=>', got '${canon_pkg_name}' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:53:49: error: Invalid r-value type '_repaired::' !package_present_${canon_pkg_name}_repaired:: ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:17: error: Check previous line, Expected ';', got '"reporting"' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:27: error: Expected promiser string, got 'usebundle' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:30: error: Expected ';', got '=>' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:51: error: Expected promiser string, got 'rudder_common_report' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ /var/rudder/share/f5e56b86-fc63-4d9f-8347-a594898c1f0c/rules.new/cfengine-community/rudderSNMP/1.0/rudderSNMP.cf:54:52: error: Expected ';', got '(' "reporting" usebundle => rudder_common_report("rudderSNMP", "result_na", "32377fd7-02fd-43d0-aab7-28460a91347b@@f9c90144-f88b-49a8-a0eb-d30191e3430b@@1", "SNMP configuration file contains required community", "None", "Checking the configuration file for SNMP"); ^ Too many errors '
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.13 to 411
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 411 to 4.1.13
Updated by Victor QUERETTE over 6 years ago
- Status changed from New to In progress
Updated by Victor QUERETTE over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Victor QUERETTE to François ARMAND
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1301
Updated by Anonymous over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|94792074cb413d82ce2636b2ee84f3261a720ac2.
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.12
Updated by Benoît PECCATTE over 6 years ago
- Status changed from Pending release to Released
Actions