Project

General

Profile

Actions

Bug #33328

closed

Files in tftpboot/boot don't pick up changed files

Added by Gerald Vogt over 2 years ago. Updated over 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I have first described this in here: https://community.theforeman.org/t/loading-tftpboot-with-wget/24994

When a build is initiated for a host, the foreman proxy will retrieve the initrd and vmlinuz via wget commands like this:

2021-08-23T19:10:24 4e404324 [I] [55918] Started task ["/usr/bin/wget", "--connect-timeout=10", "--dns-timeout=10", "--read-timeout=60", "--tries=3", "--no-check-certificate", "-nv", "-c", "http://foreman.example.com/pulp/content/ORG/Production/centos8/custom/centos8/BaseOS_x86_64//images/pxeboot/vmlinuz", "-O", "/var/lib/tftpboot/boot/centos-8-base-2744-vmlinuz"]

Due to the "-c" option ("Continue getting a partially-downloaded file") it doesn't pick up on new files. If the vmlinuz is updated in the repository it will never pick up the new version. If the new file is larger the wget will pick up the bytes at the end, but that's it. It's still basically the original file with some garbage at the end.

The initrd and vmlinuz may not change often, but I guess there quite a few scenarios where it may happen: important bug fixes, CentOS 8 Stream rolling updates, minor version update from CentOS 8.3 to 8.4 if you are using the /8/ repository URLs.


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Bug #2412: Smartproxy TFTP using wget -c to pull new PXE defaults produces errors while bootingClosedLukas ZapletalActions
Actions #1

Updated by Lukas Zapletal over 2 years ago

We are aware of this bug, it's been there for years. #2412

There is a patch pending merging: https://github.com/theforeman/smart-proxy/pull/785

As a workaround, remove the "-c" flag from the source code. Or better, apply the patch and drop a comment on GH if it worked for you!

Actions #2

Updated by Lukas Zapletal over 2 years ago

  • Related to Bug #2412: Smartproxy TFTP using wget -c to pull new PXE defaults produces errors while booting added
Actions #3

Updated by Lukas Zapletal over 2 years ago

  • Status changed from New to Duplicate
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF