-
Notifications
You must be signed in to change notification settings - Fork 59
Conversation
@reidpr :
not ok 146 ch-image --force: quay.io/centos/centos:stream8, needed, with --force, no preprep
# (in test file build/61_force-auto.bats, line 1073)
# `[[ $status -eq 0 ]]' failed
# verbose level: 1
# host architecture from uname: x86_64
# host architecture for registry: amd64
# registry authentication: False
# found storage dir v3: /var/tmp/runner.ch
# build cache mode: disabled
# warning: not yet supported, ignored: issue #777: .dockerignore file
# dockerfile
# from_
# image_ref
# ir_hostport quay.io
# ir_path centos
# ir_name centos
# ir_tag stream8
# run
# run_shell dnf install -y --setopt=install_weak_deps=false openssh
#
# image path: /var/tmp/runner.ch/img/tmpimg2
# 1. FROM quay.io/centos/centos:stream8
# loading metadata
# writing metadata file: /var/tmp/runner.ch/img/quay.io%centos%centos+stream8/ch/metadata.json
# writing environment file: /var/tmp/runner.ch/img/quay.io%centos%centos+stream8/ch/environment
# ensuring volume directories exist
# loading metadata
# copying image ...
# removing image: /var/tmp/runner.ch/img/tmpimg2
# copying image: /var/tmp/runner.ch/img/quay.io%centos%centos+stream8 -> /var/tmp/runner.ch/img/tmpimg2
# workarounds: testing config: fedora
# workarounds: testing config: rhel7
# workarounds: testing config: rhel8
# will use --force: rhel8: RHEL 8+ and derivatives
# 2. RUN.F dnf install -y --setopt=install_weak_deps=false openssh
# workarounds: init step 1: checking: $ command -v fakeroot > /dev/null
# executing: /home/runner/work/charliecloud/charliecloud/bin/ch-run -w -u0 -g0 --no-home --no-passwd --cd / /var/tmp/runner.ch/img/tmpimg2 -- /bin/sh -c 'command -v fakeroot > /dev/null'
# environment: {'FAKEROOTDONTTRYCHOWN': '1', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'TAR_OPTIONS': '--no-same-owner', 'USER': 'runner', 'container': 'oci'}
# workarounds: init step 1: $ set -ex; if ! grep -Eq '\[epel\]' /etc/yum.conf /etc/yum.repos.d/*; then dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm; dnf install -y fakeroot; dnf remove -y epel-release; else dnf install -y fakeroot; fi;
# executing: /home/runner/work/charliecloud/charliecloud/bin/ch-run -w -u0 -g0 --no-home --no-passwd --cd / /var/tmp/runner.ch/img/tmpimg2 -- /bin/sh -c 'set -ex; if ! grep -Eq '"'"'\[epel\]'"'"' /etc/yum.conf /etc/yum.repos.d/*; then dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm; dnf install -y fakeroot; dnf remove -y epel-release; else dnf install -y fakeroot; fi; '
# environment: {'FAKEROOTDONTTRYCHOWN': '1', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'TAR_OPTIONS': '--no-same-owner', 'USER': 'runner', 'container': 'oci'}
# + grep -Eq '\[epel\]' /etc/yum.conf /etc/yum.repos.d/CentOS-Stream-AppStream.repo /etc/yum.repos.d/CentOS-Stream-BaseOS.repo /etc/yum.repos.d/CentOS-Stream-Debuginfo.repo /etc/yum.repos.d/CentOS-Stream-Extras-common.repo /etc/yum.repos.d/CentOS-Stream-Extras.repo /etc/yum.repos.d/CentOS-Stream-HighAvailability.repo /etc/yum.repos.d/CentOS-Stream-Media.repo /etc/yum.repos.d/CentOS-Stream-NFV.repo /etc/yum.repos.d/CentOS-Stream-PowerTools.repo /etc/yum.repos.d/CentOS-Stream-RealTime.repo /etc/yum.repos.d/CentOS-Stream-ResilientStorage.repo /etc/yum.repos.d/CentOS-Stream-Sources.repo
# ++ rpm -E %rhel
# + dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# CentOS Stream 8 - AppStream 1.0 MB/s | 23 MB 00:22
# Errors during downloading metadata for repository 'appstream':
# - Status code: 404 for http://repo.ialab.dsu.edu/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 138.247.115.248)
# - Status code: 404 for http://mirror.genesishosting.com/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 104.36.110.9)
# - Status code: 404 for http://coresite.mm.fcix.net/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 98.158.155.164)
# - Status code: 404 for http://mirror.chpc.utah.edu/pub/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 204.99.128.20)
# - Status code: 404 for http://mirror.den01.meanservers.net/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 216.126.56.218)
# - Status code: 404 for http://mirror.clarkson.edu/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 128.153.145.19)
# - Status code: 404 for http://mirror.math.princeton.edu/pub/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 128.112.18.21)
# - Status code: 404 for http://mirror.us-midwest-1.nexcess.net/CentOS/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 208.69.120.125)
# - Status code: 404 for http://ridgewireless.mm.fcix.net/centos/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 194.26.236.150)
# - Status code: 404 for http://centos-distro.1gservers.com/8-stream/AppStream/x86_64/os/repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz (IP: 104.251.122.5)
# Error: Failed to download metadata for repo 'appstream': Yum repo downloading error: Downloading error(s): repodata/6ce7a4d5107d4bbf9a62901c35deaf7c2c8de0925ddb025c15ac2dacd5c88e63-modules.yaml.xz - Cannot download, all mirrors were already tried without success
# error: command failed with code 1: /home/runner/work/charliecloud/charliecloud/bin/ch-run -w -u0 -g0 --no-home --no-passwd --cd / /var/tmp/runner.ch/img/tmpimg2 -- /bin/sh -c 'set -ex; if ! grep -Eq '"'"'\[epel\]'"'"' /etc/yum.conf /etc/yum.repos.d/*; then dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm; dnf install -y fakeroot; dnf remove -y epel-release; else dnf install -y fakeroot; fi; ' |
Thanks for the contribution!
I'm fine with it. I would like to put it in It's not something we use, so it would need either (1) a comment saying it's untested and who, if anyone, is in charge of maintaining it, or (2) a test to make sure it stays in sync with
I'm guessing it's spurious. Problems with RPM repos are not uncommon. |
@reidpr what do you think about this solution? I wired up the contents of new file to |
by the way, do we really need to install |
Hello @MFTabriz, thanks for the updates. I'm more than happy to include a As for the content, I'm happy with whatever; specifically, adding Regarding the install line in |
This turns out to be untrue; see (closed) PR #1409. |
Is this PR ready for review again? |
@reidpr Yes it's ready! Sorry for the delay. I guess at the end it boils down to a simple file in the packaging folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @MFTabriz! I added a support note. If you are OK with it, I will merge.
@reidpr This looks great! I'll use it in our builds of the Charliecloud (and hopefully the others will too) to make sure it's always up to date. |
from:
charliecloud/configure.ac
Line 396 in 2ac3705