Jira (FACT-858) Fact ec2_user_data attempting to use proxy information when it shouldn't

5 views
Skip to first unread message

Dustin Franklin (JIRA)

unread,
Mar 16, 2015, 1:25:28 PM3/16/15
to puppe...@googlegroups.com
Dustin Franklin created an issue
 
Facter / Bug FACT-858
Fact ec2_user_data attempting to use proxy information when it shouldn't
Issue Type: Bug Bug
Assignee: Eric Sorenson
Created: 2015/03/16 10:25 AM
Priority: Normal Normal
Reporter: Dustin Franklin

In /lib/facter/ec2/rest.rb, Class Userdata < Base, def fetch, does not open the url with the proxy set to nil. So environments with a proxy set in a VM will cause this fact to fail after a timeout. Other ec2 facts will succeed as in fetch_endpoint, because the proxy is set to nill.

Line 125 should be:
open(@baseurl, :proxy => nil).read
instead of
open(@baseurl).read

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a)
Atlassian logo

Branan Riley (JIRA)

unread,
Mar 14, 2017, 10:43:02 PM3/14/17
to puppe...@googlegroups.com
Branan Riley commented on Bug FACT-858
 
Re: Fact ec2_user_data attempting to use proxy information when it shouldn't

It looks like we don't properly clear the proxy variables from the environment in Facter 3, so this might actually still be applicable (though the code is very different now)

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Maggie Dreyer (JIRA)

unread,
May 17, 2017, 1:07:07 PM5/17/17
to puppe...@googlegroups.com
Maggie Dreyer assigned an issue to Unassigned
 
Change By: Maggie Dreyer
Assignee: Eric Sorenson

Sean McDonald (JIRA)

unread,
May 17, 2017, 1:08:02 PM5/17/17
to puppe...@googlegroups.com

Sean McDonald (JIRA)

unread,
May 17, 2017, 1:08:03 PM5/17/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
Mar 21, 2018, 5:55:03 PM3/21/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: cloud ec2 needs_repro triaged
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 26, 2023, 5:07:02 PM4/26/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform OS Phoenix
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 26, 2023, 5:08:01 PM4/26/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
In /lib/facter/ec2/rest.rb, Class Userdata < Base, def fetch, does not open the url with the proxy set to nil.  So environments with a proxy set in a VM will cause this fact to fail after a timeout.  Other ec2 facts will succeed as in fetch_endpoint, because the proxy is set to nill.

Line 125 should be:
open(@baseurl, :proxy => nil).read
instead of
open(@baseurl).read


Pretty sure this is still an issue based on the output in FACT-636.

Josh Cooper (Jira)

unread,
Apr 26, 2023, 5:08:01 PM4/26/23
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages