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

Method setUp

qa/tasks/ceph_test_case.py:152–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 ctx=self.ctx, logger=log.getChild('ceph_manager'))
151
152 def setUp(self):
153 self._init_mon_manager()
154 self.admin_remote = self.ceph_cluster.admin_remote
155
156 self.ceph_cluster.mon_manager.raw_cluster_cmd("log",
157 "Starting test {0}".format(self.id()))
158
159 if self.REQUIRE_MEMSTORE:
160 objectstore = self.ceph_cluster.get_config("osd_objectstore", "osd")
161 if objectstore != "memstore":
162 # You certainly *could* run this on a real OSD, but you don't want to sit
163 # here for hours waiting for the test to fill up a 1TB drive!
164 raise self.skipTest("Require `memstore` OSD backend (test " \
165 "would take too long on full sized OSDs")
166
167 self.ceph_cluster.mon_manager.raw_cluster_cmd("config", "dump")
168
169 def tearDown(self):
170 self.ceph_cluster.mon_manager.raw_cluster_cmd("config", "reset", str(self.ctx.conf_epoch))

Callers

nothing calls this directly

Calls 5

_init_mon_managerMethod · 0.95
raw_cluster_cmdMethod · 0.80
formatMethod · 0.45
idMethod · 0.45
get_configMethod · 0.45

Tested by

no test coverage detected