1
0
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:
Carlos Martín 2013-02-11 18:32:26 +01:00
parent e665b0b6ba
commit 1a9600a6bb
3 changed files with 2 additions and 8 deletions

View File

@ -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);

View File

@ -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();
}
}

View File

@ -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();