Commit Graph

28 Commits

Author SHA1 Message Date
Chang Bo Guo
932d354991 Fix import log_handler error with publish_errors set
Sync from Olso.
Commit Id is Ibf28ba17f81b5ddeda653f6a3501ecac18ffcd42

This handler sends all error logs as rpc notifications.
Note: when using publish_errors you also need to set the
notification_driver option too.

Closes-bug: #1240349
Change-Id: Ie66b23af8da2e439e0ac2f5677f6a064e3dd3133
2013-11-05 22:47:32 -08:00
Mark McLoughlin
a764f78327 Remove obsolete redhat-eventlet.patch
See I62ce43a330d7ae94eda4c7498782a655e63747fa for the gorey details on
why this exists.

As of this fix:

  https://github.com/eventlet/eventlet/pull/34

which was released in eventlet 0.13, we no longer need the patch.

This has now been removed from oslo-incubator, so this is really just
syncing that removal.

Change-Id: I84267f3c6726cb2e750f615e107c48b12c6ed353
2013-10-09 21:47:48 +01:00
Julien Danjou
9b50a25c28 Remove openstack.common.exception usage
This file is deprecated, stop using it.

Change-Id: I5d79b8c0134bb5f4021487542d4d0a964281b8bf
Fixes-Bug: #1208734
2013-08-06 10:42:02 +02:00
Mark McClain
ee3fe4e836 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Gary Kotton
9f0c2453c6 Update to use OSLO db
This code implements the blueprint oslo-db-support

NOTES:
1. The new section is database (this is backward compatible
   with DATABASE)
2. The sql_* are deprecated. They are also backward compatible.
3. Eventlets DB pool is no longer supported

Change-Id: I6fa7c3817f6a5d8bef48382e0e754b88521f2289
2013-06-25 11:21:32 +00:00
Monty Taylor
bdba865d77 Move to pbr.
Closes bug 1179007

Change-Id: I3666e373389da6ad9a21a195a42918d4dec50cb5
2013-05-17 08:31:44 -07:00
Mark McLoughlin
9581e5b71b Copy the RHEL6 eventlet workaround from Oslo
Tests in oslo-incubator now need the horrendous hack to workaround an
issue with eventlet on RHEL6. We've moved the patch_tox_venv tool
and redhat-eventlet.patch into oslo-incubator, so add them to
openstack-common.conf.

Change-Id: I1acfec282b64d7582144b155119bedb1741db2f7
2013-05-02 10:31:16 +01:00
Zhongyue Luo
6d211d4da4 Reformat openstack-common.conf
Use the new 'module' option in openstack-common.conf which is a
multi-string option, allowing each module name to be placed on a
separate line.

This makes it much easier to review changes to the modules list.

Change-Id: I64dff89639f9d136ded3d25aab9f8f85a2d7112b
2013-04-06 11:06:41 +08:00
Mark McLoughlin
cfda6bc4fb Use oslo-config-2013.1b3
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Remove the 'deps = pep8' from tox.ini as it means all the other deps
get installed with easy_install which can't install oslo-config from
the URL.

Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-17 17:33:05 +00:00
Alessio Ababilov
8789704221 Synchronize code from oslo
Use commit eaab5fae2502198e9fa57d0d90a7204a2bd83b16:
Merge "sort options to make --help output prettier"
(Wed Feb 13 12:52:14 2013 +0000)

Add processutils to quantum since impl_zmq depends on them.

Drop notifier.list_notifier that is not present in oslo.

Change-Id: I91d9ec05481b8c24da9fbee1ad4706ff56a3b7aa
Fixes: bug #1116290
2013-02-13 17:43:40 +02:00
Matthew Treinish
672549dd4b Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I46bbf7d656e6cb9660e37af2d3ce96150e18e7fe
2013-01-28 16:22:17 -05:00
gongysh
b836e71eb1 l3 agent rpc
On one hand, we sync router data (including routers,
their gw ports, interfaces and floatingips) from l3_agent
to quantum server periodically if needed.

On the other hand, we notify l3 agent from quantum server when
we delete or update a router's stuff, such as floating IP,
interface and gwport and router itself.

blueprint rpc-for-l3-agent
bug #1080286

Change-Id: I60f3081975fc7164b22f9e9fa941e702a3f4c663
2012-12-04 16:46:44 +08:00
Nachi Ueno
12674de396 Add QUANTUM_ prefix for env used by quantum-debug
Fixes bug 1077204
from TEST_CONFIG_FILE to QUANTUM_TEST_CONFIG_FILE
also fixes openstack-common style

Change-Id: I03d386dd5fc28d91ef496aecb1b93ddb4f4a810d
2012-11-09 13:38:40 -08:00
Nachi Ueno
ab6de7f51a Import lockutils and fileutils from openstack-common
File lock function is needed to support iptables-based security group
implementation.

This is used by bp quantum-security-groups-iptables
Change-Id: Id9c116a1e10e5c240913fae7a127110b806eff0f
2012-11-08 14:31:44 -08:00
Monty Taylor
d65bca867c Updated openstack-common setup and version code.
Updating setup and version require code changes in the code base. This is done
here to support Id9c116a1e10e5c240913fae7a127110b806eff0f

Change-Id: I60b6dd6d684982e33de8fbf051a3dcaf98cb9b87
2012-11-08 09:21:34 +08:00
Gary Kotton
4fdd180b5a Add eventlet_backdoor and threadgroup from openstack-common
In addition to this the list of imports is now in an alphabetical order.

Change-Id: I34517ce3f740f63094d21b3cbebb542cc40661a2
2012-11-03 03:54:05 +00:00
Gary Kotton
944d9287f4 Add loopingcall from openstack-common
Change-Id: I65a1eb1676f0efb4decb75aa3dfd3af35012bd77
2012-11-03 02:43:03 +00:00
Gary Kotton
1e5a61065a Added service from openstack-common
Change-Id: Ie9892508820f81d487f41d5e3839d125c887681b
2012-11-03 00:16:08 +00:00
Zhongyue Luo
d6f84ff74a Add uuidutils module
Added uuidutils to openstack-common.conf file and
updated quantum/openstack/common

Change-Id: If3d3908f666115b3c461e8820c5bafcf1cc69e97
2012-11-05 10:51:47 +08:00
Emilien Macchi
9463f6f1a5 Support for several HA RabbitMQ servers.
Change-Id: I37f73867ff469133c39bf5f1a7fd48f48b0704d4
2012-09-28 18:14:21 +02:00
Yong Sheng Gong
3cff1e7b97 Introduce files from openstack common.
Because the openstack common project does not stick to latest pep8 rules,
I have to exclude some bad-ruled files in the tox.ini and run_tests.sh.
However pep8 does not support exclude option in the format quantum/openstack/common,
so I have to exclude some of openstack common files one by one.

Also, I have changed the Qunatum Context to base on the common context.

I does not update the setup.py in our openstack common dir and the one
under quantum top dir, since it should be maintained in a consistent way
across all of openstack projects.

After this introduction, we are ready for notification feature.

Change-Id: I2729c2dc3958835374c88d704e842e613785ec14
2012-07-17 06:41:14 +08:00
Yaguang Tang
6f99f4fee9 fix bug lp:1019230,update rpc from openstack-common.
Change-Id: I498e578affef4fa9df6c50cd7284ebd7e3f9a64e
2012-07-11 00:46:59 +08:00
Kevin L. Mitchell
b3a970a5e4 Add authZ through incorporation of policy checks.
Adds the policy openstack-common module and implements policy checks
for the v2 API.  Note that this cut only addresses whole objects (i.e.,
a subnet or a network or a port), not specific fields within objects.
(This means that attributes are not filtered out based on policies.)
Implements blueprint authorization-support-for-quantum.

Change-Id: I1b52b1791a1f14f0af6508a63a40a38e440f15fe
2012-06-18 14:21:57 -05:00
Zhongyue Luo
0d3cfea2e1 Use openstack.common.exception
Fixes bug #1013040

1. Edit openstack-common.conf and import openstack.common.exception
2. Remove redundant code

Change-Id: Ia440422e283f8e6796d9a1f720d73b3bcf2f981e
2012-06-14 16:25:52 +08:00
Zhongyue Luo
dedefaeea3 Quantum should use openstack.common.jsonutils
Implements blueprint use-common-jsonutils

1. Edit openstack-common.conf and import quantum/openstack/common/jsonutils.py
2. Remove json package imports and replace with jsonutils
3. Remove json related functions in common/utils.py

Change-Id: Id5abc49175899fa4d83e613f852aaaac539ecfcb
2012-06-07 12:24:21 +08:00
Zhongyue Luo
366ac6036e Quantum should use openstack.common.importutils
Implements blueprint use-common-importutils

Change-Id: Ib71a557ea6090d5c8d789b1e4c7b17855f7ee814
2012-06-04 14:47:42 +08:00
Gary Kotton
a86c31ba15 Parse linuxbridge plugins using openstack.common.cfg
Implements the blueprint use-common-cfg

In order for the linuxbridge plugin to use the rpc code soon to be merged into
openstack-common, we need to parse our configuration using cfg. Here we
make the most simple, backwards compatible change in that direction.

The same is relevant for the openvswitch implementation

Fixes after comments.

Change-Id: I70fc1898a802cb4198f72741453283d114added2
2012-05-29 09:54:29 -04:00
Monty Taylor
8f6de697f0 Split out pip requires and aligned tox file.
Align tox.ini file with standards.
Align setup.py with openstack-common standards.

Change-Id: I333bbd66648c865a5c97ec2661359ab849274446
2012-03-14 23:20:22 -07:00