Bug #4329
Monitoring error when DELETE-RECREATE a VM
Status: | Closed | Start date: | 02/12/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Drivers - Monitor | |||
Target version: | Release 5.0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 4.14 |
Description
Hello,
I encounter an issue discussed on the forum.
The first problem was due to what I did in #4316, a VM was running but the disk was not present (I rm -rf
the 103
datastore to make it a symlink to <VDC>/<103>
).
Looking at the oned.log
I saw other case on other hosts and found that when doing a DELETE-RECREATE
when the monitoring happens, I got:
Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:4656 UID:12 VirtualMachineInfo invoked , 28736 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:7664 UID:12 VirtualMachineInfo invoked , 28728 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:4656 UID:12 VirtualMachineInfo result SUCCESS, "<VM><ID>28736</ID><U..." Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:7664 UID:12 VirtualMachineInfo result SUCCESS, "<VM><ID>28728</ID><U..." Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:5840 UID:12 VirtualMachineAction invoked , "delete-recreate", 28728 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:9680 UID:12 VirtualMachineAction invoked , "delete-recreate", 28736 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:9680 UID:12 VirtualMachineAction result SUCCESS, 28736 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:5840 UID:12 VirtualMachineAction result SUCCESS, 28728 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:2240 UID:12 VirtualMachineInfo invoked , 28728 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:2240 UID:12 VirtualMachineInfo result SUCCESS, "<VM><ID>28728</ID><U..." Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:7968 UID:12 VirtualMachineInfo invoked , 28736 Fri Feb 5 11:35:41 2016 [Z0][ReM][D]: Req:7968 UID:12 VirtualMachineInfo result SUCCESS, "<VM><ID>28736</ID><U..." Fri Feb 5 11:35:41 2016 [Z0][VMM][D]: Message received: LOG I 28736 Driver command for 28736 cancelled Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28728 Driver command for 28728 cancelled Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28736 error: failed to get domain 'one-28736' Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28736 error: Domain not found: no domain with matching name 'one-28736' Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28736 ExitCode: 0 Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28736 Successfully execute virtualization driver operation: cancel. Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28736 ExitCode: 0 Fri Feb 5 11:35:42 2016 [Z0][VMM][D]: Message received: LOG I 28736 Successfully execute network driver operation: clean. Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 error: failed to get domain 'one-28728' Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 error: Domain not found: no domain with matching name 'one-28728' Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 ExitCode: 0 Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 Successfully execute virtualization driver operation: cancel. Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28736 Successfully execute transfer manager driver operation: tm_delete. Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 ExitCode: 0 Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 Successfully execute network driver operation: clean. Fri Feb 5 11:35:43 2016 [Z0][VMM][D]: Message received: LOG I 28728 Successfully execute transfer manager driver operation: tm_delete. Fri Feb 5 11:35:50 2016 [Z0][ONE][E]: Error parsing host information: syntax error, unexpected VARIABLE, expecting EQUAL or EQUAL_EMPTY at line 1, columns 8:14. Monitoring information: error: failed to get domain 'one-28728' error: Domain not found: no domain with matching name 'one-28728' ARCH=x86_64 MODELNAME="Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz" HYPERVISOR=kvm
Regards.
Associated revisions
bug #4329: Check if the domain exists before trying to cancel it
History
#1 Updated by Ruben S. Montero over 5 years ago
- Status changed from Pending to New
- Target version set to Release 5.0
#2 Updated by Ruben S. Montero about 5 years ago
- Status changed from New to Closed
- Resolution set to fixed
This should be fixed by the update in the monitoring scripts, additional checks for errors has been added.