]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Merge pull request #2639 from tchaikov/no-news-is-bad-news
authorDavid Galloway <david.galloway@ibm.com>
Thu, 6 Aug 2026 20:33:52 +0000 (16:33 -0400)
committerGitHub <noreply@github.com>
Thu, 6 Aug 2026 20:33:52 +0000 (16:33 -0400)
ceph-dev-pipeline: report builder-container failures to shaman

1  2 
ceph-dev-pipeline/build/Jenkinsfile

index d2f96577347e5ee98f45e090d850dc5aae8fe1a8,a1ca77007df52461e3e4b3cf21876e8b9ff103d1..d01f5151426f407c8b95c4e137388320e931b5e4
@@@ -345,16 -345,25 +345,18 @@@ def doArtifactsChecksStage() 
  
  // Stage 6 (builder container): log into container registries and pull/build/push the ceph-build container image for this matrix cell.
  def doBuilderContainerStage() {
+   def os = get_os_info(env.DIST)
+   sh "./scripts/update_shaman.sh started ceph ${os.name} ${os.version_name} ${env.ARCH}"
    env.CEPH_BUILDER_IMAGE = "${env.CONTAINER_REPO_HOSTNAME}/${env.CONTAINER_REPO_ORGANIZATION}/ceph-build"
 -  // Pin podman auth to a persistent authfile. The agent runs as a systemd
 -  // service with no login session and no XDG_RUNTIME_DIR, so podman derives
 -  // the default auth.json location from ambient node state at each
 -  // invocation, landing in runtime tmpfs the job doesn't control.
 -  // Credentials written by podman login here have been observed unavailable
 -  // to podman build in the same job minutes later, so the base image pull
 -  // goes anonymous and hits Docker Hub's rate limit (toomanyrequests,
 -  // https://tracker.ceph.com/issues/77920). Set via env so every subsequent
 -  // sh step (pull/build/push here, and build-with-container.py in the build
 -  // stage) resolves the same file.
 -  env.REGISTRY_AUTH_FILE = "${env.HOME}/.config/containers/auth.json"
 +  // Every podman-running sh block exports REGISTRY_AUTH_FILE itself so login
 +  // and all later pulls (incl. podman build inside build-with-container.py)
 +  // share one persistent authfile: https://tracker.ceph.com/issues/77920
    sh '''#!/bin/bash
      set -ex
 +    export REGISTRY_AUTH_FILE="${HOME}/.config/containers/auth.json"
      mkdir -p "${REGISTRY_AUTH_FILE%/*}"
 -    podman login --authfile ${REGISTRY_AUTH_FILE} -u ${CONTAINER_REPO_CREDS_USR} -p ${CONTAINER_REPO_CREDS_PSW} ${CONTAINER_REPO_HOSTNAME}/${CONTAINER_REPO_ORGANIZATION}
 -    podman login --authfile ${REGISTRY_AUTH_FILE} -u ${DOCKER_HUB_CREDS_USR} -p ${DOCKER_HUB_CREDS_PSW} docker.io
 +    podman login -u ${CONTAINER_REPO_CREDS_USR} -p ${CONTAINER_REPO_CREDS_PSW} ${CONTAINER_REPO_HOSTNAME}/${CONTAINER_REPO_ORGANIZATION}
 +    podman login -u ${DOCKER_HUB_CREDS_USR} -p ${DOCKER_HUB_CREDS_PSW} docker.io
    '''
    def ceph_builder_tag_short = "${env.BRANCH}.${env.DIST}.${env.ARCH}.${env.FLAVOR}"
    def ceph_builder_tag = "${env.SHA1[0..6]}.${ceph_builder_tag_short}"