Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Tony Vu assigned an issue to Tony Vu Puppet / PUP-11654 Make unchanged events in report optional Change By: Tony Vu Assignee: Tony Vu Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.52869.1666808400051%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper In order to reduce potentially unnecessary network traffic and data that may be unused, Puppet should optionally allow the unchanged resource statuses and their events to not be serialized when the reports are generated:[https://github.com/puppetlabs/puppet/blob/948a4bec67def5244595a6f69976a9a2479f1df1/lib/puppet/transaction/report.rb#L326]*Details*The report contains an array of resource statuses {{Puppet::Resource::Status}}The status contains the result of managing a single resource {{Puppet::Type::}}There may be 0 or more events {{Puppet::Transaction::Event}} per resource status.Each event captures the current and desired values for each property, e.g. if puppet changes the {{owner}} property for the {{file}} type, then the event will contain the old and new values.Here's an example entry from the report in YAML:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.002537417tags:- file- classtime: '2022-10-18T22:49:58.301897873+00:00'failed: falsefailed_to_restart: falsechanged: trueout_of_sync: trueskipped: falsechange_count: 2out_of_sync_count: 2events:- audited: false property: owner previous_value: 52 desired_value: 0 historical_value: message: owner changed 'puppet' to 'root' name: owner_changed status: success time: '2022-10-18T22:49:58.302133825+00:00' redacted: corrective_change: false- audited: false property: group previous_value: 52 desired_value: 0 historical_value: message: group changed 'puppet' to 'root' name: group_changed status: success time: '2022-10-18T22:49:58.303239684+00:00' redacted: corrective_change: falsecorrective_change: false{code}When the same file is "insync", then the report contains:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.000237233tags:- file- classtime: '2022-10-18T22:57:32.999773271+00:00'failed: falsefailed_to_restart: falsechanged: falseout_of_sync: falseskipped: falsechange_count: 0out_of_sync_count: 0events: []corrective_change: false{code}I believe the {{Puppet::Resource::Status#out_of_sync?}} method can be used to filter which statuses to include/exclude. If it returns {{{}false{}}}, then no changes were necessary.For this ticket:1. Create a boolean puppet setting to exclude unchanged resources
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Morgan Rhodes updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Morgan Rhodes Labels: needs-validation Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.50224.1666287900076%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Morgan Rhodes updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Morgan Rhodes Sprint: Phoenix 2022-11-09 Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.50223.1666287840099%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Morgan Rhodes updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Morgan Rhodes Story Points: 2 Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.50222.1666287840046%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Jonathan Newman updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Jonathan Newman Epic Link: PE-34575 Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.49248.1666195320040%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper In order to reduce potentially unnecessary network traffic and data that may be unused, Puppet should optionally allow the unchanged resource statuses and their events to not be serialized when the reports are generated:[https://github.com/puppetlabs/puppet/blob/948a4bec67def5244595a6f69976a9a2479f1df1/lib/puppet/transaction/report.rb#L326]*Details*The report contains an array of resource statuses {{Puppet::Resource::Status}}The status contains the result of managing a single resource {{Puppet::Type::}}There may be 0 or more events {{Puppet::Transaction::Event}} per resource status.Each event captures the current and desired values for each property, e.g. if puppet changes the {{owner}} property for the {{file}} type, then the event will contain the old and new values.Here's an example entry from the report in YAML:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.002537417tags:- file- classtime: '2022-10-18T22:49:58.301897873+00:00'failed: falsefailed_to_restart: falsechanged: trueout_of_sync: trueskipped: falsechange_count: 2out_of_sync_count: 2events:- audited: false property: owner previous_value: 52 desired_value: 0 historical_value: message: owner changed 'puppet' to 'root' name: owner_changed status: success time: '2022-10-18T22:49:58.302133825+00:00' redacted: corrective_change: false- audited: false property: group previous_value: 52 desired_value: 0 historical_value: message: group changed 'puppet' to 'root' name: group_changed status: success time: '2022-10-18T22:49:58.303239684+00:00' redacted: corrective_change: falsecorrective_change: false{code}When the same file is "insync", then the report contains:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.000237233tags:- file- classtime: '2022-10-18T22:57:32.999773271+00:00'failed: falsefailed_to_restart: falsechanged: falseout_of_sync: falseskipped: falsechange_count: 0out_of_sync_count: 0events: []corrective_change: false{code}I believe the {{Puppet::Resource::Status#out_of_sync?}} method can be used to filter which statuses to include/exclude. If it results returns {{{}false{}}}, then no changes were necessary.For this ticket:1. Create a boolean puppet setting to exclude unchanged
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper Labels: needs-validation Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.49006.1666136040054%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper In order to reduce potentially unnecessary network traffic and data that may be unused, Puppet should optionally allow the unchanged resource statuses and their events to not be serialized when the reports are generated: [ https://github.com/puppetlabs/puppet/blob/948a4bec67def5244595a6f69976a9a2479f1df1/lib/puppet/transaction/report.rb#L326 ] *Details*The report contains an array of resource statuses {{Puppet::Resource::Status}}The status contains the result of managing a single resource {{Puppet::Type::}}There may be 0 or more events {{Puppet::Transaction::Event}} per resource status.Each event captures the current and desired values for each property, e.g. if puppet changes the {{owner}} property for the {{file}} type, then the event will contain the old and new values.Here's an example entry from the report in YAML: {code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.002537417tags:- file- classtime: '2022-10-18T22:49:58.301897873+00:00'failed: falsefailed_to_restart: falsechanged: trueout_of_sync: trueskipped: falsechange_count: 2out_of_sync_count: 2events:- audited: false property: owner previous_value: 52 desired_value: 0 historical_value: message: owner changed 'puppet' to 'root' name: owner_changed status: success time: '2022-10-18T22:49:58.302133825+00:00' redacted: corrective_change: false- audited: false property: group previous_value: 52 desired_value: 0 historical_value: message: group changed 'puppet' to 'root' name: group_changed status: success time: '2022-10-18T22:49:58.303239684+00:00' redacted: corrective_change: falsecorrective_change: false{code} When the same file is "insync", then the report contains: {code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.000237233tags:- file- classtime: '2022-10-18T22:57:32.999773271+00:00'failed: falsefailed_to_restart: falsechanged: falseout_of_sync: falseskipped: falsechange_count: 0out_of_sync_count: 0events: []corrective_change: false{code} I believe the {{Puppet::Resource::Status#out_of_sync?}} method can be used to filter which statuses to include/exclude. If it results {{ {} false { }} } , then no changes were necessary.For this ticket:1. Create a boolean puppet setting to exclude
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper In order to reduce potentially unnecessary network traffic and data that may be unused, Puppet should optionally allow the unchanged resource statuses and their events to not be serialized when the reports are generated:[https://github.com/puppetlabs/puppet/blob/948a4bec67def5244595a6f69976a9a2479f1df1/lib/puppet/transaction/report.rb#L326]*Details*The report contains an array of resource statuses {{Puppet::Resource::Status}}The status contains the result of managing a single resource {{Puppet::Type::}}There may be 0 or more events {{Puppet::Transaction::Event}} per resource status.Each event captures the current and desired values for each property, e.g. if puppet changes the {{owner}} property for the {{file}} type, then the event will contain the old and new values.Here's an example entry from the report in YAML:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.002537417tags:- file- classtime: '2022-10-18T22:49:58.301897873+00:00'failed: falsefailed_to_restart: falsechanged: trueout_of_sync: trueskipped: falsechange_count: 2out_of_sync_count: 2events:- audited: false property: owner previous_value: 52 desired_value: 0 historical_value: message: owner changed 'puppet' to 'root' name: owner_changed status: success time: '2022-10-18T22:49:58.302133825+00:00' redacted: corrective_change: false- audited: false property: group previous_value: 52 desired_value: 0 historical_value: message: group changed 'puppet' to 'root' name: group_changed status: success time: '2022-10-18T22:49:58.303239684+00:00' redacted: corrective_change: falsecorrective_change: false{code}When the same file is "insync", then the report contains:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.000237233tags:- file- classtime: '2022-10-18T22:57:32.999773271+00:00'failed: falsefailed_to_restart: falsechanged: falseout_of_sync: falseskipped: falsechange_count: 0out_of_sync_count: 0events: []corrective_change: false{code}I believe the {{Puppet::Resource::Status#out_of_sync?}} method can be used to filter which statuses to include/exclude. If it results {{{}false{}}}, then no changes were necessary.For this ticket:1. Create a boolean puppet setting to exclude unchanged resources
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper In order to reduce potentially unnecessary network traffic and data that may be unused, Puppet should optionally allow the unchanged resource statuses and their events to not be serialized when the reports are generated:https://github.com/puppetlabs/puppet/blob/948a4bec67def5244595a6f69976a9a2479f1df1/lib/puppet/transaction/report.rb#L326 *Details*The report contains an array of resource statuses {{Puppet::Resource::Status}}The status contains the result of managing a single resource {{Puppet::Type::}}There may be 0 or more events {{Puppet::Transaction::Event}} per resource status.Each event captures the current and desired values for each property, e.g. if puppet changes the {{owner}} property for the {{file}} type, then the event will contain the old and new values.Here's an example entry from the report in YAML:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.002537417tags:- file- classtime: '2022-10-18T22:49:58.301897873+00:00'failed: falsefailed_to_restart: falsechanged: trueout_of_sync: trueskipped: falsechange_count: 2out_of_sync_count: 2events:- audited: false property: owner previous_value: 52 desired_value: 0 historical_value: message: owner changed 'puppet' to 'root' name: owner_changed status: success time: '2022-10-18T22:49:58.302133825+00:00' redacted: corrective_change: false- audited: false property: group previous_value: 52 desired_value: 0 historical_value: message: group changed 'puppet' to 'root' name: group_changed status: success time: '2022-10-18T22:49:58.303239684+00:00' redacted: corrective_change: falsecorrective_change: false{code}When the same file is "insync", then the report contains:{code:yaml} File[/tmp/file]:title: "/tmp/file"file: "/etc/puppetlabs/code/environments/production/manifests/site.pp"line: 2resource: File[/tmp/file]resource_type: Fileprovider_used: posixcontainment_path:- Stage[main]- Main- File[/tmp/file]evaluation_time: 0.000237233tags:- file- classtime: '2022-10-18T22:57:32.999773271+00:00'failed: falsefailed_to_restart: falsechanged: falseout_of_sync: falseskipped: falsechange_count: 0out_of_sync_count: 0events: []corrective_change: false{code}I believe {{Puppet::Resource::Status#out_of_sync?}} method can be used to filter which statuses to include/exclude. If it results {{false}}, then no changes were necessary.For this ticket:1. Create a boolean puppet setting to exclude unchanged resources statuses and
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper Fix Version/s: PUP 7.21.0 Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.48862.1666120860133%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Josh Cooper updated an issue Puppet / PUP-11654 Make unchanged events in report optional Change By: Josh Cooper Team: Phoenix Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.48863.1666120860181%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Jonathan Newman commented on PUP-11654 Re: Make unchanged events in report optional Micah Wilson David Piekny Josh Cooper FYI. Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.471176.1665698711000.46437.1665698940031%40Atlassian.JIRA.
Jira (PUP-11654) Make unchanged events in report optional
Title: Message Title Jonathan Newman created an issue Puppet / PUP-11654 Make unchanged events in report optional Issue Type: New Feature Assignee: Unassigned Created: 2022/10/13 3:05 PM Priority: Normal Reporter: Jonathan Newman In order to reduce potentially unnecessary network traffic and data that may be unused, Puppet should optionally allow the unchanged resource events to not be serialized when the reports are generated: https://github.com/puppetlabs/puppet/blob/948a4bec67def5244595a6f69976a9a2479f1df1/lib/puppet/transaction/report.rb#L326 Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)