mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #-: Fix quota VM_USED after onevm disk-resize (#2203)
This commit is contained in:
parent
2d84431988
commit
7e0d40d320
@ -200,8 +200,6 @@ void DispatchManager::trigger_poweroff_success(int vid)
|
||||
return;
|
||||
}
|
||||
|
||||
VirtualMachine::LcmState prev_state = vm->get_lcm_state();
|
||||
|
||||
if ((vm->get_state() == VirtualMachine::ACTIVE) &&
|
||||
(vm->get_lcm_state() == VirtualMachine::SHUTDOWN_POWEROFF ||
|
||||
vm->get_lcm_state() == VirtualMachine::HOTPLUG_PROLOG_POWEROFF ||
|
||||
@ -235,9 +233,7 @@ void DispatchManager::trigger_poweroff_success(int vid)
|
||||
|
||||
vm.reset();
|
||||
|
||||
if (prev_state != VirtualMachine::DISK_SNAPSHOT_POWEROFF &&
|
||||
prev_state != VirtualMachine::DISK_SNAPSHOT_REVERT_POWEROFF &&
|
||||
prev_state != VirtualMachine::DISK_SNAPSHOT_DELETE_POWEROFF)
|
||||
if (!quota_tmpl.empty())
|
||||
{
|
||||
Quotas::vm_del(uid, gid, "a_tmpl);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user