Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
4ce1f7fb
Commit
4ce1f7fb
authored
May 13, 2019
by
Francesc Guasch
Browse files
refactor(nodes): return non shared when node fails
parent
9e464709
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/VM.pm
View file @
4ce1f7fb
...
...
@@ -342,7 +342,7 @@ sub _connect_ssh($self, $disconnect=0) {
}
sub
_ssh_channel
($self) {
my
$ssh
=
$self
->
_connect_ssh
()
or
confess
"
ERROR:
C
ant connect to SSH in
"
.
$self
->
host
;
my
$ssh
=
$self
->
_connect_ssh
()
or
confess
"
ERROR:
I c
an
'
t connect to SSH in
"
.
$self
->
host
;
my
$ssh_channel
;
for
(
1
..
5
)
{
$ssh_channel
=
$ssh
->
channel
();
...
...
@@ -1326,8 +1326,11 @@ sub shared_storage($self, $node, $dir) {
my
$file
;
for
(
;;
)
{
$file
=
$dir
.
Ravada::Utils::
random_name
(
4
)
.
"
.tmp
";
next
if
$self
->
file_exists
(
$file
);
next
if
$node
->
file_exists
(
$file
);
eval
{
next
if
$self
->
file_exists
(
$file
);
next
if
$node
->
file_exists
(
$file
);
};
return
if
$@
&&
$@
=~
/onnect to SSH/i
;
last
;
}
$file
=
"
$dir$cached_st_key
";
...
...
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