Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Oleg Borisenko
tapebackup
Commits
3974137f
Commit
3974137f
authored
Feb 18, 2022
by
Oleg Borisenko
Browse files
one more timeout increase
parent
fa74c2e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapebackup/utils/tapemanager.py
View file @
3974137f
...
...
@@ -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
21
0 seconds to get drive responsible"
)
time
.
sleep
(
21
0
)
log
.
info
(
"Sleeping for
30
0 seconds to get drive responsible"
)
time
.
sleep
(
30
0
)
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment