]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/vstart_runner: store FSID in LocalContext instances 46314/head
authorRishabh Dave <ridave@redhat.com>
Wed, 18 May 2022 08:44:57 +0000 (14:14 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 18 May 2022 14:14:34 +0000 (19:44 +0530)
commit59273966f1bee1aca5c3a6b612b87e36cd6219d0
tree2fbcdb40d574e7aff2b642f495833bf0bb644444
parent4a7401b11590565446139459cb9372e138feac41
qa/vstart_runner: store FSID in LocalContext instances

1. Method cluster() in ceph.py creates a dictionary "ctx.ceph", attaches
   a namespace to ctx.ceph[cluster_name], create an attribute "fsid" and
   stores Ceph cluster's FSID in it.

2. The method kernel_mount.KernelMount._get_debug_dir() uses that "fsid"
   attribute to get Ceph cluster's FSID. (The exact that does that is
   "fsid = self.ctx.ceph[cluster_name].fsid").

3. Test test_readahead.TestReadahead.test_flush() crashes with
   vstart_runner.py because that test eventually calls _get_debug_dir()
   and "ctx" in case of vstart_runner.py doesn't hold "ceph" dictionary
   or anything similar.

Adding a dictionary, similar to the one added in ceph.py, to
vstart_runner.LocalContext's instances will fix this issue.

Fixes: https://tracker.ceph.com/issues/55694
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/vstart_runner.py