download_mirrors.sh: cengn urls are not validated before substitution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Scott Little |
Bug Description
Brief Description
-----------------
download_mirrors.sh by default substitutes urls with their cengn equivalent. If the user is trying to introduce a new repo, a CENGN mirror of the repo will not yet exist. The substituted url will be added to the yum configuration despite being invalid. All subsequent yumdownload attempts will fail.
Severity
--------
Provide the severity of the defect.
Major: Very difficult test changes or additions to the yum repos.
Steps to Reproduce
------------------
1) Add a new repo under stx-tools/
vault.
2) download_mirrors.sh
Expected Behavior
------------------
download_mirror can still download packages
Actual Behavior
----------------
All rpm repo package downloads fail.
Reproducibility
---------------
100%
System Configuration
-------
<N/A>
Branch/Pull Time/Commit
-------
master, 2019-04-12
Last Pass
---------
N/A
Timestamp/Logs
--------------
...
http://
Trying other mirror.
To address this issue please refer to the below knowledge base article
https:/
If above article doesn't help to resolve this issue please create a bug on https:/
One of the configured repositories failed (CENGN_CentOS-7 - OpenStack Stein - Source),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
or
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
failure: repodata/repomd.xml from CENGN_centos-
...
Test Activity
-------------
Build
Changed in starlingx: | |
assignee: | nobody → Scott Little (slittle1) |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.2.0 stx.build |
Fix proposed to branch: master /review. openstack. org/653057
Review: https:/