mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
bug #4564: Does not resurrect VMs on DISK polling info messages
This commit is contained in:
parent
f17dcc917f
commit
be358f6d80
@ -251,7 +251,8 @@ int Host::update_info(Template &tmpl,
|
||||
ostringstream zombie;
|
||||
ostringstream wild;
|
||||
|
||||
set<int>::iterator set_it;
|
||||
set<int>::iterator set_it;
|
||||
map<int,string>::iterator map_it;
|
||||
|
||||
set<int> prev_tmp_lost = tmp_lost_vms;
|
||||
set<int> prev_tmp_zombie = tmp_zombie_vms;
|
||||
@ -406,6 +407,19 @@ int Host::update_info(Template &tmpl,
|
||||
}
|
||||
}
|
||||
|
||||
for(map_it = found.begin(); map_it != found.end(); )
|
||||
{
|
||||
if ( one_util::regex_match("STATE=. ",map_it->second.c_str()) != 0 )
|
||||
{
|
||||
tmp_lost_vms.insert(map_it->first);
|
||||
found.erase(map_it++);
|
||||
}
|
||||
else
|
||||
{
|
||||
++map_it;
|
||||
}
|
||||
}
|
||||
|
||||
for(set_it = tmp_lost_vms.begin(); set_it != tmp_lost_vms.end(); set_it++)
|
||||
{
|
||||
// Reported as lost at least 2 times?
|
||||
|
Loading…
x
Reference in New Issue
Block a user