Bug 1815576 - [OSP16][tempest] smoke test fails when the external network has multiple IPv4 subnet
Summary: [OSP16][tempest] smoke test fails when the external network has multiple IPv4...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 16.1 (Train on RHEL 8.2)
Assignee: Lukas Piwowarski
QA Contact: Martin Kopec
URL:
Whiteboard:
: 1815586 (view as bug list)
Depends On: 1843927
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-20 15:56 UTC by Martin Kopec
Modified: 2020-12-15 18:36 UTC (History)
4 users (show)

Fixed In Version: openstack-tempest-24.0.0-0.20200615173423.c73e6b1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 18:35:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1856671 0 None None None 2020-03-20 15:59:14 UTC
OpenStack gerrit 705215 0 None MERGED Add subnet_id option 2020-12-14 16:53:04 UTC
Red Hat Product Errata RHEA-2020:5413 0 None None None 2020-12-15 18:36:06 UTC

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


Note You need to log in before you can comment on or make changes to this bug.