Change poweroff to poweroff_hard

Issue with poweroff:

Executing poweroff not always seems to work. Sometimes, the VM is tries
to SHUTDOWN but times out. poweroff-hard seems to poweroff all the time.
This commit is contained in:
PCoder 2019-05-13 07:56:46 +02:00
parent 9fd396363f
commit caa01f344f
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ class OpenNebulaManager():
vm = None
try:
vm = self.get_vm(vm_id)
vm.poweroff()
vm.poweroff_hard()
except socket.timeout as socket_err:
logger.error("Socket timeout error: {0}".format(socket_err))
except OpenNebulaException as opennebula_err: