Issue #15965 has been updated by Chris Price. Keywords set to puppetdb
---------------------------------------- Feature #15965: Provide a way to correlate catalogs with reports https://projects.puppetlabs.com/issues/15965#change-70511 Author: Chris Price Status: Investigating Priority: Normal Assignee: Deepak Giridharagopal Category: Target version: 3.x Affected Puppet version: Keywords: puppetdb Branch: This feature is a pre-requisite for some of PuppetDB's new reports functionality (although we have some possible workarounds for the short term and for backwards compatibility). PuppetDB stores catalogs from Puppet via storeconfigs / the puppetdb catalog indirector terminus. They are delivered via a request to the PuppetDB REST API. We're working on a new REST endpoint for storing reports. This data will be delivered to PuppetDB via a separate HTTP request. In order to implement some of the current and planned features, we need a way to correlate between a report and the catalog. There does not appear to be any data in the current reports that would allow us to definitively determine which catalog it is related to. There are some ways that we can "guess" based on timestamp, configuration_version, etc.; but ideally we would have some unique identifier that was included as a data point in both requests. In PuppetDB we have a function called `catalog-similarity-hash` that generates a sha1 checksum based on all of the contents of the catalog--giving you a reasonably unique identifier for a catalog. We should probably move this logic into puppet core and then have Puppet include it in all of the relevant places (including reports). (It's possible that the puppetdb termini could be hacked to "cache" this hash data to a file or something, which would give us the capability to include this data in our HTTP requests before Puppet officially supports it. But longer-term it seems like this should definitely be happening in puppet itself.) -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
