Project

General

Profile

Bug #33469

TFTP Unable to download Flatcar OS

Added by ASOM Net 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
TFTP
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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

Associated revisions

Revision 0eaa01ad (diff)
Added by Lukas Zapletal 4 months ago

Fixes #33469 - current stream for Flatcar

History

#1 Updated by Lukas Zapletal 4 months 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!

#2 Updated by The Foreman Bot 4 months ago

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

#3 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.1.0 added

#4 Updated by Lukas Zapletal 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF