Start up glance-powervc driver in Juno Release
In Juno Release , there are four files in the Glance Component deleted in the directory "glance/openstack/common" , based on https://github.com/openstack/glance/commit/c3ff558fc0b8eab6117901a746f97a2800d7d02f, but glance-powervc driver need the ServiceLauncher to launch the driver service ,so it starts failed. The solution is to change to user nova ServiceLauncher to launch the service by modifing import path in the file bin/glance-powervc and manager/manager.py Change-Id: I2f6ec46fbb098043ad9721155b0c640fbde25df0 Closes-Bug: #1337186
This commit is contained in:
1 parent
94a5d243d1
commit
229f843fbb
3 files changed
+16
-9
No files matched your search
@@ -24,13 +24,13 @@ if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'powervc', '__init__.py')):
|
||||
|
||||
# TODO RYKAL
|
||||
# This should go in the base __init__ folder I think
|
||||
from glance.openstack.common import gettextutils
|
||||
from nova.openstack.common import gettextutils
|
||||
gettextutils.install('glance')
|
||||
|
||||
from powervc.glance.common import config
|
||||
from glance.openstack.common import log
|
||||
from glance.openstack.common import service
|
||||
from glance.openstack.common import importutils
|
||||
from nova.openstack.common import log
|
||||
from nova.openstack.common import service
|
||||
from nova.openstack.common import importutils
|
||||
|
||||
CONF = config.CONF
|
||||
|
||||
|
||||
@@ -29,8 +29,15 @@ image_opts = [
|
||||
|
||||
CONF.register_opts(image_opts, group='powervc')
|
||||
|
||||
# Import glance opts
|
||||
CONF.import_opt('owner_is_tenant', 'glance.api.middleware.context')
|
||||
"""
|
||||
Refer to the file glance/api/middleware/context.py , register the config
|
||||
option named 'owner_is_tenant' to default group.
|
||||
"""
|
||||
CONF.register_opt(cfg.BoolOpt('owner_is_tenant', default=True,
|
||||
help=_('When true, this option sets the owner of '
|
||||
'an image to be the tenant. Otherwise, the'
|
||||
' owner of the image will be the '
|
||||
'authenticated user issuing the request.')))
|
||||
|
||||
|
||||
def parse_config(*args, **kwargs):
|
||||
|
||||
@@ -13,9 +13,9 @@ import itertools
|
||||
from operator import itemgetter
|
||||
import HTMLParser
|
||||
|
||||
from glance.openstack.common import service
|
||||
from glance.openstack.common import log as logging
|
||||
from glance.openstack.common import timeutils
|
||||
from nova.openstack.common import service
|
||||
from nova.openstack.common import log as logging
|
||||
from nova.openstack.common import timeutils
|
||||
from glanceclient.v1 import images as v1images
|
||||
from glanceclient.exc import CommunicationError
|
||||
from glanceclient.exc import HTTPNotFound
|
||||
|
||||
Reference in new issue
Block a user