build-tools: debian: downloader sometimes leaves corrupted files behind
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Yue Tao |
Bug Description
Brief Description
-----------------
The script "downloader.py" sometimes leaves corrupted files behind. We observed a 0-length .tar.gz file, which caused a package build to fail. It looks like this is caused by "wget" when a connection to the server breaks in the middle of download, and yet "wget" reports success (ie returns 0 status).
Severity
--------
Major
Steps to Reproduce
------------------
Delete all downloads, then run the downlader.py script, then build the packages.
Expected Behavior
------------------
Packages build succeeds.
Actual Behavior
----------------
Sometimes package build fails due to a corrupted download.
Reproducibility
---------------
Seen once
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
master/2022-08-16
Last Pass
---------
Unknown
Timestamp/Logs
--------------
2022-08-17 00:44:15,749 - debrepack - INFO: [ Run - "tar -tzf /localdisk/
2022-08-17 00:44:15,759 - debrepack - INFO: [ Run - "tar -tzf /localdisk/
2022-08-17 00:44:15,770 - debrepack - INFO: [ Run - "tar -xzf /localdisk/
2022-08-17 00:44:15,780 - debrepack - ERROR: gzip: stdin: unexpected end of file
2022-08-17 00:44:15,780 - debrepack - ERROR: tar: Child returned status 1
2022-08-17 00:44:15,780 - debrepack - ERROR: tar: Error is not recoverable: exiting now
2022-08-17 00:44:15,781 - debrepack - ERROR: [ Failed - "tar -xzf /localdisk/
2022-08-17 00:44:15,781 - debcontroller - ERROR: [ Failed - "tar -xzf /localdisk/
2022-08-17 00:44:15,781 - debcontroller - ERROR: Failed to create needed dsc file, exit
2022-08-17 00:44:15,781 - debcontroller - INFO: Finished building packages in build_type std of layer distro
2022-08-17 00:44:16,034 - debcontroller - INFO: Start to build all packages in build_type rt of layer distro
Test Activity
-------------
N/A
Workaround
----------
Identify & delete the corrupted tarball in "mirrors/"; then re-run the downloader+build scripts
tags: | added: stx.8.0 stx.debian stx.distro.other |
Changed in starlingx: | |
importance: | Undecided → Medium |
assignee: | nobody → Yue Tao (wrytao) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /root/+ /854344
Review: https:/