Project

General

Profile

Actions

Bug #25708

closed

Always download newest bootloader (if possible)

Added by Arend Lapere about 6 years ago. Updated almost 6 years ago.

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

Description

In my specific case, each time CentOS has a newer version (in this case CentOS 7.6, but I had the exact same issue with 7.4 > 7.5), the kickstart image doesn't work with the install image. The only thing I can do, is delete the kickstart image and rebuild the machine. This is very re-active work.

I'd think that the Last-Modified or ETag header should be checked to see if there's a newer version of a (kickstart) image, and react based upon that information.

Expected:
CentOS repository is upgraded (externally), the smart-proxy checks if the stored kickstarter images is the same as what is available externally and downloads the latest greatest.

Actual results:
At some point in time, the kickstart image was downloaded from the CentOS repository and is used always as nothing really changes in foreman (no IDs that change, no URL that changes). This causes kickstart to fail, complaining about XFS being an unknown default FS; halting the installation there and then.

Work-around:
Removing the kickstart image allows smart-proxy to re-download the latest image from the CentOS repo and all works again.

Steps to quickly reproduce:
- Create a custom repo server
- Copy some images to it
- Create install media referring to repo server
- Create an OS and refer to that install media
- Build a host using that OS, watch how it downloads the image
- Overwrite the image to be something else
- Rebuild the host and observe how the file isn't changed (foreman wouldn't know this has changed so makes sense)

Keep in mind that this is "vanilla" foreman, so without Katello :-)


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #19389: Change TFTP filename pattern to include unique installation media IDClosedShimon ShteinActions
Related to Foreman - Refactor #25743: Improve help text for CentOS version scheme on OS edit pageClosedLukas ZapletalActions
Actions

Also available in: Atom PDF