[OVN] "test_agent_show" failing, agent not found

Bug #1899004 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Terry Wilson

Bug Description

Related to https://bugs.launchpad.net/neutron/+bug/1897921

This bug is very similar to LP#1897921 but is slightly different; that's why I've opened a second bug. In this case, the error is happening when the OVN driver tries to retrieve the agent [1]. The agent is not found using the OVN plugin neither the ML2 plugin [2].

Snippet: http://paste.openstack.org/show/798827/

[1]https://github.com/openstack/neutron/blob/9b02bc8543573fdcc9e6815163032130a5adaa66/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py#L1140-L1151
[2]https://40f71fdb4a17c8b8e33a-40a7733116b3138073a0fe5a58665a17.ssl.cf5.rackcdn.com/729591/21/check/neutron-functional-with-uwsgi/aace04f/testr_results.html

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/756668

Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
tags: added: ovn
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.opendev.org/757903

Changed in neutron:
assignee: Rodolfo Alonso (rodolfo-alonso-hernandez) → Terry Wilson (otherwiseguy)
tags: added: gate-failure
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/757903
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=df2c7baa23b814ccd118fb69d16427b2bf59cecc
Submitter: Zuul
Branch: master

commit df2c7baa23b814ccd118fb69d16427b2bf59cecc
Author: Terry Wilson <email address hidden>
Date: Tue Oct 13 15:52:06 2020 +0000

    Make test_agent_show only look for its own agents

    Since plugin agents are a global resource, relying just on the
    'type' field for test_agent_show may end up finding an agent that
    we don't know about, and that agent could be deleted by another
    test. This reworks test_agent_show to sepecifically look for its
    own OVN controller agent and test agent.

    This also adds the 'id' field to the returned agent_status from
    create_or_update_agent() to make it possible to look for the agent
    that was just created.

    Change-Id: Ib840e7c51f7b918b5e17ce9deff9ceafacf063cc
    Closes-Bug: #1899004

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Rodolfo Alonso Hernandez (<email address hidden>) on branch: master
Review: https://review.opendev.org/756668
Reason: https://review.opendev.org/#/c/757903/ is already merged and is working

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

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/759389

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

Reviewed: https://review.opendev.org/759389
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=baf54722e47e22d3f105d8d4adc248d28e14f531
Submitter: Zuul
Branch: stable/victoria

commit baf54722e47e22d3f105d8d4adc248d28e14f531
Author: Terry Wilson <email address hidden>
Date: Tue Oct 13 15:52:06 2020 +0000

    Make test_agent_show only look for its own agents

    Since plugin agents are a global resource, relying just on the
    'type' field for test_agent_show may end up finding an agent that
    we don't know about, and that agent could be deleted by another
    test. This reworks test_agent_show to sepecifically look for its
    own OVN controller agent and test agent.

    This also adds the 'id' field to the returned agent_status from
    create_or_update_agent() to make it possible to look for the agent
    that was just created.

    Change-Id: Ib840e7c51f7b918b5e17ce9deff9ceafacf063cc
    Closes-Bug: #1899004
    (cherry picked from commit df2c7baa23b814ccd118fb69d16427b2bf59cecc)

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

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

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

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

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

This issue was fixed in the openstack/neutron 18.0.0.0rc1 release candidate.

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

Other bug subscribers

Remote bug watches

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