Remove unused logging import

Change-Id: Ia449eaa87765a72a400e870807e9a8799d233802
This commit is contained in:
Anh Tran 2017-02-20 14:23:16 +07:00
parent 7d451e6113
commit 2929a3d08f
27 changed files with 0 additions and 98 deletions

View File

@ -14,13 +14,10 @@
import networkx as nx
from networkx.readwrite import json_graph
from oslo_log import log
from pecan import rest
from vitrage.datasources import OPENSTACK_CLUSTER
LOG = log.getLogger(__name__)
class RootRestController(rest.RestController):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceAction
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import GraphAction
@ -21,8 +19,6 @@ from vitrage.common.exception import VitrageTransformerError
from vitrage.datasources.alarm_properties import AlarmProperties as AlarmProps
from vitrage.datasources import transformer_base as tbase
LOG = logging.getLogger(__name__)
class AlarmTransformerBase(tbase.TransformerBase):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@ -31,9 +29,6 @@ from vitrage.datasources.transformer_base import extract_field_value
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class CinderVolumeTransformer(ResourceTransformerBase):
# graph actions which need to refer them differently

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@ -27,8 +25,6 @@ from vitrage.datasources import transformer_base as tbase
import vitrage.graph.utils as graph_utils
from vitrage.utils.datetime import format_unix_timestamp
LOG = logging.getLogger(__name__)
class CollectdTransformer(AlarmTransformerBase):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@ -26,8 +24,6 @@ from vitrage.datasources import transformer_base as tbase
import vitrage.graph.utils as graph_utils
from vitrage.utils import datetime as datetime_utils
LOG = logging.getLogger(__name__)
class NagiosTransformer(AlarmTransformerBase):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@ -28,9 +26,6 @@ from vitrage.datasources.transformer_base import extract_field_value
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class InstanceTransformer(ResourceTransformerBase):
# graph actions which need to refer them differently

View File

@ -12,14 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.datasources import transformer_base as tbase
LOG = logging.getLogger(__name__)
class ResourceTransformerBase(tbase.TransformerBase):
def __init__(self, transformers, conf):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EntityCategory
from vitrage.common.constants import GraphAction
@ -26,8 +24,6 @@ from vitrage.datasources.static_physical import SWITCH
from vitrage.datasources import transformer_base
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class StaticPhysicalTransformer(ResourceTransformerBase):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@ -31,8 +29,6 @@ import vitrage.graph.utils as graph_utils
from vitrage.utils.datetime import change_time_str_format
from vitrage.utils.datetime import format_unix_timestamp
LOG = logging.getLogger(__name__)
class ZabbixTransformer(AlarmTransformerBase):

View File

@ -14,7 +14,6 @@
from oslo_config import cfg
from oslo_log import log as logging
from six.moves import queue
from vitrage.common.constants import EdgeLabel
@ -34,8 +33,6 @@ from vitrage.evaluator.template_fields import TemplateFields as TFields
from vitrage.opts import register_opts
from vitrage.tests.functional.base import TestFunctionalBase
LOG = logging.getLogger(__name__)
class TestActionExecutor(TestFunctionalBase):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from six.moves import queue
from vitrage.common.constants import DatasourceAction
@ -28,8 +27,6 @@ from vitrage.tests.functional.base import \
import vitrage.tests.mocks.mock_driver as mock_driver
from vitrage.tests.mocks import utils
LOG = logging.getLogger(__name__)
_TARGET_HOST = 'host-2'
_NAGIOS_TEST_INFO = {'resource_name': _TARGET_HOST,
DSProps.DATASOURCE_ACTION: DatasourceAction.SNAPSHOT}

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import UpdateMethod
@ -24,8 +23,6 @@ from vitrage.tests import base
from vitrage.tests.mocks import mock_driver
from vitrage.tests.unit.datasources.aodh.mock_driver import MockAodhDriver
LOG = logging.getLogger(__name__)
class AodhDriverTest(base.BaseTest):

View File

@ -15,7 +15,6 @@
import time
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import UpdateMethod
@ -30,8 +29,6 @@ from vitrage.tests.unit.datasources.test_alarm_transformer_base import \
BaseAlarmTransformerTest
from vitrage.utils.datetime import format_unix_timestamp
LOG = logging.getLogger(__name__)
# noinspection PyProtectedMember
class TestCollectdTransformer(BaseAlarmTransformerTest):

View File

@ -14,7 +14,6 @@
from datetime import datetime
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EventProperties as EventProps
@ -31,8 +30,6 @@ from vitrage.tests.mocks import mock_transformer
from vitrage.tests.unit.datasources.test_alarm_transformer_base import \
BaseAlarmTransformerTest
LOG = logging.getLogger(__name__)
# noinspection PyProtectedMember
class DoctorTransformerTest(BaseAlarmTransformerTest):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.datasources.nagios.config import NagiosConfig
from vitrage.datasources.nagios.config import NagiosHostMapping
@ -22,8 +21,6 @@ from vitrage.datasources.nova.instance import NOVA_INSTANCE_DATASOURCE
from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = logging.getLogger(__name__)
class TestNagiosConfig(base.BaseTest):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import GraphAction
from vitrage.datasources.nagios.properties import NagiosProperties as \
@ -23,8 +22,6 @@ from vitrage.tests.unit.datasources.nagios.mock_driver import MockNagiosDriver
from vitrage.tests.unit.datasources.nagios.nagios_base_test import \
NagiosBaseTest
LOG = logging.getLogger(__name__)
# noinspection PyProtectedMember
class NagiosDriverTest(NagiosBaseTest):

View File

@ -11,7 +11,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.datasources.nagios.parser import NagiosParser
from vitrage.datasources.nagios.properties import NagiosProperties
@ -19,8 +18,6 @@ from vitrage.tests.mocks import utils
from vitrage.tests.unit.datasources.nagios.nagios_base_test \
import NagiosBaseTest
LOG = logging.getLogger(__name__)
class NagiosParserTest(NagiosBaseTest):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceAction
from vitrage.common.constants import GraphAction
@ -25,9 +24,6 @@ from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = logging.getLogger(__name__)
class TestStaticDriver(base.BaseTest):
OPTS = [

View File

@ -15,7 +15,6 @@
import datetime
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EntityCategory
@ -29,8 +28,6 @@ from vitrage.datasources.static.transformer import StaticTransformer
from vitrage.tests import base
from vitrage.tests.mocks import mock_driver
LOG = logging.getLogger(__name__)
class TestStaticTransformer(base.BaseTest):

View File

@ -15,7 +15,6 @@
import os
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceAction
from vitrage.common.constants import DatasourceProperties as DSProps
@ -29,9 +28,6 @@ from vitrage.tests.mocks import utils
from vitrage.utils import file as file_utils
LOG = logging.getLogger(__name__)
class TestStaticPhysicalDriver(base.BaseTest):
OPTS = [

View File

@ -13,7 +13,6 @@
# under the License.
import abc
from oslo_log import log as logging
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@ -24,8 +23,6 @@ from vitrage.datasources.nova.host import NOVA_HOST_DATASOURCE
from vitrage.tests.unit.datasources.test_transformer_base import \
BaseTransformerTest
LOG = logging.getLogger(__name__)
# noinspection PyProtectedMember
class BaseAlarmTransformerTest(BaseTransformerTest):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils as utils
from vitrage.common.constants import UpdateMethod
@ -27,7 +26,6 @@ from vitrage.tests import base
CHANGES_INTERVAL = 'changes_interval'
LOG = logging.getLogger(__name__)
ZABBIX_DATASOURCE_NONE = '_'.join((ZABBIX_DATASOURCE, UpdateMethod.NONE))
ZABBIX_DATASOURCE_PULL = '_'.join((ZABBIX_DATASOURCE, UpdateMethod.PULL))
ZABBIX_DATASOURCE_PUSH = ZABBIX_DATASOURCE

View File

@ -12,13 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import VertexProperties as VProps
from vitrage.tests import base
LOG = logging.getLogger(__name__)
# noinspection PyProtectedMember
class BaseTransformerTest(base.BaseTest):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.datasources.nova.host import NOVA_HOST_DATASOURCE
from vitrage.datasources.zabbix.driver import ZabbixDriver
@ -23,9 +22,6 @@ from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = logging.getLogger(__name__)
class TestZabbixConfig(base.BaseTest):
OPTS = [

View File

@ -15,7 +15,6 @@
import copy
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import GraphAction
@ -25,8 +24,6 @@ from vitrage.tests.unit.datasources.zabbix.mock_driver import MockZabbixDriver
from vitrage.tests.unit.datasources.zabbix.zabbix_base_test import \
ZabbixBaseTest
LOG = logging.getLogger(__name__)
# noinspection PyProtectedMember
class ZabbixDriverTest(ZabbixBaseTest):

View File

@ -15,13 +15,9 @@
import random
import time
from oslo_log import log as logging
from vitrage import os_clients
from vitrage_tempest_tests.tests.api.base import BaseApiTest
LOG = logging.getLogger(__name__)
TEMPLATES_RESOURCES_PATH = 'resources/templates/'
TEMPLATES_SOURCES_PATH = '/etc/vitrage/templates/'

View File

@ -15,15 +15,10 @@
import json
import time
from oslo_log import log as logging
from vitrage.common.constants import VertexProperties as VProps
from vitrage_tempest_tests.tests.api.base import BaseApiTest
LOG = logging.getLogger(__name__)
class BaseTopologyTest(BaseApiTest):
"""Topology test class for Vitrage API tests."""