Use oslo_log instead of oslo-incubator code
Code from manila/openstack/common/log.py duplicates code from oslo_log, so we use oslo_log instead of oslo-incubator log.py module. Change-Id: I0e4c5833d20ce76a9cf7f2ed2293007d6048ff08
This commit is contained in:
parent
85f067cff5
commit
c8a06f808d
@ -25,15 +25,14 @@ revision = '38e632621e5a'
|
|||||||
down_revision = '211836bf835c'
|
down_revision = '211836bf835c'
|
||||||
|
|
||||||
from alembic import op
|
from alembic import op
|
||||||
|
from oslo_log import log
|
||||||
from manila.i18n import _LI
|
|
||||||
from manila.openstack.common import log as logging
|
|
||||||
|
|
||||||
from oslo_utils import strutils
|
from oslo_utils import strutils
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy.sql import table
|
from sqlalchemy.sql import table
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
from manila.i18n import _LI
|
||||||
|
|
||||||
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
|
@ -15,13 +15,13 @@
|
|||||||
|
|
||||||
import netaddr
|
import netaddr
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from manila.common import constants
|
from manila.common import constants
|
||||||
from manila import exception
|
from manila import exception
|
||||||
from manila.i18n import _
|
from manila.i18n import _
|
||||||
from manila import network
|
from manila import network
|
||||||
from manila.openstack.common import log as logging
|
|
||||||
from manila import utils
|
from manila import utils
|
||||||
|
|
||||||
standalone_network_plugin_opts = [
|
standalone_network_plugin_opts = [
|
||||||
@ -59,7 +59,7 @@ standalone_network_plugin_opts = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class StandaloneNetworkPlugin(network.NetworkBaseAPI):
|
class StandaloneNetworkPlugin(network.NetworkBaseAPI):
|
||||||
|
@ -32,16 +32,16 @@ import socket
|
|||||||
|
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from manila import exception
|
from manila import exception
|
||||||
from manila.i18n import _
|
from manila.i18n import _
|
||||||
from manila.openstack.common import log as logging
|
|
||||||
from manila.share import driver
|
from manila.share import driver
|
||||||
from manila import utils
|
from manila import utils
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
hdfs_native_share_opts = [
|
hdfs_native_share_opts = [
|
||||||
cfg.StrOpt('hdfs_namenode_ip',
|
cfg.StrOpt('hdfs_namenode_ip',
|
||||||
|
@ -20,12 +20,12 @@ import logging
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from manila import exception
|
from manila import exception
|
||||||
from manila.i18n import _
|
from manila.i18n import _
|
||||||
from manila.i18n import _LI
|
from manila.i18n import _LI
|
||||||
from manila.openstack.common import log
|
|
||||||
from manila.share import driver
|
from manila.share import driver
|
||||||
from manila.share.drivers.hp import hp_3par_mediator
|
from manila.share.drivers.hp import hp_3par_mediator
|
||||||
|
|
||||||
|
@ -18,20 +18,20 @@ This 'mediator' de-couples the 3PAR focused client from the OpenStack focused
|
|||||||
driver.
|
driver.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from oslo_log import log
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from manila import exception
|
from manila import exception
|
||||||
from manila.i18n import _
|
from manila.i18n import _
|
||||||
from manila.openstack.common import log as logging
|
|
||||||
|
|
||||||
hp3parclient = importutils.try_import("hp3parclient")
|
hp3parclient = importutils.try_import("hp3parclient")
|
||||||
if hp3parclient:
|
if hp3parclient:
|
||||||
from hp3parclient import file_client
|
from hp3parclient import file_client
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
DENY = '-'
|
DENY = '-'
|
||||||
ALLOW = '+'
|
ALLOW = '+'
|
||||||
OPEN_STACK_MANILA_FSHARE = 'OpenStack Manila fshare'
|
OPEN_STACK_MANILA_FSHARE = 'OpenStack Manila fshare'
|
||||||
|
Loading…
Reference in New Issue
Block a user