diff --git a/nova/api/openstack/compute/extension_info.py b/nova/api/openstack/compute/extension_info.py index eb5743a33720..d0e3cc4d557b 100644 --- a/nova/api/openstack/compute/extension_info.py +++ b/nova/api/openstack/compute/extension_info.py @@ -12,15 +12,11 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo_log import log as logging - import webob.exc from nova.api.openstack import wsgi from nova.policies import extensions as ext_policies -LOG = logging.getLogger(__name__) - EXTENSION_LIST = [ { diff --git a/nova/api/openstack/compute/flavor_manage.py b/nova/api/openstack/compute/flavor_manage.py index f01820c9b1af..b028448c7241 100644 --- a/nova/api/openstack/compute/flavor_manage.py +++ b/nova/api/openstack/compute/flavor_manage.py @@ -12,8 +12,6 @@ import webob -from oslo_log import log as logging - from nova.api.openstack import api_version_request from nova.api.openstack.compute.schemas import flavor_manage from nova.api.openstack.compute.views import flavors as flavors_view @@ -27,7 +25,6 @@ from nova.policies import flavor_manage as fm_policies from nova import policy -LOG = logging.getLogger(__name__) ALIAS = "os-flavor-manage" diff --git a/nova/api/openstack/placement/handlers/allocation_candidate.py b/nova/api/openstack/placement/handlers/allocation_candidate.py index 391113fca71d..7ee87f8e4317 100644 --- a/nova/api/openstack/placement/handlers/allocation_candidate.py +++ b/nova/api/openstack/placement/handlers/allocation_candidate.py @@ -14,7 +14,6 @@ import collections -from oslo_log import log as logging from oslo_serialization import jsonutils from oslo_utils import encodeutils from oslo_utils import timeutils @@ -30,9 +29,6 @@ from nova.i18n import _ from nova.objects import resource_provider as rp_obj -LOG = logging.getLogger(__name__) - - def _transform_allocation_requests_dict(alloc_reqs): """Turn supplied list of AllocationRequest objects into a list of allocations dicts keyed by resource provider uuid of resources involved diff --git a/nova/cmd/compute.py b/nova/cmd/compute.py index 975ba225d05e..d9f14430f14e 100644 --- a/nova/cmd/compute.py +++ b/nova/cmd/compute.py @@ -37,7 +37,6 @@ from nova import utils from nova import version CONF = nova.conf.CONF -LOG = logging.getLogger('nova.compute') def main(): diff --git a/nova/objects/flavor.py b/nova/objects/flavor.py index 8c4d8e2f7e91..23be6e63e8fd 100644 --- a/nova/objects/flavor.py +++ b/nova/objects/flavor.py @@ -14,7 +14,6 @@ from oslo_db import exception as db_exc from oslo_db.sqlalchemy import utils as sqlalchemyutils -from oslo_log import log as logging from oslo_utils import versionutils from sqlalchemy import or_ from sqlalchemy.orm import joinedload @@ -33,7 +32,6 @@ from nova.objects import base from nova.objects import fields -LOG = logging.getLogger(__name__) OPTIONAL_FIELDS = ['extra_specs', 'projects'] # Remove these fields in version 2.0 of the object. DEPRECATED_FIELDS = ['deleted', 'deleted_at'] diff --git a/nova/tests/functional/regressions/test_bug_1735407.py b/nova/tests/functional/regressions/test_bug_1735407.py index eb321db31d5e..3f68b8b512b6 100644 --- a/nova/tests/functional/regressions/test_bug_1735407.py +++ b/nova/tests/functional/regressions/test_bug_1735407.py @@ -10,8 +10,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging - from nova import test from nova.tests import fixtures as nova_fixtures from nova.tests.functional import integrated_helpers @@ -21,8 +19,6 @@ import nova.tests.unit.image.fake from nova.tests.unit import policy_fixture from nova.virt import fake -LOG = logging.getLogger(__name__) - class TestParallelEvacuationWithServerGroup( test.TestCase, integrated_helpers.InstanceHelperMixin): diff --git a/nova/tests/unit/objects/test_objects.py b/nova/tests/unit/objects/test_objects.py index 72fa614409c7..f1975e55257e 100644 --- a/nova/tests/unit/objects/test_objects.py +++ b/nova/tests/unit/objects/test_objects.py @@ -21,7 +21,6 @@ import pprint import fixtures import mock -from oslo_log import log from oslo_utils import timeutils from oslo_versionedobjects import base as ovo_base from oslo_versionedobjects import exception as ovo_exc @@ -40,9 +39,6 @@ from nova.tests.unit import fake_notifier from nova import utils -LOG = log.getLogger(__name__) - - class MyOwnedObject(base.NovaPersistentObject, base.NovaObject): VERSION = '1.0' fields = {'baz': fields.IntegerField()} diff --git a/nova/virt/libvirt/volume/nfs.py b/nova/virt/libvirt/volume/nfs.py index 594950573ffa..4208404d38ef 100644 --- a/nova/virt/libvirt/volume/nfs.py +++ b/nova/virt/libvirt/volume/nfs.py @@ -11,13 +11,9 @@ # under the License. -from oslo_log import log as logging - import nova.conf from nova.virt.libvirt.volume import fs -LOG = logging.getLogger(__name__) - CONF = nova.conf.CONF diff --git a/nova/virt/powervm/host.py b/nova/virt/powervm/host.py index 534b2844aaee..2b206fee415e 100644 --- a/nova/virt/powervm/host.py +++ b/nova/virt/powervm/host.py @@ -14,14 +14,12 @@ import math -from oslo_log import log as logging from oslo_serialization import jsonutils from nova import conf as cfg from nova.objects import fields -LOG = logging.getLogger(__name__) CONF = cfg.CONF # Power VM hypervisor info