Issue #5370 has been updated by Paul Berry. Status changed from Unreviewed to Available In Testing Branch Assignee set to Paul Berry
The problem turned out to be that puppet apply and Puppet agent use different code paths to run the transaction. In the code path for Puppet apply, we weren't passing the report to catalog.apply, and as a result catalog.apply was creating its own report to store metrics in; this report was then discarded. As a result, reports generated using "puppet apply" had no metrics, and the "--summarize" option didn't work at all. Fixed by modifying the "puppet apply" code path to pass the report to catalog.apply. In the future it would be nice to refactor the two code paths to be the same. Available in next as commit:a10deae8913f12935726da6944cad627e3277c52 ---------------------------------------- Bug #5370: puppet --summarize not working since 2.6 https://projects.puppetlabs.com/issues/5370 Author: Paul Berry Status: Available In Testing Branch Priority: Normal Assignee: Paul Berry Category: Target version: Affected Puppet version: Keywords: Branch: Using 0.25.x (ad386c2e5ce45ece3a7ac0965d155ab23fe32e23) I can do this: <pre> [0.25.x] ~/puppet_labs/puppet$ puppet -e 'file { "/tmp/foo": ensure => present }' --summarize --report notice: //File[/tmp/foo]/ensure: created Changes: Total: 1 Resources: Applied: 1 Out of sync: 1 Scheduled: 8 Total: 9 Time: Config retrieval: 0.14 File: 0.00 Filebucket: 0.00 Schedule: 0.00 Total: 0.14 </pre> But if I try the same using 2.6.x (53bb805f118ccaca5598e60afadfa6b777410a0f) I get nothing: <pre> [2.6.x] ~/puppet_labs/puppet$ puppet -e 'file { "/tmp/foo": ensure => present }' --summarize --report notice: /Stage[main]//File[/tmp/foo]/ensure: created </pre> The feature appears to be equally broken in next. -- 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.
