test_add_list_remove_router_on_l3_agent may fail on envs where there is >= two L3 agents and DVR enabled

Bug #1590049 reported by Yaroslav Lobankov
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Ihar Hrachyshka
tempest
Fix Released
Undecided
Yaroslav Lobankov

Bug Description

Environment:
OpenStack (Mitaka release), where there is more than one L3 agent and DVR enabled.

When DVR is disabled, the resource_setup method just creates a router. When DVR is enabled, the resource_setup method creates a router and then adds an internal network interface to the created router. After we added the internal network interface to the router, the router is automatically hosted by some L3 agent. Then the test starts and tries to add the router to one of L3 agents and fails because the router is already hosted by another L3 agent.

tempest.lib.exceptions.Conflict: An object with that identifier already exists
Details: {u'message': u'The router 8569d347-6db4-4e12-b033-60a867ba680f has been already hosted by the L3 Agent 6250d031-d455-4afe-b993-5a7719815746.', u'type': u'RouterHostedByL3Agent', u'detail': u''}

The full log can be found here http://paste.openstack.org/show/508686/

A DVR router can be bound to some L3 agent without adding an internal network interface to the created router since the Mitaka release.

Liberty - http://paste.openstack.org/show/574456/
Mitaka - http://paste.openstack.org/show/574455/

In order to fix the test, we need to remove the code block where we add the internal network interface to the router, but it will not work with the Liberty release. So we can skip the test until Liberty is EOL and after that fix the test.

description: updated
summary: test_add_list_remove_router_on_l3_agent doesn't work on envs where there
- is >= 2 L3 agents and DVR is enabled
+ is >= two L3 agents
Changed in tempest:
assignee: nobody → Yaroslav Lobankov (ylobankov)
Changed in tempest:
status: New → In Progress
Revision history for this message
Oleksiy Butenko (obutenko) wrote : Re: test_add_list_remove_router_on_l3_agent doesn't work on envs where there is >= two L3 agents
tags: added: tempest
summary: - test_add_list_remove_router_on_l3_agent doesn't work on envs where there
- is >= two L3 agents
+ test_add_list_remove_router_on_l3_agent may fail on envs where there is
+ >= two L3 agents and DVR enabled
description: updated
description: updated
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

We have the same test in the neutron repo. Assaf suggested at one point [1,2] that this is a test that should live in the neutron repo only. Whether or not we complete the effort, we want to make sure we track this issue in both projects.

[1] https://etherpad.openstack.org/p/neutron-tempest-defork
[2] https://bugs.launchpad.net/neutron/+bug/1552960

Changed in neutron:
status: New → Confirmed
tags: added: gate-failure
Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :

Actually, It was fixed by https://review.openstack.org/#/c/370236/ a long time ago. We added a flag that changes test behavior depending on the flag value.

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tempest (master)

Reviewed: https://review.openstack.org/322118
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=61d42c7615e08422cbd8ca68c64f2f5ff14916a2
Submitter: Jenkins
Branch: master

commit 61d42c7615e08422cbd8ca68c64f2f5ff14916a2
Author: Yaroslav Lobankov <email address hidden>
Date: Fri May 27 14:34:08 2016 +0300

    Set default value of 'dvr_extra_resources' option to False

    The default value of the option was set to True to support Liberty
    which is not supported anymore. So let's set the default value of
    the option to False.

    Related-Bug: #1590049

    Change-Id: Idb39e7d60e01bf4a0abf42b1003f0b60fe56cded

Changed in neutron:
assignee: nobody → Gena (gcheresh)
status: Confirmed → In Progress
Changed in neutron:
assignee: Gena (gcheresh) → Ihar Hrachyshka (ihar-hrachyshka)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/421155
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=08d29e3c90093c508fb8ebc511ca5caca1716379
Submitter: Jenkins
Branch: master

commit 08d29e3c90093c508fb8ebc511ca5caca1716379
Author: Genadi Chereshnya <email address hidden>
Date: Tue Jan 17 11:06:42 2017 +0200

    Tempest: Fixing L3 agent hosting router for DVR setup

    The tests for L3 agent hosting routers were failing in DVR setup
    because the code was trying to add router to l3 agent when it was
    already there.

    Closes-bug: #1590049

    Change-Id: I0087ad6f6df662579d557ab790de64e04ff22943

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/454594

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

Reviewed: https://review.openstack.org/454594
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e79ae4e679c21b4ee1ca1d1c8a072593361deb7c
Submitter: Jenkins
Branch: stable/ocata

commit e79ae4e679c21b4ee1ca1d1c8a072593361deb7c
Author: Genadi Chereshnya <email address hidden>
Date: Tue Jan 17 11:06:42 2017 +0200

    Tempest: Fixing L3 agent hosting router for DVR setup

    The tests for L3 agent hosting routers were failing in DVR setup
    because the code was trying to add router to l3 agent when it was
    already there.

    Closes-bug: #1590049

    Change-Id: I0087ad6f6df662579d557ab790de64e04ff22943
    (cherry picked from commit 08d29e3c90093c508fb8ebc511ca5caca1716379)

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

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

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

This issue was fixed in the openstack/neutron 10.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.