Commit Graph

24 Commits

Author SHA1 Message Date
Davanum Srinivas 2bf8d2f917 Switch to warnings module instead of versionutils
versionutils.py is no longer in oslo-incubator. So we can
either use versionutils from oslo_log or debtcollector instead.
However, oslo.messaging does not use oslo.log currently and we
should not be adding yet another library as a dependency here,
so we should just use the base python warnings library for
our limited use of deprecated() method.

Change-Id: Ib8a487051c894fa4828da65d4890b7a4f57f1d12
2015-06-10 22:23:16 -04:00
Mehdi Abaakouk 01247563f1 Deprecates the localcontext API
We deprecate the localcontext API in favor of the
oslo.context one.

Related bug: #1288878

Change-Id: If6049544e35ae49e41f2771cae858b6d4ebe00cd
2015-03-11 16:14:50 +01:00
Mehdi Abaakouk ce7d5e8bae Update to oslo.context
This update oslo-incubator and move to the new oslo.context module.

Change-Id: I06a1a400e0d37609f824dcdabd460b0fd86ea0f2
2015-03-11 10:09:51 +01:00
Mehdi Abaakouk eaa362b360 Remove obsolete cross tests script
Change-Id: I0f1e2fbe4c8bce713d0a56b0f56ac26a3b0e552c
2015-03-10 17:07:00 +01:00
Julien Danjou 10eb1202b3 Switch to oslo.middleware
Change-Id: I35f76724768c163b57728914f0ed700f1bc13e29
2014-11-08 18:08:37 +01:00
Davanum Srinivas 487bbf5b13 Enable oslo.i18n for oslo.messaging
Change-Id: Ic8e05ae4ffe3eb871ae64243c41a9955f47cbe2a
2014-09-24 22:18:50 -04:00
Julien Danjou 8d242bd7ab Switch to oslo.serialization
Change-Id: I24be947cfc2d9ce60e65054e6562e544b1e21195
2014-09-23 14:54:30 +02:00
Julien Danjou a9ec73f38d Switch to oslo.utils
Change-Id: I262e98d8d03acbe2ff8fee5d607279a669a89e34
2014-08-27 14:14:00 +02:00
Julien Danjou 265b21f953 Import oslo-incubator context module
oslo-incubator commit 569979adfd4237869bb50c7aaa02bc3fd4f0b413

Change-Id: Ibbe7725cb1ec9d722dfa08103eaebe63a0703b8b
2014-08-20 17:38:32 +02:00
Julien Danjou f480494da1 Import oslo-incubator/middleware/base
oslo-incubator commit 569979adfd4237869bb50c7aaa02bc3fd4f0b413

Change-Id: I515c144abe11124d08339330e44957f56416ec72
2014-08-20 17:38:32 +02:00
Eric Guo 13608437bb Remove dependent module py3kcompat
Module py3kcompat was removed from oslo-incubator, we can use
six directly.

Syncing module network_utils:
162e850 Remove import workaround of SplitResult
897aa7c urlsplit issues with IPv6 addresses in python26
35dc1d7 py3kcompat: remove

Change-Id: I71446362209c306c7e8858f4713a59b84fbcc1b2
Closes-Bug: #1280033
2014-04-25 20:31:11 +08:00
Doug Hellmann 12ca9d362a Import run_cross_tests.sh from oslo-incubator
Change-Id: I7d96e52ced336379117591d032ba9886900ccd2a
2014-04-03 05:30:46 -07:00
Mark McLoughlin 3eeaaee788 Remove use of sslutils
sslutils is the only oslo-incubator module we use which registers any
config options, and we don't even use those config options at runtime.

The problem with us using oslo-incubator config options is that they
need to be exactly in sync with the oslo-incubator version of those
used by every project using oslo.messaging.

Avoid all this be inlining validate_ssl_version() until we have it
available in a real library.

Change-Id: Id3b0bb2e7ede33ede9b66025d1af113ae60cfc58
Closes-Bug: #1287542
2014-03-04 06:23:35 -08:00
Jeremy Hanmer fb453e4f08 Convert to oslo.test
bp graduate-oslo-test

Change-Id: Iff1eebac011dab26468a7f1475b5c36b0bb2a7d2
2014-02-26 17:06:03 -08:00
Chang Bo Guo db9e8d3c61 Unify different names between Python2 and Python3
Some modules have different names in Python2 and Python3. This patch
make them compatible with Python 3.

 * Use six.moves.filter instead of itertools.ifilter() in Python 2.
 * Use common.py3kcompat.urlutils instead of urllib and urlparse.

Change-Id: Ia27ebf6057d91d0e129fbe90f995cfdaa89efa8a
2013-12-09 02:19:52 -08:00
Chang Bo Guo c98d7edef8 Decouple from Oslo uuidutils module
uuidutils module will be deprecated in Icehouse, So need replace it.
This patch uses str(uuid.uuid4()) instead of method generate_uuid.

Closes-Bug: #1253497
Change-Id: I35815544429c489096b4db3fa79a649f4cd9459f
2013-11-22 19:59:03 -08:00
Mark McLoughlin 4043506a23 Add missing gettextutils
We don't need this in oslo.messaging itself, but excutils and sslutils
do use it.

Change-Id: Ib35caa6616aab7be1a7f872b2073f7b9f606b258
2013-07-27 15:49:48 +01:00
Mark McLoughlin 8ccb5741d2 Remove use of gettextutils
We don't have any infrastructure for localizations in oslo.messaging
so using this is pointless right now. I'm also generally not convinced
we want to translate any of the strings in this library anyway.

For now, just add a dummy _() function. We can can unmark the strings
later.

Change-Id: I1b6a698ee5558c50dc5eafee1f5f05ee2570435e
2013-07-24 08:15:35 +01:00
Mark McLoughlin c891e7ee24 Remove use of openstack.common.local
This means we no longer set the request context for the current thread
so that it can be used in logging.

We do need to add this back later, but it might be in the form of a
get_current_context() method.

Change-Id: I3f08a85e2019affddec829e2ea008b5c10707660
2013-07-24 08:15:35 +01:00
Mark McLoughlin 1a7e51eb4a Use stdlib logging
I guess this loses us automatic logging of details from request context.

Change-Id: I7413f025231c14b7cbdc9e90099407bc6c7943e1
2013-07-24 08:15:35 +01:00
Mark McLoughlin 51be674f30 Import some needed modules from oslo-incubator
Some additional modules from oslo-incubator are required by the driver
code. Don't fret, some of these will be removed in subsequent patches!

Change-Id: I3674bfbc4b1c93afc746b84fbbf8859456cbcb3c
2013-07-23 18:34:42 +01:00
Mark McLoughlin 43ab36d1a1 Make executor threads more robust
See bug #1189711

Prevent the executor thread getting killed by exceptions.

Change-Id: I0787fa619a6a8a35a303627f8ce119c93f2c8765
2013-07-23 18:34:42 +01:00
Mark McLoughlin e67f409b87 Don't use common logging
It appears we don't actually need this - we don't, for example, use any
of the special formatting supported by ContextAdaptor.
2013-06-16 15:24:41 +01:00
Mark McLoughlin be649d1d74 Import stuff from oslo-incubator 2013-06-15 08:43:54 +01:00