build-stx-base.sh and build-stx-images.sh need to accept a config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
zhipeng liu |
Bug Description
Brief Description
-----------------
Features like ussuri caused frequent build breakages.
One cause was the requirement to pass extra parameters to build-stx-base.sh and build-stx-
All the downstream effects could be avoided if these two commands accepted a config file
providing default arguments.
I propose the following:
- build-stx-base.sh and build-stx-images.sh need to accept a new argument (--config-file <path>) specifying a path to a config file. We can establish a well known location within the code repository for such config files. If the cengn scripts see that file, it will add a single EXTRA_ARGS+
- Alternatively these commands automatically look for the config files at the predetermined location, and apply them if found. If not found, continue without error. Perhaps add an optional new argument to suppress this behavior, or substitute an alternate config file.
- The config file needs to be able to specify additional arguments to be passed into the the command. e.g.
--repo
ussuri-ceph,http://
\
--repo
ussuri-wsgi,http://
Severity
--------
Provide the severity of the defect.
Major
- avoid build breakages in future
Steps to Reproduce
------------------
build-stx-base.sh
Expected Behavior
------------------
base image builds
Actual Behavior
----------------
Build fails unless extra --repo arguements are provided
Reproducibility
---------------
100%
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
Jun 30, 2020
Last Pass
---------
Jun 29, 2020
Timestamp/Logs
--------------
Error: Package: rh-python36-
Requires: libpython3.
Error: Package: rh-python36-
Requires: httpd24-httpd >= 2.4.6-23
Error: Package: rh-python36-
Requires: httpd24-httpd-mmn = 20120211x8664
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The command '/bin/sh -c set -ex ; sed -i '/\[main\]/ atimeout=120' /etc/yum.conf ; mv /stx.repo /etc/yum.repos.d/ ; yum upgrade --disablerepo=* ${REPO_OPTS} -y ; yum install --disablerepo=* ${REPO_OPTS} -y qemu-img openssh-clients python3 python3-pip python3-wheel rh-python36-
Test Activity
-------------
Build
Workaround
----------
Add extra arguments to build-stx-base.sh ...
--repo ussuri-ceph,http://
--repo ussuri-wsgi,http://
tags: | added: stx.build |
Changed in starlingx: | |
status: | Confirmed → In Progress |
Changed in starlingx: | |
status: | In Progress → Fix Committed |
tags: | added: in-r-stx40 |
Assigning to Zhipeng to make the suggested changes. As this is impacting workarounds on the CENGN build server, request is to source this in STX master and also to cherry pick to r/stx.4.0