Previously relied on client being able to unmount
while the MDS was offline, which is not necessarily
so. Use kill instead.
Signed-off-by: John Spray <john.spray@redhat.com>
def test_reconnect_eviction(self):
# Eviction during reconnect
# =========================
+ mount_a_client_id = self.mount_a.get_global_id()
+
self.fs.mds_stop()
self.fs.mds_fail()
- mount_a_client_id = self.mount_a.get_global_id()
- self.mount_a.umount_wait(force=True)
+ # The mount goes away while the MDS is offline
+ self.mount_a.kill()
self.fs.mds_restart()
evict_til_active
))
+ # We killed earlier so must clean up before trying to use again
+ self.mount_a.kill_cleanup()
+
# Bring the client back
self.mount_a.mount()
self.mount_a.wait_until_mounted()