]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Remove out-of-tree vendor AGENT_TYPE_* constant"
Jenkins [Wed, 16 Sep 2015 00:03:06 +0000 (00:03 +0000)]
Merge "Remove out-of-tree vendor AGENT_TYPE_* constant"

9 years agoMerge "Return exception when attempting to add duplicate VIP"
Jenkins [Tue, 15 Sep 2015 23:53:14 +0000 (23:53 +0000)]
Merge "Return exception when attempting to add duplicate VIP"

9 years agoMerge "Revert "AsyncProcess: try to kill tender""
Jenkins [Tue, 15 Sep 2015 17:13:28 +0000 (17:13 +0000)]
Merge "Revert "AsyncProcess: try to kill tender""

9 years agoMerge "sub_project_guidelines: Add richer documentation"
Jenkins [Tue, 15 Sep 2015 14:33:47 +0000 (14:33 +0000)]
Merge "sub_project_guidelines: Add richer documentation"

9 years agoRevert "AsyncProcess: try to kill tender"
Jakub Libosvar [Tue, 15 Sep 2015 11:52:03 +0000 (11:52 +0000)]
Revert "AsyncProcess: try to kill tender"

This change introduced bug 1495937.

This reverts commit 470a7d8a106a274e06fb1311c6738f333a98f59c.

Change-Id: I84fea4fdac71141da335ccd9e0d4c9d6174dfd86

9 years agoMerge "func: Don't use private method of AsyncProcess"
Jenkins [Tue, 15 Sep 2015 11:45:45 +0000 (11:45 +0000)]
Merge "func: Don't use private method of AsyncProcess"

9 years agoMerge "Remove unused ovs_lib method reset_bridge"
Jenkins [Tue, 15 Sep 2015 10:21:46 +0000 (10:21 +0000)]
Merge "Remove unused ovs_lib method reset_bridge"

9 years agoMerge "AsyncProcess: try to kill tender"
Jenkins [Tue, 15 Sep 2015 09:08:38 +0000 (09:08 +0000)]
Merge "AsyncProcess: try to kill tender"

9 years agoRemove out-of-tree vendor AGENT_TYPE_* constant
Cedric Brandily [Mon, 24 Aug 2015 20:24:10 +0000 (22:24 +0200)]
Remove out-of-tree vendor AGENT_TYPE_* constant

AGENT_TYPE_* constants[1] defines all agent types BUT the only vendor
one(AGENT_TYPE_NEC) is only used in out-of-tree networking-nec repo.
This changes removes out-of-tree AGENT_TYPE_NEC constant (dependant
change defines it in networking-nec repo).

[1] in neutron.extensions.portbindings

Change-Id: Ia80c33ee7970cfe167c2c9ca6d512f23561455a2
Closes-Bug: #1487598
Depends-On: I955fa48ee2120900e422bab57db250303c3d7bb4

9 years agofunc: Don't use private method of AsyncProcess
Jakub Libosvar [Mon, 14 Sep 2015 14:54:34 +0000 (14:54 +0000)]
func: Don't use private method of AsyncProcess

In functional test we simulate crash of AsyncProcess by calling
_kill_process(). This method is a private method and such usage
introduced a race where process was respawned prior to calling wait() of
killed process, leading to infinite wait on newly spawned process.

This patch adds manual send of kill and then active waiting for process
to be respawned, similarly like done with recent keepalived patch [1].

[1] https://review.openstack.org/#/c/222460/7/neutron/tests/functional/agent/linux/test_keepalived.py

Closes-Bug: #1477860
Change-Id: I1c91393304d65a0695311416ecc5b64fd549b192

9 years agoMerge "Fix TypeError caused by delete_agent_gateway_port()"
Jenkins [Tue, 15 Sep 2015 01:08:09 +0000 (01:08 +0000)]
Merge "Fix TypeError caused by delete_agent_gateway_port()"

9 years agoRemove unused ovs_lib method reset_bridge
lzklibj [Thu, 10 Sep 2015 18:37:47 +0000 (02:37 +0800)]
Remove unused ovs_lib method reset_bridge

Per [1] we are using a better way to keep tunnel connectivity,
so reset_bridge isn't used anymore. Bug in [2] was caused by
using method reset_bridge which will delete and recreate bridge.
For [1] makes method reset_bridge deprecated, it makes sense to
remove this method, and make [2] no longer produce.

[1] https://review.openstack.org/#/c/182920
[2] Related-bug: #1332450

Change-Id: I155f66a37b8d4081126467fe576e8315c2d5560c

9 years agoMerge "Fix query in get_l3_agent_with_min_routers"
Jenkins [Mon, 14 Sep 2015 21:59:13 +0000 (21:59 +0000)]
Merge "Fix query in get_l3_agent_with_min_routers"

9 years agoFix TypeError caused by delete_agent_gateway_port()
Brian Haley [Mon, 14 Sep 2015 20:12:18 +0000 (16:12 -0400)]
Fix TypeError caused by delete_agent_gateway_port()

A recent change used a keyword argument when it didn't need to,
correct it to fix the multinode DVR job.

End of typical traceback:

File "/opt/stack/new/neutron/neutron/api/rpc/handlers/l3_rpc.py",
in delete_agent_gateway_port(admin_ctx, network_id, host_id=host)

TypeError: delete_floatingip_agent_gateway_port() got multiple
values for keyword argument 'host_id'

Introduced in commit 639f1893dde0d393a97b29ca5309dba716831a7

Related-bug: #1495147

Change-Id: Id2522bc843bc7b089b7783d3f765900a50a0033f

9 years agoMerge "Fix typo: Large Ops, not Large Opts"
Jenkins [Mon, 14 Sep 2015 18:37:15 +0000 (18:37 +0000)]
Merge "Fix typo: Large Ops, not Large Opts"

9 years agoMerge "docstring fix"
Jenkins [Mon, 14 Sep 2015 18:36:55 +0000 (18:36 +0000)]
Merge "docstring fix"

9 years agoMerge "Stop logging deadlock tracebacks"
Jenkins [Mon, 14 Sep 2015 18:36:42 +0000 (18:36 +0000)]
Merge "Stop logging deadlock tracebacks"

9 years agoMerge "Fix RBAC filter query for negative case"
Jenkins [Mon, 14 Sep 2015 18:33:17 +0000 (18:33 +0000)]
Merge "Fix RBAC filter query for negative case"

9 years agosub_project_guidelines: Add richer documentation
Kyle Mestery [Thu, 10 Sep 2015 15:46:04 +0000 (15:46 +0000)]
sub_project_guidelines: Add richer documentation

Add additional documentation around releasing sub-projects.

Change-Id: I71f31b6b8ed085066491e181074b467435f8d66d
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Do not specify host for l2population topics"
Jenkins [Mon, 14 Sep 2015 16:50:23 +0000 (16:50 +0000)]
Merge "Do not specify host for l2population topics"

9 years agoFix typo: Large Ops, not Large Opts
Ryan Moats [Mon, 14 Sep 2015 16:29:28 +0000 (11:29 -0500)]
Fix typo: Large Ops, not Large Opts

Change-Id: I73e64e19275f002fcc2ae2e903611835bfd98f8a
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "Fix typo in error message in NetcatTester"
Jenkins [Mon, 14 Sep 2015 16:28:10 +0000 (16:28 +0000)]
Merge "Fix typo in error message in NetcatTester"

9 years agoFix query in get_l3_agent_with_min_routers
Ann Kamyshnikova [Mon, 14 Sep 2015 14:29:22 +0000 (17:29 +0300)]
Fix query in get_l3_agent_with_min_routers

For PostgreSQL if you're using GROUP BY everything in the SELECT
list must be an aggregate count(...) or used in the GROUP BY.

Closes-bug: #1495523

Change-Id: Ieb75d0666ec2f6d2e61686bf2bacea2b9ad6c521

9 years agoDo not specify host for l2population topics
Ilya Shakhat [Mon, 14 Sep 2015 12:43:05 +0000 (15:43 +0300)]
Do not specify host for l2population topics

When creating topics oslo.messaging automatically creates
topic with hostname suffix (e.g. topic.hostname), there's
no need to do this explicitly.

Change-Id: Ia396452e8deb2c8f10bbead936245eeece8066a6
Closes-Bug: #1495508

9 years agoAdd utility function for checking trusted port
Kevin Benton [Thu, 3 Sep 2015 17:01:40 +0000 (10:01 -0700)]
Add utility function for checking trusted port

Ports that have a device_owner that starts with 'network:'
are trusted in several places throughout the codebase. Each
of these did a startswith check on each field and it's not
immediately obvious why it's done.

This patch adds a utility function called 'is_port_trusted'
that performs the same check and makes it obvious what is
being done.

Change-Id: I542c753776d5cfb2fd736b25ea6e111867c89c89

9 years agoFix typo in error message in NetcatTester
Jakub Libosvar [Mon, 14 Sep 2015 09:19:14 +0000 (09:19 +0000)]
Fix typo in error message in NetcatTester

Change-Id: Ie00901b1dab6c0c5ad4ec0f0c437426afc60396e

9 years agodocstring fix
Saju Madhavan [Mon, 14 Sep 2015 08:33:28 +0000 (14:03 +0530)]
docstring fix

Change-Id: I35e44872c3dc7508d5991dc967bbceb22d6bea51

9 years agoAsyncProcess: try to kill tender
IWAMOTO Toshihiro [Fri, 11 Sep 2015 10:01:20 +0000 (19:01 +0900)]
AsyncProcess: try to kill tender

_kill_process kills processes with SIGKILL, which prevents the
processes' cleanup from running.  Issue SIGTERM first and wait a bit.

Change-Id: Ie7b94011bbd11b1d672c95e3be19bb3c84ef77ec
Closes-bug: 1494363

9 years agoMerge "Delete gateway conntrack state when remove external gateway"
Jenkins [Mon, 14 Sep 2015 05:05:20 +0000 (05:05 +0000)]
Merge "Delete gateway conntrack state when remove external gateway"

9 years agoMerge "Switch scheduler drivers to load based schedulers"
Jenkins [Mon, 14 Sep 2015 00:20:02 +0000 (00:20 +0000)]
Merge "Switch scheduler drivers to load based schedulers"

9 years agoMerge "Remove an unnecessary extension check for rbac"
Jenkins [Mon, 14 Sep 2015 00:19:50 +0000 (00:19 +0000)]
Merge "Remove an unnecessary extension check for rbac"

9 years agoMerge "Don't log exceptions in GW update on router create"
Jenkins [Mon, 14 Sep 2015 00:19:38 +0000 (00:19 +0000)]
Merge "Don't log exceptions in GW update on router create"

9 years agoMerge "Handle ObjectDeletedError when deleting network ports/subnets"
Jenkins [Sun, 13 Sep 2015 07:22:34 +0000 (07:22 +0000)]
Merge "Handle ObjectDeletedError when deleting network ports/subnets"

9 years agoMerge "Fix BadRequest error on add_router_interface for DVR"
Jenkins [Sun, 13 Sep 2015 07:22:22 +0000 (07:22 +0000)]
Merge "Fix BadRequest error on add_router_interface for DVR"

9 years agoMerge "Tweak test_keepalived_respawns test logic"
Jenkins [Sun, 13 Sep 2015 06:43:25 +0000 (06:43 +0000)]
Merge "Tweak test_keepalived_respawns test logic"

9 years agoSwitch scheduler drivers to load based schedulers
armando-migliaccio [Fri, 11 Sep 2015 09:32:42 +0000 (02:32 -0700)]
Switch scheduler drivers to load based schedulers

Cloud deployed at scale most likely will use these scheduler
drivers because they allow a fairer resource allocation compared
to chance schedulers (which randomly place resources on the hosts).

Because of their importance, it's only wise to test them in
the gate on a continuous basis, so that we do not get surprised
by accidental regressions.

Rather than pushing this down through devstack-gate/project-config
patches, this chance alters the default of the scheduler
drivers, so that users can also pick these up out of the box.

This means that after an upgrade they would observe a change in
the scheduling behavior, if they relied on the default config.

DocImpact
UpgradeImpact

Closes-bug: #1494667

Change-Id: I5927914cb88eff66bc7a045340ff68cb8da95ad6

9 years agoFix BadRequest error on add_router_interface for DVR
armando-migliaccio [Sat, 12 Sep 2015 19:07:35 +0000 (12:07 -0700)]
Fix BadRequest error on add_router_interface for DVR

This operation for DVR is made of multiple steps, some of
which are not within the same DB transaction. For this
reason, if a failure occurs, the rollback will be partial.

This inconsistent state leads the retry logic to fail with
BadRequest, because the router is believed to be already
connected to the subnet.

To fix this condition, it is necessary to delete the port
should the DB deadlock occur.

Closes-bug: #1494114

Change-Id: Ia2a73d6f9d1e4746e761ad072d954e64267a3ad1

9 years agoFix missing value types for log message
Sergey Vilgelm [Sat, 12 Sep 2015 18:55:01 +0000 (21:55 +0300)]
Fix missing value types for log message

This patch add missing value types for some log message of exception.

Change-Id: Ie9f512bc804f0cd70df991b1910c975a2f9d6fcf
Closes-Bug: #1494574

9 years agoMerge "Reservations: Don't count usage if resource is unlimited"
Jenkins [Sat, 12 Sep 2015 15:31:57 +0000 (15:31 +0000)]
Merge "Reservations: Don't count usage if resource is unlimited"

9 years agoMerge "Remove an unused DVR function"
Jenkins [Sat, 12 Sep 2015 14:26:12 +0000 (14:26 +0000)]
Merge "Remove an unused DVR function"

9 years agoMerge "Don't setup ARP protection on LB for network ports"
Jenkins [Sat, 12 Sep 2015 09:14:38 +0000 (09:14 +0000)]
Merge "Don't setup ARP protection on LB for network ports"

9 years agoTweak test_keepalived_respawns test logic
armando-migliaccio [Fri, 11 Sep 2015 04:54:33 +0000 (21:54 -0700)]
Tweak test_keepalived_respawns test logic

This test initial design is problematic: it spawns keepalived,
it asserts the process is up, then it attempts to kill it.

However, this is when problems may arise:

a) it does so by using the disable method on the process - we
   should be more rude than that if we want to simulate a crash!

b) keepalived may be forking while it is starting and it is
   possible that for a moment the ppid changes and the process
   owner invoking the kill has no rights to kill the spawned
   process. This is the most plausible explaination I could find
   as to why kill returns 1 with no standard error

c) it does not verify that the process has indeed disappeared
   (what if the pm.disable didn't work?) - this means that the
   test can pass, and yet the monitor may not work.

Bottom line: this test relied on the correctness of the very code
that was meant to validate...and that's not cool. To this aim, we
wait for the process to be active, kill the process with a kill -9
and verify that the process after the kill is indeed different.

Closes-bug: #1490043

Change-Id: Idaf419a1464d9d0d75b9106a7acd5cd960a7c623

9 years agoMerge "Add RPC command and delete if last FIP on Agent"
Jenkins [Sat, 12 Sep 2015 07:16:12 +0000 (07:16 +0000)]
Merge "Add RPC command and delete if last FIP on Agent"

9 years agoMerge "Replace is_this_snat_host validation with internal function"
Jenkins [Sat, 12 Sep 2015 04:42:35 +0000 (04:42 +0000)]
Merge "Replace is_this_snat_host validation with internal function"

9 years agoMerge "Restore reservations in API controller"
Jenkins [Sat, 12 Sep 2015 03:46:53 +0000 (03:46 +0000)]
Merge "Restore reservations in API controller"

9 years agoMerge "Don't log deadlock or retry exceptions in L3 DB"
Jenkins [Sat, 12 Sep 2015 02:06:25 +0000 (02:06 +0000)]
Merge "Don't log deadlock or retry exceptions in L3 DB"

9 years agoMerge "Install sriov-agent.ini on 'setup.py install'"
Jenkins [Sat, 12 Sep 2015 00:54:19 +0000 (00:54 +0000)]
Merge "Install sriov-agent.ini on 'setup.py install'"

9 years agoMerge "Configure gw_iface for RAs only in Master HA Router"
Jenkins [Sat, 12 Sep 2015 00:51:37 +0000 (00:51 +0000)]
Merge "Configure gw_iface for RAs only in Master HA Router"

9 years agoMerge "ovs: don't use ARP responder for IPv6 addresses"
Jenkins [Fri, 11 Sep 2015 22:19:13 +0000 (22:19 +0000)]
Merge "ovs: don't use ARP responder for IPv6 addresses"

9 years agoMerge "Make ip address optional to add_route and delete_route"
Jenkins [Fri, 11 Sep 2015 21:46:34 +0000 (21:46 +0000)]
Merge "Make ip address optional to add_route and delete_route"

9 years agoMerge "Add list routes"
Jenkins [Fri, 11 Sep 2015 21:46:07 +0000 (21:46 +0000)]
Merge "Add list routes"

9 years agoReservations: Don't count usage if resource is unlimited
Salvatore Orlando [Fri, 28 Aug 2015 15:55:42 +0000 (08:55 -0700)]
Reservations: Don't count usage if resource is unlimited

If a resource is unlimited (ie: limit<0) then there is no need
to verify headroom for it. This also means that there no need for
counting it; therefore it is possible to save some DB operations
by skipping the count phase.

Change-Id: Ibe9ca8a1c29fb8ba12df187c25f8f9515968a54d
Related-blueprint: better-quotas

9 years agoRestore reservations in API controller
Salvatore Orlando [Tue, 25 Aug 2015 09:28:08 +0000 (02:28 -0700)]
Restore reservations in API controller

This patch restores the reservation logic in the API controller,
as the DB issues arising from the pymysql switch has been solved.

Change-Id: I98b40925fdceba13d6a2b5a4d0c5793aeb5cf077
Related-Bug: #1486134
Related-Blueprint: better-quotas

9 years agoMerge "Remove useless log from periodic_sync_routers_task"
Jenkins [Fri, 11 Sep 2015 19:32:36 +0000 (19:32 +0000)]
Merge "Remove useless log from periodic_sync_routers_task"

9 years agoovs: don't use ARP responder for IPv6 addresses
Ihar Hrachyshka [Fri, 11 Sep 2015 18:46:51 +0000 (14:46 -0400)]
ovs: don't use ARP responder for IPv6 addresses

ARP does not support IPv6 addresses, so when we try to apply the flow, it
fails, with all other flows deferred for the same transaction. It results in
random flow breakages, depending on the order of the bad flow in the
transaction.

Change-Id: I0ecf167653e5a7d0916e091e05050406a026a1e2
Co-Authored-By: Thomas Carroll <Thomas.Carroll@pnnl.gov>
Closes-Bug: #1477253

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 11 Sep 2015 17:24:10 +0000 (17:24 +0000)]
Merge "Updated from global requirements"

9 years agoInstall sriov-agent.ini on 'setup.py install'
Ihar Hrachyshka [Fri, 11 Sep 2015 14:32:06 +0000 (16:32 +0200)]
Install sriov-agent.ini on 'setup.py install'

The previous change [1] that split the configuration file into two pieces
missed the update of setup.cfg, so the file was not installed.

[1]: Ie1eda925e051f85d53ad9624d6617d095cf8c7be

Change-Id: Idcdc71b5614463fc0d81a8bc2d2833159be9e6c9
Related-Bug: #1489060

9 years agoConfigure gw_iface for RAs only in Master HA Router
sridhargaddam [Thu, 10 Sep 2015 16:14:13 +0000 (16:14 +0000)]
Configure gw_iface for RAs only in Master HA Router

For an HA Router which does not have any IPv6 subnets in the external network
and when ipv6_gateway is not set, Neutron configures the gateway interface of
the router to receive Router Advts for default route. In an HA router, only
the Master instance has the IP addresses while the Backup instance does not
have any addresses (including LLA). In Kernel version 3.10, when the last
IPv6 address is removed from the interface, IPv6 proc entries corresponding
to the iface are also deleted. This is however reverted in the later versions
of kernel code.

This patch addresses this issue by configuring the proc entry only for the
Master HA Router instance instead of doing it un-conditionally.

Closes-Bug: #1494336
Change-Id: Ibf8e0ff64cda00314f8fa649ef5019c95c2d6004

9 years agoRemove useless log from periodic_sync_routers_task
Ryan Moats [Fri, 11 Sep 2015 12:41:38 +0000 (07:41 -0500)]
Remove useless log from periodic_sync_routers_task

Logging that peridoic_sync_routers_task is starting with fullsync
False just adds noise to devstack logs.  Reposition the log
statement to indicate that the task is starting if it is going
to be doing real processing.

Change-Id: I73def1e20218b01c135769d0b8fbce449dad17ea
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "Add test to check that correct functions is used in expand/contract"
Jenkins [Fri, 11 Sep 2015 12:06:56 +0000 (12:06 +0000)]
Merge "Add test to check that correct functions is used in expand/contract"

9 years agoMerge "Don't setup ARP protection on OVS for network ports"
Jenkins [Thu, 10 Sep 2015 23:08:01 +0000 (23:08 +0000)]
Merge "Don't setup ARP protection on OVS for network ports"

9 years agoMerge "Check ICMP codes in range [0,255]"
Jenkins [Thu, 10 Sep 2015 22:13:02 +0000 (22:13 +0000)]
Merge "Check ICMP codes in range [0,255]"

9 years agoMerge "Add l2pop support to full stack tests"
Jenkins [Thu, 10 Sep 2015 22:08:19 +0000 (22:08 +0000)]
Merge "Add l2pop support to full stack tests"

9 years agoMerge "Add tunneling support to full stack tests"
Jenkins [Thu, 10 Sep 2015 22:07:46 +0000 (22:07 +0000)]
Merge "Add tunneling support to full stack tests"

9 years agoMerge "Descheduling DVR routers when ports are unbound from VM"
Jenkins [Thu, 10 Sep 2015 21:42:19 +0000 (21:42 +0000)]
Merge "Descheduling DVR routers when ports are unbound from VM"

9 years agoReplace is_this_snat_host validation with internal function
Swaminathan Vasudevan [Thu, 10 Sep 2015 20:48:46 +0000 (13:48 -0700)]
Replace is_this_snat_host validation with internal function

There is already a function to validate if it is an snat
host or not. So just use that function instead of additional
validation.

Change-Id: I004d94d1d4b632880ed289ccdc9bf45cffc0e095

9 years agoMerge "Remove hack for discovery novaclients extension"
Jenkins [Thu, 10 Sep 2015 20:44:58 +0000 (20:44 +0000)]
Merge "Remove hack for discovery novaclients extension"

9 years agoAdd l2pop support to full stack tests
Assaf Muller [Thu, 11 Jun 2015 21:13:44 +0000 (17:13 -0400)]
Add l2pop support to full stack tests

Add the l2pop mechanism driver to the ML2 plugin configuration, and set
l2_population = True, in the OVS agent configuration.
Each test class can enable or disable l2pop in its environment.

Change-Id: If4f2bf07883b763073b5a53f1aa557acb131d176

9 years agoAdd tunneling support to full stack tests
Assaf Muller [Tue, 16 Jun 2015 12:56:41 +0000 (08:56 -0400)]
Add tunneling support to full stack tests

* EnvironmentDescription class now accepts 'network_type'.
  It sets the ML2 segmentation type, passes it to the OVS agents
  configuration files, and sets up the host configuration. If
  tunnelling type is selected, it sets up a veth pair with an IP
  address from the 240.0.0.1+ range. The addressed end of
  this pair is configured as the local_ip for tunneling purposes
  in each of the OVS agents. If network type is not tunnelled, it
  sets up provider bridges instead and interconnects them.
* For now we run the basic L3 HA test with VLANs and tunneling just
  so we have something to show for.
* I started using scenarios in fullstack tests to run the same test
  with VLANs or tunneling, and because test names are used for log
  dirs, and testscenarios changes test names to include characters
  that are not shell friendly (Space, parenthesis), I 'sanitized'
  some of those characters.

Change-Id: Ic45cc27396452111678cf85ab26b07275846ce44

9 years agoRemove an unused DVR function
IWAMOTO Toshihiro [Thu, 10 Sep 2015 08:24:47 +0000 (17:24 +0900)]
Remove an unused DVR function

is_dvr_router_interface isn't used since commit
c5fafcb30a5b86e87309ad4650f7d05a2ca038dc.

Change-Id: Id902e7b4aafcf61f8da29bf7ab543559ea6b7937

9 years agoHandle ObjectDeletedError when deleting network ports/subnets
Oleg Bondarev [Thu, 10 Sep 2015 07:51:10 +0000 (10:51 +0300)]
Handle ObjectDeletedError when deleting network ports/subnets

It appeared there is still a race on port deletion when deleting
networks. So commit a55e10cfd6369533f0cc22edd6611c9549b8f1b4
introduced a regression. It's a bit of ironic that commit message
was "Avoid DB errors when deleting network's ports and subnets".
Shame on me!

Closes-Bug: #1494157
Change-Id: I37727eca5d68e6440f0f93e0f6bbe63b2f18b443

9 years agoMerge "Remove address scopes from supported extensions"
Jenkins [Thu, 10 Sep 2015 06:26:40 +0000 (06:26 +0000)]
Merge "Remove address scopes from supported extensions"

9 years agoMerge "Reduce the chance of random check/gate test failures"
Jenkins [Thu, 10 Sep 2015 03:26:54 +0000 (03:26 +0000)]
Merge "Reduce the chance of random check/gate test failures"

9 years agoDescheduling DVR routers when ports are unbound from VM
Stephen Ma [Fri, 28 Aug 2015 14:00:48 +0000 (14:00 +0000)]
Descheduling DVR routers when ports are unbound from VM

When a VM is deleted, the DVR port used by the VM could be unbound
from the compute node. When it is unbounded, it is no longer
in use on the node. Currently the unbind doesn't trigger a check
to determine whether the DVR router can be unscheduled from the
L3-agent running on the compute node. This patch makes the check
and unschedule the router, if necessary.

Closes-Bug: 1489184
Change-Id: I882e0682bfc7695b3b23e36eb4d7e35a5d19748e

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 10 Sep 2015 00:06:08 +0000 (00:06 +0000)]
Updated from global requirements

Change-Id: I78f123c8e49b6dcd23bda1def9e021df74ffb0ea

9 years agoMerge "Fix dvr update for subnet attach multi subnets"
Jenkins [Wed, 9 Sep 2015 23:50:16 +0000 (23:50 +0000)]
Merge "Fix dvr update for subnet attach multi subnets"

9 years agoReduce the chance of random check/gate test failures
ajmiller [Wed, 9 Sep 2015 21:38:41 +0000 (14:38 -0700)]
Reduce the chance of random check/gate test failures

As previously implemented, the TestTrackedResource class is designed
to inject random failures into the gate. It generates random numbers
within the range of 0..10000, and will fail if it generates duplicate
random numbers during its run.

This patch creates UUIDs instead of random numbers, and makes the
chance of an collision vanishingly small.

Change-Id: I0cf535d1c5a3995a50b506aafce10e983872dcb7
Closes-bug: #1494021

9 years agoMake ip address optional to add_route and delete_route
Carl Baldwin [Tue, 1 Sep 2015 16:58:22 +0000 (16:58 +0000)]
Make ip address optional to add_route and delete_route

The add_route and delete_route methods require that the ip (actually
"via" in ip route terms) be passed.  Some routes don't require this.
This patch makes it optional while maintaining the position for those
callers who do pass it by position.

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

9 years agoAdd list routes
Carl Baldwin [Fri, 28 Aug 2015 21:28:39 +0000 (21:28 +0000)]
Add list routes

This adds list routes while refactoring list_onlink_routes to share
implementation.  It changes test_onlink_routes to be consistent in the
type of data that it returns with the new list_routes.

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

9 years agoMerge "Make ip rule comparison more robust"
Jenkins [Wed, 9 Sep 2015 20:48:19 +0000 (20:48 +0000)]
Merge "Make ip rule comparison more robust"

9 years agoFix dvr update for subnet attach multi subnets
lzklibj [Mon, 2 Mar 2015 10:13:41 +0000 (02:13 -0800)]
Fix dvr update for subnet attach multi subnets

Fix method dvr_update_router_addvm to notify every
router attached to subnet where the vm will boot
on.

In dvr case, when a subnet only attaches to one router,
the subnet will only have one distributed router interface,
which device_owner is "network:router_interface_distributed".
So in this case, get_ports in this method will only get
one port, and it should be unnecessary to break in for loop.

But when a subnet attaches multiple routers, get_ports in
this method will return all distributed router interfaces
and the routers hold those interfaces should be notified
when an instance booted on the subnet. So it should also
be unnecessary to break in for loop.

Change-Id: I3a5808e5b6e8b78abd1a5b924395844507da0764
Closes-Bug: #1427122
Co-Authored-By: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "SR-IOV: devstack support for SR-IOV agent"
Jenkins [Wed, 9 Sep 2015 18:44:50 +0000 (18:44 +0000)]
Merge "SR-IOV: devstack support for SR-IOV agent"

9 years agoMerge "Remove ebtables_driver/manager dead code"
Jenkins [Wed, 9 Sep 2015 18:30:25 +0000 (18:30 +0000)]
Merge "Remove ebtables_driver/manager dead code"

9 years agoMerge "Delete FIP agent gateway port with external gw port"
Jenkins [Wed, 9 Sep 2015 18:27:18 +0000 (18:27 +0000)]
Merge "Delete FIP agent gateway port with external gw port"

9 years agoMerge "sriov: update port state even if ip link fails"
Jenkins [Wed, 9 Sep 2015 18:16:31 +0000 (18:16 +0000)]
Merge "sriov: update port state even if ip link fails"

9 years agoMerge "Fix test_external_tables_not_changed"
Jenkins [Wed, 9 Sep 2015 16:51:54 +0000 (16:51 +0000)]
Merge "Fix test_external_tables_not_changed"

9 years agoMake ip rule comparison more robust
Carl Baldwin [Fri, 28 Aug 2015 21:19:40 +0000 (21:19 +0000)]
Make ip rule comparison more robust

I found that ip rules would be added multiple times in new address
scopes code because the _exists method was unable to reliably
determine if the rule already existed.  This commit improves this by
more robustly canonicalizing what it reads from the ip rule command so
that like rules always compare the same.

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

9 years agoRemove hack for discovery novaclients extension
Andrey Kurilin [Wed, 9 Sep 2015 13:48:59 +0000 (16:48 +0300)]
Remove hack for discovery novaclients extension

novaclient provides a common way to discover all extensions, so we can
remove import based on novaclient versioned client object.

Closes-Bug: #1493886
Change-Id: I7ae2eeb2d7e5c56e9284f3b059ff6e3545f42d5f

9 years agoCheck ICMP codes in range [0,255]
huangpengtao [Sun, 30 Aug 2015 02:43:50 +0000 (10:43 +0800)]
Check ICMP codes in range [0,255]

ICMP allows codes between 0 and 255, this change
adds a check for codes range min value.

DocImpact
APIImpact

Closes-Bug: #1486300

Change-Id: Ic7a49458448fad16447b914bb15742515661a851

9 years agoRemove address scopes from supported extensions
Carl Baldwin [Tue, 8 Sep 2015 21:04:23 +0000 (21:04 +0000)]
Remove address scopes from supported extensions

This feature is not ready for prime time, but the cli code is
already landed and shipped.

In order to prevent users from getting mad about an uncooked feature,
let's disable it until it becomes more robust.

Tests must be disabled unconditionally because our CI API test framework
execute tests for 'all' extensions available.

Related-blueprint: address-scopes

Change-Id: I71dc333e210b1f4acf30569711b4442ed8a1dfc3

9 years agoAdd test to check that correct functions is used in expand/contract
Ann Kamyshnikova [Wed, 9 Sep 2015 11:32:36 +0000 (14:32 +0300)]
Add test to check that correct functions is used in expand/contract

This test will check that expand branch does not contain drop SQLAlchemy
operations and contract branch does not contain create/add SQLAlchemy
operations.

Partially-Implements: blueprint online-schema-migrations

Change-Id: Ifda31c0599651931c1a98f673f3b10e64538f18b
Related-bug: #1490767

9 years agoMerge "Add non-model index names to autogen exclude filters"
Jenkins [Wed, 9 Sep 2015 12:38:56 +0000 (12:38 +0000)]
Merge "Add non-model index names to autogen exclude filters"

9 years agoMerge "Implement expand/contract autogenerate extension"
Jenkins [Wed, 9 Sep 2015 12:34:59 +0000 (12:34 +0000)]
Merge "Implement expand/contract autogenerate extension"

9 years agoSR-IOV: devstack support for SR-IOV agent
Moshe Levi [Tue, 25 Aug 2015 12:50:09 +0000 (15:50 +0300)]
SR-IOV: devstack support for SR-IOV agent

Change-Id: Ia0649962bd0c68d9c99fd54cc84ce8dd67d792e8

9 years agoFix test_external_tables_not_changed
Ann Kamyshnikova [Tue, 1 Sep 2015 12:15:53 +0000 (15:15 +0300)]
Fix test_external_tables_not_changed

test_external_tables_not_changed was not
executed properly as new engine was created in env.py.

Related-bug: #1466704

Change-Id: If02415d7abd17024946f7aee8fb6abc374a7aefe

9 years agoDelete gateway conntrack state when remove external gateway
Yi Zhao [Thu, 27 Aug 2015 07:24:21 +0000 (15:24 +0800)]
Delete gateway conntrack state when remove external gateway

This fixed the problem that a gateway ip conntrack state not cleared
when user clears a router external gateway.

Change-Id: I77f22d9504430259b01366e6296a99ba1cd6a046
Closes-Bug: #1488730

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 9 Sep 2015 01:01:23 +0000 (01:01 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "ovs agent resync may miss port remove event"
Jenkins [Wed, 9 Sep 2015 00:32:54 +0000 (00:32 +0000)]
Merge "ovs agent resync may miss port remove event"

9 years agoMerge "Delete the useless variable agent_host"
Jenkins [Tue, 8 Sep 2015 22:58:45 +0000 (22:58 +0000)]
Merge "Delete the useless variable agent_host"

9 years agoMerge "Fixed filters for functional tests"
Jenkins [Tue, 8 Sep 2015 22:40:52 +0000 (22:40 +0000)]
Merge "Fixed filters for functional tests"