From: Patrick Donnelly Date: Tue, 12 Sep 2017 22:50:33 +0000 (-0700) Subject: qa: use config_path property instead of literal X-Git-Tag: v13.0.1~950^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f95798b3adb30c866725ef26aee75c4811655752;p=ceph.git qa: use config_path property instead of literal Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 842e80d4d4e8..11f77befae0a 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -624,7 +624,7 @@ class LocalCephCluster(CephCluster): # In teuthology, we have the honour of writing the entire ceph.conf, but # in vstart land it has mostly already been written and we need to carefully # append to it. - conf_path = "./ceph.conf" + conf_path = self.config_path banner = "\n#LOCAL_TEST\n" existing_str = open(conf_path).read() @@ -704,7 +704,7 @@ class LocalFilesystem(Filesystem, LocalMDSCluster): # Hack: cheeky inspection of ceph.conf to see what MDSs exist self.mds_ids = set() - for line in open("ceph.conf").readlines(): + for line in open(self.config_path).readlines(): match = re.match("^\[mds\.(.+)\]$", line) if match: self.mds_ids.add(match.group(1)) @@ -838,7 +838,7 @@ class LocalContext(object): # Shove some LocalDaemons into the ctx.daemons DaemonGroup instance so that any # tests that want to look these up via ctx can do so. # Inspect ceph.conf to see what roles exist - for conf_line in open("ceph.conf").readlines(): + for conf_line in open(self.config_path).readlines(): for svc_type in ["mon", "osd", "mds", "mgr"]: if svc_type not in self.daemons.daemons: self.daemons.daemons[svc_type] = {}