Browse Source

Make import of oslo libraries namespaceless

See https://blueprints.launchpad.net/oslo-incubator/+spec/drop-namespace-packages

Closes-Bug: 1423174
Change-Id: I48680ce6e7ce91005c147ab4388203946171d433
changes/85/156985/5
Jens Rosenboom 7 years ago
parent
commit
a99fe6a760
  1. 4
      bin/heat-api
  2. 4
      bin/heat-api-cfn
  3. 4
      bin/heat-api-cloudwatch
  4. 4
      bin/heat-engine
  5. 2
      bin/heat-keystone-setup-domain
  6. 2
      contrib/heat_docker/heat_docker/tests/test_docker_container.py
  7. 4
      contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py
  8. 4
      contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py
  9. 2
      contrib/heat_mistral/heat_mistral/client.py
  10. 2
      contrib/rackspace/rackspace/clients.py
  11. 4
      contrib/rackspace/rackspace/tests/test_rackspace_cloud_server.py
  12. 2
      doc/source/conf.py
  13. 2
      heat/__init__.py
  14. 6
      heat/api/aws/ec2token.py
  15. 2
      heat/api/cloudwatch/watch.py
  16. 2
      heat/api/middleware/fault.py
  17. 2
      heat/api/middleware/ssl.py
  18. 2
      heat/api/openstack/v1/build_info.py
  19. 2
      heat/api/openstack/v1/services.py
  20. 2
      heat/cmd/manage.py
  21. 2
      heat/common/auth_password.py
  22. 4
      heat/common/auth_url.py
  23. 2
      heat/common/config.py
  24. 6
      heat/common/context.py
  25. 2
      heat/common/crypt.py
  26. 4
      heat/common/heat_keystoneclient.py
  27. 2
      heat/common/i18n.py
  28. 2
      heat/common/identifier.py
  29. 38
      heat/common/messaging.py
  30. 2
      heat/common/param_utils.py
  31. 2
      heat/common/policy.py
  32. 4
      heat/common/profiler.py
  33. 2
      heat/common/service_utils.py
  34. 2
      heat/common/template_format.py
  35. 2
      heat/common/urlfetch.py
  36. 6
      heat/common/wsgi.py
  37. 4
      heat/db/api.py
  38. 8
      heat/db/sqlalchemy/api.py
  39. 2
      heat/db/sqlalchemy/migrate_repo/versions/035_event_uuid_to_id.py
  40. 2
      heat/db/sqlalchemy/migrate_repo/versions/037_migrate_hot_template.py
  41. 2
      heat/db/sqlalchemy/migrate_repo/versions/041_migrate_hot_template_resources.py
  42. 2
      heat/db/sqlalchemy/migrate_repo/versions/043_migrate_template_versions.py
  43. 2
      heat/db/sqlalchemy/migration.py
  44. 4
      heat/db/sqlalchemy/models.py
  45. 2
      heat/engine/api.py
  46. 4
      heat/engine/clients/__init__.py
  47. 4
      heat/engine/clients/client_plugin.py
  48. 2
      heat/engine/clients/os/glance.py
  49. 2
      heat/engine/clients/os/neutron.py
  50. 4
      heat/engine/clients/os/nova.py
  51. 2
      heat/engine/constraints.py
  52. 2
      heat/engine/dependencies.py
  53. 2
      heat/engine/environment.py
  54. 2
      heat/engine/notification/__init__.py
  55. 4
      heat/engine/parameters.py
  56. 2
      heat/engine/plugin_manager.py
  57. 6
      heat/engine/resource.py
  58. 2
      heat/engine/resources/aws/autoscaling_group.py
  59. 2
      heat/engine/resources/aws/instance.py
  60. 2
      heat/engine/resources/cloud_watch.py
  61. 2
      heat/engine/resources/eip.py
  62. 2
      heat/engine/resources/loadbalancer.py
  63. 2
      heat/engine/resources/neutron/neutron.py
  64. 2
      heat/engine/resources/nova_floatingip.py
  65. 2
      heat/engine/resources/nova_utils.py
  66. 6
      heat/engine/resources/server.py
  67. 4
      heat/engine/scheduler.py
  68. 10
      heat/engine/service.py
  69. 2
      heat/engine/service_stack_watch.py
  70. 2
      heat/engine/signal_responder.py
  71. 4
      heat/engine/stack.py
  72. 6
      heat/engine/stack_lock.py
  73. 4
      heat/engine/stack_resource.py
  74. 2
      heat/engine/watchrule.py
  75. 4
      heat/openstack/common/_i18n.py
  76. 2
      heat/openstack/common/crypto/utils.py
  77. 2
      heat/openstack/common/eventlet_backdoor.py
  78. 2
      heat/openstack/common/fileutils.py
  79. 2
      heat/openstack/common/middleware/request_id.py
  80. 4
      heat/openstack/common/policy.py
  81. 2
      heat/openstack/common/service.py
  82. 2
      heat/openstack/common/versionutils.py
  83. 2
      heat/scaling/cooldown.py
  84. 2
      heat/tests/__init__.py
  85. 2
      heat/tests/autoscaling/test_heat_scaling_group.py
  86. 4
      heat/tests/autoscaling/test_heat_scaling_policy.py
  87. 2
      heat/tests/autoscaling/test_launch_config.py
  88. 2
      heat/tests/autoscaling/test_scaling_group.py
  89. 4
      heat/tests/autoscaling/test_scaling_policy.py
  90. 2
      heat/tests/aws/test_volume.py
  91. 2
      heat/tests/aws/test_waitcondition.py
  92. 2
      heat/tests/common.py
  93. 8
      heat/tests/db/test_migrations.py
  94. 2
      heat/tests/test_api_cfn_v1.py
  95. 2
      heat/tests/test_api_cloudwatch.py
  96. 4
      heat/tests/test_api_ec2token.py
  97. 6
      heat/tests/test_api_openstack_v1.py
  98. 2
      heat/tests/test_auth_password.py
  99. 2
      heat/tests/test_autoscaling_update_policy.py
  100. 2
      heat/tests/test_ceilometer_alarm.py

4
bin/heat-api

@ -30,8 +30,8 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
sys.path.insert(0, possible_topdir)
from oslo.config import cfg
from oslo import i18n
from oslo_config import cfg
import oslo_i18n as i18n
from oslo_log import log as logging
import six

4
bin/heat-api-cfn

@ -32,8 +32,8 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
sys.path.insert(0, possible_topdir)
from oslo.config import cfg
from oslo import i18n
from oslo_config import cfg
import oslo_i18n as i18n
from oslo_log import log as logging
import six

4
bin/heat-api-cloudwatch

@ -32,8 +32,8 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
if os.path.exists(os.path.join(possible_topdir, 'heat', '__init__.py')):
sys.path.insert(0, possible_topdir)
from oslo.config import cfg
from oslo import i18n
from oslo_config import cfg
import oslo_i18n as i18n
from oslo_log import log as logging
import six

4
bin/heat-engine

@ -32,8 +32,8 @@ POSSIBLE_TOPDIR = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
if os.path.exists(os.path.join(POSSIBLE_TOPDIR, 'heat', '__init__.py')):
sys.path.insert(0, POSSIBLE_TOPDIR)
from oslo.config import cfg
from oslo import i18n
from oslo_config import cfg
import oslo_i18n as i18n
from oslo_log import log as logging
from heat.common.i18n import _LC

2
bin/heat-keystone-setup-domain

@ -18,7 +18,7 @@ import sys
import keystoneclient.exceptions as kc_exception
from keystoneclient.v3 import client
from oslo.config import cfg
from oslo_config import cfg
logger = logging.getLogger(__name__)

2
contrib/heat_docker/heat_docker/tests/test_docker_container.py

@ -15,7 +15,7 @@
# under the License.
import mock
from oslo.utils import importutils
from oslo_utils import importutils
import six
from heat.common import exception

4
contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/client.py

@ -14,9 +14,9 @@
"""Client Library for Keystone Resources."""
from keystoneclient.v2_0 import client as kc
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils
from heat.common import exception
from heat.common.i18n import _LE

4
contrib/heat_keystoneclient_v2/heat_keystoneclient_v2/tests/test_client.py

@ -14,8 +14,8 @@
import mock
import mox
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from oslo_utils import importutils
from heat.common import exception
from heat.tests import common

2
contrib/heat_mistral/heat_mistral/client.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.utils import importutils
from oslo_utils import importutils
from heat.engine.clients import client_plugin

2
contrib/rackspace/rackspace/clients.py

@ -19,7 +19,7 @@ import time
import urlparse
from glanceclient import client as gc
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
from swiftclient import utils as swiftclient_utils
from troveclient import client as tc

4
contrib/rackspace/rackspace/tests/test_rackspace_cloud_server.py

@ -13,8 +13,8 @@
import mock
import mox
from oslo.config import cfg
from oslo.utils import uuidutils
from oslo_config import cfg
from oslo_utils import uuidutils
import six
from heat.common import exception

2
doc/source/conf.py

@ -30,7 +30,7 @@ import re
import sys
import tempfile
from oslo.config import cfg
from oslo_config import cfg
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))

2
heat/__init__.py

@ -14,6 +14,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo import i18n
import oslo_i18n as i18n
i18n.enable_lazy()

6
heat/api/aws/ec2token.py

@ -13,10 +13,10 @@
import hashlib
from oslo.config import cfg
from oslo.serialization import jsonutils as json
from oslo.utils import importutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils as json
from oslo_utils import importutils
import requests
import webob

2
heat/api/cloudwatch/watch.py

@ -13,8 +13,8 @@
"""Endpoint for heat AWS-compatible CloudWatch API."""
from oslo import messaging
from oslo_log import log as logging
import oslo_messaging as messaging
import six
from heat.api.aws import exception

2
heat/api/middleware/fault.py

@ -23,7 +23,7 @@ import six
import traceback
from oslo.config import cfg
from oslo_config import cfg
import webob
from heat.common import exception

2
heat/api/middleware/ssl.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from heat.common import wsgi

2
heat/api/openstack/v1/build_info.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from heat.api.openstack.v1 import util
from heat.common import serializers

2
heat/api/openstack/v1/services.py

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo.messaging import exceptions
from oslo_messaging import exceptions
from webob import exc
from heat.api.openstack.v1 import util

2
heat/cmd/manage.py

@ -19,7 +19,7 @@
import sys
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log
from heat.common import context

2
heat/common/auth_password.py

@ -18,7 +18,7 @@ import logging
from keystoneclient import exceptions as keystone_exceptions
from keystoneclient import session
from oslo.config import cfg
from oslo_config import cfg
from webob import exc
from heat.common import context

4
heat/common/auth_url.py

@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from oslo_utils import importutils
from webob import exc
from heat.common.i18n import _

2
heat/common/config.py

@ -18,7 +18,7 @@ import logging as sys_logging
import os
from eventlet.green import socket
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
from heat.common.i18n import _

6
heat/common/context.py

@ -15,11 +15,11 @@ from keystoneclient import access
from keystoneclient.auth.identity import base
from keystoneclient.auth.identity import v3
from keystoneclient.auth import token_endpoint
from oslo.config import cfg
from oslo.middleware import request_id as oslo_request_id
from oslo.utils import importutils
from oslo_config import cfg
from oslo_context import context
from oslo_log import log as logging
from oslo_middleware import request_id as oslo_request_id
from oslo_utils import importutils
from heat.common import exception
from heat.common.i18n import _LE

2
heat/common/crypt.py

@ -14,7 +14,7 @@
import base64
from Crypto.Cipher import AES
from oslo.config import cfg
from oslo_config import cfg
from heat.openstack.common.crypto import utils

4
heat/common/heat_keystoneclient.py

@ -20,9 +20,9 @@ import uuid
import keystoneclient.exceptions as kc_exception
from keystoneclient import session
from keystoneclient.v3 import client as kc_v3
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils
from heat.common import context
from heat.common import exception

2
heat/common/i18n.py

@ -16,7 +16,7 @@
# It's based on oslo.i18n usage in OpenStack Keystone project and
# recommendations from http://docs.openstack.org/developer/oslo.i18n/usage.html
from oslo import i18n
import oslo_i18n as i18n
_translators = i18n.TranslatorFactory(domain='heat')

2
heat/common/identifier.py

@ -14,7 +14,7 @@
import collections
import re
from oslo.utils import encodeutils
from oslo_utils import encodeutils
from six.moves.urllib import parse as urlparse
from heat.common.i18n import _

38
heat/common/messaging.py

@ -16,9 +16,9 @@
# under the License.
import eventlet
from oslo.config import cfg
import oslo.messaging
from oslo.serialization import jsonutils
from oslo_config import cfg
import oslo_messaging
from oslo_serialization import jsonutils
from osprofiler import profiler
from heat.common import context
@ -34,7 +34,7 @@ _ALIASES = {
}
class RequestContextSerializer(oslo.messaging.Serializer):
class RequestContextSerializer(oslo_messaging.Serializer):
def __init__(self, base):
self._base = base
@ -69,41 +69,41 @@ class RequestContextSerializer(oslo.messaging.Serializer):
return context.RequestContext.from_dict(ctxt)
class JsonPayloadSerializer(oslo.messaging.NoOpSerializer):
class JsonPayloadSerializer(oslo_messaging.NoOpSerializer):
@classmethod
def serialize_entity(cls, context, entity):
return jsonutils.to_primitive(entity, convert_instances=True)
def setup(url=None, optional=False):
"""Initialise the oslo.messaging layer."""
"""Initialise the oslo_messaging layer."""
global TRANSPORT, NOTIFIER
if url and url.startswith("fake://"):
# NOTE(sileht): oslo.messaging fake driver uses time.sleep
# NOTE(sileht): oslo_messaging fake driver uses time.sleep
# for task switch, so we need to monkey_patch it
eventlet.monkey_patch(time=True)
if not TRANSPORT:
oslo.messaging.set_transport_defaults('heat')
oslo_messaging.set_transport_defaults('heat')
exmods = ['heat.common.exception']
try:
TRANSPORT = oslo.messaging.get_transport(
TRANSPORT = oslo_messaging.get_transport(
cfg.CONF, url, allowed_remote_exmods=exmods, aliases=_ALIASES)
except oslo.messaging.InvalidTransportURL as e:
except oslo_messaging.InvalidTransportURL as e:
TRANSPORT = None
if not optional or e.url:
# NOTE(sileht): oslo.messaging is configured but unloadable
# NOTE(sileht): oslo_messaging is configured but unloadable
# so reraise the exception
raise
if not NOTIFIER and TRANSPORT:
serializer = RequestContextSerializer(JsonPayloadSerializer())
NOTIFIER = oslo.messaging.Notifier(TRANSPORT, serializer=serializer)
NOTIFIER = oslo_messaging.Notifier(TRANSPORT, serializer=serializer)
def cleanup():
"""Cleanup the oslo.messaging layer."""
"""Cleanup the oslo_messaging layer."""
global TRANSPORT, NOTIFIER
if TRANSPORT:
TRANSPORT.cleanup()
@ -111,21 +111,21 @@ def cleanup():
def get_rpc_server(target, endpoint):
"""Return a configured oslo.messaging rpc server."""
"""Return a configured oslo_messaging rpc server."""
serializer = RequestContextSerializer(JsonPayloadSerializer())
return oslo.messaging.get_rpc_server(TRANSPORT, target, [endpoint],
return oslo_messaging.get_rpc_server(TRANSPORT, target, [endpoint],
executor='eventlet',
serializer=serializer)
def get_rpc_client(**kwargs):
"""Return a configured oslo.messaging RPCClient."""
target = oslo.messaging.Target(**kwargs)
"""Return a configured oslo_messaging RPCClient."""
target = oslo_messaging.Target(**kwargs)
serializer = RequestContextSerializer(JsonPayloadSerializer())
return oslo.messaging.RPCClient(TRANSPORT, target,
return oslo_messaging.RPCClient(TRANSPORT, target,
serializer=serializer)
def get_notifier(publisher_id):
"""Return a configured oslo.messaging notifier."""
"""Return a configured oslo_messaging notifier."""
return NOTIFIER.prepare(publisher_id=publisher_id)

2
heat/common/param_utils.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.utils import strutils
from oslo_utils import strutils
from heat.common.i18n import _

2
heat/common/policy.py

@ -17,7 +17,7 @@
# Based on glance/api/policy.py
"""Policy Engine For Heat"""
from oslo.config import cfg
from oslo_config import cfg
from heat.common import exception
from heat.openstack.common import policy

4
heat/common/profiler.py

@ -11,9 +11,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo import messaging
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
import osprofiler.profiler
import osprofiler.web

2
heat/common/service_utils.py

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo.utils import timeutils
from oslo_utils import timeutils
SERVICE_KEYS = (
SERVICE_ID,

2
heat/common/template_format.py

@ -15,7 +15,7 @@ import itertools
import json
import re
from oslo.config import cfg
from oslo_config import cfg
import six
import yaml

2
heat/common/urlfetch.py

@ -13,7 +13,7 @@
"""Utility for fetching a resource (e.g. a template) from a URL."""
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
import requests
from requests import exceptions

6
heat/common/wsgi.py

@ -34,9 +34,9 @@ from eventlet.green import socket
from eventlet.green import ssl
import eventlet.greenio
import eventlet.wsgi
from oslo.config import cfg
from oslo import i18n
from oslo.utils import importutils
from oslo_config import cfg
import oslo_i18n as i18n
from oslo_utils import importutils
from paste import deploy
import routes
import routes.middleware

4
heat/db/api.py

@ -24,8 +24,8 @@ The underlying driver is loaded . SQLAlchemy is currently the only
supported backend.
'''
from oslo.config import cfg
from oslo.db import api
from oslo_config import cfg
from oslo_db import api
CONF = cfg.CONF

8
heat/db/sqlalchemy/api.py

@ -15,10 +15,10 @@
import datetime
import sys
from oslo.config import cfg
from oslo.db.sqlalchemy import session as db_session
from oslo.db.sqlalchemy import utils
from oslo.utils import timeutils
from oslo_config import cfg
from oslo_db.sqlalchemy import session as db_session
from oslo_db.sqlalchemy import utils
from oslo_utils import timeutils
import osprofiler.sqlalchemy
import six
import sqlalchemy

2
heat/db/sqlalchemy/migrate_repo/versions/035_event_uuid_to_id.py

@ -15,7 +15,7 @@ import itertools
import uuid
import migrate.changeset.constraint as constraint
from oslo.utils import timeutils
from oslo_utils import timeutils
import sqlalchemy

2
heat/db/sqlalchemy/migrate_repo/versions/037_migrate_hot_template.py

@ -12,7 +12,7 @@
# under the License.
from migrate.versioning import util as migrate_util
from oslo.serialization import jsonutils
from oslo_serialization import jsonutils
import six
import sqlalchemy
from sqlalchemy.orm import sessionmaker

2
heat/db/sqlalchemy/migrate_repo/versions/041_migrate_hot_template_resources.py

@ -11,7 +11,7 @@
# under the License.
from migrate.versioning import util as migrate_util
from oslo.serialization import jsonutils
from oslo_serialization import jsonutils
import six
import sqlalchemy
from sqlalchemy.orm import sessionmaker

2
heat/db/sqlalchemy/migrate_repo/versions/043_migrate_template_versions.py

@ -13,7 +13,7 @@
import time
from migrate.versioning import util as migrate_util
from oslo.serialization import jsonutils
from oslo_serialization import jsonutils
import sqlalchemy
from sqlalchemy.orm import sessionmaker

2
heat/db/sqlalchemy/migration.py

@ -13,7 +13,7 @@
import os
from oslo.db.sqlalchemy import migration as oslo_migration
from oslo_db.sqlalchemy import migration as oslo_migration
INIT_VERSION = 14

4
heat/db/sqlalchemy/models.py

@ -16,8 +16,8 @@ SQLAlchemy models for heat data.
import uuid
from oslo.db.sqlalchemy import models
from oslo.utils import timeutils
from oslo_db.sqlalchemy import models
from oslo_utils import timeutils
import six
import sqlalchemy
from sqlalchemy.ext import declarative

2
heat/engine/api.py

@ -13,8 +13,8 @@
import collections
from oslo.utils import timeutils
from oslo_log import log as logging
from oslo_utils import timeutils
from heat.common.i18n import _
from heat.common.i18n import _LE

4
heat/engine/clients/__init__.py

@ -13,9 +13,9 @@
import warnings
from oslo.config import cfg
from oslo.utils import importutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils
import six
from stevedore import extension

4
heat/engine/clients/client_plugin.py

@ -15,7 +15,7 @@ import abc
from keystoneclient import exceptions
from keystoneclient import session
from oslo.config import cfg
from oslo_config import cfg
import six
@ -136,4 +136,4 @@ class ClientPlugin(object):
if self.is_conflict(ex) or self.is_not_found(ex):
return
else:
raise ex
raise ex

2
heat/engine/clients/os/glance.py

@ -13,8 +13,8 @@
from glanceclient import client as gc
from glanceclient import exc
from oslo.utils import uuidutils
from oslo_log import log as logging
from oslo_utils import uuidutils
from heat.common import exception
from heat.common.i18n import _

2
heat/engine/clients/os/neutron.py

@ -14,7 +14,7 @@
from neutronclient.common import exceptions
from neutronclient.neutron import v2_0 as neutronV20
from neutronclient.v2_0 import client as nc
from oslo.utils import uuidutils
from oslo_utils import uuidutils
from heat.common import exception
from heat.engine.clients import client_plugin

4
heat/engine/clients/os/nova.py

@ -24,8 +24,8 @@ import string
from novaclient import client as nc
from novaclient import exceptions
from novaclient import shell as novashell
from oslo.config import cfg
from oslo.utils import uuidutils
from oslo_config import cfg
from oslo_utils import uuidutils
import six
from six.moves.urllib import parse as urlparse

2
heat/engine/constraints.py

@ -15,7 +15,7 @@ import collections
import numbers
import re
from oslo.utils import strutils
from oslo_utils import strutils
import six
from heat.common import exception

2
heat/engine/dependencies.py

@ -14,7 +14,7 @@
import collections
import itertools
from oslo.utils import encodeutils
from oslo_utils import encodeutils
import six
from heat.common import exception

2
heat/engine/environment.py

@ -17,7 +17,7 @@ import itertools
import os.path
import warnings
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log
import six

2
heat/engine/notification/__init__.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from heat.common import messaging

4
heat/engine/parameters.py

@ -15,8 +15,8 @@ import collections
import itertools
import json
from oslo.utils import encodeutils
from oslo.utils import strutils
from oslo_utils import encodeutils
from oslo_utils import strutils
import six
from heat.common import exception

2
heat/engine/plugin_manager.py

@ -15,7 +15,7 @@ import collections
import itertools
import sys
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log
import six

6
heat/engine/resource.py

@ -16,10 +16,10 @@ import contextlib
import datetime as dt
import warnings
from oslo.config import cfg
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 heat.common import exception

2
heat/engine/resources/aws/autoscaling_group.py

@ -13,8 +13,8 @@
import math
from oslo.utils import excutils
from oslo_log import log as logging
from oslo_utils import excutils
import six
from heat.common import exception

2
heat/engine/resources/aws/instance.py

@ -13,7 +13,7 @@
import copy
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
import six

2
heat/engine/resources/cloud_watch.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.config import cfg
from oslo_config import cfg
from heat.common import exception
from heat.common.i18n import _

2
heat/engine/resources/eip.py

@ -11,8 +11,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.utils import excutils
from oslo_log import log as logging
from oslo_utils import excutils
import six
from heat.common import exception

2
heat/engine/resources/loadbalancer.py

@ -12,7 +12,7 @@
# under the License.
import os
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
import six

2
heat/engine/resources/neutron/neutron.py

@ -10,7 +10,7 @@
# 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.utils import uuidutils
from oslo_utils import uuidutils
import six
import warnings

2
heat/engine/resources/nova_floatingip.py

@ -12,8 +12,8 @@
# under the License.
from heat.common import exception
from oslo.utils import excutils
from oslo_log import log as logging
from oslo_utils import excutils
import six
from heat.common.i18n import _

2
heat/engine/resources/nova_utils.py

@ -22,7 +22,7 @@ import string
import warnings
from novaclient import exceptions as nova_exceptions
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
import six
from six.moves.urllib import parse as urlparse

6
heat/engine/resources/server.py

@ -14,10 +14,10 @@
import copy
import uuid
from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo.utils import uuidutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import uuidutils
import six
from heat.common import exception

4
heat/engine/scheduler.py

@ -18,9 +18,9 @@ import time
import types
import eventlet
from oslo.utils import encodeutils
from oslo.utils import excutils
from oslo_log import log as logging
from oslo_utils import encodeutils
from oslo_utils import excutils
import six
from heat.common.i18n import _

10
heat/engine/service.py

@ -19,12 +19,12 @@ import socket
import warnings
import eventlet
from oslo.config import cfg
from oslo import messaging
from oslo.serialization import jsonutils
from oslo.utils import timeutils
from oslo.utils import uuidutils
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
from oslo_serialization import jsonutils
from oslo_utils import timeutils
from oslo_utils import uuidutils
from osprofiler import profiler
import requests
import six

2
heat/engine/service_stack_watch.py

@ -11,8 +11,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.utils import timeutils
from oslo_log import log as logging
from oslo_utils import timeutils
from heat.common import context
from heat.common.i18n import _LE

2
heat/engine/signal_responder.py

@ -12,7 +12,7 @@
# under the License.
from keystoneclient.contrib.ec2 import utils as ec2_utils
from oslo.config import cfg
from oslo_config import cfg
from oslo_log import log as logging
from six.moves.urllib import parse as urlparse

4
heat/engine/stack.py

@ -17,9 +17,9 @@ import datetime
import re
import warnings
from oslo.config import cfg
from oslo.utils import encodeutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import encodeutils
from osprofiler import profiler
import six

6
heat/engine/stack_lock.py

@ -14,10 +14,10 @@
import contextlib
import uuid
from oslo.config import cfg
from oslo import messaging
from oslo.utils import excutils
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
from oslo_utils import excutils
from heat.common import exception
from heat.common.i18n import _LI

4
heat/engine/stack_resource.py

@ -13,9 +13,9 @@
import hashlib
from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
import six
from heat.common import exception

2
heat/engine/watchrule.py

@ -14,8 +14,8 @@
import datetime
from oslo.utils import timeutils
from oslo_log import log as logging
from oslo_utils import timeutils
from heat.common import exception
from heat.common.i18n import _

4
heat/openstack/common/_i18n.py

@ -17,14 +17,14 @@ See http://docs.openstack.org/developer/oslo.i18n/usage.html
"""
try:
import oslo.i18n
import oslo_i18n
# NOTE(dhellmann): This reference to o-s-l-o will be replaced by the
# application name when this module is synced into the separate
# repository. It is OK to have more than one translation function
# using the same domain, since there will still only be one message
# catalog.
_translators = oslo.i18n.TranslatorFactory(domain='heat')
_translators = oslo_i18n.TranslatorFactory(domain='heat')
# The primary translation function using the well-known name "_"
_ = _translators.primary

2
heat/openstack/common/crypto/utils.py

@ -29,7 +29,7 @@ import base64
from Crypto.Hash import HMAC
from Crypto import Random
from oslo.utils import importutils
from oslo_utils import importutils
import six
from heat.openstack.common._i18n import _

2
heat/openstack/common/eventlet_backdoor.py

@ -28,7 +28,7 @@ import traceback
import eventlet.backdoor
import greenlet
from oslo.config import cfg
from oslo_config import cfg
from heat.openstack.common._i18n import _LI

2
heat/openstack/common/fileutils.py

@ -20,7 +20,7 @@ import os
import stat
import tempfile
from oslo.utils import excutils
from oslo_utils import excutils
LOG = logging.getLogger(__name__)

2
heat/openstack/common/middleware/request_id.py

@ -12,7 +12,7 @@
"""Compatibility shim for Kilo, while operators migrate to oslo.middleware."""
from oslo.middleware import request_id
from oslo_middleware import request_id
from heat.openstack.common import versionutils

4
heat/openstack/common/policy.py

@ -95,8 +95,8 @@ import logging
import os
import re
from oslo.config import cfg
from oslo.serialization import jsonutils
from oslo_config import cfg
from oslo_serialization import jsonutils
import six
import six.moves.urllib.parse as urlparse
import six.moves.urllib.request as urlrequest

2
heat/openstack/common/service.py

@ -35,7 +35,7 @@ except ImportError:
import eventlet
from eventlet import event
from oslo.config import cfg
from oslo_config import cfg
from heat.openstack.common import eventlet_backdoor
from heat.openstack.common._i18n import _LE, _LI, _LW

2
heat/openstack/common/versionutils.py

@ -21,7 +21,7 @@ import functools
import inspect
import logging
from oslo.config import cfg
from oslo_config import cfg
import pkg_resources
import six

2
heat/scaling/cooldown.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo.utils import timeutils
from oslo_utils import timeutils
class CooldownMixin(object):

2
heat/tests/__init__.py

@ -11,7 +11,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo import i18n
import oslo_i18n as i18n
def fake_translate_msgid(msgid, domain, desired_locale=None):

2
heat/tests/autoscaling/test_heat_scaling_group.py

@ -11,7 +11,7 @@
# under the License.
import mock
from oslo.config import cfg
from oslo_config import cfg
import six
from heat.common import exception

4
heat/tests/autoscaling/test_heat_scaling_policy.py

@ -14,8 +14,8 @@
import datetime
import mock
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from oslo_utils import timeutils
import six
from heat.common import exception

2
heat/tests/autoscaling/test_launch_config.py

@ -12,7 +12,7 @@
# under the License.
import mock
from oslo.config import cfg
from oslo_config import cfg
import six
from heat.common import exception

2
heat/tests/autoscaling/test_scaling_group.py

@ -12,7 +12,7 @@
# under the License.
import mock
from oslo.config import cfg
from oslo_config import cfg
import six
from heat.common import exception

4
heat/tests/autoscaling/test_scaling_policy.py

@ -14,8 +14,8 @@
import datetime
import mock
from oslo.config import cfg
from oslo.utils import timeutils
from oslo_config import cfg
from oslo_utils import timeutils
import six
from heat.common import exception

2
heat/tests/aws/test_volume.py

@ -16,7 +16,7 @@ import copy
from cinderclient import exceptions as cinder_exp
import mock
import mox
from oslo.config import cfg
from oslo_config import cfg
import six
from heat.common import exception

2
heat/tests/aws/test_waitcondition.py

@ -16,7 +16,7 @@ import datetime
import json
import uuid
from oslo.config import cfg
from oslo_config import cfg
from oslo_utils import timeutils
import six

2
heat/tests/common.py

@ -19,7 +19,7 @@ import time
import fixtures
import mox
from oslo.config import cfg
from oslo_config import cfg
from oslotest import mockpatch
import testscenarios
import testtools

8
heat/tests/db/test_migrations.py

@ -25,10 +25,10 @@ import os
import uuid
from migrate.versioning import repository
from oslo.db.sqlalchemy import test_base
from oslo.db.sqlalchemy import test_migrations
from oslo.db.sqlalchemy import utils
from oslo.serialization import jsonutils
from oslo_db.sqlalchemy import test_base
from oslo_db.sqlalchemy import test_migrations
from oslo_db.sqlalchemy import utils
from oslo_serialization import jsonutils
import pkg_resources as pkg
from heat.db.sqlalchemy import migrate_repo

2
heat/tests/test_api_cfn_v1.py

@ -15,7 +15,7 @@ import json
import os
import mock
from oslo.config import cfg