Bug 1970775 - octavia tempest fails with "Subnet <UUID> not found."
Summary: octavia tempest fails with "Subnet <UUID> not found."
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-octavia-tests-tempest
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: beta
: 16.2 (Train on RHEL 8.4)
Assignee: Gregory Thiemonge
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-11 07:46 UTC by Gregory Thiemonge
Modified: 2021-09-15 07:16 UTC (History)
1 user (show)

Fixed In Version: python-octavia-tests-tempest-1.4.1-2.20210528115848.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-15 07:15:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 774157 0 None MERGED Fix testing IPv6 VIP network connectivity 2021-06-11 07:46:10 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:16:28 UTC

Description Gregory Thiemonge 2021-06-11 07:46:10 UTC
Description of problem:
octavia-tempest-plugin tests fail a Subnet not found error:


testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tempest/test.py", line 182, in setUpClass
    six.reraise(etype, value, trace)
  File "/usr/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3.6/site-packages/tempest/test.py", line 175, in setUpClass
    cls.resource_setup()
  File "/usr/lib/python3.6/site-packages/octavia_tempest_plugin/tests/scenario/v2/test_healthmonitor.py", line 48, in resource_setup
    lb = cls.mem_lb_client.create_loadbalancer(**lb_kwargs)
  File "/usr/lib/python3.6/site-packages/octavia_tempest_plugin/common/decorators.py", line 42, in wrapper
    return f(*func_args, **func_kwargs)
  File "/usr/lib/python3.6/site-packages/octavia_tempest_plugin/services/load_balancer/v2/loadbalancer_client.py", line 95, in create_loadbalancer
    return self._create_object(**kwargs)
  File "/usr/lib/python3.6/site-packages/octavia_tempest_plugin/services/load_balancer/v2/base_client.py", line 101, in _create_object
    response, body = self.post(request_uri, jsonutils.dumps(obj_dict))
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 300, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 704, in request
    self._error_checker(resp, resp_body)
  File "/usr/lib/python3.6/site-packages/tempest/lib/common/rest_client.py", line 815, in _error_checker
    raise exceptions.BadRequest(resp_body, resp=resp)
tempest.lib.exceptions.BadRequest: Bad request
Details: {'faultcode': 'Client', 'faultstring': 'Subnet 458a86ab-5bee-47d6-b2b7-d50881146bf6 not found.', 'debuginfo': None}

The subnet is always an IPv6 subnet, there have been recent changes in octavia-tempest-plugin related to the IPv6 VIPs after a security fix in Octavia.

Looks like the security fix in present in the octavia RPM but this commit 
https://review.opendev.org/c/openstack/octavia-tempest-plugin/+/774157 is missing from octavia-tempest-plugin


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

How reproducible:
100%

Comment 11 errata-xmlrpc 2021-09-15 07:15:55 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 (RHOSP) 16.2 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-2021:3483


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