]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-release-container: add setup_container_runtime.sh 2406/head
authorDan Mick <dan.mick@redhat.com>
Mon, 21 Jul 2025 23:08:47 +0000 (16:08 -0700)
committerDan Mick <dan.mick@redhat.com>
Mon, 21 Jul 2025 23:08:47 +0000 (16:08 -0700)
A ceph-release-container run suffered from

error running container: from /usr/bin/crun creating container for
[<sh command>]: sd-bus call: Interactive authentication required.:
Permission denied

That is thought to be because of the lack of 'linger' on the
jenkins-build user, such that the /run/user directory didn't
persist.  The exact mechanism of failure isn't fully understood,
but this script has fixed similar issues for ceph-dev-pipeline.

Also, add an echo of the node for convenience.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
ceph-release-containers/build/Jenkinsfile

index 6802b93d8c12dc304cce75bc1000a53c7c25c4ce..618c8699315744fa63cdc833045eecdc4964ab9d 100644 (file)
@@ -40,6 +40,8 @@ pipeline {
               CONTAINER_REPO = "${(env.ARCH == 'x86_64') ? 'prerelease-amd64' : 'prerelease-arm64'}"
             }
             steps {
+              sh './scripts/setup_container_runtime.sh'
+              sh 'echo "Building on $(hostname)"'
               buildDescription "${env.CONTAINER_REPO} image build"
               dir('ceph') {
                 checkout scmGit(