Project

General

Profile

Actions

Bug #36209

closed

tftp initrd/vmlinux generation: curl malformed

Added by Sebastian @ over 1 year ago. Updated over 1 year ago.


Description

Problem:
The TFTP copying of vmlinux and initrd fails with "url malformed".
The Target URL itself is validated muliple times with curl and wget manually, so the file is really downloadable. The source is an extracted OL8full ISO to /var/www/html/pub on the same foreman/katello host. Please see attached LOG File.

Expected outcome:
vmlinux and initrd are put into /var/lib/tftp/boot

Foreman and Proxy versions:
Foreman: 3.5.2
Katello: 4.7.3

Foreman and Proxy plugin versions:

Distribution and version:
OracleLinux 8.7

Other relevant data:

/var/log/foreman-proxy/proxy.log

2023-03-20T09:19:01 3543f6af [I] Finished POST /tftp/fetch_boot_file with 200 (0.67 ms)
2023-03-20T09:19:01 3543f6af [I] [1164514] Started task /usr/bin/curl\ --silent\ --show-error\ --connect-timeout\ 10\ --retry\ 3\ --retry-delay\ 10\ --max-time\ 3600\ --remote-time\ --time-cond\ file\ /var/lib/tftpboot/boot/oraclelinux-8-iso-local-7jET8gzdRF9B-vmlinuz\ --write-out\ Task\ done,\ result:\ \%\{http_code\},\ size\ downloaded:\ \%\{size_download\}b,\ speed:\ \%\{speed_download\}b/s,\ time:\ \%\{time_total\}ms\ --output\ /var/lib/tftpboot/boot/oraclelinux-8-iso-local-7jET8gzdRF9B-vmlinuz\ --location\ http://katello.test.tools/pub/OracleLinux8_ISO/BaseOS/images/pxeboot/vmlinuz
2023-03-20T09:19:01 3543f6af [I] Started POST /tftp/fetch_boot_file
2023-03-20T09:19:01 3543f6af [I] Finished POST /tftp/fetch_boot_file with 200 (1.68 ms)
2023-03-20T09:19:01 3543f6af [I] [1164518] Started task /usr/bin/curl\ --silent\ --show-error\ --connect-timeout\ 10\ --retry\ 3\ --retry-delay\ 10\ --max-time\ 3600\ --remote-time\ --time-cond\ file\ /var/lib/tftpboot/boot/oraclelinux-8-iso-local-7jET8gzdRF9B-initrd.img\ --write-out\ Task\ done,\ result:\ \%\{http_code\},\ size\ downloaded:\ \%\{size_download\}b,\ speed:\ \%\{speed_download\}b/s,\ time:\ \%\{time_total\}ms\ --output\ /var/lib/tftpboot/boot/oraclelinux-8-iso-local-7jET8gzdRF9B-initrd.img\ --location\ http://katello.test.tools/pub/OracleLinux8_ISO/BaseOS/images/pxeboot/initrd.img
2023-03-20T09:19:01 3543f6af [W] [1164514] curl: (3) <url> malformed
2023-03-20T09:19:02 3543f6af [W] [1164518] curl: (3) <url> malformed

I believe https://projects.theforeman.org/issues/36138 introduced a new bug. If i remove the "file" part from --time-cond the download works as before.

related forum discussion with further information: https://community.theforeman.org/t/curl-url-malformed-during-initrd-and-vmlinux-tftp-copy/32850


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Bug #36138: Invalid syntax for curl --time-condClosedLeos StejskalActions
Actions #1

Updated by Oliver Freyermuth over 1 year ago

  • Found in Releases 3.5.2, 3.6.0 added

I can also confirm that this is broken in 3.5.2 and 3.6.0, no new vmlinux / initrd can be downloaded anymore unless the patch is reverted.
I have added this comment to add the corresponding "Found in Releases" to highlight the affected versions, and I have also commented on https://projects.theforeman.org/issues/36138 linking to this report to increase visibility.

Actions #2

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/861 added
Actions #3

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Related to Bug #36138: Invalid syntax for curl --time-cond added
Actions #4

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Target version set to 3.6.1
  • Triaged changed from No to Yes

Thanks for reporting. For now I'm setting 3.6.1, but should also be included in 3.5.3.

Actions #5

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.7.0 added
Actions #6

Updated by The Foreman Bot over 1 year ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/smart-proxy/pull/862 added
Actions #7

Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/theforeman/smart-proxy/pull/863 added
Actions #8

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.6.1 added
Actions #9

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.5.3 added
Actions #10

Updated by Leos Stejskal over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF