Dockerfile no longer works - Centos 7.8 has moved to vault

Bug #1904785 reported by Scott Little
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Critical
Scott Little

Bug Description

Brief Description
-----------------
Current Dockerfile in tools.git specifies the wrong URL for centos 7.8.
Centos has relocated 7.8 from mirror.centos.org/centos/7.8.2003/
to vault.centos.org/centos/7.8.2003/

It is no longer possible to create new docker build environmnets

Severity
--------
Critical

Steps to Reproduce
------------------
tb.sh create

Expected Behavior
------------------
docker build env is created

Actual Behavior
----------------
command failes. Docker build env is not created.

Reproducibility
---------------
100%

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
Nov 18

Last Pass
---------
Nov 17

Timestamp/Logs
--------------

Step 10/45 : RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* && echo "http_caching=packages" >> /etc/yum.conf && echo "$CENTOS_7_8_URL" >/etc/yum/vars/centos_7_8_url && echo "$EPEL_7_8_URL" >/etc/yum/vars/epel_7_8_url && sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf && yum clean all && yum makecache && yum install -y deltarpm
 ---> Running in 19cedb672b91
Loaded plugins: ovl
Cleaning repos: centos-extras centos-os epel
Loaded plugins: ovl
http://mirror.centos.org/centos/7.8.2003/extras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

 One of the configured repositories failed (centos-extras),
 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
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=centos-extras ...

     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:

            yum-config-manager --disable centos-extras
        or
            subscription-manager repos --disable=centos-extras

     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:

            yum-config-manager --save --setopt=centos-extras.skip_if_unavailable=true

failure: repodata/repomd.xml from centos-extras: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7.8.2003/extras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Test Activity
-------------
Build

Workaround
----------
N/A

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (master)

Reviewed: https://review.opendev.org/763258
Committed: https://opendev.org/starlingx/tools/commit/ec588cd4088b9f7b7c57ab11fcdc3898bd0d1d4a
Submitter: Zuul
Branch: master

commit ec588cd4088b9f7b7c57ab11fcdc3898bd0d1d4a
Author: Scott Little <email address hidden>
Date: Wed Nov 18 15:22:16 2020 -0500

    Dockerfile: Centos 7.8 has moved to vault

    Centos 7.8 has relocated
    from mirror.centos.org/centos/7.8.2003/
    to vault.centos.org/centos/7.8.2003/ .

    This will cause 'tb.sh create' to fail.

    Pre-existing docker build environments should
    continue to work.

    This update adjusts the url within the dockerfile
    to reflect the new location.

    Closes-bug: 1904785
    Change-Id: I0f44ddfc0d126c738e5f570ea36e463720ccf6bf
    Signed-off-by: Scott Little <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.5.0 / critical - build failure

Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
tags: added: stx.5.0 stx.build
Changed in starlingx:
importance: Undecided → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.