Fix handling of force away
This commit is contained in:
		@@ -106,8 +106,9 @@ class VMInstance:
 | 
				
			|||||||
                raise
 | 
					                raise
 | 
				
			||||||
        except:
 | 
					        except:
 | 
				
			||||||
            print('Could not migrate to the new domain; forcing away uncleanly')
 | 
					            print('Could not migrate to the new domain; forcing away uncleanly')
 | 
				
			||||||
            self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
 | 
					 | 
				
			||||||
            self.stop_vm()
 | 
					            self.stop_vm()
 | 
				
			||||||
 | 
					            time.sleep(0.5)
 | 
				
			||||||
 | 
					            self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            self.thishypervisor.domain_list.remove(self.domuuid)
 | 
					            self.thishypervisor.domain_list.remove(self.domuuid)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user