Skip to content

Commit d988c3c

Browse files
Merge pull request #107 from pranavprakash20/fix_cthon_ceph_job
[Cthon] Add support for cthon with ceph as backend with concurrent run support
2 parents ce35d62 + b2b1c07 commit d988c3c

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

ceph/basic-ceph-cthon.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,12 @@ else
271271
exit 1
272272
fi
273273
# Run Cthon
274-
./server -a -p /nfs/cephfs -m /mnt/nfs_ceph_v4 $(hostname -I | awk '{print $1}')
274+
if [ "${CONCURRENT_JOBS}" == "True" ]; then
275+
./server -c 100000 /nfs/cephfs -m /mnt/nfs_ceph_v4 $(hostname -I | awk '{print $1}')
276+
else
277+
./server -a -p /nfs/cephfs -m /mnt/nfs_ceph_v4 $(hostname -I | awk '{print $1}')
278+
fi
279+
275280

276281

277282
# Run CTHON for v4.1
@@ -293,7 +298,10 @@ else
293298
exit 1
294299
fi
295300
# Run Cthon
296-
./server -a -p /nfs/cephfs -m /mnt/nfs_ceph_v41 $(hostname -I | awk '{print $1}')
297-
301+
if [ "${CONCURRENT_JOBS}" == "True" ]; then
302+
./server -c 100000 /nfs/cephfs -m /mnt/nfs_ceph_v4 $(hostname -I | awk '{print $1}')
303+
else
304+
./server -a -p /nfs/cephfs -m /mnt/nfs_ceph_v4 $(hostname -I | awk '{print $1}')
305+
fi
298306
exit 0
299307

jobs/cthon-ceph.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
- job:
2+
name: cthon-cephfs
3+
node: cico-workspace
4+
description: 'Run cthon with ceph as backend with concurrent run support on Ceph FSAL.'
5+
project-type: freestyle
6+
concurrent: false
7+
allow-manual-triggers: true
8+
disabled: true
9+
10+
scm:
11+
- ci-tests
12+
13+
parameters:
14+
- string:
15+
default: "$WORKSPACE/ci-tests/ceph/basic-ceph-cthon.sh"
16+
description: Test script to execute on the reserved machine acting as a server.
17+
name: SERVER_TEST_SCRIPT
18+
19+
builders:
20+
- get-node
21+
- shell: !include-raw-verbatim: scripts/common.sh
22+
23+
wrappers:
24+
- gerrithub_key
25+
- cleanup-ws
26+
27+
publishers:
28+
- post_build_task_return-node

0 commit comments

Comments
 (0)