Bug 1971258 - Designate - “test_list_all_projects_recordsets” is not stable because of the Designate bug
Summary: Designate - “test_list_all_projects_recordsets” is not stable because of the ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-designate
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Michael Johnson
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-13 08:39 UTC by Arkady Shtempler
Modified: 2022-08-16 08:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-23 15:05:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1931795 0 None None None 2021-06-13 08:39:52 UTC
OpenStack gerrit 797366 0 None MERGED Fix list-all-project tests for pagination limit 2021-06-23 15:05:18 UTC
Red Hat Issue Tracker OSP-5155 0 None None None 2022-08-16 08:32:30 UTC

Description Arkady Shtempler 2021-06-13 08:39:52 UTC
We’ve recently facing some issue with: “test_recordset.RecordsetOwnershipTest.test_list_all_projects_recordsets” that is fails form time to time, this happens as a result of Designate bug.

Here are some details from Michael:
-------------------------------------------------------------------------------------------------------------------
I spent the day looking at this, very puzzling really.
So, the list records call is pulling back old records. This is the other junk we see in that response. It is however filtering by project ID and not honoring the "x-auth-all-projects" header.
So, we will need an upstream bug, a skip on the test due the bug, and a BZ.

I will fix it quickly.

Basically the header is ignored and the DB query doesn't get the apply_tenant_criteria setting for _find_recordsets_with_records doesn't get set to false.
----------------------------------------------------------------------------------------------------------------------

I’ll add a skip decorator for this test.

Comment 1 Michael Johnson 2021-06-23 15:05:20 UTC
This was found to be a test framework bug and has been addressed upstream in https://review.opendev.org/c/openstack/designate-tempest-plugin/+/797366

The test was hitting the pagination default limit of 20. The fix was to configure the test to request a pagination limit of 1000.


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