Jira (PDB-4985) Querying for trusted on the inventory endpoint doesn't hit the index
Title: Message Title Adrian Parreiras Horta updated an issue PuppetDB / PDB-4985 Querying for trusted on the inventory endpoint doesn't hit the index Change By: Adrian Parreiras Horta Attachment: trusted_explain.txt Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- 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.380554.1607543476000.103646.1608223440045%40Atlassian.JIRA.
Jira (PDB-4832) Partitioned reports table can result in slower PDB queries
Title: Message Title Adrian Parreiras Horta created an issue PuppetDB / PDB-4832 Partitioned reports table can result in slower PDB queries Issue Type: Bug Assignee: Unassigned Created: 2020/07/28 4:18 PM Priority: Major Reporter: Adrian Parreiras Horta Particularly with the PE Console, the newly partitioned reports table can result in slower queries compared to previous versions, possibly because of the removal of this index. For an example, see this explain plan where it has to sequence scan 13 million rows to populate part of the "Status" page. Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Jira (PUP-10477) Remove non-local return from agent.rb
Title: Message Title Adrian Parreiras Horta commented on PUP-10477 Re: Remove non-local return from agent.rb For posterity, this fixes these kind of forking errors when managing the state of the agent service using a `service` resource: Jun 25 15:41:37 pe-201970-compile puppet-agent[9133]: Run of Puppet configuration client already in progress; skipping (/opt/puppetlabs/puppet/cache/state/agent_catalog_run.lock exists) Jun 25 15:41:37 pe-201970-compile puppet: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:94:in `fork': unexpected return Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- 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.
Jira (BOLT-1525) Add zypper implementation to package task
Title: Message Title Adrian Parreiras Horta commented on BOLT-1525 Re: Add zypper implementation to package task I couldn't fill out the correct release version since we switched to github issues, but it was 1.36.0 Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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.322358.1566923951000.54496.1575493740117%40Atlassian.JIRA.
Jira (BOLT-1525) Add zypper implementation to package task
Title: Message Title Adrian Parreiras Horta commented on BOLT-1525 Re: Add zypper implementation to package task This was merged a couple months ago, closing. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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.322358.1566923951000.54474.1575493080605%40Atlassian.JIRA.
Jira (PUP-10017) Collapse dependency failures into Class level failures
Title: Message Title Adrian Parreiras Horta created an issue Puppet / PUP-10017 Collapse dependency failures into Class level failures Issue Type: Improvement Affects Versions: PUP 6.7.2 Assignee: Unassigned Components: Catalog Application Created: 2019/09/11 9:46 AM Priority: Normal Reporter: Adrian Parreiras Horta When a Class has a failed dependency, every individual resource in the class generates a notice level message about the dependency failure and a warning level message about skipping the resource, as well as a skip event in the report. This can generate a large number of messages and a large report if there are many dependencies, or multiple layers of dependencies. If possible, all of the skipped resources should be collapsed into the containing class and the messages and skip event should be done at the class level. It looks like the most recent work on this was done in PUP-3930 and commit 32e2bf2. Add Comment
Jira (BOLT-1525) Add zypper implementation to package task
Title: Message Title Adrian Parreiras Horta commented on BOLT-1525 Re: Add zypper implementation to package task PR here https://github.com/puppetlabs/puppetlabs-package/pull/143 Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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.322358.1566923951000.74293.1566924180240%40Atlassian.JIRA.
Jira (BOLT-1525) Add zypper implementation to package task
Title: Message Title Adrian Parreiras Horta created an issue Puppet Task Runner / BOLT-1525 Add zypper implementation to package task Issue Type: Improvement Assignee: Adrian Parreiras Horta Created: 2019/08/27 9:39 AM Priority: Normal Reporter: Adrian Parreiras Horta Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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
Jira (PUP-8639) need seamless way to replace expiring CA certificate
Title: Message Title Adrian Parreiras Horta commented on PUP-8639 Re: need seamless way to replace expiring CA certificate FYI: https://github.com/m0dular/ca_extend/issues/2 Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-1158) Publish bash helper library
Title: Message Title Adrian Parreiras Horta commented on BOLT-1158 Re: Publish bash helper library Here's the `common.sh` I find myself using in tasks at the moment. Attaching since Jira likes to ruin formatting. The `fail` function is a bit different from the one going into puppetlabs-service. It makes $1 the key of the object, the idea being the step that failed can be identified. Something like fail "install_foo" "it no work" 1 Produces: "install_foo": { "status": "error", "message": "it no work" } With an exit code of 1. I really like the indirection since you don't have to keep doing things like name=$PT_name, it just makes them available to you by sourcing the script. The trap and cleanup function would be nice, but I don't think it works as is. Add Comment
Jira (BOLT-1158) Publish bash helper library
Title: Message Title Adrian Parreiras Horta updated an issue Puppet Task Runner / BOLT-1158 Publish bash helper library Change By: Adrian Parreiras Horta Attachment: common.sh Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-1158) Publish bash helper library
Title: Message Title Adrian Parreiras Horta updated an issue Puppet Task Runner / BOLT-1158 Publish bash helper library Change By: Adrian Parreiras Horta Attachment: common.sh Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (BOLT-1158) Publish bash helper library
Title: Message Title Adrian Parreiras Horta updated an issue Puppet Task Runner / BOLT-1158 Publish bash helper library Change By: Adrian Parreiras Horta Attachment: common.sh Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PDB-4269) Integer comparisons in PQL can overflow the Java int type
Title: Message Title Adrian Parreiras Horta created an issue PuppetDB / PDB-4269 Integer comparisons in PQL can overflow the Java int type Issue Type: Bug Assignee: Unassigned Created: 2019/02/19 1:42 PM Labels: maintenance Priority: Normal Reporter: Adrian Parreiras Horta In the entity part of a PQL query, it is possible to use a value that overflows an unsigned Java int, specifically 2,147,483,647. For example: puppet query 'fact_contents[] {path ~> ["mountpoints", "/", "available_bytes"] and value < 2147483648}' Error response 400 Bad Request from server: For input string: "2147483648" Turning on debug level logging will reveal an exception in puppetdb.log java.lang.NumberFormatException: For input string: "2147483648"
Jira (BOLT-1104) Linux implementation of the package task returns incorrect status output
Title: Message Title Adrian Parreiras Horta created an issue Puppet Task Runner / BOLT-1104 Linux implementation of the package task returns incorrect status output Issue Type: Bug Assignee: Adrian Parreiras Horta Created: 2019/01/25 4:38 PM Priority: Normal Reporter: Adrian Parreiras Horta Currently, this implementation returns “$name $action” as the status output, instead of the status of the actual command. adrian@Riven:~/repos/puppet/puppetlabs-service$ bolt task run package action="" name=vim --nodes pe-201901-agent --run-as root Started on pe-201901-agent... Finished on pe-201901-agent: { "status": "vim install" }
Jira (BOLT-1103) Linux implementation of the service task returns incorrect status output
Title: Message Title Adrian Parreiras Horta created an issue Puppet Task Runner / BOLT-1103 Linux implementation of the service task returns incorrect status output Issue Type: Bug Assignee: Adrian Parreiras Horta Created: 2019/01/25 1:05 PM Priority: Normal Reporter: Adrian Parreiras Horta Currently, this implementation returns “$name $action” as the status output, instead of the status of the actual command. $ bolt task run service --nodes pe-2019 action="" name=sshd Started on pe-201901-master... Started on pe-201901-agent... Started on pe-201901-compile... Finished on pe-201901-agent: {
Jira (PUP-9307) Account for trailing slashes in mount resourcetitles
Title: Message Title Adrian Parreiras Horta assigned an issue to Adrian Parreiras Horta Puppet / PUP-9307 Account for trailing slashes in mount resource titles Change By: Adrian Parreiras Horta Assignee: Adrian Parreiras Horta Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-9307) Account for trailing slashes in mount resource titles
Title: Message Title Adrian Parreiras Horta created an issue Puppet / PUP-9307 Account for trailing slashes in mount resource titles Issue Type: Bug Assignee: Unassigned Created: 2018/11/09 2:14 PM Labels: cspapercuts Priority: Minor Reporter: Adrian Parreiras Horta Consider the following example mount resource: mount {'/test/': ensure => mounted, fstype => "iso9660", device => "/root/vim.iso", options => "loop,ro", }
Jira (FACT-1380) Restore --timing option to native facter
Title: Message Title Adrian Parreiras Horta commented on FACT-1380 Re: Restore --timing option to native facter A hack using `jq` to get a list of the facts and time each one. One could probably substitute Python's json tool or something else. #!/bin/bash shopt -s nullglob facts=($(facter -p --json | jq -cr 'keys | .[]')) for f in "${facts[@]}"; do echo "${f}:" time facter -p "$f" &>/dev/null done