1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

qa: valgrind test for cephfs-mirror daemon

Fixes: http://tracker.ceph.com/issues/49040
Signed-off-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Venky Shankar 2021-01-19 23:45:51 -05:00
parent bb81fd3f9d
commit 7583126d19
15 changed files with 75 additions and 0 deletions

1
qa/suites/fs/valgrind/.qa Symbolic link
View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1 @@
.qa/cephfs/begin.yaml

View File

@ -0,0 +1 @@
.qa/distros/supported/centos_latest.yaml

View File

View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1,7 @@
meta:
- desc: run one cephfs-mirror daemon on primary cluster
tasks:
- cephfs-mirror:
client: client.mirror
valgrind: [--tool=memcheck, --leak-check=full, --show-reachable=yes]

View File

@ -0,0 +1,18 @@
meta:
- desc: configure the permissions for client.mirror
overrides:
ceph:
conf:
client:
debug cephfs_mirror: 20
log to stderr: false
# make these predictable
client.mirror:
admin socket: /var/run/ceph/cephfs-mirror.asok
pid file: /var/run/ceph/cephfs-mirror.pid
tasks:
- exec:
client.mirror:
- "sudo ceph auth caps client.mirror mon 'allow r' mds 'allow r' osd 'allow rw tag cephfs metadata=*, allow r tag cephfs data=*' mgr 'allow r'"
client.mirror_remote:
- "sudo ceph auth caps client.mirror_remote mon 'allow r' mds 'allow rwps' osd 'allow rw tag cephfs *=*' mgr 'allow r'"

View File

@ -0,0 +1,17 @@
meta:
- desc: 1 ceph cluster with 1 mon, 1 mgr, 3 osds, 5 mdss
roles:
- - mon.a
- mgr.x
- mds.a
- mds.b
- mds.c
- mds.d
- mds.e
- osd.0
- osd.1
- osd.2
- client.0
- client.1
- client.mirror
- client.mirror_remote

View File

@ -0,0 +1,2 @@
tasks:
- ceph-fuse: [client.0, client.1]

View File

@ -0,0 +1 @@
../.qa

View File

@ -0,0 +1 @@
.qa/cephfs/overrides/whitelist_health.yaml

View File

@ -0,0 +1,10 @@
overrides:
ceph:
conf:
mgr:
debug client: 10
tasks:
- cephfs_test_runner:
modules:
- tasks.cephfs.test_mirroring

View File

@ -0,0 +1,8 @@
meta:
- desc: use notcmalloc version for valgrind
overrides:
install:
ceph:
flavor: notcmalloc
debuginfo: true

View File

@ -41,8 +41,15 @@ class CephFSMirror(Task):
'term',
]
if 'valgrind' in self.config:
args = misc.get_valgrind_args(
testdir, 'cephfs-mirror-{id}'.format(id=self.client),
args, self.config.get('valgrind'))
args.extend([
'cephfs-mirror',
'--cluster',
self.cluster_name,
'--id',
self.client_id,
])