Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3831

last_run_summary.yaml not correctly populated when there is a config/total failure

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      This is similar to https://tickets.puppetlabs.com/browse/PUP-2089 and also includes the discrepancies in last_run_summary.yaml when running Puppet with and without the test flag ("-t")

      When there is a config failure (i.e. a failure that results in "Error: Could not retrieve catalog from remote server"), /var/lib/puppet/state/last_run_summary.yaml is not correctly populated.

      When such an error occurs and Puppet is ran with the '-t' flag (i.e. 'puppet agent -t --onetime', the contents of /var/lib/puppet/state/last_run_summary.yaml is sparsly populated with only the following values:

      version:
      config:
      puppet: "3.6.2"
      time:
      last_run: 1421010374

      When such an error occurs and Puppet is ran without the '-t' flag (i.e. 'puppet agent --onetime'), no failures are indiciated in /var/lib/puppet/state/last_run_summary.yaml:

      version:
      config: 1421010177
      puppet: "3.6.2"
      resources:
      changed: 1
      failed: 0
      failed_to_restart: 0
      out_of_sync: 1
      restarted: 0
      scheduled: 0
      skipped: 0
      total: 245
      time:
      config_retrieval: 1.94352
      cron: 0.004324104
      exec: 0.299260527
      file: 10.049151345999997
      file_line: 0.000320214
      filebucket: 0.000154575
      group: 0.0006817
      host: 0.00058631
      package: 1.0284650620000004
      resources: 0.000149091
      schedule: 0.0006907770000000001
      service: 1.9810566840000001
      total: 15.311991391999998
      user: 0.001467302
      yumrepo: 0.0021636999999999997
      last_run: 1421010692
      changes:
      total: 1
      events:
      failure: 0
      success: 1
      total: 1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                avv2wi Alan Vaghti
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support