Example #1
0
 def get_vm_obj(self, vm_obj, wait_time=30):
     ''' It has been noticed that sometimes get() takes upto 20-30mins
         in error scenarios
         This method sets a timeout for the same
     '''
     with timeout(seconds=wait_time):
         try:
             vm_obj.get()
         except TimeoutError, e:
             self.logger.error('Timed out while getting VM %s detail' % (
                 vm_obj.name))
Example #2
0
 def get_vm_obj(self, vm_obj, wait_time=30):
     ''' It has been noticed that sometimes get() takes upto 20-30mins
         in error scenarios
         This method sets a timeout for the same
     '''
     with timeout(seconds=wait_time):
         try:
             vm_obj.get()
         except TimeoutError:
             self.logger.error('Timed out while getting VM %s detail' %
                               (vm_obj.name))