Project

General

Profile

Actions

Feature #3034

open

TFTP file download should be synchronous and handle errors

Added by Dominic Cleal over 10 years ago. Updated about 5 years ago.

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

Description

The TFTP file download feature currently spawns wget in the background, so offers no tracking of progress or download errors.

It should perform downloads as a synchronous operation, which will allow us to report success or failure back to Foreman when provisioning hosts. Async downloads also mean that Foreman often boots VMs up too quickly, before the boot files have downloaded.

wget has another issue under failure, as it leaves a zero byte file in place which means we think downloads were a success.

Given the proxy's usually deployed on WEBrick, a synchronous download could tie up its resources, making it inaccessible to others though.


Related issues 7 (2 open5 closed)

Related to Foreman - Refactor #5121: Download kernel and image during OS creation rather than prior buildNew04/09/2014Actions
Related to Smart Proxy - Bug #6289: vmlinuz/initrd files corrupted during when multiple hosts created simultaneouslyClosed06/19/2014Actions
Related to Smart Proxy - Bug #16674: when downloading boot images, a failure does not fail the operation in the UIDuplicate09/23/2016Actions
Related to Smart Proxy - Bug #5069: TFTP automatic boot file download does not track updatesNew04/03/2014Actions
Related to Foreman - Feature #19389: Change TFTP filename pattern to include unique installation media IDClosedShimon ShteinActions
Has duplicate Smart Proxy - Bug #11067: Failing TFTP fetch filed doesn't trigger error in UIDuplicate07/09/2015Actions
Has duplicate Foreman - Bug #16609: race condition when using pxe icw virtual HW and a new OSDuplicate09/20/2016Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

  • Related to Refactor #5121: Download kernel and image during OS creation rather than prior build added
Actions #2

Updated by Dominic Cleal almost 10 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1110378

edit: moved to #6289

Actions #3

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #6289: vmlinuz/initrd files corrupted during when multiple hosts created simultaneously added
Actions #4

Updated by Dominic Cleal almost 10 years ago

  • Bugzilla link deleted (https://bugzilla.redhat.com/show_bug.cgi?id=1110378)
Actions #5

Updated by Lukas Zapletal over 9 years ago

For the record, RHOSP team hit this. We might want to speak about bumping up the priority of this.

Actions #6

Updated by Ohad Levy almost 9 years ago

  • Bugzilla link set to 1215588
Actions #7

Updated by Dominic Cleal almost 9 years ago

  • Has duplicate Bug #11067: Failing TFTP fetch filed doesn't trigger error in UI added
Actions #8

Updated by Dominic Cleal over 7 years ago

  • Has duplicate Bug #16609: race condition when using pxe icw virtual HW and a new OS added
Actions #9

Updated by Anonymous over 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Anonymous
Actions #10

Updated by Anonymous over 7 years ago

  • Related to Bug #16674: when downloading boot images, a failure does not fail the operation in the UI added
Actions #11

Updated by Lukas Zapletal over 7 years ago

When touching this code, consider downloading the files under different (temporary) names so we shorten the window when different host (not the one being blocked by the download) sees incorrect file (e.g. during upgrading to newer version).

Also I would like to keep the current (asynchronous) behavior in some way so it can be used when we implement #5121

I am currently working on an issue when file was downloaded incorrectly (error during transmission) and wget is not able to fix this anymore since it only compares timestamps. If you can take this into consideration when designing the new way of downloading.

Actions #12

Updated by The Foreman Bot over 7 years ago

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

Updated by Ivan Necas over 7 years ago

  • Target version set to 1.3.2
Actions #14

Updated by Anonymous over 7 years ago

  • Related to Bug #5069: TFTP automatic boot file download does not track updates added
Actions #15

Updated by Lukas Zapletal over 6 years ago

  • Related to Feature #19389: Change TFTP filename pattern to include unique installation media ID added
Actions #16

Updated by Lukas Zapletal almost 6 years ago

  • Bugzilla link changed from 1215588 to 1572592
  • Pull request deleted (https://github.com/theforeman/smart-proxy/pull/472)
Actions #17

Updated by Tomer Brisker over 5 years ago

  • Target version deleted (677)
Actions #18

Updated by Lukas Zapletal about 5 years ago

  • Status changed from Ready For Testing to New
  • Triaged set to Yes
  • Assignee deleted (Anonymous)
Actions

Also available in: Atom PDF