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

Failsafe should recover from duplicate definition of bundle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.7.2
    • Component/s: None
    • Labels:
      None

      Description

      I deployed an autorun policy, and later decided to move it to a different directory. After moving it I started seeing @Duplicate definition of bundle@ errors in @/var/cfengine/outputs@.

      <pre>
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:1:0: error: Duplicate definition of bundle measurement_utils with type common
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:13:0: error: Duplicate definition of bundle measure_cpu with type monitor
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:25:0: error: Duplicate definition of bundle measure_memory with type monitor
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:37:0: error: Duplicate definition of bundle measure_swap with type monitor
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:49:0: error: Duplicate definition of bundle configure_measurement_utils with type agent
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:16:0: error: Duplicate promise handle cpu_utilization found
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:28:0: error: Duplicate promise handle memory_utilization found
      /var/cfengine/inputs/services/autorun/measure_cpu.cf:40:0: error: Duplicate promise handle swap_utilization found
      error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe
      R: Updated local policy from policy server
      R: You are running a hard-coded failsafe. Please use the following command instead.
      </pre>

      The output that failsafe is being triggered:

      <pre>
      error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe
      R: Updated local policy from policy server
      R: You are running a hard-coded failsafe. Please use the following command instead.
      </pre>

      But my policy remains broken during subsequent executions.

      <pre>
      [root@host021 outputs]# grep "Policy failed" /var/cfengine/outputs/*
      /var/cfengine/outputs/cf_host021_1438719828_Tue_Aug_4_20_23_48_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438719941_Tue_Aug_4_20_25_41_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720054_Tue_Aug_4_20_27_34_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720167_Tue_Aug_4_20_29_27_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720400_Tue_Aug_4_20_33_20_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720513_Tue_Aug_4_20_35_13_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720626_Tue_Aug_4_20_37_06_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720739_Tue_Aug_4_20_38_59_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/cf_host021_1438720912_Tue_Aug_4_20_41_52_2015_0x7f330034c700: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      /var/cfengine/outputs/previous: error: Policy failed validation with command '"/var/cfengine/bin/cf-promises" -c "/var/cfengine/inputs/promises.cf"'
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10042 Nick Anderson
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel