Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CAT-1901) - Handle 'No URLs in mirrorlist' error for 'appstream' repo in CentOS 8 #90

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

jordanbreen28
Copy link
Contributor

@jordanbreen28 jordanbreen28 commented Jun 5, 2024

Summary

This PR addresses an issue specific to CentOS 8 where the build process fails due to an inability to download metadata for the 'appstream' repository. The error is caused by the absence of URLs in the mirrorlist.

In CentOS 8, the 'appstream' repository is used to provide additional packages that may be needed by the system. However, due to changes in the way CentOS 8 handles repositories, the mirrorlist for 'appstream' sometimes does not contain any URLs, leading to this error.

The Dockerfile has been updated to handle this scenario by modifying the repository configuration files in '/etc/yum.repos.d/'. If the base image tag is 'stream8', the script now comments out the 'mirrorlist' line and replaces it with a 'baseurl' line pointing to 'http://vault.centos.org', ensuring that the build process can proceed without encountering the 'No URLs in mirrorlist' error.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@jordanbreen28 jordanbreen28 force-pushed the cat-1901-fix_failing_centos8 branch 3 times, most recently from d8f2e5a to 00a2d0f Compare June 5, 2024 12:18
@jordanbreen28 jordanbreen28 changed the title fix stream8 (CAT-1901) - Handle 'No URLs in mirrorlist' error for 'appstream' repo in CentOS 8 Jun 5, 2024
@jordanbreen28 jordanbreen28 marked this pull request as ready for review June 5, 2024 12:21
@jordanbreen28 jordanbreen28 requested a review from a team as a code owner June 5, 2024 12:21
…o in CentOS 8

This commit addresses an issue specific to CentOS 8 where the build process
fails due to an inability to download metadata for the 'appstream' repository.
The error is caused by the absence of URLs in the mirrorlist.

In CentOS 8, the 'appstream' repository is used to provide additional packages
that may be needed by the system. However, due to changes in the way CentOS 8
handles repositories, the mirrorlist for 'appstream' sometimes does not contain
 any URLs, leading to this error.

The Dockerfile has been updated to handle this scenario by modifying the
repository configuration files in '/etc/yum.repos.d/'. If the base image
tag is 'stream8', the script now comments out the 'mirrorlist' line and
replaces it with a 'baseurl' line pointing to 'http://vault.centos.org',
ensuring that the build process can proceed without encountering the
'No URLs in mirrorlist' error.
Copy link
Contributor

@gavindidrichsen gavindidrichsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@gavindidrichsen gavindidrichsen merged commit a77cb6c into main Jun 5, 2024
14 checks passed
@gavindidrichsen gavindidrichsen deleted the cat-1901-fix_failing_centos8 branch June 5, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants