build-stx-images.sh retry mechanism broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Don Penney |
Bug Description
Brief Description
-----------------
The retry mechanism used by build-stx-
https:/
The "let -i" syntax is not supported. While -i is valid for "declare" and "local", it is not for "let". If a $i variable is defined when "let -i" is used, it tries to use the $i value.
A recent update to build-stx-images.sh added a function that used "i" as a variable in a loop, but did not define it as a "local".
https:/
As a result, the last value assigned to i bleeds over into the with_retries calls, and we see errors like:
/home/localdisk
As a result, the "attempt" variable in with_retries is never incremented.
If an error occurs that would have caused a retry, it results in infinite retries because the counter is never incremented.
Severity
--------
Major
Reproducibility
---------------
Reproducible
Branch/Pull Time/Commit
-------
master, as of July 29, 2020
Test Activity
-------------
Build
Changed in starlingx: | |
assignee: | nobody → Don Penney (dpenney) |
tags: | added: stx.build |
Fix proposed to branch: master /review. opendev. org/745699
Review: https:/