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:
parent
16d4dc5ab4
commit
52b65d6541
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user