Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2373

Populated variables return cf_null on 3.8.2. Possible variable hashing issue? Changing variable name resolves the bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.9.0
    • Component/s: Evaluation
    • Labels:
      None
    • Environment:
      Linux

      Description

      Take the following policy. There are 3 bundles. The first bundle defines an array variable and then prints a report of the value of the array. All values are printed correctly.

      The second bundle copies the array from the first bundle and prints all values. They all print correctly.

      The third bundle copies the array from the second bundle and prints all values. net.ipv4.tcp_max_syn_backlog gets assigned cf_null, the other variables are defined correctly. There is probably a hashing bug being hit here in variable assignment.

      [root@eat1-app990 msvoboda]# /var/cfengine/bin/cf-agent -I -K -f ./test.cf 
      R: build_default_sysctl_conf_values index is net.ipv4.tcp_no_metrics_save with value net.ipv4.tcp_no_metrics_save = 0
      R: build_default_sysctl_conf_values index is net.ipv4.tcp_mtu_probing with value net.ipv4.tcp_mtu_probing = 0
      R: build_default_sysctl_conf_values index is net.ipv4.tcp_max_syn_backlog with value net.ipv4.tcp_max_syn_backlog = 1024
      R: modify_default_sysctl_conf_variables index is net.ipv4.tcp_no_metrics_save with value net.ipv4.tcp_no_metrics_save = 0
      R: modify_default_sysctl_conf_variables index is net.ipv4.tcp_mtu_probing with value net.ipv4.tcp_mtu_probing = 0
      R: modify_default_sysctl_conf_variables index is net.ipv4.tcp_max_syn_backlog with value net.ipv4.tcp_max_syn_backlog = 1024
      R: read_data_from_etc_sysctl_testing index is net.ipv4.tcp_no_metrics_save with value net.ipv4.tcp_no_metrics_save = 0
      R: read_data_from_etc_sysctl_testing index is net.ipv4.tcp_max_syn_backlog with value cf_null
      R: read_data_from_etc_sysctl_testing index is net.ipv4.tcp_mtu_probing with value net.ipv4.tcp_mtu_probing = 0
      

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              msvoboda@linkedin.com mike svoboda
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel