stx 6.0: docker image build errors 2022-11-03

Bug #1995630 reported by Davlet Panech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Davlet Panech

Bug Description

Brief Description
-----------------
Docker images based on CentOS 8 no longer compile. It looks like upstream CentOS 8 repos have been moved to vault:

stx-fm-trap-subagent
stx-mariadb
stx-snmp

Severity
--------
Major

Steps to Reproduce
------------------
Try to build docker images

Expected Behavior
------------------
Build succeeds

Actual Behavior
----------------
Build fails

Reproducibility
---------------
Reproducible

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

Branch/Pull Time/Commit
-----------------------
stx.6.0/2022-11-03

Last Pass
---------
stx.6.0/2022-01-13

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

21:45:29 Building stx-fm-trap-subagent
21:45:29 Running: docker build /localdisk/designer/jenkins/rc-6.0-containers/cgcs-root/stx/snmp-armada-app/stx-snmp-helm/centos/docker/stx-fm-trap-subagent --no-cache --file /localdisk/designer/jenkins/rc-6.0-containers/cgcs-root/stx/snmp-armada-app/stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile --build-arg BASE=docker.io/starlingx/stx-centos:rc-6.0-stable-20221102T231513Z --tag jenkins/stx-fm-trap-subagent:rc-6.0-centos-stable-build
21:45:32 Sending build context to Docker daemon 75.26kB

21:45:32 Step 1/16 : FROM centos:8 AS builder
21:45:32 ---> 5d0da3dc9764
21:45:32 Step 2/16 : RUN yum -y update && yum upgrade
21:45:32 ---> Running in 4870c884886d
21:45:42 CentOS Linux 8 - AppStream 523 B/s | 38 B 00:00
21:45:42 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
21:45:42 The command '/bin/sh -c yum -y update && yum upgrade' returned a non-zero code: 1
21:45:42 Command (docker) failed, attempt 1 of 5.
21:45:42 Waiting 5 seconds before retrying...
21:45:47 Running: docker build /localdisk/designer/jenkins/rc-6.0-containers/cgcs-root/stx/snmp-armada-app/stx-snmp-helm/centos/docker/stx-fm-trap-subagent --no-cache --file /localdisk/designer/jenkins/rc-6.0-containers/cgcs-root/stx/snmp-armada-app/stx-snmp-helm/centos/docker/stx-fm-trap-subagent/Dockerfile --build-arg BASE=docker.io/starlingx/stx-centos:rc-6.0-stable-20221102T231513Z --tag jenkins/stx-fm-trap-subagent:rc-6.0-centos-stable-build
21:45:48 Sending build context to Docker daemon 75.26kB

Test Activity
-------------
N/A

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

Revision history for this message
Davlet Panech (dpanech) wrote :

Update:
=======

1) These images fail due to CentOS 8 repos having been moved to vault. Already fixed in 7.0.

stx-fm-trap-subagent
stx-snmp

2) mariadb fails for a different reason. It references package repository URL that appears to have been removed: https://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu:

20:58:16 Building stx-mariadb
20:58:16 Running: docker build /localdisk/designer/jenkins/rc-6.0-containers/cgcs-root/stx/integ/database/mariadb/centos/docker --no-cache --file /localdisk/designer/jenkins/rc-6.0-containers/cgcs-root/stx/integ/database/mariadb/centos/docker/Dockerfile --build-arg BASE=docker.io/starlingx/stx-centos:rc-6.0-stable-20221102T231513Z --tag jenkins/stx-mariadb:rc-6.0-centos-stable-build
20:58:16 Sending build context to Docker daemon 2.048kB

20:58:17 Step 1/3 : FROM openstackhelm/mariadb:10.2.18
20:58:17 ---> ad585bf77f99
20:58:17 Step 2/3 : RUN apt-get update && apt-get install -y galera-arbitrator-3
20:58:18 ---> Running in 688c0cea97ab
[...]
0:58:27 Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1554 kB]
20:58:30 Reading package lists...
20:58:31 E: The repository 'http://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu bionic Release' does not have a Release file.
20:58:31 The command '/bin/sh -c apt-get update && apt-get install -y galera-arbitrator-3' returned a non-zero code: 100

summary: - stx 6.0: can't build docker images based on CentOS 8
+ stx 6.0: docker image build errors 2022-11-03
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to snmp-armada-app (r/stx.6.0)

Fix proposed to branch: r/stx.6.0
Review: https://review.opendev.org/c/starlingx/snmp-armada-app/+/863550

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to integ (r/stx.6.0)

Fix proposed to branch: r/stx.6.0
Review: https://review.opendev.org/c/starlingx/integ/+/863551

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: r/stx.6.0
Review: https://review.opendev.org/c/starlingx/integ/+/863552

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to integ (r/stx.6.0)

Reviewed: https://review.opendev.org/c/starlingx/integ/+/863552
Committed: https://opendev.org/starlingx/integ/commit/f7f09b97ad77267bd25384cf91862ff81b7bd407
Submitter: "Zuul (22348)"
Branch: r/stx.6.0

commit f7f09b97ad77267bd25384cf91862ff81b7bd407
Author: Davlet Panech <email address hidden>
Date: Thu Nov 3 15:15:35 2022 -0400

    Fix tox indentation error

    Partial-Bug: 1995630

    Signed-off-by: Davlet Panech <email address hidden>
    Change-Id: I0703c5405e945c98765a122c4ff8b355996e78a9

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/starlingx/integ/+/863551
Committed: https://opendev.org/starlingx/integ/commit/0d67b6dfe203995ce534bc47a6d74faa230b4de1
Submitter: "Zuul (22348)"
Branch: r/stx.6.0

commit 0d67b6dfe203995ce534bc47a6d74faa230b4de1
Author: Al Bailey <email address hidden>
Date: Thu Aug 18 13:39:29 2022 +0000

    Fix the stx-mariadb docker build errors

    When building the docker image, the apt-get update fails
    due to:
       /etc/apt/sources.list.d/mariadb.list
    which contains a repo that no longer exists
      http://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu

    To get the docker build to work, that repo needs to
    be removed prior to running the 'update'

    Closes-Bug: 1995630
    Signed-off-by: Al Bailey <email address hidden>
    Change-Id: Ibbb449755717a5dec28deebeb753dc8e993eacb9
    (cherry picked from commit df777c46ba1cb0c9d4d3ed7cbd855d12de2168c8)
    (cherry picked from commit 4414d4534a9ed58ffa7a6152f9fdf4c350747661)
    Signed-off-by: Davlet Panech <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to snmp-armada-app (r/stx.6.0)

Reviewed: https://review.opendev.org/c/starlingx/snmp-armada-app/+/863550
Committed: https://opendev.org/starlingx/snmp-armada-app/commit/edc8f343d6b5fb02353c35a63b031d26f165f09e
Submitter: "Zuul (22348)"
Branch: r/stx.6.0

commit edc8f343d6b5fb02353c35a63b031d26f165f09e
Author: Scott Little <email address hidden>
Date: Thu Feb 3 11:34:02 2022 -0500

    fix yum urls for vaulted CentOS 8

    CentOS 8 has been vaulted. We need to fix the yum urls
    to continue to use it.

    A longer term fix is to migrate to a new/different base image,
    but is outside the scope of this fix which only addresses
    broken builds.

    Partial-Bug: 1995630
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: Id8b32ee27a65f74c616b07e37f8f5f2914176264
    (cherry picked from commit 9ac9f7878b5d9a9ddf88e5c1fb824bc5e57911c0)
    Signed-off-by: Davlet Panech <email address hidden>

Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
tags: added: in-r-st60 stx.6.0 stx.build
Changed in starlingx:
assignee: nobody → Davlet Panech (dpanech)
status: New → Fix Released
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Manually marking as Fix Released since LPs are only updated automatically when a fix is merged in the active branch, but not in the release branches.

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.