Refactor to use oslo.log library

Convert to use oslo.log library.  This is needed because of a
recent commit to nova that moves all of nova to use oslo.log.

Change-Id: Ied76e5184134759a450982e23aaa0167d42ca7d7
This commit is contained in:
Kyle L. Henderson 2015-02-23 09:53:58 -06:00
parent 7bdd6ebee5
commit eac2203bdb
10 changed files with 13 additions and 10 deletions

View File

@ -19,12 +19,12 @@ from nova import context as ctx
from nova import exception from nova import exception
from nova.i18n import _LI, _ from nova.i18n import _LI, _
from nova.objects import flavor as flavor_obj from nova.objects import flavor as flavor_obj
from nova.openstack.common import log as logging
from nova.virt import configdrive from nova.virt import configdrive
from nova.virt import driver from nova.virt import driver
import time import time
from oslo.config import cfg from oslo.config import cfg
from oslo_log import log as logging
import taskflow.engines import taskflow.engines
from taskflow.patterns import linear_flow as lf from taskflow.patterns import linear_flow as lf

View File

@ -15,10 +15,11 @@
# under the License. # under the License.
from nova.openstack.common import log as logging
from nova.virt import driver from nova.virt import driver
from nova.virt import fake from nova.virt import fake
from oslo_log import log as logging
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -18,9 +18,9 @@ import math
from nova.compute import arch from nova.compute import arch
from nova.compute import hv_type from nova.compute import hv_type
from nova.compute import vm_mode from nova.compute import vm_mode
from nova.openstack.common import log as logging
from oslo.serialization import jsonutils from oslo.serialization import jsonutils
from oslo_log import log as logging
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -19,12 +19,12 @@ import abc
from oslo.config import cfg from oslo.config import cfg
from oslo.utils import units from oslo.utils import units
from oslo_log import log as logging
import six import six
from nova import exception as nova_exc from nova import exception as nova_exc
from nova import image from nova import image
from nova.i18n import _LI, _LE from nova.i18n import _LI, _LE
from nova.openstack.common import log as logging
from pypowervm import exceptions as pvm_exc from pypowervm import exceptions as pvm_exc
from pypowervm.jobs import upload_lv from pypowervm.jobs import upload_lv
from pypowervm.wrappers import constants as pvm_consts from pypowervm.wrappers import constants as pvm_consts

View File

@ -18,11 +18,11 @@ import abc
from nova.api.metadata import base as instance_metadata from nova.api.metadata import base as instance_metadata
from nova.i18n import _LE from nova.i18n import _LE
from nova.i18n import _LI from nova.i18n import _LI
from nova.openstack.common import log as logging
from nova.virt import configdrive from nova.virt import configdrive
import os import os
from oslo.config import cfg from oslo.config import cfg
from oslo_log import log as logging
from pypowervm.jobs import upload_lv from pypowervm.jobs import upload_lv
from pypowervm.wrappers import constants as pvmc from pypowervm.wrappers import constants as pvmc

View File

@ -15,7 +15,6 @@
# under the License. # under the License.
from nova.i18n import _LI from nova.i18n import _LI
from nova.openstack.common import log as logging
from pypowervm.jobs import power from pypowervm.jobs import power
from pypowervm.wrappers import logical_partition as lpar_w from pypowervm.wrappers import logical_partition as lpar_w
@ -24,6 +23,8 @@ from taskflow import task
from nova_powervm.virt.powervm import media from nova_powervm.virt.powervm import media
from nova_powervm.virt.powervm import vm from nova_powervm.virt.powervm import vm
from oslo_log import log as logging
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -16,10 +16,10 @@
from nova.i18n import _LI from nova.i18n import _LI
from nova.i18n import _LW from nova.i18n import _LW
from nova.openstack.common import log as logging
from pypowervm.jobs import power from pypowervm.jobs import power
from pypowervm.wrappers import logical_partition as pvm_lpar from pypowervm.wrappers import logical_partition as pvm_lpar
from oslo_log import log as logging
from taskflow import task from taskflow import task
from taskflow.types import failure as task_fail from taskflow.types import failure as task_fail

View File

@ -17,10 +17,10 @@
import abc import abc
from oslo.config import cfg from oslo.config import cfg
from oslo_log import log as logging
import six import six
from nova.i18n import _LE from nova.i18n import _LE
from nova.openstack.common import log as logging
from pypowervm import exceptions as pvm_exc from pypowervm import exceptions as pvm_exc
from pypowervm.wrappers import constants as pvm_consts from pypowervm.wrappers import constants as pvm_consts
from pypowervm.wrappers import logical_partition as pvm_lpar from pypowervm.wrappers import logical_partition as pvm_lpar

View File

@ -15,11 +15,11 @@
# under the License. # under the License.
from oslo.config import cfg from oslo.config import cfg
from oslo_log import log as logging
from nova.compute import power_state from nova.compute import power_state
from nova import exception from nova import exception
from nova.i18n import _LI, _LE from nova.i18n import _LI, _LE
from nova.openstack.common import log as logging
from nova.virt import hardware from nova.virt import hardware
from pypowervm import exceptions as pvm_exc from pypowervm import exceptions as pvm_exc
from pypowervm.jobs import cna from pypowervm.jobs import cna

View File

@ -1,7 +1,8 @@
pbr>=0.5.21,<1.0 pbr>=0.5.21,<1.0
Babel>=1.3 Babel>=1.3
six>=1.7.0 six>=1.7.0
oslo.config>=1.4.0 # Apache-2.0
oslo.log>=0.1.0 # Apache-2.0
oslo.serialization>=1.0.0 # Apache-2.0 oslo.serialization>=1.0.0 # Apache-2.0
oslo.utils>=1.0.0 # Apache-2.0 oslo.utils>=1.0.0 # Apache-2.0
oslo.config>=1.4.0 # Apache-2.0
taskflow>=0.6 taskflow>=0.6