Jira (PDB-5001) PuppetDB Cli pupept-query command not respecting https_proxy environment variable

12 views
Skip to first unread message

Henry Wang (Jira)

unread,
Jan 21, 2021, 2:26:04 AM1/21/21
to puppe...@googlegroups.com
Henry Wang created an issue
 
PuppetDB / Bug PDB-5001
PuppetDB Cli pupept-query command not respecting https_proxy environment variable
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/01/20 11:25 PM
Priority: Normal Normal
Reporter: Henry Wang

puppet-query doesn't respect environmental https_proxy settings like the other CLI commands. also we didn't find a way to configure it through CLI conf file. This will stop users who have to run this query behind a proxy. Way to reproduce:

<without any proxy, both puppet-query & puppet-job can run>

 [root@puppetmom ~]# puppet-job show ID STATUS JOB TYPE TIMESTAMP TARGET --------------------------------------------------------------------------------------------- 537 finished puppet_agent::version 01/20/21 09:26:25 windowsagent.platform9.pupp... 536 finished puppet_agent::version 01/20/21 09:25:26 windowsagent.platform9.pupp... 535 finished puppet_agent::version 01/20/21 08:21:17 windowsagent.platform9.pupp...
 
[root@puppetmom ~]# puppet-query "nodes[certname] { }" [ { "certname": "centosagentfor75.platform9.puppet.net" }, { "certname": "cm-lb01.platform9.puppet.net"
...

Once a dummy https_proxy is set, puppet-job will fail but puppet-query is not impacted:

[root@puppetmom ~]# export https_proxy=socks5h://localhost:12345
[root@puppetmom ~]# puppet-job show
Request to 'https://puppetmom.platform9.puppet.net:8143/orchestrator/v1/jobs' failed: Couldn't connect to server
[root@puppetmom ~]#  puppet-query  "nodes[certname] { }"
[
  {
    "certname": "centosagentfor75.platform9.puppet.net"
  },
  {
    "certname": "puppetmom.platform9.puppet.net"

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Henry Wang (Jira)

unread,
Jan 21, 2021, 2:29:03 AM1/21/21
to puppe...@googlegroups.com
Henry Wang updated an issue
Change By: Henry Wang
puppet-query doesn't respect environmental https_proxy settings like the other CLI commands. also we didn't find a way to configure it through CLI conf file. This will stop users who have to run this query behind a proxy. Way to reproduce:

*<without any proxy, both puppet-query & puppet-job can run>*
{code:java}

[root@puppetmom ~]# puppet-job show
ID STATUS JOB TYPE TIMESTAMP TARGET
---------------------------------------------------------------------------------------------
537 finished puppet_agent::version 01/20/21 09:26:25 windowsagent.platform9.pupp...
536 finished puppet_agent::version 01/20/21 09:25:26 windowsagent.platform9.pupp...
535 finished puppet_agent::version 01/20/21 08:21:17 windowsagent.platform9.pupp...

[root@puppetmom ~]# puppet-query "nodes[certname] { }"

[
{
"certname": "centosagentfor75.platform9.puppet.net"
},
{
"certname": " cm-lb01 cd4pemom75 .platform9.puppet.net"
...{code}

Once a dummy https_proxy is set, puppet-job will fail but puppet-query is not impacted:
{code:java}
[root@puppetmom ~]# export https_proxy=socks5h://localhost:12345
[root@puppetmom ~]# puppet-job show
Request to 'https://puppetmom.platform9.puppet.net:8143/orchestrator/v1/jobs' failed: Couldn't connect to server
[root@puppetmom ~]#  puppet-query  "nodes[certname] { }"
[
  {
    "certname": "centosagentfor75.platform9.puppet.net"
  },
  {
    "certname": "puppetmom.platform9.puppet.net"{code}

zendesk.jira (Jira)

unread,
Jan 21, 2021, 2:31:03 AM1/21/21
to puppe...@googlegroups.com

zendesk.jira (Jira)

unread,
Jan 21, 2021, 2:31:04 AM1/21/21
to puppe...@googlegroups.com
zendesk.jira updated an issue
Change By: zendesk.jira
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 42799

Austin Blatt (Jira)

unread,
Jan 21, 2021, 2:17:03 PM1/21/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages