]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: copy all mgr Python modules into rook e2e test image
authorDavid Galloway <david.galloway@ibm.com>
Thu, 26 Mar 2026 20:48:34 +0000 (16:48 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Fri, 27 Mar 2026 01:16:23 +0000 (21:16 -0400)
The base image (quay.io/ceph/daemon-base:latest-main) may lag behind
the source tree for any number of mgr Python modules. Rather than
copying files individually as mismatches are discovered, copy all
*.py files from src/pybind/mgr/ into /usr/share/ceph/mgr/ so the
test image always reflects the current state of the codebase.

Signed-off-by: David Galloway <david.galloway@ibm.com>
src/pybind/mgr/rook/ci/Dockerfile
src/pybind/mgr/rook/ci/scripts/bootstrap-rook-cluster.sh

index a4a134f03f6db072d0a47a98752619abb3547a0e..8a4f2c9a60c34c996fb9180d20a7ade25a9f59f3 100644 (file)
@@ -2,3 +2,5 @@ FROM quay.io/ceph/daemon-base:latest-main
 COPY ./tmp_build/orchestrator /usr/share/ceph/mgr/orchestrator
 COPY ./tmp_build/rook /usr/share/ceph/mgr/rook
 COPY ./tmp_build/ceph/ /usr/lib/python3.9/site-packages/ceph/
+COPY ./tmp_build/*.py /usr/share/ceph/mgr/
+
index c8b56ccfb5482cfe5beef2c1123de9791e3cdf89..b0c33cc0ad8869367ec3b4134a7945e3b974f2ae 100755 (executable)
@@ -68,6 +68,8 @@ build_ceph_image() {
     cp ./../../orchestrator/*.py tmp_build/orchestrator
     cp ../*.py tmp_build/rook
     cp -r ../../../../../src/python-common/ceph/ tmp_build/
+    # Copy all mgr Python modules from source tree to override stale versions in base image
+    cp ${CEPH_DEV_FOLDER}/src/pybind/mgr/*.py tmp_build/
 
     $CONTAINER_RUNTIME build --tag ${LOCAL_CEPH_IMG} .
     $CONTAINER_RUNTIME tag ${LOCAL_CEPH_IMG} ${CURR_CEPH_IMG}