Commit 3974137f authored by Oleg Borisenko's avatar Oleg Borisenko
Browse files

one more timeout increase

parent fa74c2e6
......@@ -168,14 +168,15 @@ class TapeManager:
self.mountpoint = None
log.info("Unmounted tape %s successfully", self.drives[0][self.PRIMARY_VOLUME_TAG])
# sleep is needed to make library not busy; it seems that we can not eject tape right after unmount
log.info("Sleeping for 210 seconds to get drive responsible")
time.sleep(210)
log.info("Sleeping for 300 seconds to get drive responsible")
time.sleep(300)
self.df = 0
empty_slot = self.find_first_empty_magazine_slot()
if not empty_slot:
raise Exception("No available slots in magazine; it's critical to have exactly 35 tapes in magazines!")
else:
self.eject_to(empty_slot)
time.sleep(20)
self.scan()
if self.drives[0]['full']:
log.error("Eject tape %s from drive to slot %d failed", self.drives[0][self.PRIMARY_VOLUME_TAG], empty_slot)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment