Project

General

Profile

Actions

Bug #33469

closed

TFTP Unable to download Flatcar OS

Added by ASOM Net over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
TFTP
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi

I can't get foreman to download Flatcar since the download URL is wrong

I want to use "current" as Major Version, but it requires a number and max 5 characters.

Flatcar uses longer numbers and wants you to use "current" as default version, I tried with just putting "1" in but got this error

2021-09-13T11:52:51 8422632b [I] Started POST /tftp/fetch_boot_file
2021-09-13T11:52:51 8422632b [I] Finished POST /tftp/fetch_boot_file with 200 (0.94 ms)
2021-09-13T11:52:51 8422632b [I] [4017770] Started task ["/usr/bin/wget", "--connect-timeout=10", "--dns-timeout=10", "--read-timeout=60", "--tries=3", "--no-check-certificate", "-nv", "-c", "http://stable.release.flatcar-linux.net/amd64-usr/1/flatcar_production_pxe_image.cpio.gz", "-O", "/var/lib/tftpboot/boot/flatcar-mirror-b9cf0j4aWvIS-flatcar_production_pxe_image.cpio.gz"]
2021-09-13T11:52:51 8422632b [W] [4017770] http://stable.release.flatcar-linux.net/amd64-usr/1/flatcar_production_pxe_image.cpio.gz:

2021-09-13T11:52:51 8422632b [W] [4017770] 2021-09-13 11:52:51 ERROR 404: Not Found.

This is the corret download url
https://stable.release.flatcar-linux.net/amd64-usr/current/

but Foreman uses this one
https://stable.release.flatcar-linux.net/amd64-usr/[$version]/

https://projects.theforeman.org/projects/foreman/repository/revisions/develop/entry/app/models/operatingsystems/coreos.rb

Actions #1

Updated by Lukas Zapletal over 2 years ago

I am creating a small patch that will allow to enter 0.0 version that will render the URL to "current". Try it out and get back to me in the github PR, cheers!

Actions #2

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman/pull/8777 added
Actions #3

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases 3.1.0 added
Actions #4

Updated by Lukas Zapletal over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF