Bug 1883239 - UDP tests fail with "testtools.matchers._impl.MismatchError: 'NO_MONITOR' != 'ERROR'"
Summary: UDP tests fail with "testtools.matchers._impl.MismatchError: 'NO_MONITOR' != ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z16
: 13.0 (Queens)
Assignee: Gregory Thiemonge
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks: 1926251 1926254
TreeView+ depends on / blocked
 
Reported: 2020-09-28 14:45 UTC by Gregory Thiemonge
Modified: 2022-08-23 22:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1926251 (view as bug list)
Environment:
Last Closed: 2021-06-25 13:30:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack Storyboard 2007792 0 None None None 2020-09-28 14:45:26 UTC
OpenStack Storyboard 2008604 0 None None None 2021-02-08 14:54:28 UTC
OpenStack gerrit 752872 0 None MERGED Fix invalid DOWN status when updating a UDP pool 2021-02-08 08:24:21 UTC
OpenStack gerrit 774355 0 None MERGED Fix incorrect ERROR status with IPv6 UDP members 2021-04-14 08:26:01 UTC
OpenStack gerrit 781486 0 None MERGED Fix incorrect ERROR status with IPv6 UDP members 2021-04-14 08:26:02 UTC
Red Hat Issue Tracker OSP-2963 0 None None None 2022-08-23 22:55:55 UTC

Description Gregory Thiemonge 2020-09-28 14:45:27 UTC
octavia-tempest-plugin tests are failing in OSP13z13 (octavia 5.0.3):

octavia_tempest_plugin.tests.api.v2.test_member.MemberAPITest:
* test_ipv6_UDP_LC_alt_monitor_member_create
* test_ipv6_UDP_RR_alt_monitor_member_create
* test_ipv6_UDP_RR_member_create
* test_ipv6_UDP_SI_alt_monitor_member_create
* test_ipv6_UDP_SI_member_create

with the error:

2020-09-28 07:41:27,192 32619 INFO     [tempest.lib.common.rest_client] Request (MemberAPITest:test_ipv6_UDP_RR_member_create): 200 GET http://10.0.0.136:9876/v2.0/lbaas/pools/0d70a9c2-30ce-47bf-9c4a-a98746e1a51a/members/0a59911e-01d7-4ac9-82fd-762b968648b4 1.949s
2020-09-28 07:41:27,192 32619 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'date': 'Mon, 28 Sep 2020 11:41:25 GMT', 'server': 'Apache', 'x-openstack-request-id': 'req-0c4e8f26-f353-4690-a004-dbb3927b0cd5', 'content-length': '588', 'vary': 'Accept-Encoding', 'connection': 'close', 'content-type': 'application/json', 'status': '200', 'content-location': 'http://10.0.0.136:9876/v2.0/lbaas/pools/0d70a9c2-30ce-47bf-9c4a-a98746e1a51a/members/0a59911e-01d7-4ac9-82fd-762b968648b4'}
        Body: b'{"member": {"monitor_port": null, "project_id": "0cb699e390b44409a1f7fd7efe4c3bd4", "name": "tempest-lb_member_member1-create-463936494", "weight": 50, "admin_state_up": true, "subnet_id": "7455bf67-2db8-4854-8af8-27e7b0522d13", "tenant_id": "0cb699e390b44409a1f7fd7efe4c3bd4", "created_at": "2020-09-28T11:40:52", "provisioning_status": "ACTIVE", "monitor_address": null, "updated_at": "2020-09-28T11:41:22", "tags": ["hello", "world"], "address": "2001:db8:0:0:0:0:0:1", "protocol_port": 8112, "backup": false, "id": "0a59911e-01d7-4ac9-82fd-762b968648b4", "operating_status": "ERROR"}}'
2020-09-28 07:41:27,192 32619 INFO     [octavia_tempest_plugin.tests.waiters] show_member's status updated to ACTIVE.
}}}

Traceback (most recent call last):
  File "/home/stack/.virtualenvs/.tempest/lib64/python3.6/site-packages/tempest/lib/decorators.py", line 88, in wrapper
    return f(*func_args, **func_kwargs)
  File "/home/stack/plugins/octavia/octavia_tempest_plugin/tests/api/v2/test_member.py", line 665, in test_ipv6_UDP_RR_member_create
    self._test_member_create(6, pool_id)
  File "/home/stack/plugins/octavia/octavia_tempest_plugin/tests/api/v2/test_member.py", line 925, in _test_member_create
    self.assertEqual(const.NO_MONITOR, member[const.OPERATING_STATUS])
  File "/home/stack/.virtualenvs/.tempest/lib64/python3.6/site-packages/testtools/testcase.py", line 415, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/stack/.virtualenvs/.tempest/lib64/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'NO_MONITOR' != 'ERROR'


Related fix: https://review.opendev.org/#/c/752872/

Comment 3 Arieh Maron 2021-05-04 11:00:50 UTC
Same failure in OSP 16.1
in build: RHOS-16.1-RHEL-8-20210503.n.0
link to Jenkins Build : https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/job/DFG-network-octavia-16.1_director-rhel-virthost-3cont_3comp-ipv4-geneve-actstby/8/

2021-05-03 17:15:58,128 232246 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'date': 'Mon, 03 May 2021 17:15:56 GMT', 'server': 'Apache', 'content-length': '589', 'x-openstack-request-id': 'req-ee4a30ef-b04f-4a5e-b8ac-0258ed48e352', 'vary': 'Accept-Encoding', 'connection': 'close', 'content-type': 'application/json', 'status': '200', 'content-location': 'http://10.0.0.135:9876/v2.0/lbaas/pools/4afd3b17-e1c8-4178-9e7d-571a42b3b8c0/members/4d598b57-7b5d-41ce-9a0c-1bbb548b99a9'}
        Body: b'{"member": {"id": "4d598b57-7b5d-41ce-9a0c-1bbb548b99a9", "name": "tempest-lb_member_member1-create-1425764738", "operating_status": "ERROR", "provisioning_status": "ACTIVE", "admin_state_up": true, "address": "2001:db8:0:0:0:0:0:1", "protocol_port": 8114, "weight": 50, "backup": false, "subnet_id": "08ee8794-57e2-45ee-aeff-60944a521df0", "project_id": "859a324ed54f4643ade0f36cc5072af3", "created_at": "2021-05-03T17:15:11", "updated_at": "2021-05-03T17:15:53", "monitor_address": null, "monitor_port": null, "tags": ["hello", "world"], "tenant_id": "859a324ed54f4643ade0f36cc5072af3"}}'
2021-05-03 17:15:58,129 232246 INFO     [octavia_tempest_plugin.tests.waiters] show_member's status updated to ACTIVE.
}}}

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tempest/lib/decorators.py", line 88, in wrapper
    return f(*func_args, **func_kwargs)
  File "/home/stack/plugins/octavia/octavia_tempest_plugin/tests/api/v2/test_member.py", line 744, in test_ipv6_UDP_SI_member_create
    self._test_member_create(6, pool_id)
  File "/home/stack/plugins/octavia/octavia_tempest_plugin/tests/api/v2/test_member.py", line 931, in _test_member_create
    self.assertEqual(const.NO_MONITOR, member[const.OPERATING_STATUS])
  File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'NO_MONITOR' != 'ERROR'

Comment 4 Arieh Maron 2021-05-05 09:57:15 UTC
@gthiemon 
Hello Gregory

When will a fix be available for this issue
It is block quite a lot of tests

Comment 8 Gregory Thiemonge 2021-06-25 13:30:54 UTC
OSP13 will not have any new zstream, close this BZ


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