Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
790252c0
Commit
790252c0
authored
Mar 03, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instances cache to the list of caches flushed by emutil.
Also some debugging stuff.
parent
b6e7d7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
apt/APT_Instance.pm.in
apt/APT_Instance.pm.in
+6
-1
No files found.
apt/APT_Instance.pm.in
View file @
790252c0
...
...
@@ -74,6 +74,7 @@ my $GENIUSER = "geniuser";
#
Cache
of
instances
to
avoid
regenerating
them
.
my
%
instances
=
();
BEGIN
{
use
emutil
;
emutil
::
AddCache
(\%
instances
);
}
my
$
debug
=
0
;
#
Debugging
...
...
@@ -1549,6 +1550,9 @@ sub UpdateWebStatus($$)
$
current
=
{};
}
#
print
Dumper
($
hash
);
#
print
Dumper
($
current
);
#
#
This
will
need
to
change
;
we
can
get
updates
from
polling
or
#
from
the
event
stream
.
The
events
are
processed
out
of
band
from
...
...
@@ -1585,6 +1589,7 @@ sub UpdateWebStatus($$)
$
current
->{$
node_id
}
=
$
details
;
}
}
#
print
Dumper
($
current
);
$
self
->
webtask
()->
sliverstatus
($
current
);
DBQueryWarn
(
"unlock tables"
);
return
$
current
;
...
...
@@ -1631,7 +1636,7 @@ sub UpdateFrisbeeStatus($$)
}
$
self
->
webtask
()->
sliverstatus
($
current
);
DBQueryWarn
(
"unlock tables"
);
print
STDERR
Dumper
($
current
);
#
print
STDERR
Dumper
($
current
);
return
$
current
;
}
...
...
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