utils.execute fails retries

Bug #741328 reported by termie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
termie

Bug Description

May be OS X specific, but when attempting to do retries the utils.execute code will fail.

======================================================================
ERROR: test_retry_on_failure (nova.tests.test_utils.ExecuteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/termie/p/nova/nova/tests/test_utils.py", line 57, in test_retry_on_failure
    delay_on_retry=False)
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/unittest.py", line 336, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/Users/termie/p/nova/nova/utils.py", line 160, in execute
    result = obj.communicate(process_input)
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/subprocess.py", line 701, in communicate
    return self._communicate(input)
  File "/usr/local/Cellar/python/2.6.5/lib/python2.6/subprocess.py", line 1224, in _communicate
    data = os.read(self.stderr.fileno(), 1024)
OSError: [Errno 35] Resource temporarily unavailable
-------------------- >> begin captured logging << --------------------
2011-03-23 12:47:16,563 DEBUG nova.utils [-] Running cmd (subprocess): /var/folders/vZ/vZRD261jEaOaybrhr4Aazk+++TI/-Tmp-/tmpPYU_Pg /var/folders/vZ/vZRD261jEaOaybrhr4Aazk+++TI/-Tmp-/tmps5BtyI from (pid=592) execute /Users/termie/p/nova/nova/utils.py:149
2011-03-23 12:47:16,580 DEBUG nova.utils [-] Result was 1 from (pid=592) execute /Users/termie/p/nova/nova/utils.py:165
2011-03-23 12:47:16,581 DEBUG nova.utils [-] ['/var/folders/vZ/vZRD261jEaOaybrhr4Aazk+++TI/-Tmp-/tmpPYU_Pg', '/var/folders/vZ/vZRD261jEaOaybrhr4Aazk+++TI/-Tmp-/tmps5BtyI'] failed. Retrying. from (pid=592) execute /Users/termie/p/nova/nova/utils.py:182
2011-03-23 12:47:16,582 DEBUG nova.utils [-] Running cmd (subprocess): /var/folders/vZ/vZRD261jEaOaybrhr4Aazk+++TI/-Tmp-/tmpPYU_Pg /var/folders/vZ/vZRD261jEaOaybrhr4Aazk+++TI/-Tmp-/tmps5BtyI from (pid=592) execute /Users/termie/p/nova/nova/utils.py:149
--------------------- >> end captured logging << ---------------------

Related branches

Revision history for this message
termie (termie) wrote :
Changed in nova:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → termie (termie)
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.