Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-905

Null containing-class and containing-path for skip events

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PDB 2.2.0
    • Fix Version/s: PDB 2.2.1
    • Component/s: None
    • Labels:
    • Template:
    • Story Points:
      1
    • Sprint:
      PuppetDB 2014-10-08

      Description

      Skip events in PuppetDB 2.2.0 (possibly earlier, but 1.6.0 did not have this issue) have a null containing-class and containing-path.

      I've attached an example module I used for this, but basically I had two file resources, one of which required the other, and the dependent resource had a failure (thus causing the other to skip). The output for the skipped resource from /events is:

      {
        "containment-path" : null,
        "new-value" : null,
        "containing-class" : null,
        "report-receive-time" : "2014-10-01T22:02:14.231Z",
        "report" : "64e93c369cb7ab13f255352ea726a090ab766908",
        "resource-title" : "/tmp/test/test1",
        "property" : null,
        "file" : "/etc/puppetlabs/puppet/environments/production/modules/test/manifests/init.pp",
        "old-value" : null,
        "run-start-time" : "2014-10-01T22:01:24.479Z",
        "line" : 13,
        "status" : "skipped",
        "run-end-time" : "2014-10-01T22:01:59.249Z",
        "resource-type" : "File",
        "timestamp" : "2014-10-01T22:01:59.096Z",
        "configuration-version" : "1412200896",
        "certname" : "apollo.localdomain",
        "message" : null
      }
      

      whereas in PuppetDB 1.6.3 the output for the same resource and event is:

      {
        "status" : "skipped",
        "timestamp" : "2014-10-01T21:07:12.655Z",
        "certname" : "athena.localdomain",
        "containing-class" : "Test",
        "containment-path" : [ "Stage[main]", "Test", "File[/tmp/test/test1]" ],
        "report" : "c62c65c75e4b4e55b58f41b18d8afde04f82cf17",
        "run-start-time" : "2014-10-01T21:06:59.722Z",
        "resource-title" : "/tmp/test/test1",
        "configuration-version" : "1412197554",
        "run-end-time" : "2014-10-01T21:07:10.720Z",
        "property" : null,
        "message" : null,
        "new-value" : null,
        "old-value" : null,
        "line" : 13,
        "file" : "/etc/puppetlabs/puppet/modules/test/manifests/init.pp",
        "report-receive-time" : "2014-10-01T21:07:20.478Z",
        "resource-type" : "File"
      }
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                ken Ken Barber
                Reporter:
                ruth Ruth Linehan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: