return "/etc/ceph/ceph.conf"
@contextmanager
- def mounted(self):
+ def mounted_wait(self):
"""
A context manager, from an initially unmounted state, to mount
this, yield, and then unmount and clean up.
self.assertTrue(self.fs.get_replay(status=status) is not None)
# Do some client work so that the log is populated with something.
- with self.mount_a.mounted():
+ with self.mount_a.mounted_wait():
self.mount_a.create_files()
self.mount_a.check_files() # sanity, this should always pass
# Check that files created in the initial client workload are still visible
# in a client mount.
- with self.mount_a.mounted():
+ with self.mount_a.mounted_wait():
self.mount_a.check_files()
# Verify that the journal really has been rewritten.
raise RuntimeError("Unexpectedly few journal events: {0}".format(event_count))
# Do some client work to check that writing the log is still working
- with self.mount_a.mounted():
+ with self.mount_a.mounted_wait():
workunit(self.ctx, {
'clients': {
"client.{0}".format(self.mount_a.client_id): ["fs/misc/trivial_sync.sh"],