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:
		
					parent
					
						
							
								9fd396363f
							
						
					
				
			
			
				commit
				
					
						caa01f344f
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue