The native libcephfs backend is the only transfer path. The rsync transport, the mounted-filesystem access and its helpers (mount check, path resolution below a mount, mount claim, quota and hardlink repair through the mount) are removed, together with the rsync lab test and the client image that only added rsync. The claim and release tests now exercise the native claim through a local test file system with real flock locks. BREAKING CHANGE: "backend": "rsync" and the endpoint field "mount" are rejected. "backend" is optional and only accepts "native"; jobs created with "native" resume without it. Journals of rsync jobs cannot be resumed. Builds without the build tag ceph only support doctor and status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
83 lines
2.2 KiB
YAML
83 lines
2.2 KiB
YAML
name: cephmig-dev
|
|
x-ceph: &ceph
|
|
image: ${CEPH_IMAGE:-quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d}
|
|
init: true
|
|
stop_grace_period: 30s
|
|
networks: [lab]
|
|
logging:
|
|
driver: json-file
|
|
options: {max-size: 10m, max-file: '3'}
|
|
ulimits:
|
|
core: 0
|
|
x-cluster: &cluster
|
|
<<: *ceph
|
|
entrypoint: [bash, /lab/cluster.sh]
|
|
healthcheck:
|
|
test: [CMD-SHELL, 'test -f /run/cephmig-ready && ceph fs subvolume getpath cephfs demo --group_name migration >/dev/null']
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 60
|
|
mem_limit: 4g
|
|
services:
|
|
native:
|
|
<<: *ceph
|
|
image: cephmig-native:dev
|
|
build:
|
|
context: ..
|
|
dockerfile: dev/Dockerfile.native
|
|
args:
|
|
CEPH_IMAGE: ${CEPH_IMAGE:-quay.io/ceph/ceph:v21.2.0@sha256:c9e6ed4ac3fcf67b28f38358bb9619dee4d1dfb96ddd4b9b583eee316a15f04d}
|
|
entrypoint: [sleep, infinity]
|
|
depends_on:
|
|
source: {condition: service_healthy}
|
|
target: {condition: service_healthy}
|
|
volumes:
|
|
- source-config:/clusters/source:ro
|
|
- target-config:/clusters/target:ro
|
|
- ./:/lab:ro
|
|
- migration-state:/state
|
|
mem_limit: 2g
|
|
source:
|
|
<<: *cluster
|
|
hostname: source
|
|
environment: {CLUSTER_NAME: source}
|
|
volumes:
|
|
- source-state:/state
|
|
- source-config:/etc/ceph
|
|
- ./:/lab:ro
|
|
target:
|
|
<<: *cluster
|
|
hostname: target
|
|
environment: {CLUSTER_NAME: target}
|
|
volumes:
|
|
- target-state:/state
|
|
- target-config:/etc/ceph
|
|
- ./:/lab:ro
|
|
client:
|
|
<<: *ceph
|
|
# FUSE mounts remain in the container mount namespace.
|
|
privileged: true
|
|
entrypoint: [bash, /lab/client.sh]
|
|
depends_on:
|
|
source: {condition: service_healthy}
|
|
target: {condition: service_healthy}
|
|
volumes:
|
|
- source-config:/clusters/source:ro
|
|
- target-config:/clusters/target:ro
|
|
- ./:/lab:ro
|
|
- migration-state:/state
|
|
healthcheck:
|
|
test: [CMD-SHELL, 'mountpoint -q /mnt/source && mountpoint -q /mnt/target && mountpoint -q /mnt/source-fs && mountpoint -q /mnt/target-fs']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 30
|
|
mem_limit: 2g
|
|
networks:
|
|
lab: {}
|
|
volumes:
|
|
source-state: {}
|
|
target-state: {}
|
|
source-config: {}
|
|
target-config: {}
|
|
migration-state: {}
|