Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
6f81d5d9
Commit
6f81d5d9
authored
Sep 30, 2001
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes for os_load/sched_reload interface changes.
parent
b05e97fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
tbsetup/reload_daemon.in
tbsetup/reload_daemon.in
+6
-16
No files found.
tbsetup/reload_daemon.in
View file @
6f81d5d9
...
...
@@ -165,7 +165,7 @@ while (1) {
print
"
Could not update EID for
$node
. Waiting a bit.
\n
";
next
;
}
if
(
system
("
$os_load
$imageid
$node
"))
{
if
(
system
("
$os_load
-i
$imageid
$node
"))
{
#
# This should not fail!
#
...
...
@@ -174,27 +174,17 @@ while (1) {
}
}
else
{
#
# Query for the default imageid. I do this each time through the loop
# in case it gets changed in the DB.
#
$query_result
=
DBQueryWarn
("
select imageid from node_types where type='
$type
'
");
if
(
!
$query_result
)
{
print
"
DB Error getting default image for
$type
. Waiting a bit.
\n
";
next
;
}
@row
=
$query_result
->
fetchrow_array
();
$imageid
=
$row
[
0
];
#
# Call sched_reload with the "force" option, which says that if
# sched_reload cannot reserve the node (cause someone just got it)
# then don't schedule a reload for later. Just fail outright.
# We will try again in a bit.
#
if
(
system
("
$sched_reload
-f
$imageid
$node
"))
{
# We do not need to specify an imageid, since we want the node
# default, and sched_reload will pick that up from the database
# in the absence of a -i option.
#
if
(
system
("
$sched_reload
-f
$node
"))
{
#
# Could not get it. Wait and go around again.
#
...
...
Write
Preview
Markdown
is supported
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