stx-tools: yum fails in Docker with misleading error messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Davlet Panech |
Bug Description
Brief Description
-----------------
"yum install" in Dockerfile used by tb.sh sometimes fails with misleading error messages.
Severity
--------
Minor
Steps to Reproduce
------------------
./tb.sh create
It doesn't happen every time. In fact, I can't reproduce it with "tb.sh" specifically, but our automated build system uses the same docker file, which sometimes fails with "HTTPS 302" error.
I think the "HTTPS 302" error is displayed in place of the actual error that happens after the redirect, ie. the initial request returns 302, but the secondary HTTPS request returns something like status 501. Yet yum displays status 302 in this case. 302 means "redirection", which shouldn't fail at all.
Expected Behavior
------------------
"docker build" or "tb.sh create" succeeds.
Actual Behavior
----------------
yum install fails with "HTTPS Error 302 - Found"
Reproducibility
---------------
Intermittent
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
N/A
Last Pass
---------
N/A
Timestamp/Logs
--------------
docker build ...
...
Step 15/49 : RUN groupadd -g 751 cgts && echo "mock:x:751:root" >> /etc/group && echo "mockbuild:x:9001:" >> /etc/group && yum install -y anaconda anaconda-runtime autoconf-archive autogen automake bc bind bind-utils bison cpanminus createrepo createrepo_c deltarpm docker-client expat-devel flex isomd5sum gcc gettext git libguestfs-tools libtool libxml2 lighttpd lighttpd-fastcgi lighttpd-mod_geoip net-tools mkisofs http://
...
Dependencies Resolved
=======
Package Arch Version Repository Size
=======
Installing:
PyYAML x86_64 3.10-11.el7 centos-os 153 k
anaconda x86_64 21.48.22.
...
Install 55 Packages (+625 Dependent packages)
Total size: 569 M
Total download size: 568 M
Installed size: 1.7 G
Downloading packages:
No Presto metadata available for centos-os
[91mhttp:
[0m[91mTrying other mirror.
[0m[91mhttp:
Trying other mirror.
[0m[91mhttp:
Trying other mirror.
[0m[91mhttp:
Trying other mirror.
[0m[91m
Test Activity
-------------
Build
Workaround
----------
retry the build
CVE References
- 2016-10739
- 2017-6519
- 2018-10360
- 2018-1116
- 2018-1122
- 2018-12404
- 2018-1312
- 2018-13139
- 2018-14348
- 2018-14498
- 2018-15473
- 2018-17199
- 2018-18384
- 2018-19519
- 2018-4700
- 2018-5741
- 2018-5742
- 2018-5743
- 2018-8905
- 2019-0220
- 2019-10160
- 2019-10218
- 2019-11068
- 2019-11745
- 2019-12735
- 2019-13232
- 2019-13734
- 2019-16056
- 2019-17006
- 2019-3813
- 2019-3880
- 2019-5482
- 2019-6477
- 2019-9636
- 2019-9924
- 2019-9948
- 2020-0549
- 2020-10772
- 2020-10878
- 2020-12049
- 2020-12663
- 2020-5208
- 2020-6851
- 2020-8112
- 2020-8617
- 2021-26937
Changed in starlingx: | |
assignee: | nobody → Davlet Panech (dpanech) |
status: | New → In Progress |
tags: | added: stx.build |
Changed in starlingx: | |
importance: | Undecided → Low |
status: | Fix Committed → Opinion |
status: | Opinion → Fix Released |
Fix merged to starlingx/tools - master:
https:/ /review. opendev. org/c/starlingx /tools/ +/766966