Commit 17bd7e41 authored by Leigh Stoller's avatar Leigh Stoller

When listing recent experiments for the reservation list, need to watch

for experiments with nodes reserved that have never been swapped
in. Happens in the emulab-ops project, we nalloc nodes to experiments
that like hwdown.
parent 373beede
#!/usr/bin/perl -wT
#
# Copyright (c) 2005-2017 University of Utah and the Flux Group.
# Copyright (c) 2005-2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -1051,6 +1051,10 @@ sub Usage($$$)
while (my ($eid,$idx,$urn,$slice_uuid,
$swapin_time,$swapout_time,$type,$count) =
$query_result->fetchrow_array()) {
# In the emulab-ops project, we nalloc nodes to experiments that
# have never been swapped in (like hwdown).
next
if (!defined($swapin_time));
# No phys nodes.
next
if ($count == 0 || !defined($type));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment