diff --git a/sahara/conductor/api.py b/sahara/conductor/api.py index 711d2afa..80ef7122 100644 --- a/sahara/conductor/api.py +++ b/sahara/conductor/api.py @@ -16,7 +16,6 @@ """Handles all requests to the conductor service.""" from oslo_config import cfg -from oslo_log import log as logging from sahara.conductor import manager from sahara.conductor import resource as r @@ -35,8 +34,6 @@ CONF = cfg.CONF CONF.register_group(conductor_group) CONF.register_opts(conductor_opts, conductor_group) -LOG = logging.getLogger(__name__) - def _get_id(obj): """Return object id. diff --git a/sahara/db/api.py b/sahara/db/api.py index 1a70c84c..460ea3ea 100644 --- a/sahara/db/api.py +++ b/sahara/db/api.py @@ -34,7 +34,6 @@ interface. from oslo_config import cfg from oslo_db import api as db_api from oslo_db import options -from oslo_log import log as logging from sahara.utils import types @@ -47,7 +46,6 @@ _BACKEND_MAPPING = { } IMPL = db_api.DBAPI.from_config(CONF, backend_mapping=_BACKEND_MAPPING) -LOG = logging.getLogger(__name__) def setup_db(): diff --git a/sahara/service/networks.py b/sahara/service/networks.py index 4fbb3a41..eef06a84 100644 --- a/sahara/service/networks.py +++ b/sahara/service/networks.py @@ -14,7 +14,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging import six from sahara import conductor as c @@ -22,8 +21,6 @@ from sahara import context from sahara.utils.openstack import base as b from sahara.utils.openstack import nova -LOG = logging.getLogger(__name__) - conductor = c.API CONF = cfg.CONF diff --git a/sahara/tests/tempest/scenario/data_processing/client_tests/base.py b/sahara/tests/tempest/scenario/data_processing/client_tests/base.py index 5e124f68..325bfbbb 100644 --- a/sahara/tests/tempest/scenario/data_processing/client_tests/base.py +++ b/sahara/tests/tempest/scenario/data_processing/client_tests/base.py @@ -14,7 +14,6 @@ import time -from oslo_log import log as logging from oslo_utils import timeutils from saharaclient.api import base as sab from saharaclient import client as sahara_client @@ -29,8 +28,6 @@ TEMPEST_CONF = config.CONF CLUSTER_STATUS_ACTIVE = "Active" CLUSTER_STATUS_ERROR = "Error" -LOG = logging.getLogger(__name__) - class BaseDataProcessingTest(manager.ScenarioTest): @classmethod diff --git a/sahara/utils/procutils.py b/sahara/utils/procutils.py index 9be2b84c..6fe59445 100644 --- a/sahara/utils/procutils.py +++ b/sahara/utils/procutils.py @@ -19,13 +19,10 @@ import sys from eventlet.green import subprocess from eventlet import timeout as e_timeout -from oslo_log import log as logging from sahara import context from sahara import exceptions -LOG = logging.getLogger(__name__) - def _get_sub_executable(): return '%s/_sahara-subprocess' % os.path.dirname(sys.argv[0]) diff --git a/sahara/utils/wsgi.py b/sahara/utils/wsgi.py index e36dfbf4..e940ce58 100644 --- a/sahara/utils/wsgi.py +++ b/sahara/utils/wsgi.py @@ -21,15 +21,12 @@ import datetime from oslo_config import cfg -from oslo_log import log as logging from oslo_serialization import jsonutils import six from sahara import exceptions from sahara.i18n import _ -LOG = logging.getLogger(__name__) - CONF = cfg.CONF