FQDN inside guest VM is not the same as dns_assignment on network port
This bug report was marked for expiration 281 days ago. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Unassigned | ||
neutron |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hi,
Here is what we're trying to achieve :
- create a tenant associated to a provider network (vlan based, no FIP)
- create a dns zone associated to this tenant with Designate (basically, <tenant>
- create instances within this tenant which will have recordsets created automatically in the DNS zone in the form <instance>
- the FQDN inside the VM instance should be what is set in the DNS zone associated to the tenant (so <instance>
We're running Charmed Openstack on the yoga/stable channel on Ubuntu 20.04.
We're also using OVN.
Basically, everything that I explained is working and you'll see in the example below that even the instance's network port has the good dns_assignment attribute value with a fqdn in the form <instance>
We're always getting the <instance>
We don't even see any reference to it inside the metadata, the closest we get is the project_id but not the name.
Here are all the informations I could gathered to describe our issue :
=======
#######
### OPENSTACK SIDE
#######
ubuntu@
+------
| Field | Value |
+------
| description | tenant created by terraform for test-terraform |
| domain_id | a68af68161ee451
| enabled | True |
| id | 5d3f1ee6a825498
| is_domain | False |
| name | test-terraform |
| options | {} |
| parent_id | a68af68161ee451
| tags | ['createdBy=
+------
ubuntu@
+------
| Field | Value |
+------
| admin_state_up | UP |
| availability_
| availability_zones | |
| created_at | 2023-02-
| description | |
| dns_domain | test-terraform.
| id | 04d4287b-
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | None |
| is_vlan_transparent | None |
| mtu | 9000 |
| name | test-terraform-
| port_security_
| project_id | 5d3f1ee6a825498
| provider:
| provider:
| provider:
| qos_policy_id | None |
| revision_number | 3 |
| router:external | Internal |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | 50d94a98-
| tags | aciEpg, createdBy=
| updated_at | 2023-02-
+------
ubuntu@
+------
| Field | Value |
+------
| allocation_pools | 10.27.192.
| cidr | 10.27.192.0/19 |
| created_at | 2023-02-
| description | |
| dns_nameservers | 10.53.96.31, 10.53.96.32 |
| dns_publish_
| enable_dhcp | True |
| gateway_ip | 10.27.192.1 |
| host_routes | |
| id | 50d94a98-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | test-terraform-28 |
| network_id | 04d4287b-
| project_id | 5d3f1ee6a825498
| revision_number | 1 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | aciEpg, createdBy=
| updated_at | 2023-02-
+------
ubuntu@
+------
| Field | Value |
+------
| action | NONE |
| attributes | |
| created_at | 2023-02-
| description | default tenant zone |
| email | <email address hidden> |
| id | 10d2152f-
| masters | |
| name | test-terraform.
| pool_id | 794ccc2c-
| project_id | 5d3f1ee6a825498
| serial | 1679402949 |
| status | ACTIVE |
| transferred_at | 2023-03-
| ttl | 3600 |
| type | PRIMARY |
| updated_at | 2023-03-
| version | 1229096 |
+------
ubuntu@
+------
| id | project_id | name | type | records | status | action |
+------
| da21623f-
| | | | | support.
| | | | | 3600 | | |
| f85010e8-
| | | | | ns2.designate.
| | | | | ns1.designate.
| f37ab515-
| aebd9079-
| d92d84b6-
| bfe15a2a-
+------
ubuntu@
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | dlpe2v23513.
| binding_profile | |
| binding_vif_details | bound_drivers.
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2023-03-
| data_plane_status | None |
| description | |
| device_id | b1c38ba2-
| device_owner | compute:b2b |
| device_profile | None |
| dns_assignment | fqdn='test-
| dns_domain | |
| dns_name | test-volumes |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | d4b429b1-
| ip_allocation | immediate |
| mac_address | fa:16:3e:00:df:c1 |
| name | |
| network_id | 04d4287b-
| numa_affinity_
| port_security_
| project_id | 5d3f1ee6a825498
| propagate_
| qos_network_
| qos_policy_id | None |
| resource_request | None |
| revision_number | 5 |
| security_group_ids | e364d92f-
| status | ACTIVE |
| tags | |
| trunk_details | None |
| updated_at | 2023-03-
+------
#######
### GUEST INSTANCE SIDE
#######
[root@test-volumes ~]# hostname -f
test-volumes
[root@test-volumes ~]# hostnamectl status
Static hostname: test-volumes
Icon name: computer-vm
Chassis: vm
Machine ID: b1c38ba265434d7
Boot ID: a584aef6e4474f4
Virtualization: kvm
Operating System: Ubuntu 22.04.1 LTS
Kernel: Linux 5.15.0-48-generic
Architecture: x86-64
Hardware Vendor: OpenStack Foundation
Hardware Model: OpenStack Nova
[root@test-volumes ~]# curl -s http://
{
"uuid": "b1c38ba2-
"hostname": "test-volumes.
"name": "test-volumes",
"launch_index": 0,
"availability
"random_seed": "5+WkDF0IpCad2b
"project_id": "5d3f1ee6a82549
"devices": [],
"dedicated_cpus": []
}
[root@test-volumes ~]# curl -s http://
{
"links": [
{
"id": "tapd4b429b1-f4",
"vif_id": "d4b429b1-
"type": "ovs",
"mtu": 9000,
"
}
],
"networks": [
{
"id": "network0",
"type": "ipv4_dhcp",
"link": "tapd4b429b1-f4",
"network_id": "04d4287b-
}
],
"services": [
{
"type": "dns",
"address": "10.53.96.31"
},
{
"type": "dns",
"address": "10.53.96.32"
}
]
}
tags: | added: dns |
Might be easier to read in a file ...