Jira (PUP-9942) no_proxy environment variable does not work

22 views
Skip to first unread message

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 6:06:03 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Puppet / Bug PUP-9942
no_proxy environment variable does not work
Change By: Josh Cooper
Sprint: Platform Core KANBAN
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 6:06:03 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper assigned an issue to Josh Cooper
Change By: Josh Cooper
Assignee: Josh Cooper

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 6:06:03 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper created an issue
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2019/08/07 3:05 PM
Priority: Normal Normal
Reporter: Josh Cooper

Commit 90560edf0f43f5382bd539646988f7a96ea3809e for PUP-4020 added the ability to skip an http proxy if the host and port matched an entry in the NO_PROXY environment variable. However it didn't actually work because our connection factory passed the Site object instead of a String or URI.

 

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 6:07:02 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Commit 90560edf0f43f5382bd539646988f7a96ea3809e for PUP- 4020 4030 added the ability to skip an http proxy if the host and port matched an entry in the {{NO_PROXY}} environment variable. However it didn't actually work because our connection factory passed the {{Site}} object instead of a String or URI.

 

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 6:28:02 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Commit 90560edf0f43f5382bd539646988f7a96ea3809e for PUP-4030 added the ability to skip an http proxy if the host and port matched an entry in the {{NO_PROXY}} environment variable. However it didn't actually work because our connection factory passed the {{Site}} object instead of a String or URI. To reproduce specify an unused http proxy port and try to not use a proxy for the puppet server:

{noformat}
$ env NO_PROXY=$(bundle exec puppet config print server --section main) bundle exec puppet agent -t --http_proxy_host localhost --http_proxy_port 12345
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Failed to open TCP connection to localhost:12345 (Connection refused - connect(2) for "localhost" port 12345)
Info: Retrieving pluginfacts
Error: /File[/Users/josh/.puppetlabs/opt/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to localhost:12345 (Connection refused - connect(2) for "localhost" port 12345)
Error: /File[/Users/josh/.puppetlabs/opt/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Failed to open TCP connection to localhost:12345 (Connection refused - connect(2) for "localhost" port 12345)
...
{noformat}

 

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 7:25:02 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 5.5.17

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 7:27:03 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes Summary: If the agent is configured to use an HTTP proxy and it attempts to connect to a host that matches an entry in the "NO_PROXY" environment variable, then puppet will not use the proxy, and instead connect directly to the host. This feature was originally introduced in PUP-4030, but it didn't work.

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 7:27:03 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Bug Fix

Josh Cooper (JIRA)

unread,
Aug 7, 2019, 7:28:02 PM8/7/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.8.0
Fix Version/s: PUP 6.4.4
Fix Version/s: PUP 6.0.11

Kris Bosland (JIRA)

unread,
Aug 7, 2019, 8:36:02 PM8/7/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Aug 12, 2019, 1:34:03 PM8/12/19
to puppe...@googlegroups.com

Jean Bond (JIRA)

unread,
Aug 19, 2019, 1:46:03 PM8/19/19
to puppe...@googlegroups.com
Jean Bond updated an issue
 
Change By: Jean Bond
Labels: resolved-issue-added

Josh Cooper (JIRA)

unread,
Sep 16, 2019, 2:58:03 PM9/16/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: PUP 6.0.11
Reply all
Reply to author
Forward
0 new messages