Commit Graph

66 Commits

Author SHA1 Message Date
Ihar Hrachyshka
ee09d2f624 Migrate to oslo.i18n
Mostly trivial import changes.

- oslo.i18n no longer provide install() method to inject _() into
  globals(), so removed all calls to it;
- removed Babel from dependencies (it will now be grabbed by oslo.i18n);
- updated tox.ini to ignore import violations for oslo.i18n.

Change-Id: I6623d551f512fb7fe9bf35ee734ed6d4c6cbc287
2014-11-26 22:19:24 +01:00
gordon chung
35434d2afd Migrate to oslo.middleware
Synced middleware module from incubator instead of removing it
completely. This is needed for grenade and to keep backwards
compatibility with existing installations with old api-paste.ini.

'log' module is updated as a dependency for middleware module.

'versionutils' are added as a new dependency for middleware module.

Closes-Bug: #1371701
Change-Id: Ib1c3161ccc98642091134f2285fed7c90244e600
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
2014-11-26 22:12:21 +01:00
OpenStack Proposal Bot
67e9f91d9e Updated from global requirements
Change-Id: I74345f78a169282b99ed3575f19afa3ca0548839
2014-11-23 09:36:11 +00:00
OpenStack Proposal Bot
4669f4569d Updated from global requirements
Change-Id: I0e0f708a755dcf45e3ce51141d264d8624ec87ba
2014-11-09 00:39:32 +00:00
OpenStack Proposal Bot
bb790c8135 Updated from global requirements
Change-Id: Ia4292097571c0cb3d291071c90b229650e5e4c70
2014-10-24 16:15:05 +00:00
OpenStack Proposal Bot
b40b16d9a0 Updated from global requirements
Change-Id: Idcbd730f5c781d21ea75e7bfb15959c8f517980f
2014-10-21 12:11:19 +00:00
Ihar Hrachyshka
90efdc25ac Updated fileutils and its dependencies
This is to avoid fileutils dependency on excutils that are now moved to
oslo.utils.

The following changes are included:

* neutron/openstack/common/__init__.py
  6b048e7 Let oslotest manage the six.move setting for mox

 * neutron/openstack/common/_i18n.py
  9ce1d96 Fix i18n import
  5d40e14 Remove code that moved to oslo.i18n

 * neutron/openstack/common/fileutils.py
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  2b966f9 Fix deletion of cached file for policy enforcer
  9c88dc3 file_open: fixed docstring to refer to open() instead of file()
  6c7407b fileutils: port to Python 3
  fcf517d Update oslo log messages with translation domains

 * neutron/openstack/common/log.py
  6c706c5 Delete graduated serialization files
  5d40e14 Remove code that moved to oslo.i18n
  6ff6b4b Switch oslo-incubator to use oslo.utils and remove old modules
  aa74411 log: add missing space in error message
  037dee0 Set stevedore log level to WARN by default
  37c0091 Add unicode coercion of logged messages to ContextFormatter
  6614413 Correct coercion of logged message to unicode
  1188d88 Except socket.error if syslog isn't running
  ac995be Fix E126 pep8 errors
  631f880 Set keystonemiddleware and routes.middleware to log on WARN level
  726d00a Adjust oslo logging to provide adapter is enabled for
  433fa0b Make logging_context_format_string optional in log.set_defaults
  ac92c06 Add default log level for websocket
  5fd77eb Ability to customize default_log_levels for each project
  4d9328c Python 3: enable tests/unit/test_log.py
  cb5a804 Move `mask_password` to strutils

Note: cb5a804 is partially included; that's ok because we don't use the
moved function in Neutron.

Change-Id: I3bfcaff2620b368d807e9468bb7abc01d6471661
2014-10-17 09:50:12 +02:00
OpenStack Proposal Bot
0acf9f7949 Updated from global requirements
Change-Id: Ib0c8c561427f141583d677e86a76cbfe4e2be606
2014-10-11 22:33:01 +00:00
OpenStack Proposal Bot
a128ced5f7 Updated from global requirements
Change-Id: I0e72933320ac6f49b55ef9782c6c19fb7e997bcb
2014-10-07 19:13:11 +00:00
Jenkins
4f961b3744 Merge "Removed kombu from requirements" 2014-10-04 22:30:22 +00:00
OpenStack Proposal Bot
6618b8a06a Updated from global requirements
Change-Id: I7a53aedccdd62fafd0da2679e84345e71da5493d
2014-09-13 07:23:23 +00:00
Ihar Hrachyshka
1ec31cdf3b Removed kombu from requirements
Since we've replaced oslo-incubator RPC layer with oslo.messaging, we
don't ship any code that uses kombu.

Change-Id: Ia8a74f1326ecd98c47cbe447f04d475bf61e19d3
2014-09-08 11:47:45 +02:00
OpenStack Proposal Bot
e1550155fa Updated from global requirements
Change-Id: Id4037028812b11e088897c6cb1ff3108c0d4e85d
2014-09-04 17:50:32 +00:00
OpenStack Proposal Bot
f78e1eb8f0 Updated from global requirements
Change-Id: I922b382fa75ecc6a8e14f25914c27e3eb245766e
2014-08-25 12:53:06 +00:00
OpenStack Proposal Bot
143bc8d822 Updated from global requirements
Change-Id: I3b7f5b18ef5b2bd257eb11669ec35397653cbc8b
2014-08-14 20:25:02 +00:00
OpenStack Proposal Bot
73a087bcc2 Updated from global requirements
Change-Id: I9865d4d0cdd475638ca49b0588ba880a52ee8897
2014-08-04 03:24:23 +00:00
OpenStack Proposal Bot
98870727b8 Updated from global requirements
Change-Id: I4116476698feba5b17ed4443db75a27c53da8615
2014-07-28 19:49:32 +00:00
OpenStack Proposal Bot
fe792e2676 Updated from global requirements
Change-Id: Ibdbdae16eb5b15cdfa5ca194dc852abfde14f74d
2014-07-24 16:04:36 +00:00
Jenkins
5aa6a96ad5 Merge "Use auth_token from keystonemiddleware" 2014-07-15 22:11:03 +00:00
Brant Knudson
2238d52b6d Use auth_token from keystonemiddleware
auth_token middleware in python-keystoneclient is deprecated and has
been moved to the keystonemiddleware repo.

Closes-Bug: #1342274

Change-Id: I1aadbe24db63eb2507b088cd53886d7f2e192cab
2014-07-15 18:37:04 +00:00
OpenStack Proposal Bot
2c1671b24d Updated from global requirements
Change-Id: I128b621ecb9f54db5054e24a8db807e2722ce619
2014-07-08 04:00:53 +00:00
OpenStack Proposal Bot
cbdd6e7522 Updated from global requirements
Change-Id: If26b2e9b875f8cae0af1cf66607ef1efb8dd429c
2014-07-02 12:25:51 +00:00
OpenStack Proposal Bot
0f8d979534 Updated from global requirements
Change-Id: I4e105ae586e8a2379f3025f6f0d0344738b4e925
2014-07-01 13:08:10 +00:00
Roman Podoliaka
73a2650c15 Switch to using of oslo.db
oslo.db first stable release has been cut and we can start using it
instead of openstack/common/db/* code which is now marked obsolete.

Change-Id: I1ccf896922a5a762d37a1a3b93c56c8b8ae8c085
2014-06-30 14:07:59 +03:00
OpenStack Proposal Bot
9615349656 Updated from global requirements
Change-Id: Ie0621bc8226585199a7c36771f23fc125747d3f9
2014-06-24 07:22:04 +00:00
Ihar Hrachyshka
3aca3f7745 Port to oslo.messaging
Now that all preparations are done, actually port the code to use
oslo.messaging. This patch does as little as possible. Follow up patches
that refactor and cleanup the code and configuration files, will be
merged later. The reason for this is to make the patch as slim as
possible, to make review process more smooth and concentrated.

Details:
* neutron/common/rpc.py:
  - added init() and cleanup() to set global RPC layer state.
  - added utility functions: get_server(), get_client(), get_notifier()
    that wrap up oslo.messaging API a bit, enforcing eventlet executor
    and setting serializer, among other things.
  - removed PluginRpcDispatcher, instead introduced PluginRpcSerializer
    to use as a default serializer for API callbacks.

* neutron/common/rpc_compat.py:
  - emulated incubator RPC layer behaviour thru previously introduced
    stub classes (RpcCallback, RpcProxy, ...) using new oslo.messaging
    API.
  - switched to using new oslo.messaging exception types.

* neutron/service.py:
  - expect multiple RPC listeners that are of MessageHandlingServer
    type, not GreenThread.

* neutron/common/config.py:
  - initialize RPC layer in init()

* setup.cfg:
  - added entry points for old notifier drivers to retain backward
    compatibility.

* neutron/tests/...:
  - introduced fake_notifier to replace impl_fake.
  - faked out consume_in_thread() to avoid starting RPC listeners when
    running unit tests.
  - used 'fake' transport driver.
  - made sure neutron.test.* exceptions are caught.
  - initialize and clean up RPC layer for each test case.

* Ported all affected code from using neutron.openstack.common.notifier
  API to oslo.messaging.Notifier.

* rpc.set_defaults() was renamed to rpc.set_transport_defaults()

* other changes not worth mentioning here.

blueprint oslo-messaging

DocImpact

Change-Id: I5a91c34df6e300f2dc46217b1b16352fcc3039fc
2014-06-19 12:58:01 +02:00
OpenStack Proposal Bot
4b86c00c5b Updated from global requirements
Change-Id: I321a9db3ff1082e226f9cf8d831c287c64d871f9
2014-06-18 19:35:58 +00:00
OpenStack Proposal Bot
4a07490905 Updated from global requirements
Added exclusions for newly triggered errors.

Change-Id: I580c4a6a3861c399e010f435c0b92ed719d6a418
2014-06-12 01:07:39 -04:00
OpenStack Proposal Bot
849d52fa2a Updated from global requirements
Change-Id: I724ef5f13fd7444ea053bd29fbefda2f73897353
2014-05-09 02:24:03 +00:00
Dirk Mueller
82fd4d3c71 Remove explicit dependency on amqplib
kombu already depends on amqp or amqplib depending on its
version, and no explicit access to amqplib exists in neutron code.

Closes-Bug: #1317094
Change-Id: I5cf189d7173b732cba6df3f9b6aff1d2bb85cdfe
2014-05-07 15:15:15 +02:00
OpenStack Proposal Bot
23386c41f8 Updated from global requirements
Change-Id: I11182ae01c05ed104b064c2b68bcbf5a53e0da99
2014-04-22 01:49:26 +00:00
OpenStack Jenkins
61c9418369 Updated from global requirements
Change-Id: I576919f28d7dd1a04ce1a3795bbf940b82d0d76f
2014-04-07 21:10:22 +00:00
OpenStack Jenkins
6894647394 Updated from global requirements
Change-Id: I920146bc6ea4eb490f42e1293552536f62949316
2014-04-01 11:51:30 +00:00
OpenStack Jenkins
2d2515893c Updated from global requirements
Change-Id: I211336108a37b6396c2b82ee2469873b8a569755
2014-03-21 22:28:55 +00:00
OpenStack Jenkins
a770de3253 Updated from global requirements
Change-Id: I2e22d529892a1a15aa300b9904362cf491fd8064
2014-03-11 17:31:09 +00:00
OpenStack Jenkins
67a31ebed6 Updated from global requirements
Change-Id: I40115d573e0f5dbfde9641a5f797e2aa7af254a3
2014-03-10 14:47:21 +00:00
OpenStack Jenkins
3b496ec619 Updated from global requirements
Change-Id: I5d909a9924f69ee21f463aa09e702b30f1ef1860
2014-03-08 01:51:30 +00:00
OpenStack Jenkins
3c661d72bd Updated from global requirements
Change-Id: I9ae28b6f84f1914fc4d53f7ad1f7742baa50dea9
2014-03-05 19:24:53 +00:00
OpenStack Jenkins
9f52870206 Updated from global requirements
Change-Id: Idafb224b0a2c4845fd1689527a08e0c36701cddd
2014-02-28 17:37:58 +00:00
Justin Lund
aee6c9abe6 Sync minimum requirements
Change-Id: I1a0653058f1f8085918d7c43147d6b2631acb013
Closes-bug:1280941
2014-02-20 18:56:38 -05:00
Jenkins
cbd2536658 Merge "Remove psutil dependency" 2014-02-11 09:34:08 +00:00
Terry Wilson
da4f5a45d7 Remove psutil dependency
The version of psutil that was being required is not hosted on
PyPi which caused some issues. This patch removes the psutil
dependency in favor of using the method that was proposed for
the havana backport of polling minimization.

Closes-bug: #1268711
Change-Id: I5a1672cfd195099d92578321153c42b8bfd09b7d
2014-02-10 12:40:16 -06:00
Thierry Carrez
7d4a40ea8e Use oslo.rootwrap library instead of local copy
Remove rootwrap code copied from oslo-incubator, make the
{neutron,quantum}-rootwrap console_script entrypoints point to
oslo.rootwrap code instead.

Adjust bin/{neutron,quantum}-rootwrap[-xen-dom0] so that it calls
into oslo.rootwrap.cmd.

Change-Id: I22df4060d6bca6affd7761fec49d2767ca8f59cf
Implements: blueprint neutron-oslo-rootwrap
2014-02-07 10:58:27 +01:00
OpenStack Jenkins
bada0b2fa9 Updated from global requirements
Change-Id: Iec62e381c079d1a71bd5d49f09cf71f6f4f68f72
2013-12-10 23:42:28 +00:00
Terry Wilson
c84480dfc2 Ensure get_pid_to_kill works with rootwrap script
To ensure that correct process is killed when using a rootwrap
script, we must recursively list the children of our top-level
process and kill the last one. This patch uses the psutil python
module which is already used in the heat-cfntools project.

Change-Id: I702bb9dd794c08fcaab637284ee303de1778cbb9
2013-11-20 09:57:23 -06:00
OpenStack Jenkins
1ec75f8db8 Updated from global requirements
Change-Id: Ifbcffab245f7dee50f5a84489011e220a3f8fea8
2013-10-24 13:16:21 +00:00
OpenStack Jenkins
b6f49fb302 Updated from global requirements
Change-Id: Ica7315effe308bd739e90f885849fac27a3c542b
2013-10-19 15:38:27 +00:00
OpenStack Jenkins
b6e2fb6dac Updated from global requirements
Change-Id: Id6c3328045ab356a232eb0fe71033f1272b76c5d
2013-10-01 16:13:29 +00:00
Mark McLoughlin
5a6f2ffd71 Require oslo.config 1.2.0 final
Now that 1.2.0 has been released, require it rather than one of the beta
release tarballs.

Closes-Bug: #1182861
Change-Id: I75ffc4a572d14488d19491a38742d6920951c171
2013-09-24 21:56:14 +01:00
Nachi Ueno
af6a3b444f Reference driver implementation (IPsec) for VPNaaS
Implements blueprint ipsec-vpn-reference

This patch implements reference driver implementation for VPNaaS.
The driver uses openswan to manage vpn connections.

Future work: Support ikepolicy and ipsec update
Support service type framework
Intelligent updating of resources

This commit adds jinja2 for requirements.txt for
generating cofig file.

Change-Id: I8c5ed800a71ca014dc7bdbb6a57c4f8d18fa82e0
2013-09-04 00:32:39 -07:00