neutron/neutron/tests
Kevin Benton 96c67e22f9 Only ensure admin state on ports that exist
The linux bridge agent was calling ensure_port_admin state
unconditionally on ports in treat_devices_added_or_updated.
This would cause it to throw an error on interfaces that
didn't exist so it would restart the entire processing loop.

If another port was being updated in the same loop before this
one, that port would experience a port status life-cycle of
DOWN->BUILD->ACTIVE->BUILD->ACTIVE
                   ^ <--- Exception in unrelated port causes cycle
                          to start over again.

This causes the bug below because the first active transition will
cause Nova to boot the VM. At this point tempest tests expect the
ports that belong to the VM to be in the ACTIVE state so it filters
Neutron port list calls with "status=ACTIVE". Therefore tempest would
not get any ports back and assume there was some kind of error with
the port and bail.

This patch just makes sure the admin state call is skipped if the port
doesn't exist and it includes a basic unit test to prevent a regression.

Closes-Bug: #1523638
Change-Id: I5330c6111cbb20bf45aec9ade7e30d34e8dd16ca
2016-02-04 14:07:03 -08:00
..
api Delete Tempest fork, import from tempest and tempest_lib 2016-01-29 11:31:27 -05:00
common Uniquely identify tunnel interfaces for fullstack tests 2016-01-28 15:12:40 -05:00
contrib Fixed qos devstack service name (should be q-qos) for -plus gate hook 2016-01-19 14:19:20 +00:00
etc Fix Neutron flavor framework 2015-11-19 11:27:05 -08:00
fullstack Uniquely identify tunnel interfaces for fullstack tests 2016-01-28 15:12:40 -05:00
functional Remove bindings of DVR routers to L3 agents on compute nodes 2016-02-01 17:06:50 -07:00
retargetable Delete Tempest fork, import from tempest and tempest_lib 2016-01-29 11:31:27 -05:00
tempest Delete Tempest fork, import from tempest and tempest_lib 2016-01-29 11:31:27 -05:00
unit Only ensure admin state on ports that exist 2016-02-04 14:07:03 -08:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Add eventlet monkey_patch helper 2015-03-24 08:44:00 -07:00
base.py Adopt oslotest BaseTestCase as a base class for DietTestCase 2016-01-07 15:08:54 +01:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
tools.py Fix module's import order 2016-01-22 06:38:42 -08:00