Jira (PUP-11694) file resource timeout fetching over https

6 views
Skip to first unread message

Pat Riehecky (Jira)

unread,
Dec 22, 2022, 11:47:03 AM12/22/22
to puppe...@googlegroups.com
Pat Riehecky created an issue
 
Puppet / Bug PUP-11694
file resource timeout fetching over https
Issue Type: Bug Bug
Affects Versions: PUP 7.20.0
Assignee: Unassigned
Components: Types and Providers
Created: 2022/12/22 8:46 AM
Priority: Normal Normal
Reporter: Pat Riehecky

Puppet Version: 7.20
Puppet Server Version: 7.20
OS Name/Version: AlmaLinux 9

When fetching a resource over https, it is possible to reach a 60 second timeout canceling the fetch.  This can be an intermittent problem if an overloaded webserver is hit by multiple clients at time or the link is temporarily congested.

Desired Behavior:

A way increase the timeout

Actual Behavior:
file { "${esp_dir}/${efi_rescue_dir}/images/${stage2_name}": ensure => 'file', source => 'https://linux-mirrors.fnal.gov/linux/almalinux/9/BaseOS/x86_64/kickstart/images/install.img',
}
 

Examples:
Run puppet agent with --test --trace --debug

 

Error: Request to https://linux-mirrors.fnal.gov/linux/almalinux/9/BaseOS/x86_64/kickstart/images/install.img interrupted after 61.723 seconds
Error: /Stage[main]/Efi_rescue/File[/boot/efi/rescue/images/install.img]/ensure: change from 'absent' to 'file' failed: Request to https://linux-mirrors.fnal.gov/linux/almalinux/9/BaseOS/x86_64/kickstart/images/install.img interrupted after 61.723 seconds

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
Jan 3, 2023, 4:26:03 PM1/3/23
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-11694
 
Re: file resource timeout fetching over https

Pat Riehecky you can set http connect and read timeouts for the agent (globally), see the configuration reference. Alternatively, you may want to use the puppet/archive module and pass curl options to retry, etc. But we don't have plans on adding http timeouts to the file type so I'm going to close this.

Reply all
Reply to author
Forward
0 new messages