Bug #2630

Monitoring of a host can fail during a VM shutdown

Added by Javi Fontan over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:01/13/2014
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - VM
Target version:Release 4.6
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.2

Description

Reported by Daniel Dehennin in the mailing list:

On a ONE 4.2, we just encountered an transiant issue:

[InM][I]: Monitoring host grichka (9)
[InM][I]: Command execution fail: 'if [ -x "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes kvm 9 grichka; else exit 42; fi'
[InM][I]: error: failed to get domain 'one-1547'
[InM][I]: error: Domain not found: no domain with matching name 'one-1547'
[InM][I]: ../../vmm/kvm/poll:70:in `block in get_vm_info': undefined method `[]' for nil:NilClass (NoMethodError)
[InM][I]: from ../../vmm/kvm/poll:68:in `each'
[InM][I]: from ../../vmm/kvm/poll:68:in `get_vm_info'
[InM][I]: from ../../vmm/kvm/poll:35:in `get_all_vm_info'
[InM][I]: from ../../vmm/kvm/poll:401:in `print_all_vm_template'
[InM][I]: from ../../vmm/kvm/poll:440:in `<main>'
[InM][E]: Error executing poll.sh
[InM][I]: ExitCode: 1
[ONE][E]: Error monitoring Host grichka (9): Error executing poll.sh

It looks like something list all the running VM and then call
“get_vm_info” for each one.

This result in an error if the VM disappears in the meantime, because of
a shutdown for example.

Associated revisions

Revision ec3ec7f7
Added by Javi Fontan over 7 years ago

bug #2630: only process domains with information

Revision b1c50174
Added by Javi Fontan over 7 years ago

bug #2630: only process domains with information

(cherry picked from commit ec3ec7f768178851fb7bb9f013a36ceb12d96cc0)

History

#1 Updated by Javi Fontan over 7 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF