Bug 1981831 - Designate DNS – Admin user receives empty list of PTR records using “x-auth-all-projects” HTTP header
Summary: Designate DNS – Admin user receives empty list of PTR records using “x-auth-a...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-designate
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michael Johnson
QA Contact: Arkady Shtempler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-13 13:52 UTC by Arkady Shtempler
Modified: 2023-08-01 14:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1935977 0 None None None 2021-07-13 13:52:12 UTC
Red Hat Issue Tracker OSP-6163 0 None None None 2021-11-15 13:08:15 UTC

Description Arkady Shtempler 2021-07-13 13:52:12 UTC
Scenario
As Primary user create PTR record, once created use List API as Admin user and  
“x-auth-all-projects:True” in requests

Expected Result:
Primary PTR is listed in API response made by Admin user

Actual Result:
Received list is empty.

2021-07-13 16:27:14,965 869385 INFO     [designate_tempest_plugin.tests.api.v2.test_ptrs] As Admin user, try to list PTR record for all projects by including "x-auth-all-projects" HTTP header.
2021-07-13 16:27:15,043 869385 INFO     [tempest.lib.common.rest_client] Request (DesignatePtrRecord:test_list_floatingip_ptr_all_projects): 200 GET http://10.35.64.8/dns/v2/reverse/floatingips 0.077s
2021-07-13 16:27:15,044 869385 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'x-auth-all-projects': True, 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'date': 'Tue, 13 Jul 2021 13:27:14 GMT', 'server': 'Apache/2.4.41 (Ubuntu)', 'content-length': '86', 'x-openstack-request-id': 'req-9ae3bc4d-9876-4dd2-828b-a55576031f26', 'connection': 'close', 'content-type': 'application/json', 'status': '200', 'content-location': 'http://10.35.64.8/dns/v2/reverse/floatingips'}
        Body: b'{"floatingips": [], "links": {"self": "http://10.35.64.8/dns/v2/reverse/floatingips"}}'

Note:
It's possible to reproduce using patchset #19 https://review.opendev.org/c/openstack/designate-tempest-plugin/+/794708


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