Commit 48bcc554 authored by Leigh Stoller's avatar Leigh Stoller

Blockstore VMs do not report start cmd status. This closes issue #346.

parent fcff7f0c
......@@ -2322,6 +2322,12 @@ sub SetEventState($$)
sub ResetStartStatus($)
{
my ($self) = @_;
#
# Do not do this on certain node types.
#
return 0
if ($self->type() eq "blockstore");
$self->{"DBROW"}->{'startstatus'} = 'none';
return $self->Update({"startstatus" => 'none'});
......
......@@ -7670,8 +7670,13 @@ sub InitializePhysNode($$$)
"loadlist" => $loadlist || '',
"failureaction" => $failureaction,
"routertype" => $routertype);
$nodesets{"startstatus"} = 'none'
if (!exists($self->oldreservednodes()->{$pnodename}));
# They never report status, need to set them.
if (defined($virtnode->_blockstore())) {
$nodesets{"startstatus"} = 0;
}
elsif (!exists($self->oldreservednodes()->{$pnodename})) {
$nodesets{"startstatus"} = 'none';
}
%rsrvsets = ("vname" => $vnodename,
"erole" => $role,
......
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