Bug 1815576

Summary: [OSP16][tempest] smoke test fails when the external network has multiple IPv4 subnet
Product: Red Hat OpenStack Reporter: Martin Kopec <mkopec>
Component: openstack-tempestAssignee: Lukas Piwowarski <lpiwowar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: apevec, lhh, slinaber, udesale
Target Milestone: z2Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-24.0.0-0.20200615173423.c73e6b1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 18:35:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1843927    
Bug Blocks:    

Description Martin Kopec 2020-03-20 15:56:58 UTC
This bug was initially created as a copy of Bug #1780620

I am copying this bug because: 



Description of problem:
Tempest smoke test expects that the external network has only on IPv4 subnet, however in some corner cases there is a

Version-Release number of selected component (if applicable):
RHOSP13z9

How reproducible:
always

Steps to Reproduce:
1. Create external network for tempest and two IPv4 subnets on it
2. Run tempest run --smoke


Actual results:
test fails

Expected results:
tests finihses

Additional info:

tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops[compute,id-f323b3ba-82f8-4db7-8ea6-6a895869ec49,netw
ork,smoke]
---------------------------------------------------------------------------------------------------------------------------------------
----------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/tempest/common/utils/__init__.py", line 88, in wrapper
        return f(*func_args, **func_kwargs)
      File "/usr/lib/python2.7/site-packages/tempest/scenario/test_network_basic_ops.py", line 409, in test_network_basic_ops
        self._check_network_external_connectivity()
      File "/usr/lib/python2.7/site-packages/tempest/scenario/test_network_basic_ops.py", line 342, in _check_network_external_connecti
vity
        "Found %d IPv4 subnets" % len(v4_subnets))
      File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: 1 != 3: Found 3 IPv4 subnets

Comment 1 Martin Kopec 2020-07-08 12:59:11 UTC
*** Bug 1815586 has been marked as a duplicate of this bug. ***

Comment 6 Martin Kopec 2020-11-18 21:24:10 UTC
The Fixed in version package contains a fix for this BZ, the package is available in the rhos-16.1 repo via the latest symlink.

tested on a cloud using RHOS-16.1-RHEL-8-20201110.n.1 puddle

Comment 13 errata-xmlrpc 2020-12-15 18:35:44 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 (Red Hat OpenStack Platform 16.1.3 bug fix and enhancement 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-2020:5413