Bug 1530131
Summary: | test_create_update_port_with_dns_domain failed with KeyError: 'dns_domain' | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | jinhua li <jinhli> |
Component: | openstack-neutron | Assignee: | Slawek Kaplonski <skaplons> |
Status: | CLOSED ERRATA | QA Contact: | Martin Kopec <mkopec> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 12.0 (Pike) | CC: | amuller, apevec, bhaley, chkumar, chrisw, lhh, nyechiel, psahoo, slinaber, srevivo, udesale, whayutin |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | 12.0 (Pike) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-neutron-11.0.4-6.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-05 18:53:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
jinhua li
2018-01-02 07:01:52 UTC
For running this test on tempest side, in tempest.conf under [network-feature-enabled] section make sure you include 'dns-domain-ports' in api_extensions option and make sure it is configured on the system. I have included "dns-domain-ports" in tempest.conf, if this is not related to temp, and the error still exists. Found the new confirguration, and will have a try https://docs.openstack.org/neutron/pike/admin/config-dns-int.html Hi Chandan Kumar , I set the configuration as below: 1. Edit the /etc/neutron/neutron.conf file and assign a value different to openstacklocal (its default value) to the dns_domain parameter in the [default] section. As an example: dns_domain = example.org. 2. Add dns (for the DNS Integration extension) or dns_domain_ports (for the dns_domain for ports extension) to extension_drivers in the [ml2] section of /etc/neutron/plugins/ml2/ml2_conf.ini. The following is an example: [ml2] extension_drivers = port_security,dns_domain_ports And after I run "ostestr neutron.tests.tempest.api.test_ports.PortsTestJSON.test_create_update_port_with_dns_domain " There is another error: Captured traceback: ~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/tempest/common/utils/__init__.py", line 108, in wrapper return func(*func_args, **func_kwargs) File "/usr/lib/python2.7/site-packages/neutron/tests/tempest/api/test_ports.py", line 111, in test_create_update_port_with_dns_domain self.assertEqual('d.org.', body['dns_domain']) KeyError: 'dns_domain' And I checked the log , the "dns_assignment"as below,[{"hostname":"d1","ip_address":"10.100.0.4","fqdn":"d1.example.com."} The dns_domain name"example.com." is which I set in /etc/neutron/neutron.conf, and in the code, the dns_name should be "'test.org.'','d.org.'. It seems that there is something wrong with the test suite. Pradipta - can you open another bug for the customer issue you described? It seems somewhat unrelated to the original bug. Chandan - can you confirm you are still working on this issue? Thanks. The openstack-neutron-11.0.4-6.el7ost contains the fix for the issue. The package is available in RHOS-12 repositories. 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, 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/RHSA-2018:3792 |