Bug #1280
Cache-DB inconsistency in LifeCycleManager::clean_up_vm
Status: | Closed | Start date: | 05/17/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Carlos Martín | % Done: | 0% | |
Category: | Core & System | |||
Target version: | Release 3.6 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.4 |
Description
This happens after a 'onevm delete' operation over a VM in 'failed' state.
In LifeCycleManager::clean_up_vm the history record is modified:
vm->set_etime(the_time); vm->set_vm_info(); vm->set_reason(History::USER);
This changes in the cached object must be written to the DB using
vmpool->update_history(vm);
But this is omitted in case VirtualMachine::FAILURE.
Associated revisions
Bug #1280: Add update_history call to the FAILURE state
Bug #1280: Add update_history call to the FAILURE state
(cherry picked from commit 7d8b9ea22b63f6d3bc3e81ad36f5b565439bc342)
History
#1 Updated by Ruben S. Montero about 9 years ago
- Status changed from New to Assigned
#2 Updated by Ruben S. Montero about 9 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed