remove old oslo.config and use new oslo_config
Change-Id: Ic955ab24843c2c1c58748fdefde75356e0bb47df
This commit is contained in:
parent
62ee7abadd
commit
62a45027b8
|
@ -13,7 +13,7 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -13,16 +13,15 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from wsgiref import simple_server
|
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
import paste.deploy
|
import paste.deploy
|
||||||
from stevedore import named
|
from stevedore import named
|
||||||
|
from wsgiref import simple_server
|
||||||
|
|
||||||
|
from kiloeyes.common import constant
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
|
|
||||||
OPTS = [
|
OPTS = [
|
||||||
cfg.MultiStrOpt('dispatcher',
|
cfg.MultiStrOpt('dispatcher',
|
||||||
|
@ -35,10 +34,13 @@ LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def api_app(conf):
|
def api_app(conf):
|
||||||
|
log.set_defaults(constant.KILOEYES_LOGGING_CONTEXT_FORMAT,
|
||||||
|
constant.KILOEYES_LOG_LEVELS)
|
||||||
|
log.register_options(cfg.CONF)
|
||||||
|
|
||||||
cfg.CONF(args=[], project='kiloeyes')
|
cfg.CONF(args=[], project='kiloeyes')
|
||||||
log_levels = (cfg.CONF.default_log_levels)
|
|
||||||
cfg.set_defaults(log.log_opts, default_log_levels=log_levels)
|
log.setup(cfg.CONF, 'kiloeyes')
|
||||||
log.setup('kiloeyes')
|
|
||||||
|
|
||||||
dispatcher_manager = named.NamedExtensionManager(
|
dispatcher_manager = named.NamedExtensionManager(
|
||||||
namespace=namespace.DISPATCHER_NS,
|
namespace=namespace.DISPATCHER_NS,
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Copyright 2013 IBM Corp
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
KILOEYES_LOG_LEVELS = ['oslo_messaging=INFO', 'iso8601=WARN',
|
||||||
|
'requests.packages.urllib3.connectionpool=WARN',
|
||||||
|
'urllib3.connectionpool=WARN', 'websocket=WARN',
|
||||||
|
'stevedore=WARN', 'kiloeyes=WARN']
|
||||||
|
|
||||||
|
KILOEYES_LOGGING_CONTEXT_FORMAT = ('%(asctime)s.%(msecs)03d %(process)d '
|
||||||
|
'%(levelname)s %(name)s [%(request_id)s '
|
||||||
|
'%(user_identity)s] %(instance)s'
|
||||||
|
'%(message)s')
|
|
@ -16,7 +16,7 @@ import email.mime.text
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
import smtplib
|
import smtplib
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
MAILSENDER_OPTS = [
|
MAILSENDER_OPTS = [
|
||||||
cfg.StrOpt('username',
|
cfg.StrOpt('username',
|
||||||
|
|
|
@ -16,7 +16,7 @@ from oslo_config import cfg
|
||||||
import requests
|
import requests
|
||||||
import ujson as json
|
import ujson as json
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
ES_OPTS = [
|
ES_OPTS = [
|
||||||
|
|
|
@ -26,7 +26,7 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
KAFKA_OPTS = [
|
KAFKA_OPTS = [
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
import falcon
|
import falcon
|
||||||
from falcon import api_helpers
|
from falcon import api_helpers
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
RESOURCE_METHOD_FLAG = 'fab05a04-b861-4651-bd0c-9cb3eb9a6088'
|
RESOURCE_METHOD_FLAG = 'fab05a04-b861-4651-bd0c-9cb3eb9a6088'
|
||||||
|
|
|
@ -17,7 +17,7 @@ from oslo_config import cfg
|
||||||
|
|
||||||
from kiloeyes.api import monasca_api_v2
|
from kiloeyes.api import monasca_api_v2
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
OPTS = [
|
OPTS = [
|
||||||
cfg.MultiStrOpt('id',
|
cfg.MultiStrOpt('id',
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
from stevedore import driver
|
from stevedore import driver
|
||||||
|
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import kafka_conn
|
from kiloeyes.common import kafka_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import service as os_service
|
from kiloeyes.openstack.common import service as os_service
|
||||||
|
|
||||||
OPTS = [
|
OPTS = [
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import hashlib
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,12 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
from stevedore import driver
|
from stevedore import driver
|
||||||
|
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import kafka_conn
|
from kiloeyes.common import kafka_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import service as os_service
|
from kiloeyes.openstack.common import service as os_service
|
||||||
|
|
||||||
NOTIFICATION_ENGINE_OPTS = [
|
NOTIFICATION_ENGINE_OPTS = [
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from kiloeyes.common import email_sender
|
from kiloeyes.common import email_sender
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
from stevedore import driver
|
from stevedore import driver
|
||||||
|
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import service as os_service
|
from kiloeyes.openstack.common import service as os_service
|
||||||
from kiloeyes import service
|
from kiloeyes import service
|
||||||
|
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
|
from stevedore import driver
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import kafka_conn
|
from kiloeyes.common import kafka_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import service as os_service
|
from kiloeyes.openstack.common import service as os_service
|
||||||
from oslo_config import cfg
|
|
||||||
from stevedore import driver
|
|
||||||
import threading
|
|
||||||
import time
|
|
||||||
|
|
||||||
lock = threading.RLock()
|
lock = threading.RLock()
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,12 @@
|
||||||
import collections
|
import collections
|
||||||
import copy
|
import copy
|
||||||
import json
|
import json
|
||||||
|
from oslo_log import log
|
||||||
|
import uuid
|
||||||
|
|
||||||
from kiloeyes.common import alarm_expr_calculator as calculator
|
from kiloeyes.common import alarm_expr_calculator as calculator
|
||||||
from kiloeyes.common import alarm_expr_parser as parser
|
from kiloeyes.common import alarm_expr_parser as parser
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import timeutils as tu
|
from kiloeyes.openstack.common import timeutils as tu
|
||||||
import uuid
|
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -18,7 +18,7 @@ import dateutil.parser as dparser
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -30,7 +30,7 @@ import greenlet
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
from kiloeyes.openstack.common.gettextutils import _LI
|
from kiloeyes.openstack.common.gettextutils import _LI
|
||||||
from kiloeyes.openstack.common import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
help_for_backdoor_port = (
|
help_for_backdoor_port = (
|
||||||
"Acceptable values are 0, <port>, and <start>:<end>, where 0 results "
|
"Acceptable values are 0, <port>, and <start>:<end>, where 0 results "
|
||||||
|
|
|
@ -19,7 +19,7 @@ import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from kiloeyes.openstack.common import excutils
|
from kiloeyes.openstack.common import excutils
|
||||||
from kiloeyes.openstack.common import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ from eventlet import event
|
||||||
from eventlet import greenthread
|
from eventlet import greenthread
|
||||||
|
|
||||||
from kiloeyes.openstack.common.gettextutils import _LE, _LW
|
from kiloeyes.openstack.common.gettextutils import _LE, _LW
|
||||||
from kiloeyes.openstack.common import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ from oslo_config import cfg
|
||||||
from kiloeyes.openstack.common import eventlet_backdoor
|
from kiloeyes.openstack.common import eventlet_backdoor
|
||||||
from kiloeyes.openstack.common.gettextutils import _LE, _LI, _LW
|
from kiloeyes.openstack.common.gettextutils import _LE, _LI, _LW
|
||||||
from kiloeyes.openstack.common import importutils
|
from kiloeyes.openstack.common import importutils
|
||||||
from kiloeyes.openstack.common import log as logging
|
from oslo_log import log as logging
|
||||||
from kiloeyes.openstack.common import systemd
|
from kiloeyes.openstack.common import systemd
|
||||||
from kiloeyes.openstack.common import threadgroup
|
from kiloeyes.openstack.common import threadgroup
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import os
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
|
@ -16,7 +16,7 @@ import threading
|
||||||
import eventlet
|
import eventlet
|
||||||
from eventlet import greenpool
|
from eventlet import greenpool
|
||||||
|
|
||||||
from kiloeyes.openstack.common import log as logging
|
from oslo_log import log as logging
|
||||||
from kiloeyes.openstack.common import loopingcall
|
from kiloeyes.openstack.common import loopingcall
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,26 +14,23 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
|
import sys
|
||||||
|
|
||||||
from kiloeyes.openstack.common import gettextutils
|
from kiloeyes.common import constant
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
|
|
||||||
|
|
||||||
cfg.CONF.import_opt('default_log_levels', 'kiloeyes.openstack.common.log')
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def prepare_service(argv=None):
|
def prepare_service(argv=None):
|
||||||
gettextutils.install('kiloeyes')
|
log.set_defaults(constant.KILOEYES_LOGGING_CONTEXT_FORMAT,
|
||||||
gettextutils.enable_lazy()
|
constant.KILOEYES_LOG_LEVELS)
|
||||||
log_levels = (cfg.CONF.default_log_levels)
|
log.register_options(cfg.CONF)
|
||||||
cfg.set_defaults(log.log_opts, default_log_levels=log_levels)
|
|
||||||
if argv is None:
|
if argv is None:
|
||||||
argv = sys.argv
|
argv = sys.argv
|
||||||
cfg.CONF(argv[1:], project='kiloeyes')
|
cfg.CONF(argv[1:], project='kiloeyes')
|
||||||
log.setup('kiloeyes')
|
log.setup(cfg.CONF, 'kiloeyes')
|
||||||
LOG.info('Service has started!')
|
LOG.info('Service has started!')
|
||||||
|
|
|
@ -12,12 +12,13 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from kiloeyes.common import alarm_expr_calculator as calculator
|
from oslo_log import log
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from kiloeyes.common import alarm_expr_calculator as calculator
|
||||||
|
from kiloeyes import tests
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,9 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from oslo_log import log
|
||||||
|
|
||||||
from kiloeyes.common import alarm_expr_parser
|
from kiloeyes.common import alarm_expr_parser
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -14,10 +14,11 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from kiloeyes.common import alarm_expr_validator as validator
|
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
|
||||||
import os
|
import os
|
||||||
|
from oslo_log import log
|
||||||
|
|
||||||
|
from kiloeyes.common import alarm_expr_validator as validator
|
||||||
|
from kiloeyes import tests
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
import email.mime.text
|
import email.mime.text
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_log import log
|
||||||
import smtplib
|
import smtplib
|
||||||
|
|
||||||
from kiloeyes.common import email_sender
|
from kiloeyes.common import email_sender
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -12,16 +12,16 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
import json
|
||||||
|
import mock
|
||||||
|
from oslo_log import log
|
||||||
|
import requests
|
||||||
|
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.microservice import timed_strategy
|
from kiloeyes.microservice import timed_strategy
|
||||||
from kiloeyes.openstack.common.fixture import config
|
from kiloeyes.openstack.common.fixture import config
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
import json
|
|
||||||
import mock
|
|
||||||
import requests
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
from oslo_log import log
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
from kiloeyes.microservice import metrics_fixer
|
from kiloeyes.microservice import metrics_fixer
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
import ast
|
import ast
|
||||||
import json
|
import json
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_log import log
|
||||||
|
|
||||||
from kiloeyes.common import email_sender
|
from kiloeyes.common import email_sender
|
||||||
from kiloeyes.microservice import notification_processor
|
from kiloeyes.microservice import notification_processor
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import dateutil.parser as dparser
|
import dateutil.parser as dparser
|
||||||
|
from oslo_log import log
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from kiloeyes.microservice import timed_strategy
|
from kiloeyes.microservice import timed_strategy
|
||||||
from kiloeyes.openstack.common.fixture import config
|
from kiloeyes.openstack.common.fixture import config
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
import json
|
import json
|
||||||
import mock
|
import mock
|
||||||
import os
|
import os
|
||||||
|
from oslo_log import log
|
||||||
|
|
||||||
from kiloeyes.microservice import threshold_processor as processor
|
from kiloeyes.microservice import threshold_processor as processor
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import timeutils as tu
|
from kiloeyes.openstack.common import timeutils as tu
|
||||||
from kiloeyes import tests
|
from kiloeyes import tests
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ from kiloeyes.common import alarm_expr_validator
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -21,7 +21,7 @@ from stevedore import driver
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -17,6 +17,7 @@ import datetime
|
||||||
import dateutil.parser
|
import dateutil.parser
|
||||||
import falcon
|
import falcon
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_log import log
|
||||||
import requests
|
import requests
|
||||||
from stevedore import driver
|
from stevedore import driver
|
||||||
|
|
||||||
|
@ -24,7 +25,6 @@ from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import kafka_conn
|
from kiloeyes.common import kafka_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
|
||||||
from kiloeyes.openstack.common import timeutils as tu
|
from kiloeyes.openstack.common import timeutils as tu
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -23,7 +23,7 @@ import uuid
|
||||||
from kiloeyes.common import es_conn
|
from kiloeyes.common import es_conn
|
||||||
from kiloeyes.common import namespace
|
from kiloeyes.common import namespace
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
|
||||||
NOTIFICATION_METHOD_OPTS = [
|
NOTIFICATION_METHOD_OPTS = [
|
||||||
|
|
|
@ -16,7 +16,7 @@ import datetime
|
||||||
import falcon
|
import falcon
|
||||||
|
|
||||||
from kiloeyes.common import resource_api
|
from kiloeyes.common import resource_api
|
||||||
from kiloeyes.openstack.common import log
|
from oslo_log import log
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import ujson as json
|
import ujson as json
|
||||||
|
|
|
@ -8,6 +8,8 @@ gunicorn>=19.1.0,<=19.2.1
|
||||||
iso8601>=0.1.9
|
iso8601>=0.1.9
|
||||||
kafka-python>=0.8.1
|
kafka-python>=0.8.1
|
||||||
oslo.config>=1.11.0
|
oslo.config>=1.11.0
|
||||||
|
oslo.log>=1.0.0
|
||||||
|
oslo.service>=0.1.0
|
||||||
pastedeploy>=1.3.3
|
pastedeploy>=1.3.3
|
||||||
pbr>=0.6,!=0.7,<1.0
|
pbr>=0.6,!=0.7,<1.0
|
||||||
python-dateutil>=1.5
|
python-dateutil>=1.5
|
||||||
|
|
Loading…
Reference in New Issue