1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Ignore state msg from other hosts

This commit is contained in:
Ruben S. Montero 2020-04-23 20:55:42 +02:00
parent 16d4dc5ab4
commit 52b65d6541
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -434,6 +434,13 @@ void InformationManager::_vm_state(unique_ptr<Message<OpenNebulaMessages>> msg)
continue;
}
if (!vm->hasHistory() || vm->get_hid() != msg->oid())
{
//VM is not running in this host anymore, ignore
vm->unlock();
continue;
}
if (vm->get_deploy_id() != deploy_id)
{
vm->set_deploy_id(deploy_id);
@ -505,7 +512,7 @@ void InformationManager::_vm_state(unique_ptr<Message<OpenNebulaMessages>> msg)
continue;
}
if (!vm->hasHistory())
if (!vm->hasHistory() || (vm->get_hid() != msg->oid()))
{
vm->unlock();
continue;