On Fri, Oct 1, 2021 at 12:24 PM Jeff Layton <jlayton@xxxxxxxxxx> wrote: > Note that there is a non-zero chance that this will break teuthology in > some wa. In particular, looking at qa/tasks/cephfs/kernel_mount.py, it > does this in _get_global_id: > > pyscript = dedent(""" > import glob > import os > import json > > def get_id_to_dir(): > result = {} > for dir in glob.glob("/sys/kernel/debug/ceph/*"): > mds_sessions_lines = open(os.path.join(dir, "mds_sessions")).readlines() > global_id = mds_sessions_lines[0].split()[1].strip('"') > client_id = mds_sessions_lines[1].split()[1].strip('"') > result[client_id] = global_id > return result > print(json.dumps(get_id_to_dir())) > """) > > > What happens when this hits the "meta" directory? Is that a problem? > > We may need to fix up some places like this. Maybe the open there needs > some error handling? Or we could just skip directories called "meta". Yes, this will likely break all the kernel tests. It must be fixed before this can be merged into testing. -- Patrick Donnelly, Ph.D. He / Him / His Principal Software Engineer Red Hat Sunnyvale, CA GPG: 19F28A586F808C2402351B93C3301A3E258DD79D