Drop use of 'oslo' namespace package

The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: I75e6e15d50ef9830d0581efd4cbcceb3e626f7b7
This commit is contained in:
Doug Hellmann 2015-04-28 19:47:04 +00:00 committed by Valeriy Ponomaryov
parent 7fa41f854d
commit bb69046db5
8 changed files with 7 additions and 13 deletions

View File

@ -140,7 +140,7 @@ class Manager(base.Base):
https://wiki.openstack.org/wiki/Oslo/Messaging#API_Version_Negotiation
"""
if not hasattr(self, '_target'):
from oslo import messaging
import oslo_messaging as messaging
self._target = messaging.Target(version=self.RPC_API_VERSION)
return self._target

View File

@ -26,8 +26,8 @@ __all__ = [
'TRANSPORT_ALIASES',
]
from oslo import messaging
from oslo_config import cfg
import oslo_messaging as messaging
from oslo_serialization import jsonutils
import manila.context

View File

@ -16,8 +16,8 @@
Client side of the scheduler manager RPC API.
"""
from oslo import messaging
from oslo_config import cfg
import oslo_messaging as messaging
from oslo_serialization import jsonutils
from manila import rpc

View File

@ -27,9 +27,9 @@ import time
import eventlet
import greenlet
from oslo import messaging
from oslo_config import cfg
from oslo_log import log
import oslo_messaging as messaging
from oslo_utils import importutils
from manila import context

View File

@ -16,8 +16,8 @@
Client side of the share RPC API.
"""
from oslo import messaging
from oslo_config import cfg
import oslo_messaging as messaging
from oslo_serialization import jsonutils
from manila import rpc

View File

@ -15,7 +15,7 @@
import collections
import functools
from oslo import messaging
import oslo_messaging as messaging
from oslo_serialization import jsonutils
from manila import rpc

View File

@ -20,10 +20,6 @@ import uuid
import ddt
import mock
# NOTE(vponomaryov): import from oslo.utils.timeutils is workaround for
# mocking same object but from different namespaces. Remove it when all
# oslo libs use same namespace for same things.
from oslo.utils import timeutils as timeutils_old # noqa
from oslo_config import cfg
from oslo_utils import timeutils
@ -182,8 +178,6 @@ class ShareAPITestCase(test.TestCase):
dt_utc = datetime.datetime.utcnow()
self.mock_object(timeutils, 'utcnow', mock.Mock(return_value=dt_utc))
self.mock_object(timeutils_old, 'utcnow',
mock.Mock(return_value=dt_utc))
self.mock_object(share_api.policy, 'check_policy')
def test_get_all_admin_no_filters(self):

View File

@ -16,8 +16,8 @@
"""Tests for the testing base code."""
from oslo import messaging
from oslo_config import cfg
import oslo_messaging as messaging
from manila import rpc
from manila import test