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
131019ab
Commit
131019ab
authored
Oct 07, 2021
by
Oleg Borisenko
Browse files
Additional sleep for cases when tape library doesn't update in time
parent
6c81d4e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapebackup/utils/tapemanager.py
View file @
131019ab
...
...
@@ -339,6 +339,8 @@ class TapeManager:
# umount is **obligatory**, otherwise it hangs to death
movemedium
=
device
.
movemedium
(
self
.
robot
[
0
][
'element_address'
],
self
.
drives
[
0
][
'element_address'
],
slot
)
log
.
info
(
"Moved tape from %d to slot %d"
,
self
.
drives
[
0
][
'element_address'
],
slot
)
time
.
sleep
(
30
)
log
.
info
(
"Sleeping for 30 seconds to update tape inventory"
)
return
movemedium
def
move
(
self
,
slot_from
,
slot_to
):
...
...
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