Bug 1780619

Summary: [OSP13][tempest] smoke test fails when the external network has multiple IPv4 subnet
Product: Red Hat OpenStack Reporter: Mauro Oddi <moddi>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED DUPLICATE QA Contact: Martin Kopec <mkopec>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: apevec, lhh, slinaber, udesale
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-10 10:20:47 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 Mauro Oddi 2019-12-06 14:36:20 UTC
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 2019-12-09 12:10:37 UTC
What version is this BZ mean for? Or is it just duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1780620 ?

Comment 2 Mauro Oddi 2019-12-09 16:58:29 UTC
Hi Martin,

Sorry for the confusion, apparently something got messed up during the creation of the BZ.
We can close this one.

Cheers,
MO

Comment 3 Martin Kopec 2019-12-10 10:20:47 UTC
sure, no problem, so I'm closing it as duplicate

*** This bug has been marked as a duplicate of bug 1780620 ***