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 '
Actions