download_mirror.sh failure due to katacontainer

Bug #1998234 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
-----------------
download_mirror.sh fails to download anything during 'normal' usage.

StarlingX_3rd_katacontainer.repo now points to a repo that no longer exists.

'yum makecache' doesn't tolerate bad repos, at least as we use it.

All subsequent 'yumdownload -C ...' commands fail due to missing cache.

Severity
--------
Critical

Steps to Reproduce
------------------
download_mirror.sh

Expected Behavior
------------------
all required packages are downloaded

Actual Behavior
----------------
No packages are downloaded

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

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

Branch/Pull Time/Commit
-----------------------
Nov 29, 2022

Last Pass
---------
N/A

Timestamp/Logs
--------------
N/A

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

Workaround
----------
diff --git a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo
index 2fa55a6..6978ff0 100644
--- a/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo
+++ b/centos-mirror-tools/yum.repos.d/StarlingX_3rd_katacontainer.repo
@@ -4,4 +4,12 @@ type=rpm-md
 baseurl=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.11/CentOS_7/
 gpgcheck=1
 gpgkey=http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.11/CentOS_7/repodata/repomd.xml.key
+enabled=0
+
+[CENGN_katacontainers_releases_x86_64_stable-1.11]
+name=Branch project for Kata Containers branch stable-1.11 (CentOS_7)
+type=rpm-md
+baseurl=http://mirror.starlingx.cengn.ca/mirror/centos/download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/stable-1.11/CentOS_7/
+gpgcheck=0
+ enabled=1

Scott Little (slittle1)
Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/866071

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (r/stx.6.0)

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

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

Fix proposed to branch: r/stx.7.0
Review: https://review.opendev.org/c/starlingx/tools/+/866073

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

Reviewed: https://review.opendev.org/c/starlingx/tools/+/866073
Committed: https://opendev.org/starlingx/tools/commit/2df888be3841f53380eebd14c9d6446abf6e563b
Submitter: "Zuul (22348)"
Branch: r/stx.7.0

commit 2df888be3841f53380eebd14c9d6446abf6e563b
Author: Scott Little <email address hidden>
Date: Tue Nov 29 16:09:53 2022 -0500

    fix: download_mirror.sh failure due to katacontainer

    The upstream rpm repo for katacontainer no longer exists.
    Switch to our CENGN mirror copy.

    Partial-Bug: 1998234
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: Id16dd049a4fd2afc6a31db0cf27c183fc3111286

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

Reviewed: https://review.opendev.org/c/starlingx/tools/+/866072
Committed: https://opendev.org/starlingx/tools/commit/88aa1e619469bcf9ea382dd010465cbeced5942f
Submitter: "Zuul (22348)"
Branch: r/stx.6.0

commit 88aa1e619469bcf9ea382dd010465cbeced5942f
Author: Scott Little <email address hidden>
Date: Tue Nov 29 16:05:14 2022 -0500

    fix: download_mirror.sh failure due to katacontainer

    The upstream rpm repo for katacontainer no longer exists.
    Switch to our CENGN mirror copy.

    Also Centos 8.5 has been vaulted, so fix those rpm repo
    definitions as well.

    Partial-Bug: 1998234
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: I6b42f7728720c12e942f87cad1daaca1cee77646

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

Reviewed: https://review.opendev.org/c/starlingx/tools/+/866071
Committed: https://opendev.org/starlingx/tools/commit/771c7d53824348cc0056794bf3f86748b8a2bbce
Submitter: "Zuul (22348)"
Branch: master

commit 771c7d53824348cc0056794bf3f86748b8a2bbce
Author: Scott Little <email address hidden>
Date: Tue Nov 29 16:01:46 2022 -0500

    fix: download_mirror.sh failure due to katacontainer

    The upstream rpm repo for katacontainer no longer exists.
    Switch to our CENGN mirror copy.

    Partial-Bug: 1998234
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: Iabdf83d990f71ccae1ee9efb5af8e638c1c4543b

Ghada Khalil (gkhalil)
tags: added: stx.build
Changed in starlingx:
importance: Undecided → Critical
tags: added: in-r-stx60 in-stx-70 stx.6.0 stx.7.0 stx.8.0
Revision history for this message
Ghada Khalil (gkhalil) wrote :

As per Scott Little, this is already addressed on all maintained branches based on the commits above. Marking as Fix Released.

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/868871

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

Reviewed: https://review.opendev.org/c/starlingx/tools/+/868871
Committed: https://opendev.org/starlingx/tools/commit/6e0f819b4034752629190cdb5a47e8b57ec79048
Submitter: "Zuul (22348)"
Branch: master

commit 6e0f819b4034752629190cdb5a47e8b57ec79048
Author: Scott Little <email address hidden>
Date: Thu Dec 29 10:32:03 2022 -0500

    fix: download_mirror.sh failure due to katacontainer

    Previous fix failed to give the cengn mirror a unique repo name.

    Closes-Bug: 1998234
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: Ib43ea12bc29f5ffb1c67813c55504f565bc2984d

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.