Monkey patch nova-ec2 api

Nova-ec2 API spawns eventlet coroutine so it must be patched.

Change-Id: I9d56ae329184491d9cc8da84f1f32e6570475444
This commit is contained in:
Marian Horban 2015-09-30 12:13:36 -04:00
parent dbda82afd8
commit c4d855186f
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,8 @@ EXPERIMENTAL support script for running Nova EC2 API under Apache2 etc.
"""
import eventlet
from oslo_config import cfg
from oslo_log import log as logging
from paste import deploy
@ -36,6 +38,7 @@ utils.monkey_patch()
objects.register_all()
conf = config_files[0]
eventlet.monkey_patch(os=False, thread=False)
name = "ec2"
options = deploy.appconfig('config:%s' % conf, name=name)