Bug 1439655

Summary: There is no validation DVR is enabled before running -neutron.tests.tempest.scenario.test_dvr.NetworkDvrTest tests
Product: Red Hat OpenStack Reporter: Eran Kuris <ekuris>
Component: openstack-neutronAssignee: Or Idgar <oidgar>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: medium    
Version: 11.0 (Ocata)CC: abregman, amuller, chrisw, ihrachys, nyechiel, oblaut, srevivo, tvignaud
Target Milestone: Upstream M3Keywords: Reopened, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-11.0.2-0.20171027154909.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 21:22:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eran Kuris 2017-04-06 11:33:21 UTC
Description of problem:
When I am running neutron.tests.tempest.scenario.test_dvr.NetworkDvrTest tests on non-DVR environment they failed as expected. The problem is those tests should not run if the environment did not configure with DVR.
We should add a mechanism that checks if DVR is configured before it runs.



How reproducible:
always

Steps to Reproduce:
1. run the test neutron.tests.tempest.scenario.test_dvr.NetworkDvrTest on non-DVR environment.

Version-Release number of selected component (if applicable):
python-neutronclient-6.1.0-1.el7ost.noarch
puppet-neutron-10.3.0-2.el7ost.noarch
openstack-neutron-common-10.0.0-13.el7ost.noarch
openstack-neutron-openvswitch-10.0.0-13.el7ost.noarch
python-neutron-10.0.0-13.el7ost.noarch
openstack-neutron-10.0.0-13.el7ost.noarch
python-neutron-lib-1.1.0-1.el7ost.noarch
openstack-neutron-ml2-10.0.0-13.el7ost.noarch

Actual results:
tests failed 

Expected results:
Tests should not run.

Additional info:

Comment 1 Assaf Muller 2017-04-28 21:08:18 UTC
This was resolved by Arie Bregman with a CI framework workaround.

Comment 8 Assaf Muller 2017-05-01 11:43:02 UTC
Taking a look at 454203, we were planning on modifying TripleO so that it would conditionally set the new Neutron config option that exposes or hides the DVR extension, depending on weather or not the user enabled the TripleO DVR environment file. That will ensure that if TripleO was used as the installer, then Neutron will either expose or hide the DVR extension, and the correct Tempest tests will run accordingly.

Comment 9 Ihar Hrachyshka 2017-05-19 21:04:31 UTC
I believe this should be fixed if you pull master branches for neutron, puppet-neutron and tripleo-heat-templates. This bug is probably fixed already.

Comment 10 Ihar Hrachyshka 2017-11-07 18:49:11 UTC
Please try with latest OSP12, I think all relevant fixes should be included.

Comment 15 errata-xmlrpc 2017-12-13 21:22:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462