Bug 2134699 - Tempest test test_create_update_port_with_dns_domain failure KeyError: 'dns_domain'
Summary: Tempest test test_create_update_port_with_dns_domain failure KeyError: 'dns_d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z1
: 17.0
Assignee: Cédric Jeanneret
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-14 05:29 UTC by Yatin Karel
Modified: 2023-01-25 12:30 UTC (History)
2 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-0.20221017140504.feca772.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-25 12:29:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1990480 0 None None None 2022-10-14 05:36:17 UTC
Red Hat Issue Tracker OSP-19420 0 None None None 2022-10-14 05:42:24 UTC
Red Hat Product Errata RHBA-2023:0271 0 None None None 2023-01-25 12:30:28 UTC

Description Yatin Karel 2022-10-14 05:29:34 UTC
Description of problem:
Tempest test: test_create_update_port_with_dns_domain failed.

Traceback:
2022-09-21 15:03:32,837 183447 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"port": {"network_id": "78677eaf-101d-4226-9d03-4e814a61ef67", "dns_name": "d1", "dns_domain": "test.org."}}
    Response - Headers: {'content-type': 'application/json', 'content-length': '885', 'x-openstack-request-id': 'req-9abfaa44-e7f1-4c00-8003-a24a988939ee', 'date': 'Wed, 21 Sep 2022 15:03:32 GMT', 'connection': 'close', 'status': '201', 'content-location': 'http://192.168.24.3:9696/v2.0/ports'}
        Body: b'{"port":{"id":"1cbb7c1e-e764-43c0-b172-e2a8b89005ee","name":"","network_id":"78677eaf-101d-4226-9d03-4e814a61ef67","tenant_id":"2a13c5ec235e456fa6263d48c97c7eba","mac_address":"fa:16:3e:0e:3a:0c","admin_state_up":true,"status":"DOWN","device_id":"","device_owner":"","fixed_ips":[{"subnet_id":"11b92ce6-1eaa-495d-9899-e06f817e864d","ip_address":"10.100.0.44"}],"project_id":"2a13c5ec235e456fa6263d48c97c7eba","qos_policy_id":null,"port_security_enabled":true,"security_groups":["22659cde-cc48-437d-b829-9b6832992822"],"binding:vnic_type":"normal","allowed_address_pairs":[],"extra_dhcp_opts":[],"description":"","qos_network_policy_id":null,"dns_name":"d1","dns_assignment":[{"ip_address":"10.100.0.44","hostname":"d1","fqdn":"d1.openstackgate.local."}],"ip_allocation":"immediate","tags":[],"created_at":"2022-09-21T15:03:32Z","updated_at":"2022-09-21T15:03:32Z","revision_number":1}}'
}}}

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tempest/common/utils/__init__.py", line 89, in wrapper
    return func(*func_args, **func_kwargs)
  File "/usr/lib/python3.9/site-packages/neutron_tempest_plugin/api/test_ports.py", line 119, in test_create_update_port_with_dns_domain
    self.assertEqual('test.org.', body['dns_domain'])
KeyError: 'dns_domain'

Logs:
- https://logserver.rdoproject.org/65/41465/12/check/periodic-tripleo-ci-centos-9-standalone-full-tempest-api-network-wallaby/eaaf445/logs/undercloud/var/log/tempest/stestr_results.html.gz
- https://logserver.rdoproject.org/openstack-component-network/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-standalone-full-tempest-api-network-wallaby/d2ff917/logs/undercloud/var/log/tempest/stestr_results.html.gz
- https://logserver.rdoproject.org/65/41465/13/check/periodic-tripleo-ci-centos-9-standalone-full-tempest-api-network-wallaby/4bb1839/logs/undercloud/var/log/tempest/stestr_results.html.gz


How reproducible:
Always in 17.0 with test test_create_update_port_with_dns_domain


Steps to Reproduce:
Running test test_create_update_port_with_dns_domain in jobs like periodic-tripleo-ci-rhel-9-standalone-full-tempest-api-network-rhos-17 or periodic-tripleo-ci-rhel-9-standalone-full-tempest-api-rhos-17, currently the test is skipped

Actual results:
Tests fails

Expected results:
Test should pass

Additional info:
Required to backport https://review.opendev.org/q/I25f75d7bd8864ea132246cea79e073232d664d76 to 17.0

Comment 1 Cédric Jeanneret 2022-10-17 10:16:25 UTC
DS patch just merged. Waiting for the build..

Comment 11 errata-xmlrpc 2023-01-25 12:29:56 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 17.0.1 bug fix and 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/RHBA-2023:0271


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