ceph-container icon indicating copy to clipboard operation
ceph-container copied to clipboard

Containers based on Centos 8 are unbuildable.

Open GitGerby opened this issue 2 years ago • 4 comments

Is this a bug report or feature request?

  • Bug Report

Bug Report

What happened:

make FLAVORS="pacific-16.2.7,centos,8" build fails with Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

My understanding is that this is expected behavior with Centos 8 going EOL in Dec 2021. Is there a plan or roadmap to moving to something like Rocky Linux as a substitute?

Context: https://forums.centos.org/viewtopic.php?f=54&t=78708

What you expected to happen:

Custom container is built and published.

How to reproduce it (minimal and precise):

Environment:

  • OS (e.g. from /etc/os-release):
PRETTY_NAME="Ubuntu 21.10"
NAME="Ubuntu"
VERSION_ID="21.10"
VERSION="21.10 (Impish Indri)"
VERSION_CODENAME=impish
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=impish
  • Kernel (e.g. uname -a): 5.13.0-35-generic
  • Docker version (e.g. docker version):
Client:
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.13.8
 Git commit:        20.10.7-0ubuntu5.1
 Built:             Mon Nov  1 00:33:40 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.7
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.8
  Git commit:       20.10.7-0ubuntu5.1
  Built:            Thu Oct 21 23:58:58 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.5-0ubuntu3.1
  GitCommit:
 runc:
  Version:          1.0.1-0ubuntu2
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:
  • Ceph version (e.g. ceph -v): Looking to build containers for 16.2.7

GitGerby avatar Mar 13 '22 06:03 GitGerby

Get the latest changes since 78614e7 (or more recent) and run

make BASEOS_TAG=stream8 FLAVORS="pacific-16.2.7,centos,8" build

By default, using FLAVORS="pacific-16.2.7,centos,8" will pick the container image from quay.io/centos/centos:8 as the base image so you need to override the tag.

dsavineau avatar Mar 15 '22 13:03 dsavineau

working from master:

make BASEOS_TAG=stream8 FLAVORS="pacific-16.2.7,centos,8"  build

  CEPH_VERSION      : pacific
  CEPH_REF          : pacific
  CEPH_POINT_RELEASE: -16.2.7
  CEPH_DEVEL        : false
  OSD_FLAVOR        : default
  DISTRO            : centos
  DISTRO_VERSION    : 8
  HOST_ARCH         : x86_64
  BASEOS_REGISTRY   :
  BASEOS_REPO       : centos
  BASEOS_TAG        : stream8
  IMAGES_TO_BUILD   : daemon-base daemon
  STAGING_DIR       : staging/pacific-16.2.7-centos-8-x86_64
  RELEASE           : master
  DAEMON_BASE_IMAGE : ceph-vma/daemon-base:master-pacific-centos-stream8-x86_64
  DAEMON_IMAGE      : ceph-vma/ceph-vma

Computed:
  BASE_IMAGE        : centos:stream8

HOST_ARCH="x86_64" CEPH_VERSION="pacific" CEPH_REF="pacific" CEPH_POINT_RELEASE="-16.2.7" CEPH_DEVEL="false" OSD_FLAVOR="default" DISTRO="centos" DISTRO_VERSION="8" BASEOS_REGISTRY="" BASEOS_REPO="centos" BASEOS_TAG="stream8" IMAGES_TO_BUILD="daemon-base daemon" STAGING_DIR="staging/pacific-16.2.7-centos-8-x86_64" RELEASE="master" DAEMON_BASE_IMAGE="ceph-vma/daemon-base:master-pacific-centos-stream8-x86_64" DAEMON_IMAGE="ceph-vma/ceph-vma" ; make HOST_ARCH="x86_64" CEPH_VERSION="pacific" CEPH_REF="pacific" CEPH_POINT_RELEASE="-16.2.7" CEPH_DEVEL="false" OSD_FLAVOR="default" DISTRO="centos" DISTRO_VERSION="8" BASEOS_REGISTRY="" BASEOS_REPO="centos" BASEOS_TAG="stream8" IMAGES_TO_BUILD="daemon-base daemon" STAGING_DIR="staging/pacific-16.2.7-centos-8-x86_64" RELEASE="master" DAEMON_BASE_IMAGE="ceph-vma/daemon-base:master-pacific-centos-stream8-x86_64" DAEMON_IMAGE="ceph-vma/ceph-vma"  -C $STAGING_DIR/daemon-base HOST_ARCH="x86_64" CEPH_VERSION="pacific" CEPH_REF="pacific" CEPH_POINT_RELEASE="-16.2.7" CEPH_DEVEL="false" OSD_FLAVOR="default" DISTRO="centos" DISTRO_VERSION="8" BASEOS_REGISTRY="" BASEOS_REPO="centos" BASEOS_TAG="stream8" IMAGES_TO_BUILD="daemon-base daemon" STAGING_DIR="staging/pacific-16.2.7-centos-8-x86_64" RELEASE="master" DAEMON_BASE_IMAGE="ceph-vma/daemon-base:master-pacific-centos-stream8-x86_64" DAEMON_IMAGE="ceph-vma/ceph-vma"  build
make[1]: Entering directory '/home/<user>/ceph_vma/ceph-container/staging/pacific-16.2.7-centos-8-x86_64/daemon-base'
=== docker build ceph-vma/daemon-base:master-pacific-centos-stream8-x86_64
Sending build context to Docker daemon  46.08kB
Step 1/16 : FROM centos:stream8
manifest for centos:stream8 not found: manifest unknown: manifest unknown
make[1]: *** [Makefile:25: build] Error 1

GitGerby avatar Mar 18 '22 23:03 GitGerby

The centos stream 8 container image isn't available on the docker.io registry (which is the default) so you also have to override the BASEOS_REGISTRY variable too

make BASEOS_REGISTRY=quay.io/centos BASEOS_TAG=stream8 FLAVORS="pacific-16.2.7,centos,8" build

I would also recommend you to add IMAGES_TO_BUILD=daemon-base as you probably don't need to build the daemon image.

I don't know why you need to rebuild the ceph container but in case it's only for stream8 then the latest upstream images (v17.1.0, v16.2.7 and v15.2.16) are already based it

https://quay.io/repository/ceph/ceph?tab=tags

dsavineau avatar Mar 21 '22 16:03 dsavineau

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '22 07:04 stale[bot]