Hello: In order to be able to define the DNS records of a port, you need to enable the extension driver "dns": $ cat /etc/neutron/plugins/ml2/ml2_conf.ini [ml2] extension_drivers = ...,dns
You should also define a DNS domain different from the default one "openstacklocal.". This should be set in the neutron configuration: $ cat /etc/neutron/neutron.conf [DEFAULT] dns_domain = fistro. Then you'll be able to define a DNS name per port. Regards. ** Changed in: neutron Status: Incomplete => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/2049622 Title: Some Port Properties Cannot Be Set Status in neutron: Invalid Bug description: Hi, Some port properties like dns-name cannot be set. We got mismatch error in some tempest tests as below. I debugged it and i saw that the dns-name properties cannot be set when creating a port. I checked with openstack cli commands and i saw dns-name properties cannot be set. I can set this properties in wallaby version. Openstack version: Zed Openstack cli version: 6.4.0 Some Tempest Tests: neutron_tempest_plugin.scenario.test_internal_dns.InternalDNSTest.test_create_and_update_port_with_dns_name neutron_tempest_plugin.api.test_ports.PortsTestJSON.test_create_update_port_with_dns_domain neutron_tempest_plugin.api.test_ports.PortsTestJSON.test_create_update_port_with_dns_name neutron_tempest_plugin.api.test_revisions.TestRevisions.test_update_dns_domain_bumps_revision ''' $ openstack port show b976b4c3-7fc6-430a-a587-33520a4b44c0 +-------------------------+------------------------------------------------------------------------------------------------+ | Field | Value | +-------------------------+------------------------------------------------------------------------------------------------+ | admin_state_up | UP | | allowed_address_pairs | | | binding_host_id | | | binding_profile | | | binding_vif_details | | | binding_vif_type | unbound | | binding_vnic_type | normal | | created_at | 2024-01-17T11:50:45Z | | data_plane_status | None | | description | | | device_id | | | device_owner | | | device_profile | None | | dns_assignment | fqdn='host-10-100-0-10.openstacklocal.', hostname='host-10-100-0-10', ip_address='10.100.0.10' | | dns_domain | | | dns_name | | | extra_dhcp_opts | | | fixed_ips | ip_address='10.100.0.10', subnet_id='76262d47-90be-4182-9678-8eaa01661851' | | hints | | | id | b976b4c3-7fc6-430a-a587-33520a4b44c0 | | ip_allocation | None | | mac_address | fa:16:3e:2c:02:19 | | name | tempest-internal-dns-test-port-853671869 | | network_id | 3c83b6d4-ca78-4f9e-95dc-3d1dcb662d07 | | numa_affinity_policy | None | | port_security_enabled | True | | project_id | 348a7b15194c4781a27dd64b9511526b | | propagate_uplink_status | None | | resource_request | None | | revision_number | 1 | | qos_network_policy_id | None | | qos_policy_id | None | | security_group_ids | 83fe2642-d8af-40ac-8943-0d63c8c8efbb | | status | DOWN | | tags | | | trunk_details | None | | updated_at | 2024-01-17T11:50:45Z | +-------------------------+------------------------------------------------------------------------------------------------+ $ openstack port set --dns-name testdns b976b4c3-7fc6-430a-a587-33520a4b44c0 -vvv ... REQ: curl -g -i -X PUT https://osp-xx-dev.xxxx.com:9696/v2.0/ports/b976b4c3-7fc6-430a-a587-33520a4b44c0 -H "Content-Type: application/json" -H "User-Agent: openstacksdk/2.0.0 keystoneauth1/5.4.0 python-requests/2.31.0 CPython/3.11.5" -H "X-Auth-Token: {SHA256}xxx" -d '{"port": {"dns_name": "testdns"}}' https://osp-xxxx-dev.xxxx.com:9696 "PUT /v2.0/ports/b976b4c3-7fc6-430a-a587-33520a4b44c0 HTTP/1.1" 200 980 RESP: [200] content-length: 980 content-type: application/json date: Wed, 17 Jan 2024 11:52:45 GMT x-openstack-request-id: req-137fd8ff-c385-49e8-bb9f-9301c8dc4288 RESP BODY: {"port":{"id":"b976b4c3-7fc6-430a-a587-33520a4b44c0","name":"tempest-internal-dns-test-port-853671869","network_id":"3c83b6d4-ca78-4f9e-95dc-3d1dcb662d07","tenant_id":"348a7b15194c4781a27dd64b9511526b","mac_address":"fa:16:3e:2c:02:19","admin_state_up":true,"status":"DOWN","device_id":"","device_owner":"","fixed_ips":[{"subnet_id":"76262d47-90be-4182-9678-8eaa01661851","ip_address":"10.100.0.10"}],"allowed_address_pairs":[],"extra_dhcp_opts":[],"security_groups":["83fe2642-d8af-40ac-8943-0d63c8c8efbb"],"description":"","binding:vnic_type":"normal","binding:profile":{},"binding:host_id":"","binding:vif_type":"unbound","binding:vif_details":{},"port_security_enabled":true,"dns_name":"","dns_assignment":[{"ip_address":"10.100.0.10","hostname":"host-10-100-0-10","fqdn":"host-10-100-0-10.openstacklocal."}],"dns_domain":"","tags":[],"created_at":"2024-01-17T11:50:45Z","updated_at":"2024-01-17T11:50:45Z","revision_number":1,"project_id":"348a7b15194c4781a27dd64b9511526b"}} PUT call to network for https://osp-xx-dev.xxxx.com:9696/v2.0/ports/b976b4c3-7fc6-430a-a587-33520a4b44c0 used request id req-137fd8ff-c385-49e8-bb9f-9301c8dc4288 clean_up SetPort: END return value: 0 ... Regards, To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/2049622/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp