]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoAdd notes on loading strategies for ORM relationships
armando-migliaccio [Sat, 19 Dec 2015 00:34:21 +0000 (16:34 -0800)]
Add notes on loading strategies for ORM relationships

There have been a number of regressions caused by our inability
to thoroughly review relatiohships' loading strategies. We should
at least make an attempt to remind ourselves, and since I am guilty
as charged, this patch is my attempt to redemption.

Change-Id: I879cfceaa51386e9d6c683e7e02487df92b7e290

8 years agoMerge "Use a joined relationship for AZ info on routers"
Jenkins [Fri, 18 Dec 2015 19:05:24 +0000 (19:05 +0000)]
Merge "Use a joined relationship for AZ info on routers"

8 years agoMerge "Adding a VNIC type for physical functions"
Jenkins [Fri, 18 Dec 2015 19:00:06 +0000 (19:00 +0000)]
Merge "Adding a VNIC type for physical functions"

8 years agoMerge "Catch known exceptions during deleting last HA router"
Jenkins [Fri, 18 Dec 2015 18:01:06 +0000 (18:01 +0000)]
Merge "Catch known exceptions during deleting last HA router"

8 years agoMerge "L3 DB: set get_assoc_data to be an internal method"
Jenkins [Fri, 18 Dec 2015 15:53:41 +0000 (15:53 +0000)]
Merge "L3 DB: set get_assoc_data to be an internal method"

8 years agoCatch known exceptions during deleting last HA router
LIU Yulong [Tue, 8 Dec 2015 06:13:44 +0000 (14:13 +0800)]
Catch known exceptions during deleting last HA router

In some scenarios, for instance rally test create_and_delete_routers,
it will get some exceptions, such as the network in use exception,
during the router deleting api call, but actually the router has
been deleted. There has race between HA router create and delete,
if set more api and rpc worker race raises exception more frequently.
Because the inconsistent error message was not useful for user,
this patch will catch those know exceptions ObjectDeletedError,
NetworkInUse when user delete last HA router.

At the same time, when user create the first HA router, but because
of the failure of HA network creation, the router will be deleted,
then the deleting HA network will raise AttributeError, this patch
also move HA network deleting procedure under ha_network exist check
block.

Change-Id: I8cda00c1e7caffc4dfb20a817a11c60736855bb5
Closes-Bug: #1523780
Related-Bug: #1367157

8 years agoMerge "Clean up code for bug1511311"
Jenkins [Fri, 18 Dec 2015 07:50:21 +0000 (07:50 +0000)]
Merge "Clean up code for bug1511311"

8 years agoMerge "Kill the vrrp orphan process when (re)spawn keepalived"
Jenkins [Fri, 18 Dec 2015 07:48:37 +0000 (07:48 +0000)]
Merge "Kill the vrrp orphan process when (re)spawn keepalived"

8 years agoMerge "Add to deprecate OFAgent in release note"
Jenkins [Fri, 18 Dec 2015 05:21:26 +0000 (05:21 +0000)]
Merge "Add to deprecate OFAgent in release note"

8 years agoAdd new troubleshooting bugs tag
Assaf Muller [Thu, 17 Dec 2015 23:06:45 +0000 (18:06 -0500)]
Add new troubleshooting bugs tag

The rationale is that we would have a single tag to track all
bugs that are about admin and user ease of use, logging quality,
and debuggability.

Change-Id: Ie42e08c924c9e742bdc6d9f4b68bdfbd1a622ba4

8 years agoAdd to deprecate OFAgent in release note
fumihiko kakuma [Mon, 12 Jan 2015 11:57:01 +0000 (20:57 +0900)]
Add to deprecate OFAgent in release note

The OFAgent is decomposed completely.
And the OFAgent driver and its agent are depecated in the Mitaka and
will be removed in the next release.

Partial-Bug: #1521477
Change-Id: I8ce5e69d84bad486c95d5e3bd3f44effd29b2a62

8 years agoClean up code for bug1511311
Hong Hui Xiao [Thu, 17 Dec 2015 15:05:50 +0000 (10:05 -0500)]
Clean up code for bug1511311

Due to the code change for the fix, the callback is no longer needed.

Change-Id: Id603add6bdf98d848fb4afe4dd117552992f9ed1
Related-Bug: #1511311

8 years agoKill the vrrp orphan process when (re)spawn keepalived
Hong Hui Xiao [Wed, 4 Nov 2015 06:44:43 +0000 (01:44 -0500)]
Kill the vrrp orphan process when (re)spawn keepalived

When keepalived crashed unexpectedly, the vrrp process that
it associates with will be orphan process. This will make
the VIP unable to migrate to the router in the same host.
Also, neutron code is not able to respawn the keepalived
process, because keepalived thinks itself is still running,
according to [1-3]. As a result, neutron will report respawning
keepalived all the time. Restart l3-agent will not help.

This patch will check and delete the orphan vrrp process
if there is any, in the processmonitor of l3 agent.

More details can be found in the bug description and comments.

[1] https://goo.gl/W3GL9I
[2] https://goo.gl/F0Ixfb
[3] https://goo.gl/dUqhTo

Change-Id: Ia1759ed1365b845d404686a8cd25f882cce35caf
Closes-Bug: #1511311

8 years agoMerge "Remove unused parameter from _update_router_db method"
Jenkins [Thu, 17 Dec 2015 12:10:46 +0000 (12:10 +0000)]
Merge "Remove unused parameter from _update_router_db method"

8 years agoMerge "Improve tox to show coverage report on same window"
Jenkins [Thu, 17 Dec 2015 11:32:25 +0000 (11:32 +0000)]
Merge "Improve tox to show coverage report on same window"

8 years agoMerge "Add check that list of agents is not empty in _get_enabled_agents"
Jenkins [Thu, 17 Dec 2015 11:29:36 +0000 (11:29 +0000)]
Merge "Add check that list of agents is not empty in _get_enabled_agents"

8 years agoFix comparison of Variant and other type in test_model_sync
AKamyshnikova [Wed, 16 Dec 2015 12:32:45 +0000 (15:32 +0300)]
Fix comparison of Variant and other type in test_model_sync

Tests TestModelsMigrations failed on comparation Variant type and
BigInteger after alembic 0.8.4 release.
Current change corrected compare_type for such case.

Closes-bug: #1526675

Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Change-Id: I7ae7aaf053a81f487d9ec14859700806fa4f9017

8 years agoAdd check that list of agents is not empty in _get_enabled_agents
Sergey Belous [Thu, 3 Dec 2015 15:49:13 +0000 (18:49 +0300)]
Add check that list of agents is not empty in _get_enabled_agents

No reason to try get enabled_agents and send notification
if there are no any agents associated with network.

Closes-bug: #1522471
Change-Id: I111967415ce600253fc679837d03c9cd75f19656

8 years agoRemove unused parameter from _update_router_db method
Eugene Nikanorov [Wed, 16 Dec 2015 12:58:47 +0000 (16:58 +0400)]
Remove unused parameter from _update_router_db method

While gw_info is being passed to _update_router_db method
of various classes it is never actually used, so this is just
a cleanup.

Change-Id: I311f6976c21fa07a7532c3d0bbe56b5e35a18f6e
Closes-Bug: #1526785

8 years agoMerge "Tune _get_candidates for faster scheduling in dvr"
Jenkins [Wed, 16 Dec 2015 08:47:31 +0000 (08:47 +0000)]
Merge "Tune _get_candidates for faster scheduling in dvr"

8 years agoUse a joined relationship for AZ info on routers
Kevin Benton [Wed, 16 Dec 2015 06:49:50 +0000 (22:49 -0800)]
Use a joined relationship for AZ info on routers

This patch adds a joined relationship from the routers
to the agent table to prevent excessive DB lookups of the
agent availability zones during router listings.

This fix is the same as the one for networks here:
I908ceb1a68e0eed7c304e3ff82279ad6fa406167

A follow-up patch will add an AZ table so this doesn't
have to join directly to the agents table.

Change-Id: I808f8ff0c581478b2ea1144e297d83af599a32f2
Closes-Bug: #1526644

8 years agoMerge "Updating devref for networking-onos project"
Jenkins [Wed, 16 Dec 2015 07:24:56 +0000 (07:24 +0000)]
Merge "Updating devref for networking-onos project"

8 years agoMerge "Use a joined relationship for AZ info on networks"
Jenkins [Wed, 16 Dec 2015 07:21:03 +0000 (07:21 +0000)]
Merge "Use a joined relationship for AZ info on networks"

8 years agoMerge "Add explicit address family to AddressScope"
Jenkins [Wed, 16 Dec 2015 03:45:32 +0000 (03:45 +0000)]
Merge "Add explicit address family to AddressScope"

8 years agoMerge "Force service provider relationships to load"
Jenkins [Tue, 15 Dec 2015 23:08:40 +0000 (23:08 +0000)]
Merge "Force service provider relationships to load"

8 years agoImprove tox to show coverage report on same window
Manjeet Singh Bhatia [Tue, 15 Dec 2015 21:06:24 +0000 (21:06 +0000)]
Improve tox to show coverage report on same window

with this patch coverage report will be shown with the results when
tox -e cover will be run

Change-Id: Ic975e65f1b3abadd90075e7f040c605e3740990f

8 years agoMerge "DVR: handle dvr serviceable port's host change"
Jenkins [Tue, 15 Dec 2015 21:05:22 +0000 (21:05 +0000)]
Merge "DVR: handle dvr serviceable port's host change"

8 years agoMerge "Batch db segment retrieval"
Jenkins [Tue, 15 Dec 2015 18:51:27 +0000 (18:51 +0000)]
Merge "Batch db segment retrieval"

8 years agoMerge "Separate rbac calculation from _make_network_dict"
Jenkins [Tue, 15 Dec 2015 18:34:07 +0000 (18:34 +0000)]
Merge "Separate rbac calculation from _make_network_dict"

8 years agoTune _get_candidates for faster scheduling in dvr
Swaminathan Vasudevan [Fri, 6 Nov 2015 01:00:49 +0000 (17:00 -0800)]
Tune _get_candidates for faster scheduling in dvr

Right now we have seen some performance issues when
dvr routers are scheduled on multiple compute nodes
with thousands of VMs on the routed subnets.

The _get_candidates call get_l3_agent_candidates with
a complete list of agents irrespective of the routers
already hosted on the agents or not.

So this fix will reduce the amount of iterations that
get_l3_agent_candidates need to process for all the
agents and would increase the control plane performance.

Closes-Bug: #1513678
Change-Id: I8f781d4cbc996ce13441303c9296e4f6ec822b94

8 years agoMerge "Ignore possible suffix in iproute commands."
Jenkins [Tue, 15 Dec 2015 14:06:23 +0000 (14:06 +0000)]
Merge "Ignore possible suffix in iproute commands."

8 years agoMerge "Add option for nova endpoint type"
Jenkins [Tue, 15 Dec 2015 10:06:06 +0000 (10:06 +0000)]
Merge "Add option for nova endpoint type"

8 years agoMerge "Removing adv svcs dependencies on neutron"
Jenkins [Tue, 15 Dec 2015 09:18:04 +0000 (09:18 +0000)]
Merge "Removing adv svcs dependencies on neutron"

8 years agoUpdating devref for networking-onos project
vikram.choudhary [Tue, 1 Dec 2015 09:23:17 +0000 (14:53 +0530)]
Updating devref for networking-onos project

Below changes are done as part of this patch.
* Mention about ONOS l3 support.
* Proposing Mr. Albert Dongfeng as a lieutenant for networking-onos.

Change-Id: I87827b08ed868f68cbd49c1fa7b91352d3c46605

8 years agoUse a joined relationship for AZ info on networks
Kevin Benton [Mon, 14 Dec 2015 01:56:57 +0000 (17:56 -0800)]
Use a joined relationship for AZ info on networks

The previous code was doing a DB lookup for each network's
availability zone which was significantly impacting the
performance of network listings.

This patch adjusts the network model to be automatically joined
to the DHCP agents table that the AZ code uses to populate the
AZs for the network.

Change-Id: I908ceb1a68e0eed7c304e3ff82279ad6fa406167
Closes-Bug: #1525740

8 years agoBatch db segment retrieval
Kevin Benton [Fri, 11 Dec 2015 18:55:38 +0000 (10:55 -0800)]
Batch db segment retrieval

A net-list operation was calling extend_network_dict_provider for
each network individually which would result in a database call for
each network.

This adds a new call in the manager to extend multiple networks at
once and then it adds a bulk version of get_network_segments that
it calls.

Now 1 net list of any number of networks will only result in 1
segment DB call.

Change-Id: I2543b3bdbb178ee4bb8d1288e9a27af1c5c8c8b4
Closes-Bug: #1525423
Partial-Bug: #1513782

8 years agoSeparate rbac calculation from _make_network_dict
Kevin Benton [Fri, 11 Dec 2015 17:56:01 +0000 (09:56 -0800)]
Separate rbac calculation from _make_network_dict

When a subnet dict was being created, it was calling
_make_network_dict to get the 'shared' flag for the
subnet. The issue with this is that the _make_network_dict
function would iterate over the subnets on the passed in
network object, which would trigger a database lookup
of all of the subnets.

This patch just separates the 'shared' flag calculation out
into a separate function that both calls can leverage.

Change-Id: I2cb766ce1fd8ddcc75209f9e92221a3b77015ea2
Closes-Bug: #1525295
Partial-Bug: #1513782

8 years agoAdd explicit address family to AddressScope
Ryan Tidwell [Sat, 10 Oct 2015 00:07:51 +0000 (17:07 -0700)]
Add explicit address family to AddressScope

Adds an ip_version field for enforcing an address family on
an AddressScope.  All SubnetPools in an AddressScope must be
from the same address family. A SubnetPool cannot be created
in an AddressScope with a different address family.

Change-Id: Ibc6de08e0ef58a5da954d13f274f6003012a76cd
Partially-Implements: blueprint address-scopes

8 years agoDVR: handle dvr serviceable port's host change
Oleg Bondarev [Thu, 22 Oct 2015 10:23:21 +0000 (13:23 +0300)]
DVR: handle dvr serviceable port's host change

When a VM port's host is changed we need to check if a router
should be unscheduled from old host and send corresponding
notifications.
commit d5a8074ec3c67ed68e64a96827da990f1c34e10f added such
a check when port is unbound. This patch adds similar check
in case of host change (instance live migration)

Closes-Bug: #1508869

Change-Id: I57fa8253b2c88f7b7380a79b841fc424e9e52f19

8 years agoMerge "Skip keepalived_respawns test"
Jenkins [Mon, 14 Dec 2015 14:57:56 +0000 (14:57 +0000)]
Merge "Skip keepalived_respawns test"

8 years agoAdding a VNIC type for physical functions
Brent Eagles [Mon, 9 Nov 2015 12:56:53 +0000 (09:26 -0330)]
Adding a VNIC type for physical functions

This change adds a new VNIC type to distinguish between virtual and
physical functions in SR-IOV.

The new VNIC type 'direct-physical' deviates from the behavior of
'direct' VNICs for virtual functions. While neutron tracks the resource
as a port, it does not currently perform any management functions.
Future changes may extend the segment mapping functionality that is
currently based on agent configuration to include direct types.
However, the direct-physical VNICs will not have functional parity with
the other SR-IOV VNIC types in that quality of service and port security
functionality is not available.

APIImpact
DocImpact: Add description for new 'direct-physical' VNIC type.

Closes-Bug: #1500993

Change-Id: If1ab969c2002c649a3d51635ca2765c262e2d37f

8 years agoMerge "Deprecated tox -downloadcache option removed"
Jenkins [Sun, 13 Dec 2015 11:02:16 +0000 (11:02 +0000)]
Merge "Deprecated tox -downloadcache option removed"

8 years agoMerge "Add address scope to ports in RPC response to L3 agent"
Jenkins [Sat, 12 Dec 2015 00:09:32 +0000 (00:09 +0000)]
Merge "Add address scope to ports in RPC response to L3 agent"

8 years agoMerge "Decompose OFAgent mechanism driver from neutron tree completely"
Jenkins [Fri, 11 Dec 2015 22:37:01 +0000 (22:37 +0000)]
Merge "Decompose OFAgent mechanism driver from neutron tree completely"

8 years agoDeprecated tox -downloadcache option removed
Ondřej Nový [Fri, 11 Dec 2015 20:06:14 +0000 (21:06 +0100)]
Deprecated tox -downloadcache option removed

Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I1778135d68a4bf96da3a0c0e4660172d1f13d16b

8 years agoRemoving adv svcs dependencies on neutron
Paul Michali [Mon, 7 Dec 2015 20:05:35 +0000 (15:05 -0500)]
Removing adv svcs dependencies on neutron

After upstreaming Idcfeee6ddc2982fff49f44064c918bfd4627be12 and
I62bfd6b34c381427425ca2a656e5782087de3a3b, we can remove items
from Neutron.

Specifically, LOADBALANCER_PLUGIN and LOADBALANCER_AGENT are not
used now. FIREWALL_PLUGIN is used in one module, so moved there.
The LOADBALANCER constant is only used in test files, but it is
used in multiple files, so leaving it. LOADBALANCERV2 is only used
in the header it is defined, so leaving it as well.

In the FW and LB repos, there are no longer dependency on these literals.

Change-Id: I7f0b972e1ae7ef435a3612e239dad7b2c04baea2
Implements: blueprint neutron-lib

8 years agoMerge "ML2: Add tests to validate quota usage tracking"
Jenkins [Fri, 11 Dec 2015 03:03:34 +0000 (03:03 +0000)]
Merge "ML2: Add tests to validate quota usage tracking"

8 years agoDecompose OFAgent mechanism driver from neutron tree completely
fumihiko kakuma [Wed, 9 Dec 2015 04:00:39 +0000 (13:00 +0900)]
Decompose OFAgent mechanism driver from neutron tree completely

All 3rd-party code is required to be removed from the neutron tree.
This change removes definition for ofagent mechanism driver from
neutron repository.

Change-Id: Ia21387eeaed71f38822356e22e4adbd237c1e64c
Closes-Bug: #1524164
Depends-On: I04c741daf12e7628e2c1e2d1b81b2b2ce1310542

8 years agoIgnore possible suffix in iproute commands.
John Schwarz [Tue, 8 Dec 2015 14:17:46 +0000 (16:17 +0200)]
Ignore possible suffix in iproute commands.

Closes-Bug: #1522199
Change-Id: I14815abd9345edb079e3331cbe2465ad22a0d4c3

8 years agoMerge "Add linuxbridge job to the dashboard"
Jenkins [Thu, 10 Dec 2015 09:15:45 +0000 (09:15 +0000)]
Merge "Add linuxbridge job to the dashboard"

8 years agoMerge "Added CORS support to Neutron"
Jenkins [Thu, 10 Dec 2015 09:15:16 +0000 (09:15 +0000)]
Merge "Added CORS support to Neutron"

8 years agoMerge "devref: Rolling upgrade mechanism for rpc-callbacks"
Jenkins [Thu, 10 Dec 2015 09:11:19 +0000 (09:11 +0000)]
Merge "devref: Rolling upgrade mechanism for rpc-callbacks"

8 years agoAdd option for nova endpoint type
Jeremy McDermond [Tue, 8 Dec 2015 18:14:09 +0000 (10:14 -0800)]
Add option for nova endpoint type

When the neutron notification to nova was updated to use novaclient the
nova_url parameter was disabled.  This prevents administrators from
using anything but the publicURL as the proper endpoint to notify nova.
This patch adds an option to pass on to novaclient for the
endpoint_type so that the administrator can set the notification url to
public, internal or admin.

Change-Id: I405f761944449cab6b8c8895f98419f79cd74cad
Closes-Bug: #1478471
DocImpact: Need to add a new option to the neutron configuration
reference.

8 years agoMerge "Updated from global requirements"
Jenkins [Thu, 10 Dec 2015 08:05:16 +0000 (08:05 +0000)]
Merge "Updated from global requirements"

8 years agoForce service provider relationships to load
Brandon Logan [Wed, 9 Dec 2015 00:24:28 +0000 (18:24 -0600)]
Force service provider relationships to load

A race condition was exposed in the LBaaS V2 db layer that was caused by a
hack to get around this issue.  The real issue is that since the
ProviderResourceAssociation is inserted independently, any models that were
created before this insert will not have their relationship with the
ProviderResourceAssocation loaded.  Using the session.expire_all method will
force the session to retrieve all new data and load this relationship for any
resource that uses this relationship.

Change-Id: I940b541f4ef9c489126cd2d215b1d857f0624de0
Closes-Bug: #1504465

8 years agoMerge "Make keepalived add_vip idempotent"
Jenkins [Thu, 10 Dec 2015 05:14:45 +0000 (05:14 +0000)]
Merge "Make keepalived add_vip idempotent"

8 years agoMerge "Add Guru Meditation Reports support to Neutron services"
Jenkins [Thu, 10 Dec 2015 02:59:36 +0000 (02:59 +0000)]
Merge "Add Guru Meditation Reports support to Neutron services"

8 years agoAdd linuxbridge job to the dashboard
armando-migliaccio [Wed, 9 Dec 2015 23:32:16 +0000 (15:32 -0800)]
Add linuxbridge job to the dashboard

This is to track the failure rate, and it's not looking good so far.

Change-Id: Id6f8b751a2554904f015e642d09354d645927967

8 years agoMerge "Add explanations and examples to TESTING.rst"
Jenkins [Thu, 10 Dec 2015 00:52:03 +0000 (00:52 +0000)]
Merge "Add explanations and examples to TESTING.rst"

8 years agoMerge "Revert "Revert "OVS agent reacts to events instead of polling"""
Jenkins [Thu, 10 Dec 2015 00:39:51 +0000 (00:39 +0000)]
Merge "Revert "Revert "OVS agent reacts to events instead of polling"""

8 years agoML2: Add tests to validate quota usage tracking
Salvatore Orlando [Mon, 21 Sep 2015 23:40:55 +0000 (16:40 -0700)]
ML2: Add tests to validate quota usage tracking

Ensure that event handlers are invoked upon completion of
ML2 operations which add or remove tracked resources.
Also validate that the event handlers are called for the
appropriate resources and that quota usage's dirty bit
is set and unset as expected.

These are not unit tests, but added in the unit test tree
as they leverage code both from the DB unit test and the ML2
unit test framework. This module has indeed been added to
the 'exclusion list' in check_unit_test_structure.sh, and
should be moved to the functional test tree together with
the other modules.

Closes-Bug: #1499358

Change-Id: I78c432c35f3f3339607cd533019ae6d0fa2a5cd6

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 9 Dec 2015 21:57:52 +0000 (21:57 +0000)]
Updated from global requirements

Change-Id: I8a67bd6ce1dfd0872ab2b50ab8a4d43fe48e308b

8 years agoAdd explanations and examples to TESTING.rst
Assaf Muller [Thu, 12 Mar 2015 02:52:49 +0000 (22:52 -0400)]
Add explanations and examples to TESTING.rst

* Added motivation paragraph
* Added definitions and an explanation about the scope of the
  test vs. the test infrastructure it uses
* Added content and examples to unit & functional tests sections

Change-Id: If78bd01d0fd7d899d4e6fbcdc8a33c441d2a1609

8 years agoMerge "Fix timestamp in RBAC extension"
Jenkins [Wed, 9 Dec 2015 17:59:33 +0000 (17:59 +0000)]
Merge "Fix timestamp in RBAC extension"

8 years agoMerge "Refactor OVS-agent tunnel config validate"
Jenkins [Wed, 9 Dec 2015 16:15:54 +0000 (16:15 +0000)]
Merge "Refactor OVS-agent tunnel config validate"

8 years agoAdded CORS support to Neutron
Michael Krotscheck [Mon, 19 Oct 2015 13:52:04 +0000 (06:52 -0700)]
Added CORS support to Neutron

This adds the CORS support middleware to Neutron, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.

For neutron, both the paste.ini and the direct-wrap method of
deploying the middleware were chosen, since neutron is in a state of
migration to pecan. Note that if someone deploys pecan-neutron behind
other middleware, any responses provided by that middleware will not
be CORS-enabled, as these responses would be returned before the
headers could be annotated. This results in a response not readable
by the user agent.

OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html
DocImpact: Add link to CORS configuration in admin cloud guide.

Change-Id: I02acea6124d28370d92e7c94ca2d1d6c5c8937ac

8 years agoL3 DB: set get_assoc_data to be an internal method
Gary Kotton [Wed, 9 Dec 2015 10:01:24 +0000 (02:01 -0800)]
L3 DB: set get_assoc_data to be an internal method

Use an _ to indicate the method is only used internally.
This will help avoid confusion if this method is updated.

TrivailFix

Change-Id: I8a34ddddf0b4d445ec14438ef0044fdafc810268

8 years agoMerge "Add release note covering keystoneauth and v3"
Jenkins [Wed, 9 Dec 2015 09:55:28 +0000 (09:55 +0000)]
Merge "Add release note covering keystoneauth and v3"

8 years agoMerge "lb: Correct String formatting to get rid of logged ValueError"
Jenkins [Wed, 9 Dec 2015 02:25:01 +0000 (02:25 +0000)]
Merge "lb: Correct String formatting to get rid of logged ValueError"

8 years agoMerge "Document relationship between ways of documenting new stuff"
Jenkins [Wed, 9 Dec 2015 02:24:15 +0000 (02:24 +0000)]
Merge "Document relationship between ways of documenting new stuff"

8 years agoMerge "Pull project out of request in addition to tenant"
Jenkins [Wed, 9 Dec 2015 02:23:48 +0000 (02:23 +0000)]
Merge "Pull project out of request in addition to tenant"

8 years agoMerge "Avoid full_sync in l3_agent for router updates"
Jenkins [Wed, 9 Dec 2015 00:20:38 +0000 (00:20 +0000)]
Merge "Avoid full_sync in l3_agent for router updates"

8 years agoRefactor OVS-agent tunnel config validate
Cedric Brandily [Mon, 30 Nov 2015 18:05:18 +0000 (19:05 +0100)]
Refactor OVS-agent tunnel config validate

This change transforms validate_local_ip into a sub-method of
validate_tunnel_config and raises directly SystemExit instead of
indirectly.

Related-bug: #1464394
Change-Id: I35addd41e1a8b061bd0e5e6656a1728fb7fe04ce

8 years agoMake keepalived add_vip idempotent
Assaf Muller [Tue, 8 Dec 2015 22:44:07 +0000 (17:44 -0500)]
Make keepalived add_vip idempotent

L3 agent operations are designed to be idempotent to be resiliant
in the face of missed notifications, out of order notifications
processing and agent restarts. One exception is keepalived's
add_vip that was made to explicitly barf when the agent tries
to add a vip that was already inserted to keepalive'd internal
cache. This was done in patch 142630 by my request to root
out bugs. Well, we found such a bug and in retrospect may not
have been the smartest idea.

Change-Id: Iead975787e2847828286d7b644dcbe33cf57ace9
Related-Bug: #1523999

8 years agoFix timestamp in RBAC extension
Kevin Benton [Tue, 8 Dec 2015 22:16:49 +0000 (14:16 -0800)]
Fix timestamp in RBAC extension

The previous timestamp had an invalid TZ offset.
This patch just sets it to UTC like the others.

Change-Id: I58689d2ae88979a1119475267998c09e18915083
Closes-Bug: #1524081

8 years agoMerge "move usage_audit to cmd/eventlet package"
Jenkins [Tue, 8 Dec 2015 21:54:13 +0000 (21:54 +0000)]
Merge "move usage_audit to cmd/eventlet package"

8 years agoDocument relationship between ways of documenting new stuff
Neil Jerram [Tue, 8 Dec 2015 10:39:48 +0000 (10:39 +0000)]
Document relationship between ways of documenting new stuff

Change-Id: I55329c8add108a5a7d0d65f024b19fb2412238d6

8 years agoMerge "Deprecate _ builtin translation function"
Jenkins [Tue, 8 Dec 2015 17:53:10 +0000 (17:53 +0000)]
Merge "Deprecate _ builtin translation function"

8 years agolb: Correct String formatting to get rid of logged ValueError
Andreas Scheuring [Mon, 7 Dec 2015 12:42:21 +0000 (13:42 +0100)]
lb: Correct String formatting to get rid of logged ValueError

The following error is caused by a missing String formatting in the
linuxbridge agent:
"ValueError: unsupported format character 'a' (0x61) at index 90
Logged from file linuxbridge_neutron_agent.py, line 447"

In addition a duplicated word in the log text has been fixed.

Change-Id: I587f1165fc7084dc9c4806149b65652f6e27b14e

8 years agoSkip keepalived_respawns test
Arie Bregman [Tue, 1 Dec 2015 07:47:55 +0000 (09:47 +0200)]
Skip keepalived_respawns test

keepalived fails to respawn after crash for > 1.2.11 version.

When keepalived starts, it spawns vrrp thread to monitor vrrp forked
process. It also creates a vrrp pid file. When the process is killed, and
it's restarted, the the new keepalived process runs with -P, so
when we validate whether we are already running,  we check vrrp pid file.
Since we never clean up the file before starting the process, and the process
dies without a chance to clean up the file as part of its signal
handler, respawn never works.

keepalived_respawns test should be skipped until bug is resolved.
See also: https://bugzilla.redhat.com/show_bug.cgi?id=1286729

Change-Id: Ic111573e0cd5ad5bfe70b0f38ec0203c10d52e34
Related-Bug: #1511311

8 years agoMerge "Don't emit confusing error in netns-cleanup"
Jenkins [Tue, 8 Dec 2015 17:24:58 +0000 (17:24 +0000)]
Merge "Don't emit confusing error in netns-cleanup"

8 years agoAdd release note covering keystoneauth and v3
Monty Taylor [Sun, 6 Dec 2015 22:48:35 +0000 (17:48 -0500)]
Add release note covering keystoneauth and v3

The previous two patches added the keystoneauth library and support for
interacting with the rest of the cloud using keystone v3. We should tell
someone about that in our release notes.

Change-Id: I59fcc217c5b8128840add1234aabc2687f3fa6a6

8 years agoPull project out of request in addition to tenant
Monty Taylor [Sat, 5 Dec 2015 04:54:22 +0000 (23:54 -0500)]
Pull project out of request in addition to tenant

Keystone V3 renamed tenant to project. In order to deal with keystone
V3, start pulling X-Project-Id from the headers.

Since keystonemiddleware authtoken sets both X-Project-* and
X-Tenant-*, we don't need to look up X-Tenant-*.

Don't do anything with renaming the internal variables - that will come
later.

Change-Id: I5e27cf6a54fb603b81d41b8b4f085d59354627fb
Depends-On: I1f754a9a949ef92f4e427a91bbd1b1e73e86c8c4
Closes-Bug: #1503428

8 years agoMerge "Notify about port create/update unconditionally"
Jenkins [Tue, 8 Dec 2015 03:03:00 +0000 (03:03 +0000)]
Merge "Notify about port create/update unconditionally"

8 years agoMerge "Moved fullstack test doc content to TESTING.rst"
Jenkins [Tue, 8 Dec 2015 02:46:57 +0000 (02:46 +0000)]
Merge "Moved fullstack test doc content to TESTING.rst"

8 years agoMerge "Remove useless lb-agent remove_empty_bridges"
Jenkins [Tue, 8 Dec 2015 02:43:31 +0000 (02:43 +0000)]
Merge "Remove useless lb-agent remove_empty_bridges"

8 years agoDon't emit confusing error in netns-cleanup
Assaf Muller [Mon, 7 Dec 2015 22:36:06 +0000 (17:36 -0500)]
Don't emit confusing error in netns-cleanup

If we're trying to delete a dhcp/qrouter device with use_veth
= False (Which is the default for some time), we'll first
try to 'ip link del %s', which will fail and emit a confusing
error, then try 'ovs-vsctl del-port'. There's no need to
log an error in such a case.

The patch attempts to future proof by setting the
set_log_fail_as_error(False) to be as tight as possible, so we
do log errors in case the device is somehow used in the future.

Change-Id: I1954bde3ee9a2e43d7615717134b61c5fa7cfbb1
Closes-Bug: #1463800

8 years agoAdd address scope to ports in RPC response to L3 agent
Carl Baldwin [Fri, 5 Jun 2015 22:23:50 +0000 (22:23 +0000)]
Add address scope to ports in RPC response to L3 agent

The L3 agent needs to know the address scope of each port of each
router it sets up in order to enforce isolation between scopes.

This commit adds a devref for the address scopes and subnet pools
features.

Change-Id: I6a7b3708fadefff1919d70ab1b8bc345b3fbe81c
Partially-Implements: blueprint address-scopes

8 years agoMerge "Updated from global requirements"
Jenkins [Mon, 7 Dec 2015 19:12:00 +0000 (19:12 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "HACKING: fix edge case with log hints"
Jenkins [Mon, 7 Dec 2015 18:24:18 +0000 (18:24 +0000)]
Merge "HACKING: fix edge case with log hints"

8 years agoMerge "Set timetable for removal of oslo.messaging.notify.drivers"
Jenkins [Mon, 7 Dec 2015 18:14:10 +0000 (18:14 +0000)]
Merge "Set timetable for removal of oslo.messaging.notify.drivers"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 7 Dec 2015 09:11:45 +0000 (09:11 +0000)]
Updated from global requirements

Change-Id: I86877c2e483d8fbce66ef7338d9a0f353c45c9dd

8 years agoAvoid full_sync in l3_agent for router updates
Sudhakar Babu Gariganti [Wed, 16 Sep 2015 10:23:57 +0000 (15:53 +0530)]
Avoid full_sync in l3_agent for router updates

While processing a router update in _process_router_update method,
if an exception occurs, we try to do a full_sync.

We only need to re-sync the router whose update failed.

Addressed a TODO in the same method, which falls in similar lines.

Change-Id: I7c43a508adf46d8524f1cc48b83f1e1c276a2de0
Closes-Bug: #1494682

8 years agomove usage_audit to cmd/eventlet package
niusmallnan [Mon, 7 Dec 2015 07:47:02 +0000 (07:47 +0000)]
move usage_audit to cmd/eventlet package

    setup_rpc func need the eventlet monkey_patch,
    otherwise the main process will be blocked.

Change-Id: I9f4a0b7c957b7dc7740e3cf6e75f18778ad562d0
Closes-Bug: #1522681

8 years agoMerge "Use _ from neutron._i18n"
Jenkins [Mon, 7 Dec 2015 03:12:08 +0000 (03:12 +0000)]
Merge "Use _ from neutron._i18n"

8 years agoMerge "Use keystoneauth instead of keystoneclient"
Jenkins [Mon, 7 Dec 2015 01:08:02 +0000 (01:08 +0000)]
Merge "Use keystoneauth instead of keystoneclient"

8 years agoMerge "I18n related guideline for subprojects"
Jenkins [Sun, 6 Dec 2015 20:41:35 +0000 (20:41 +0000)]
Merge "I18n related guideline for subprojects"

8 years agoUse keystoneauth instead of keystoneclient
Monty Taylor [Sat, 5 Dec 2015 05:14:52 +0000 (00:14 -0500)]
Use keystoneauth instead of keystoneclient

keystoneauth was split out last cycle as a library specifically to deal
with doing auth functions so that people who do not need to do keystone
CRUD operations can just consume only the auth session parts. As part
of modernizing keystone interactions, use keystoneauth instead of
keystoneclient.

Depends-On: I1f754a9a949ef92f4e427a91bbd1b1e73e86c8c4
Change-Id: Ia6fb7d8bb07d3101cf1b1afc318f3dcac0a37afc

8 years agoMerge "In port_dead, handle case when port already deleted"
Jenkins [Sun, 6 Dec 2015 13:55:06 +0000 (13:55 +0000)]
Merge "In port_dead, handle case when port already deleted"

8 years agoMerge "Do not autoreschedule routers if l3 agent is back online"
Jenkins [Sun, 6 Dec 2015 13:37:05 +0000 (13:37 +0000)]
Merge "Do not autoreschedule routers if l3 agent is back online"