11780 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
957ac2b83e Updated from global requirements
Change-Id: Ifc569f4371b0fafe071d99bf6542ca2802da8bd9
2015-09-21 18:56:49 +00:00
Jenkins
bf74aac50e Merge "delete_port: ensure quota usage is marked as dirty" 2015-09-21 18:24:48 +00:00
Jenkins
132a5071a3 Merge "Re-adds VIF_TYPE_VHOST_USER to portbindings extension" 2015-09-21 13:54:22 +00:00
Salvatore Orlando
0cf620bdf9 delete_port: ensure quota usage is marked as dirty
To this aim the ORM session mapper must be used.
This patch simply uses context.session.delete rather than
query.delete, and handles UnmappedInstanceError to safely
complete the operation when the record is deleted by
another transaction.

Change-Id: I55c701fc1e2fda4461501aae532bbe11cce45b75
Closes-Bug: #1497459
2015-09-21 05:49:24 -07:00
Jenkins
7ab3f53777 Merge "OVSAgentTestFramework: Remove _bind_ports" 2015-09-21 11:59:39 +00:00
Kyle Mestery
e95904060a Merge remote-tracking branch 'origin/feature/pecan' into merge-branch
Change-Id: I1c0b6a9837273f6a5a24f537d75c1ff43ff599f8
2015-09-19 14:45:05 +00:00
Jenkins
6e6ec1aa7f Merge "Update _TestModelMigration" 2015-09-19 05:30:01 +00:00
Jenkins
716bc3ba77 Merge "Fixes SNAT port not found for internal port" 2015-09-18 23:07:52 +00:00
Jenkins
12084ef032 Merge "Remove pecan branch reference from .gitreview file" into feature/pecan 2015-09-18 22:50:34 +00:00
Jenkins
92933ef19d Merge "Remove an invalid comment." 2015-09-18 22:08:42 +00:00
Margaret Frances
1a105ed620 Remove an invalid comment.
Closes-Bug: 1491110
Change-Id: I6c000f8891eb9c120dfaaac5938dfc69bf4c1572
Signed-off-by: Margaret Frances <margaret_frances@cable.comcast.com>
2015-09-18 19:38:15 +00:00
Jenkins
bdc481e5f5 Merge "Use pecan controllers for routing" into feature/pecan 2015-09-18 19:36:32 +00:00
Jenkins
12c2f969f2 Merge "Imported Translations from Zanata" 2015-09-18 18:45:52 +00:00
Swaminathan Vasudevan
e0664a4c2c Fixes SNAT port not found for internal port
For every router interface added to a router
with a default gateway there will be an internal
SNAT port generated and will be required by the
L3 Agent to process the SNAT rules.

This bug was introduced by the change ID below
Icc099c1a97e3e68eeaf4690bc83167ba30d8099a.

When the gateway is removed these ports have to
be removed from the namespace. These ports are
cached in the router_info and should be provided
to the get_snat_port_for_internal_port function
when called from external_gateway_removed or when
called from _dvr_internal_network_removed.

This patch fixes this problem.

Closes-Bug: #1496578

Change-Id: Id5af4774ba246e24f343f5623af5ea9143bd5f6b
2015-09-18 11:21:35 -07:00
Jenkins
7e647b1df3 Merge "Optimize if statement in dvr_local_router.py" 2015-09-18 17:06:58 +00:00
Jenkins
50dac76b06 Merge "Introduce a separate RPC server" into feature/pecan 2015-09-18 16:58:54 +00:00
Jenkins
b60610e9c5 Merge "Remove restriction of adding constraints to expand" 2015-09-18 15:50:52 +00:00
Jenkins
61db0f48a3 Merge "Add skeleton to 'Effective Neutron' devref" 2015-09-18 15:47:15 +00:00
Ann Kamyshnikova
a31746f558 Update _TestModelMigration
_TestModelMigrationTest contain some duplication of code from oslo.db.
As change 94d583acde16860e7ca535bd7a960e8993cd12d2 was merged and
included in oslo.db 2.4.1 this duplication can be avoid.

Change-Id: I5e789fb2fd6a27c1778b6155afc3d0396ccb5cb9
2015-09-18 18:21:44 +03:00
Salvatore Orlando
2c40310584 Use pecan controllers for routing
Pecan defines several efficient mechanism for routing requests to
the appropriate controller, but the current code for Neutron's
Pecan WSGI server basically uses Pecan hooks to route requests.

This patch partially fixes that, removing the 'resource_identifier'
pecan hook and replacing it with explicit pecan routes between
controllers added at resource registration time.

All the remaining hooks, like attribute_population and
policy_enforments, which were relying on finding the resource
name in the pecan.request threadlocal variable have been updated.

This patch also:
- ensures the appropriate plugin is always selected for a given
  resource
- add a common NeutronPecanController base class for the classes
  CollectionsController and ItemaController
- Fixes the way in which plurals and singulars are handled in
  neutron.api.v2.resource_heper

Change-Id: I4ec0d2276c3974117b497228d289c3fb0dc5a140
2015-09-18 06:00:14 -07:00
Jenkins
fb51806d69 Merge "Fix log statement to log correct variable first_ip" 2015-09-18 06:31:18 +00:00
OpenStack Proposal Bot
1853962d9e Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ibbe1b9311c7b6c3fdf57afcca1d62590126caed8
2015-09-18 06:06:47 +00:00
Jenkins
a9f63decf9 Merge "Introduce kill_signal parameter to AsynProcess.stop()" 2015-09-18 03:52:43 +00:00
Jenkins
e11b241a0f Merge "ipam: Prevent none from being passed to delete" 2015-09-18 00:56:50 +00:00
armando-migliaccio
515ac13fb3 Add skeleton to 'Effective Neutron' devref
Have you ever wondered why you were making the same mistakes
over and over again and wondered how you can remind yourself not
to repeat them again?

Have you ever felt like you posted review comments on some other
patch, only to see that the same anti-pattern was adopted in
someone else's?

Have you wondered what the heck that test was meant to validate?

Does that sound familiar to you? Yes? Great, we have the answer
for you! 'Effective Neutron' is the solution to all your problems!
From now on, everytime you bang your head against the monitor, do
not despair! You may find the answer to your grief in our collective
guide!

Go check it out!

(Your mileage may vary -- add your disclaimer here)

Change-Id: If1b8c1d04e1204985a4f9febb775c4fdb20305e9
2015-09-17 17:26:23 -07:00
Jakub Libosvar
ecbc2e3ed3 Introduce kill_signal parameter to AsynProcess.stop()
All stop() calls of instances of AsyncProcess class were sending
hardcoded SIGKILL signal to its process. This patch leaves the default
behavior to SIGKILL but offers any number to be sent to kill command.

Note: Internal private methods also got a new parameter which is not
      appended. Given that those methods are private and thus not used
      outside of the class, we can afford it.

Change-Id: Ib7b0273c134d59c6a50173d4c2eb35761fcd3d62
Related-Bug: #1487548
2015-09-17 17:39:19 -04:00
Ryan Moats
b07fb26292 Optimize if statement in dvr_local_router.py
The if statement for calling create_rtr_2_fip_link and kicking
the FW agent includes a check on floating_ips, that has already
been performed by the previous if block.  Pull this block into
the previous block for code clarity.

Change-Id: I8661aa3998bda9341f558d0ecbc8e2663cd95aca
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Co-Authored-By: Brian Haley <brian.haley@hpe.com>
2015-09-17 11:55:56 -05:00
Sean Mooney
6878db9f1c Re-adds VIF_TYPE_VHOST_USER to portbindings extension
- This change re-adds the definition of the VIF_TYPE_VHOST_USER
  constant to the neuton portbinding extension.
- This change enables reuse of a single common VIF_TYPE_VHOST_USER
  constant between all agents and mechanism drivers that wish
  to support the qemu vhost-user interface type.

Change-Id: If92afb03f91a9092657e5b50c058f258952bafd8
Partial-Bug: #1477611
2015-09-17 13:54:53 +01:00
Salvatore Orlando
fb69960f1e Introduce a separate RPC server
As the Pecan server only server REST requests over HTTP, this
patch introduces a new server implementing the RPC over AMQP
endpoints for agent/server communication.

However, the REST server does not yet have the ability to send
notifications to the RPC server or directly to the agents.
This patch simply adapts the ML2 plugin to run the RPC notifiers
only when initialized in the pecan server, so that notification
to agents can still be sent.

This patch therefore is tantamount to a poor man's
implementation of REST/RPC separation which will be iteratively
improved.

Change-Id: Ie471869d9b2793acdc412f13507038433f6a72c6
2015-09-17 05:18:32 -07:00
Jenkins
693db7cf7c Merge "Delete unused file tests/unit/database_stubs.py" 2015-09-17 01:55:41 +00:00
Aaron Rosen
e71e79fed3 Fix log statement to log correct variable first_ip
Change-Id: I75b8caad184d8fde535689000fbe11ac188c8b77
2015-09-16 18:34:37 -07:00
Kevin Benton
496c67e970 Remove pecan branch reference from .gitreview file
This needs to be removed before the merge back into
master so people don't start proposing patches to the
feature branch by default.

Change-Id: Ia14afe104b38a9b16fd3dc964686a733061d7e5c
2015-09-16 16:24:52 -07:00
Aaron Rosen
77de4a3b54 ipam: Prevent none from being passed to delete
Previously, it was possible for None to be passed to context.session.delete()
if a port was not found (usually a result of a concurrent delete). This
resulted in an UnmappedInstanceError. This is avoided now by calling
query.delete() directly which does not raise any exceptions.

Change-Id: I3b9f513308d90874ac8e8a7f6345697978d4920f
Closes-bug: #1496554
2015-09-16 15:50:21 -07:00
Jenkins
a8d364cb18 Merge "No network devices on network attached qos policies" 2015-09-16 22:49:26 +00:00
Jenkins
ab2eeb8255 Merge "Fix establishing UDP connection" 2015-09-16 20:34:06 +00:00
Jenkins
c32e05d402 Merge "Add QoS fullstack test" 2015-09-16 20:27:15 +00:00
Kevin Benton
d8a5e23e87 Remove restriction of adding constraints to expand
Adding a constraint to a table shouldn't be restricted
to an expand operation. There can be contraction migrations
required before the constraint can be safely added (e.g. inserting
records into the target table of the constraint).

Change-Id: I1963facaa6ab1916d92c044f90b6c00291f00ab9
2015-09-16 13:26:10 -07:00
Jenkins
3bb8d228f2 Merge "Use tempest-lib's token_client" 2015-09-16 20:25:41 +00:00
Jenkins
b870d37a01 Merge "ovsdb: Fix a few docstring" 2015-09-16 20:25:28 +00:00
Jenkins
07b9a7b086 Merge "Add IPv6 Address Resolution protection" 2015-09-16 20:25:14 +00:00
Jenkins
54eb0a9937 Merge "Enable servicing lbaasV2 vip by DVR" 2015-09-16 20:22:13 +00:00
Jenkins
2195501e97 Merge "QoS agent extension and driver refactoring" 2015-09-16 14:42:04 +00:00
Jenkins
a9901567c9 Merge "Always return iterables in L3 get_candidates" 2015-09-16 14:34:36 +00:00
Assaf Muller
bb9256ec2a Delete unused file tests/unit/database_stubs.py
No usages in Neutron, vpnaas, lbaas or fwaas repos.

Change-Id: I64867eca23dd77e491c4624e8b35c90af23e8e4e
2015-09-16 10:22:03 -04:00
Miguel Angel Ajo
fe236bdaad No network devices on network attached qos policies
Network devices, like internal router legs, or dhcp ports
should not be affected by bandwidth limiting rules.

This patch disables application of network attached policies
to network/neutron owned ports.

Closes-bug: #1486039
DocImpact

Change-Id: I75d80227f1e6c4b3f5fa7762b8dc3b0c0f1abd46
2015-09-16 15:11:04 +02:00
Jenkins
d3f4d33d82 Merge "Cleanup the fip agent gateway port delete routines" 2015-09-16 11:16:24 +00:00
Jenkins
768008acd6 Merge "Remove requirements.txt for the ofagent mechanism driver" 2015-09-16 11:03:33 +00:00
Kevin Benton
40151be9b3 Revert "Revert "Pecan WSGI: prevent plugins from opening AMQP connections""
This reverts commit 4f1fb05959b211c0edc52021af8774a163aa518c.
Merge of master went in so this can be re-applied and have the
conflict resovled.

Conflicts:
	neutron/server/__init__.py

Change-Id: I917e89b2191b3d4646e66a7a313783a56cf0ace5
2015-09-16 03:33:47 -07:00
armando-migliaccio
fdc3431ccd Merge remote-tracking branch 'origin/master' into walnut
Change-Id: Ic6314ef9c1db6524fbb0ed8b1bacdc2b081c4775
2015-09-16 17:07:52 -07:00
Ken'ichi Ohmichi
db4a06f7ca Use tempest-lib's token_client
Now tempest-lib provides token_client modules as library and the
interface is stable. So neutron repogitory doesn't need to contain
these modules.
This patch makes neutron use tempest-lib's token_client and removes
the own modules for the maintenance.

Change-Id: Ieff7eb003f6e8257d83368dbc80e332aa66a156c
2015-09-16 10:08:50 +00:00