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
emulab
emulab-devel
Commits
548cb7e2
Commit
548cb7e2
authored
Sep 18, 2013
by
Leigh B Stoller
Browse files
Look for mounted but not running containers, and unmount instead
of giving up.
parent
577d1711
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/mkvnode.pl
View file @
548cb7e2
...
...
@@ -491,6 +491,11 @@ if (-e "$VNDIR/vnode.info") {
print
"
Cannot determine status container
$vmid
. Deleting ...
\n
";
$teardown
=
1
;
}
elsif
(
$ret
eq
VNODE_STATUS_MOUNTED
())
{
print
("
vnode
$vnodeid
still mounted. Unmounting then restarting
\n
");
$teardown
=
1
;
$leaveme
=
$LEAVEME_REBOOT
;
}
elsif
(
$ret
ne
VNODE_STATUS_STOPPED
())
{
fatal
("
vnode
$vnodeid
not stopped, not booting!
");
}
...
...
@@ -498,6 +503,9 @@ if (-e "$VNDIR/vnode.info") {
if
(
$teardown
)
{
TearDownStaleVM
()
==
0
or
fatal
("
Could not tear down stale container
");
# See MOUNTED case above; we set leaveme to keep the container
# file systems, but must reset leaveme.
$leaveme
=
0
;
}
else
{
$rebooting
=
1
;
...
...
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