]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/vstart_runner: add "managers" to LocalContext instances 43666/head
authorRishabh Dave <ridave@redhat.com>
Tue, 26 Oct 2021 10:24:20 +0000 (15:54 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 26 Oct 2021 15:21:09 +0000 (20:51 +0530)
Without this plenty tests become incompatible with vstart_runner.py.
Ideally, vstart_runner.py should've been updated in commit 7812cfb6744f.

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

index 916256495d45478adec8b1c0ea52f7ab5894e5cb..63976fc9d6e3801c3738e32d7443b1f571fb7a95 100644 (file)
@@ -996,10 +996,13 @@ class LocalCluster(object):
 
 class LocalContext(object):
     def __init__(self):
-        self.config = {}
+        self.config = {'cluster': 'ceph'}
         self.teuthology_config = teuth_config
         self.cluster = LocalCluster()
         self.daemons = DaemonGroup()
+        if not hasattr(self, 'managers'):
+            self.managers = {}
+        self.managers[self.config['cluster']] = LocalCephManager()
 
         # Shove some LocalDaemons into the ctx.daemons DaemonGroup instance so that any
         # tests that want to look these up via ctx can do so.