engine : remove GreenletExit workaround

Both heat and oslo now require the version of greenlet containing
the fix (greenlet>=0.3.2) so we no longer need this workaround

Change-Id: I42af8e020f08480dda08f4b4879c2840e741ea59
This commit is contained in:
Steven Hardy 2013-06-10 13:34:57 +01:00
parent 9db6e2a77f
commit 56d5fb9f83
1 changed files with 0 additions and 9 deletions

View File

@ -15,7 +15,6 @@
import base64
from datetime import datetime
from eventlet.support import greenlets as greenlet
from heat.engine import event
from heat.common import exception
@ -337,14 +336,6 @@ class Resource(object):
yield
while not self.check_create_complete(create_data):
yield
except greenlet.GreenletExit:
# Older versions of greenlet erroneously had GreenletExit inherit
# from Exception instead of BaseException
with excutils.save_and_reraise_exception():
try:
self.state_set(self.CREATE_FAILED, 'Creation aborted')
except Exception:
logger.exception('Error marking resource as failed')
except Exception as ex:
logger.exception('create %s', str(self))
failure = exception.ResourceFailure(ex)