mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
Feature #1739: Update vm last_poll when the operation ends, instead of when it is triggered
This commit is contained in:
parent
e665b0b6ba
commit
1a9600a6bb
@ -164,8 +164,6 @@ void InformationManagerDriver::protocol(
|
||||
|
||||
if (rc == 0)
|
||||
{
|
||||
// TODO: update last_poll vm->set_last_poll
|
||||
|
||||
monitor_str = vatt->vector_value("POLL");
|
||||
|
||||
VirtualMachineManagerDriver::process_poll(vmid, monitor_str);
|
||||
|
@ -1338,8 +1338,6 @@ void VirtualMachineManager::poll_action(
|
||||
"",
|
||||
vm->to_xml(vm_tmpl));
|
||||
|
||||
vm->set_last_poll(time(0));
|
||||
|
||||
vmd->poll(vid, *drv_msg);
|
||||
|
||||
delete drv_msg;
|
||||
@ -1479,8 +1477,6 @@ void VirtualMachineManager::timer_action()
|
||||
os << "Monitoring VM " << *it << ".";
|
||||
NebulaLog::log("VMM", Log::INFO, os);
|
||||
|
||||
vm->set_last_poll(thetime);
|
||||
|
||||
vmd = get(vm->get_vmm_mad());
|
||||
|
||||
if ( vmd == 0 )
|
||||
@ -1506,8 +1502,6 @@ void VirtualMachineManager::timer_action()
|
||||
|
||||
delete drv_msg;
|
||||
|
||||
vmpool->update(vm);
|
||||
|
||||
vm->unlock();
|
||||
}
|
||||
}
|
||||
|
@ -540,6 +540,8 @@ void VirtualMachineManagerDriver::process_poll(
|
||||
return;
|
||||
}
|
||||
|
||||
vm->set_last_poll(time(0));
|
||||
|
||||
vm->update_info(memory,cpu,net_tx,net_rx);
|
||||
vm->set_vm_info();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user