test_trunk_subport_lifecycle fails on subport down timeout

Bug #1707339 reported by Armando Migliaccio
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Ihar Hrachyshka

Bug Description

subport doesn't transition to DOWN state after trunk deletion

logstash query: http://logstash.openstack.org/#dashboard/file/logstash.json?query=build_name%3Agate-tempest-dsvm-neutron-dvr-multinode-scenario-ubuntu-xenial-nv%20AND%20build_branch%3Amaster%20AND%20message%3A%5C%22Timed%20out%20waiting%20for%20subport%20%5C%22%20AND%20message%3A%5C%22to%20transition%20to%20DOWN%5C%22%20AND%20tags%3Aconsole

A failed run:

http://logs.openstack.org/76/467976/22/check/gate-tempest-dsvm-neutron-dvr-multinode-scenario-ubuntu-xenial-nv/e11aeaf/logs/testr_results.html.gz

The agent log is filled with trace:

Error while processing VIF ports: OVSFWPortNotFound: Port 526e3ca9-9af3-4b94-8550-90a5bdc9b4e7 is not managed by this agent.

http://logs.openstack.org/76/467976/22/check/gate-tempest-dsvm-neutron-dvr-multinode-scenario-ubuntu-xenial-nv/e11aeaf/logs/screen-q-agt.txt.gz?level=TRACE

Incidentally, this port is a parent of a trunk port.

Now the trunk's OVSDB handler on the agent side relies on the OVS agent main loop to detect the port removal and let it notify the server to mark the logical port down. I wonder if these exceptions prevent that from happening.

Changed in neutron:
status: New → Confirmed
importance: Undecided → High
tags: added: tru
tags: added: trunk
removed: tru
Revision history for this message
Jakub Libosvar (libosvar) wrote :

I'll look at it

Changed in neutron:
assignee: nobody → Jakub Libosvar (libosvar)
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Changed in neutron:
assignee: Jakub Libosvar (libosvar) → Armando Migliaccio (armando-migliaccio)
Changed in neutron:
status: Confirmed → In Progress
Changed in neutron:
assignee: Armando Migliaccio (armando-migliaccio) → Jakub Libosvar (libosvar)
Changed in neutron:
assignee: Jakub Libosvar (libosvar) → Ihar Hrachyshka (ihar-hrachyshka)
Changed in neutron:
milestone: none → pike-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/488914
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=1d80c960f61248f11af427d6008faac7fcc2db0b
Submitter: Jenkins
Branch: master

commit 1d80c960f61248f11af427d6008faac7fcc2db0b
Author: Jakub Libosvar <email address hidden>
Date: Tue Aug 1 17:04:30 2017 +0000

    ovs-fw: Handle only known trusted ports

    Similarly to filtered ports this patch caches so called trusted ports to
    avoid processing in case of unknown port is passed down to firewall
    driver. The cached ofport is used for removal as the cache reflects
    currently installed flows.

    The patch also catches exception caused by inconsistency coming from
    ovsdb.

    Closes-bug: #1707339

    Change-Id: I15cdb28072835fcb8c37ae4b56fc8754375a807c

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/505356

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/pike)

Reviewed: https://review.openstack.org/505356
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e1ad0dccd7a87a2459908f4760dbcd152829b0d0
Submitter: Jenkins
Branch: stable/pike

commit e1ad0dccd7a87a2459908f4760dbcd152829b0d0
Author: Jakub Libosvar <email address hidden>
Date: Tue Aug 1 17:04:30 2017 +0000

    ovs-fw: Handle only known trusted ports

    Similarly to filtered ports this patch caches so called trusted ports to
    avoid processing in case of unknown port is passed down to firewall
    driver. The cached ofport is used for removal as the cache reflects
    currently installed flows.

    The patch also catches exception caused by inconsistency coming from
    ovsdb.

    Closes-bug: #1707339

    Change-Id: I15cdb28072835fcb8c37ae4b56fc8754375a807c
    (cherry picked from commit 1d80c960f61248f11af427d6008faac7fcc2db0b)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 12.0.0.0b1

This issue was fixed in the openstack/neutron 12.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 11.0.2

This issue was fixed in the openstack/neutron 11.0.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.