Revert "escalator should use oslo.xxx instead of oslo-xxx" 49/29749/1
authorkong wei <kong.wei2@zte.com.cn>
Fri, 3 Mar 2017 16:55:59 +0000 (16:55 +0000)
committerkong wei <kong.wei2@zte.com.cn>
Fri, 3 Mar 2017 16:55:59 +0000 (16:55 +0000)
This reverts commit 71d4f906c1a52f5dcba114ff8aa70148dafffd24.

Change-Id: I18a853c887b380b862554ff35ef8a8ddd76b5a58
Signed-off-by: Kong Wei<kong.wei2@zte.com.cn>
24 files changed:
api/escalator/api/middleware/context.py
api/escalator/api/policy.py
api/escalator/api/v1/versions.py
api/escalator/api/versions.py
api/escalator/cmd/api.py
api/escalator/common/auth.py
api/escalator/common/client.py
api/escalator/common/config.py
api/escalator/common/rpc.py
api/escalator/common/utils.py
api/escalator/common/wsgi.py
api/escalator/context.py
api/escalator/i18n.py
api/escalator/notifier.py
api/escalator/opts.py
client/escalatorclient/common/http.py
client/escalatorclient/common/https.py
client/escalatorclient/common/utils.py
client/escalatorclient/openstack/common/apiclient/base.py
client/escalatorclient/openstack/common/apiclient/client.py
client/escalatorclient/openstack/common/apiclient/utils.py
client/escalatorclient/shell.py
client/escalatorclient/v1/shell.py
client/escalatorclient/v1/versions.py

index a35a4de..b921289 100644 (file)
@@ -13,9 +13,9 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo.serialization import jsonutils
-from oslo.config import cfg
-from oslo.log import log as logging
+from oslo_serialization import jsonutils
+from oslo_config import cfg
+from oslo_log import log as logging
 import webob.exc
 
 from escalator.api import policy
index ab74e38..4d94f51 100644 (file)
@@ -17,9 +17,9 @@
 """Policy Engine For Escalator"""
 
 
-from oslo.config import cfg
-from oslo.log import log as logging
-from oslo.policy import policy
+from oslo_config import cfg
+from oslo_log import log as logging
+from oslo_policy import policy
 
 from escalator.common import exception
 from escalator import i18n
index 268f0a9..a026dc1 100644 (file)
@@ -16,7 +16,7 @@
 """
 /hosts endpoint for Escalator v1 API
 """
-from oslo.log import log as logging
+from oslo_log import log as logging
 from escalator import i18n
 from escalator import notifier
 from escalator.common import utils
index 6a3dd0a..751fc76 100644 (file)
@@ -15,8 +15,8 @@
 
 import httplib
 
-from oslo.serialization import jsonutils
-from oslo.config import cfg
+from oslo_serialization import jsonutils
+from oslo_config import cfg
 import webob.dec
 
 from escalator.common import wsgi
index c0bea85..a0f63dc 100644 (file)
@@ -26,9 +26,9 @@ import sys
 
 import eventlet
 
-from oslo.service import systemd
-from oslo.config import cfg
-from oslo.log import log as logging
+from oslo_service import systemd
+from oslo_config import cfg
+from oslo_log import log as logging
 import osprofiler.notifier
 import osprofiler.web
 
index cc65935..d3e2893 100644 (file)
@@ -29,8 +29,8 @@ Keystone (an identity management system).
     http://service_endpoint/
 """
 import httplib2
-from oslo.serialization import jsonutils
-from oslo.log import log as logging
+from oslo_serialization import jsonutils
+from oslo_log import log as logging
 # NOTE(jokke): simplified transition to py3, behaves like py2 xrange
 from six.moves import range
 import six.moves.urllib.parse as urlparse
index 7eb2a9c..586d638 100644 (file)
@@ -40,8 +40,8 @@ try:
 except ImportError:
     SENDFILE_SUPPORTED = False
 
-from oslo.log import log as logging
-from oslo.utils import encodeutils
+from oslo_log import log as logging
+from oslo_utils import encodeutils
 import six
 # NOTE(jokke): simplified transition to py3, behaves like py2 xrange
 from six.moves import range
index a381711..66a59f1 100644 (file)
@@ -24,9 +24,9 @@ import logging.handlers
 import os
 import tempfile
 
-from oslo.concurrency import lockutils
-from oslo.config import cfg
-from oslo.policy import policy
+from oslo_concurrency import lockutils
+from oslo_config import cfg
+from oslo_policy import policy
 from paste import deploy
 
 from escalator import i18n
index 9825bd6..4d50461 100644 (file)
@@ -19,10 +19,10 @@ RPC Controller
 import datetime
 import traceback
 
-from oslo.config import cfg
-from oslo.log import log as logging
-import oslo.utils.importutils as imp
-from oslo.utils import timeutils
+from oslo_config import cfg
+from oslo_log import log as logging
+import oslo_utils.importutils as imp
+from oslo_utils import timeutils
 import six
 from webob import exc
 
index df97e29..6cb1784 100644 (file)
@@ -39,10 +39,10 @@ import uuid
 import copy
 
 from OpenSSL import crypto
-from oslo.config import cfg
-from oslo.log import log as logging
-from oslo.utils import encodeutils
-from oslo.utils import excutils
+from oslo_config import cfg
+from oslo_log import log as logging
+from oslo_utils import encodeutils
+from oslo_utils import excutils
 import six
 from webob import exc
 from escalator.common import exception
index 453eb67..8884ea4 100644 (file)
@@ -33,11 +33,11 @@ from eventlet.green import socket
 from eventlet.green import ssl
 import eventlet.greenio
 import eventlet.wsgi
-from oslo.serialization import jsonutils
-from oslo.concurrency import processutils
-from oslo.config import cfg
-from oslo.log import log as logging
-from oslo.log import loggers
+from oslo_serialization import jsonutils
+from oslo_concurrency import processutils
+from oslo_config import cfg
+from oslo_log import log as logging
+from oslo_log import loggers
 import routes
 import routes.middleware
 import six
index b8060a3..0fc8e3d 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo.context import context
+from oslo_context import context
 
 from escalator.api import policy
 
index 9a1c472..56bfde3 100644 (file)
@@ -13,7 +13,7 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo.i18n import TranslatorFactory  # noqa
+from oslo_i18n import TranslatorFactory  # noqa
 
 _translators = TranslatorFactory(domain='escalator')
 
index 60a39ea..1e6ea02 100644 (file)
@@ -14,9 +14,9 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-from oslo.config import cfg
-from oslo.log import log as logging
-import oslo.messaging
+from oslo_config import cfg
+from oslo_log import log as logging
+import oslo_messaging
 
 from escalator import i18n
 
@@ -44,7 +44,7 @@ LOG = logging.getLogger(__name__)
 
 
 def get_transport():
-    return oslo.messaging.get_transport(CONF)
+    return oslo_messaging.get_transport(CONF)
 
 
 class Notifier(object):
@@ -53,7 +53,7 @@ class Notifier(object):
     def __init__(self):
         publisher_id = CONF.default_publisher_id
         self._transport = get_transport()
-        self._notifier = oslo.messaging.Notifier(self._transport,
+        self._notifier = oslo_messaging.Notifier(self._transport,
                                                  publisher_id=publisher_id)
 
     def warn(self, event_type, payload):
index f317b90..21639e6 100644 (file)
@@ -43,7 +43,7 @@ _api_opts = [
 
 
 def list_api_opts():
-    """Return a list of oslo.config options available in Escalator API service.
+    """Return a list of oslo_config options available in Escalator API service.
 
     Each element of the list is a tuple. The first element is the name of the
     group under which the list of elements in the second element will be
@@ -51,7 +51,7 @@ def list_api_opts():
     config files.
 
     This function is also discoverable via the 'escalator.api' entry point
-    under the 'oslo.config.opts' namespace.
+    under the 'oslo_config.opts' namespace.
 
     The purpose of this is to allow tools like the Oslo sample config file
     generator to discover the options exposed to users by escalator.
index e3e4b88..301eedb 100644 (file)
 import copy
 import logging
 import socket
-from oslo.utils import encodeutils
+from oslo_utils import encodeutils
 from escalatorclient.common import https
 from escalatorclient.common.utils import safe_header
 from escalatorclient import exc
-from oslo.utils import importutils
-from oslo.utils import netutils
+from oslo_utils import importutils
+from oslo_utils import netutils
 from simplejson import decoder
 import requests
 try:
index 0008a84..55769a0 100644 (file)
@@ -25,7 +25,7 @@ try:
 except ImportError:
     from urllib3 import connectionpool
 
-from oslo.utils import encodeutils
+from oslo_utils import encodeutils
 import six
 # NOTE(jokke): simplified transition to py3, behaves like py2 xrange
 from six.moves import range
index 6ebffe0..0156d31 100644 (file)
@@ -23,13 +23,13 @@ import re
 import sys
 import threading
 import uuid
-from oslo.utils import encodeutils
-from oslo.utils import strutils
+from oslo_utils import encodeutils
+from oslo_utils import strutils
 import prettytable
 import six
 
 from escalatorclient import exc
-from oslo.utils import importutils
+from oslo_utils import importutils
 
 if os.name == 'nt':
     import msvcrt
index 128e964..eb7218b 100644 (file)
@@ -40,7 +40,7 @@ Base utilities to build API operation managers and objects on top of.
 import abc
 import copy
 
-from oslo.utils import strutils
+from oslo_utils import strutils
 import six
 from six.moves.urllib import parse
 
index 6d80e3c..d478989 100644 (file)
@@ -34,8 +34,8 @@ try:
 except ImportError:
     import json
 
-from oslo.utils import encodeutils
-from oslo.utils import importutils
+from oslo_utils import encodeutils
+from oslo_utils import importutils
 import requests
 
 from escalatorclient.openstack.common._i18n import _
index b37e73b..c0f612a 100644 (file)
@@ -24,8 +24,8 @@
 #
 ########################################################################
 
-from oslo.utils import encodeutils
-from oslo.utils import uuidutils
+from oslo_utils import encodeutils
+from oslo_utils import uuidutils
 import six
 
 from escalatorclient.openstack.common._i18n import _
index 6aa17f8..782106c 100644 (file)
@@ -29,8 +29,8 @@ from os.path import expanduser
 import sys
 import traceback
 
-from oslo.utils import encodeutils
-from oslo.utils import importutils
+from oslo_utils import encodeutils
+from oslo_utils import importutils
 import six.moves.urllib.parse as urlparse
 
 import escalatorclient
index ab02c9a..401ad76 100644 (file)
@@ -17,7 +17,7 @@ from __future__ import print_function
 
 import copy
 import functools
-from oslo.utils import strutils
+from oslo_utils import strutils
 import escalatorclient.v1.versions
 from escalatorclient.common import utils
 
index 6fe2f74..143c4c6 100644 (file)
@@ -15,8 +15,8 @@
 
 import copy
 
-from oslo.utils import encodeutils
-from oslo.utils import strutils
+from oslo_utils import encodeutils
+from oslo_utils import strutils
 import six
 import six.moves.urllib.parse as urlparse