ESX VM shutdown failed - undefined method 'poll' (NoMethodError)

Hello!

I am trying to shutdown ESX VM and getting the following error about undefined method “poll”:

Fri May 22 14:48:00 2015 [Z0][LCM][I]: New VM state is SHUTDOWN
Fri May 22 14:48:21 2015 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vmware/shutdown ‘one-44’ ‘neb-zoo-15.domain’ 44 neb-zoo-15.domain
Fri May 22 14:48:21 2015 [Z0][VMM][I]: /var/lib/one/remotes/vmm/vmware/shutdown:47:in <main>': undefined methodpoll’ for #VMwareDriver:0x00000001a165e8 (NoMethodError)
Fri May 22 14:48:21 2015 [Z0][VMM][I]: ExitCode: 1
Fri May 22 14:48:21 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: shutdown.
Fri May 22 14:48:21 2015 [Z0][VMM][E]: Error shutting down VM
Fri May 22 14:48:21 2015 [Z0][LCM][I]: Fail to shutdown VM. Assuming that the VM is still RUNNING (will poll VM).
Fri May 22 14:48:22 2015 [Z0][VMM][I]: VM running but monitor state is POWEROFF
Fri May 22 14:48:22 2015 [Z0][DiM][I]: New VM state is POWEROFF

How to fix?

Thanks!

Mikhail

p.s. OpenNebula - 4.12.1, ESX 5.5.0

Hi,

This seems to be a bug. Could you please try setting a modified shutdown (2.2 KB) script in /var/lib/one/remotes/vmm/vmware and try again?

Hello!

Cannot download the file.
Got error: The page you requested doesn’t exist or is private.

?

Mikhail

Hi, Tino!

Please re-upload modified shutdown script.

I did’t get it before sandbox re-creation …

Thanks!

Mikhail

Hi,

Please find it in this gist:

https://gist.github.com/tinova/c5944e6819a4f42911ae

Hi!

It worked!. VM is correctly shuts down for now.

It is time to patch distro :wink:

Thanks!

Mikhail