Temp fix for powervc side volumes operation not synced to local

Openstack in cinder-powervc

Currently cinder service uses threading instead of eventlet's event,
This causes if you don't monkey patch threading, it will hang there
all the time. For detail, check this fix in incubator project:
https://github.com/openstack/oslo-incubator/commit/\
1e7007824374842bc8108dff5e5e2694e12932b2
Will create a bug to cinder to fix this. Temporarily fix is to replace
cinder service instead of nova service in 1365373.

Change-Id: Ibe770e51563f43495228d84dd6d0284a62bba9e8
Closes-Bug: #1365373
This commit is contained in:
Jerry Cai 2014-09-04 16:57:59 +08:00
parent 1e8cddd0a7
commit aef2b5095d
1 changed files with 13 additions and 1 deletions

View File

@ -26,7 +26,19 @@ gettextutils.install('cinder')
from cinder import utils
from cinder.openstack.common import log as logging
from cinder.openstack.common import service
# Currently cinder service uses threading instead of eventlet's event,
# This causes if you don't monkey patch threading, it will hang there
# all the time. For detail, check this fix in incubator project:
# https://github.com/openstack/oslo-incubator/commit/\
# 1e7007824374842bc8108dff5e5e2694e12932b2
# Will create a bug to cinder to fix this. Temporarily fix is to replace
# cinder service instead of nova service in 1365373.
"""Need to patch nova logging with cinder logging, or it will throw
cfg already parsed error"""
import nova.openstack.common as nova_common
nova_common.log = logging
from nova.openstack.common import service
from cinder.common import config as cinder_config
from powervc.common import config
# NOTE: parse config before import manager