neutron/neutron/tests
Sławek Kapłoński 39b9197f6f Don't set administratively disabled ports as ACTIVE
There was a race condition during port update to disable it.
In case when neutron-server receives port update call to set
admin_state_down on port, it sends PORT_UPDATE notification
to agents.

Then both L2 and DHCP agents start doing their job with port.
L2 agent asks neutron-server about device details and during
processing this call server sets port's status to DOWN if
its admin_state_up = False.
Problem is that sometimes just after that, DHCP agent will send
to neutron server notification that provisioning for this port
is finished.
As there is no any other provisioning block in db (because it
is just port update) neutron-server is setting port's status
to ACTIVE.

This patch fixes this issue by allowing to transition to
ACTIVE only ports which are administratively enabled.

Change-Id: If506e0ff68fc49748f19618470c85901339a419b
Closes-Bug: #1757089
(cherry picked from commit 2a1319ab7a)
2018-06-21 07:40:49 +00:00
..
common [Fullstack] Change how DSCP marking packets are tested 2018-02-02 18:18:29 +01:00
contrib [Scenario tests] Try longer SSH timeout for ubuntu image 2018-06-08 11:11:34 +02:00
etc Remove FWaaS policy.json entries 2016-09-06 21:30:41 +00:00
fullstack [Fullstack] Add block test until IPs will be really configured 2018-06-08 08:41:59 +00:00
functional Merge "More efficiently clean up OVS ports" into stable/ocata 2018-02-02 02:02:18 +00:00
retargetable Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
tempest Don't share a network with all tenants 2018-06-01 09:57:38 +00:00
unit Don't set administratively disabled ports as ACTIVE 2018-06-21 07:40:49 +00:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Merge "Use plugin directory fixture" 2017-01-28 06:17:10 +00:00
fake_notifier.py
post_mortem_debug.py
tools.py Display deprecation warning in test only once 2017-01-29 09:44:03 +00:00