Skip to content

Commit

Permalink
Use oslo.log
Browse files Browse the repository at this point in the history
Convert the use of the incubated version of the log module
to the new oslo.log library.

Sync oslo-incubator modules to update their imports as well.

Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Change-Id: Ic4932e3f58191869c30bd07a010a6e9fdcb2a12c
  • Loading branch information
dims and dhellmann committed Feb 22, 2015
1 parent 69d0c64 commit 97d63d8
Show file tree
Hide file tree
Showing 287 changed files with 376 additions and 1,060 deletions.
2 changes: 1 addition & 1 deletion nova/api/auth.py
Expand Up @@ -17,14 +17,14 @@
"""

from oslo_config import cfg
from oslo_log import log as logging
from oslo_middleware import request_id
from oslo_serialization import jsonutils
import webob.dec
import webob.exc

from nova import context
from nova.i18n import _
from nova.openstack.common import log as logging
from nova import wsgi


Expand Down
2 changes: 1 addition & 1 deletion nova/api/ec2/__init__.py
Expand Up @@ -22,6 +22,7 @@

from oslo_config import cfg
from oslo_context import context as common_context
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import importutils
from oslo_utils import netutils
Expand All @@ -42,7 +43,6 @@
from nova.i18n import _LE
from nova.i18n import _LI
from nova.i18n import _LW
from nova.openstack.common import log as logging
from nova.openstack.common import memorycache
from nova import wsgi

Expand Down
2 changes: 1 addition & 1 deletion nova/api/ec2/apirequest.py
Expand Up @@ -23,12 +23,12 @@
from xml.dom import minidom

from lxml import etree
from oslo_log import log as logging
from oslo_utils import encodeutils
import six

from nova.api.ec2 import ec2utils
from nova import exception
from nova.openstack.common import log as logging

LOG = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion nova/api/ec2/cloud.py
Expand Up @@ -24,6 +24,7 @@
import time

from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import timeutils

from nova.api.ec2 import ec2utils
Expand All @@ -46,7 +47,6 @@
from nova.network.security_group import neutron_driver
from nova.network.security_group import openstack_driver
from nova import objects
from nova.openstack.common import log as logging
from nova import quota
from nova import servicegroup
from nova import utils
Expand Down
2 changes: 1 addition & 1 deletion nova/api/ec2/ec2utils.py
Expand Up @@ -17,6 +17,7 @@
import functools
import re

from oslo_log import log as logging
from oslo_utils import timeutils

from nova import context
Expand All @@ -26,7 +27,6 @@
from nova.network import model as network_model
from nova import objects
from nova.objects import base as obj_base
from nova.openstack.common import log as logging
from nova.openstack.common import memorycache
from nova.openstack.common import uuidutils

Expand Down
2 changes: 1 addition & 1 deletion nova/api/ec2/faults.py
Expand Up @@ -11,12 +11,12 @@
# under the License.

from oslo_config import cfg
from oslo_log import log as logging
import webob.dec
import webob.exc

import nova.api.ec2
from nova import context
from nova.openstack.common import log as logging
from nova import utils

CONF = cfg.CONF
Expand Down
2 changes: 1 addition & 1 deletion nova/api/metadata/base.py
Expand Up @@ -21,6 +21,7 @@
import posixpath

from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import importutils
from oslo_utils import timeutils
Expand All @@ -34,7 +35,6 @@
from nova import network
from nova import objects
from nova.objects import base as obj_base
from nova.openstack.common import log as logging
from nova import utils
from nova.virt import netutils

Expand Down
2 changes: 1 addition & 1 deletion nova/api/metadata/handler.py
Expand Up @@ -20,6 +20,7 @@
import os

from oslo_config import cfg
from oslo_log import log as logging
import six
import webob.dec
import webob.exc
Expand All @@ -30,7 +31,6 @@
from nova.i18n import _
from nova.i18n import _LE
from nova.i18n import _LW
from nova.openstack.common import log as logging
from nova.openstack.common import memorycache
from nova import utils
from nova import wsgi
Expand Down
2 changes: 1 addition & 1 deletion nova/api/metadata/vendordata_json.py
Expand Up @@ -18,11 +18,11 @@
import errno

from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils

from nova.api.metadata import base
from nova.i18n import _LW
from nova.openstack.common import log as logging

file_opt = cfg.StrOpt('vendordata_jsonfile_path',
help='File to load JSON formatted vendor data from')
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/__init__.py
Expand Up @@ -19,6 +19,7 @@
"""

from oslo_config import cfg
from oslo_log import log as logging
import routes
import stevedore
import webob.dec
Expand All @@ -34,7 +35,6 @@
from nova.i18n import _LW
from nova.i18n import translate
from nova import notifications
from nova.openstack.common import log as logging
from nova import utils
from nova import wsgi as base_wsgi

Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/common.py
Expand Up @@ -20,6 +20,7 @@
import re

from oslo_config import cfg
from oslo_log import log as logging
import six.moves.urllib.parse as urlparse
import webob
from webob import exc
Expand All @@ -31,7 +32,6 @@
from nova.i18n import _
from nova.i18n import _LE
from nova.i18n import _LW
from nova.openstack.common import log as logging
from nova import quota

osapi_opts = [
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/__init__.py
Expand Up @@ -20,9 +20,9 @@
"""

from oslo_config import cfg
from oslo_log import log as logging

from nova.api.openstack import extensions
from nova.openstack.common import log as logging

ext_opts = [
cfg.ListOpt('osapi_compute_ext_list',
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/admin_actions.py
Expand Up @@ -15,6 +15,7 @@
import os.path
import traceback

from oslo_log import log as logging
from oslo_utils import strutils
import six
import webob
Expand All @@ -28,7 +29,6 @@
from nova import exception
from nova.i18n import _
from nova.i18n import _LE
from nova.openstack.common import log as logging

LOG = logging.getLogger(__name__)

Expand Down
Expand Up @@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.

from oslo_log import log as logging
from oslo_serialization import jsonutils
import six
import webob
Expand All @@ -21,7 +22,6 @@
from nova import compute
from nova import exception
from nova.i18n import _LI
from nova.openstack.common import log as logging


LOG = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/attach_interfaces.py
Expand Up @@ -16,6 +16,7 @@
"""The instance interfaces extension."""

import netaddr
from oslo_log import log as logging
import six
import webob
from webob import exc
Expand All @@ -27,7 +28,6 @@
from nova.i18n import _
from nova.i18n import _LI
from nova import network
from nova.openstack.common import log as logging


LOG = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/baremetal_nodes.py
Expand Up @@ -16,13 +16,13 @@
"""The bare-metal admin extension with Ironic Proxy."""

from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils
import webob

from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova.i18n import _
from nova.openstack.common import log as logging

ironic_client = importutils.try_import('ironicclient.client')

Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/floating_ips.py
Expand Up @@ -15,6 +15,7 @@
# License for the specific language governing permissions and limitations
# under the License.

from oslo_log import log as logging
import webob

from nova.api.openstack import common
Expand All @@ -26,7 +27,6 @@
from nova.i18n import _
from nova.i18n import _LW
from nova import network
from nova.openstack.common import log as logging
from nova.openstack.common import uuidutils


Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/hosts.py
Expand Up @@ -15,6 +15,7 @@

"""The hosts admin extension."""

from oslo_log import log as logging
import webob.exc

from nova.api.openstack import extensions
Expand All @@ -23,7 +24,6 @@
from nova.i18n import _
from nova.i18n import _LI
from nova import objects
from nova.openstack.common import log as logging

LOG = logging.getLogger(__name__)
authorize = extensions.extension_authorizer('compute', 'hosts')
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/multinic.py
Expand Up @@ -15,6 +15,7 @@

"""The multinic extension."""

from oslo_log import log as logging
import webob
from webob import exc

Expand All @@ -25,7 +26,6 @@
from nova import exception
from nova.i18n import _
from nova.i18n import _LE
from nova.openstack.common import log as logging


LOG = logging.getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions nova/api/openstack/compute/contrib/os_tenant_networks.py
Expand Up @@ -13,10 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.


import netaddr
import netaddr.core as netexc
from oslo_config import cfg
from oslo_log import log as logging
import six
import webob
from webob import exc
Expand All @@ -27,7 +27,6 @@
from nova.i18n import _
from nova.i18n import _LE
import nova.network
from nova.openstack.common import log as logging
from nova import quota


Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/security_groups.py
Expand Up @@ -19,6 +19,7 @@
import contextlib
from xml.dom import minidom

from oslo_log import log as logging
from oslo_serialization import jsonutils
import six
import webob
Expand All @@ -31,7 +32,6 @@
from nova import exception
from nova.i18n import _
from nova.network.security_group import openstack_driver
from nova.openstack.common import log as logging
from nova.virt import netutils


Expand Down
Expand Up @@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.

from oslo_log import log as logging
import webob

from nova.api.openstack import extensions
Expand All @@ -22,7 +23,6 @@
from nova.i18n import _LI
from nova import objects
from nova.objects import external_event as external_event_obj
from nova.openstack.common import log as logging


LOG = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/server_groups.py
Expand Up @@ -15,6 +15,7 @@

"""The Server Group API Extension."""

from oslo_log import log as logging
import webob
from webob import exc

Expand All @@ -25,7 +26,6 @@
from nova.i18n import _
from nova.i18n import _LE
from nova import objects
from nova.openstack.common import log as logging
from nova import utils

LOG = logging.getLogger(__name__)
Expand Down
3 changes: 2 additions & 1 deletion nova/api/openstack/compute/contrib/server_usage.py
Expand Up @@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.

from oslo_log import log as logging

from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova import compute
from nova.openstack.common import log as logging

LOG = logging.getLogger(__name__)
authorize = extensions.soft_extension_authorizer('compute', 'server_usage')
Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/contrib/volumes.py
Expand Up @@ -15,6 +15,7 @@

"""The volumes extension."""

from oslo_log import log as logging
from oslo_utils import strutils
import webob
from webob import exc
Expand All @@ -27,7 +28,6 @@
from nova.i18n import _
from nova.i18n import _LI
from nova import objects
from nova.openstack.common import log as logging
from nova.openstack.common import uuidutils
from nova import volume

Expand Down
2 changes: 1 addition & 1 deletion nova/api/openstack/compute/extensions.py
Expand Up @@ -14,9 +14,9 @@
# under the License.

from oslo_config import cfg
from oslo_log import log as logging

from nova.api.openstack import extensions as base_extensions
from nova.openstack.common import log as logging

ext_opts = [
cfg.MultiStrOpt('osapi_compute_extension',
Expand Down

0 comments on commit 97d63d8

Please sign in to comment.