MCPcopy Create free account
hub / github.com/ceph/ceph / setup

Method setup

qa/tasks/cbt.py:165–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 )
164
165 def setup(self):
166 super(CBT, self).setup()
167 self.first_mon = next(iter(self.ctx.cluster.only(misc.get_first_mon(self.ctx, self.config)).remotes.keys()))
168 self.cbt_config = self.generate_cbt_config()
169 self.log.info('cbt configuration is %s', self.cbt_config)
170 self.cbt_dir = os.path.join(misc.get_archive_dir(self.ctx), 'cbt')
171 self.ctx.cluster.run(args=['mkdir', '-p', '-m0755', '--', self.cbt_dir])
172 self.first_mon.write_file(
173 os.path.join(self.cbt_dir, 'cbt_config.yaml'),
174 yaml.safe_dump(self.cbt_config, default_flow_style=False))
175 self.checkout_cbt()
176 self.install_dependencies()
177
178 def begin(self):
179 super(CBT, self).begin()

Callers

nothing calls this directly

Calls 10

generate_cbt_configMethod · 0.95
checkout_cbtMethod · 0.95
install_dependenciesMethod · 0.95
onlyMethod · 0.80
nextFunction · 0.50
keysMethod · 0.45
infoMethod · 0.45
joinMethod · 0.45
runMethod · 0.45
write_fileMethod · 0.45

Tested by

no test coverage detected