yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #87739
[Bug 1952249] Re: [OVN] Created VM name overrides predefined port dns-name
Hello Maor:
This is the goal of the "dns_domain_port" extension. From [1]:
"""
* The name given to the instance by the user, my_vm, is sanitized by the Compute service and becomes my-vm as the port’s dns_name.
* The port’s dns_assignment attribute shows that its FQDN is my-
vm.example.org. in the Networking service internal DNS, which is the
result of concatenating the port’s dns_name with the value configured in
the dns_domain parameter in neutron.conf, as explained previously.
* The dns_assignment attribute also shows that the port’s hostname in
the Networking service internal DNS is my-vm.
* Instead of having the Compute service create the port for the instance, the user might have created it and assigned a value to its dns_name attribute. In this case, the value assigned to the dns_name attribute must be equal to the value that Compute service will assign to the instance’s hostname, in this example my-vm. Otherwise, the instance boot will fail.
"""
Thus the behaviour you are describing is correct.
Regards.
[1]https://docs.openstack.org/neutron/latest/admin/config-dns-int.html
** Changed in: neutron
Status: New => 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/1952249
Title:
[OVN] Created VM name overrides predefined port dns-name
Status in neutron:
Invalid
Bug description:
Hi, I think I've encountered a bug in internal DNS feature.
Generic Description:
====================
Hostname of port created with '--dns-name' option is being overridden by the name of the created server (VM) which uses predefined port.
* This is the default behavior and I haven't seen any options to
change that in server creation phase.
* It seems to be acknowledged at the last bullets in internal DNS doc [1],
but IMO it does not make sense to be that way, since it makes this option useless or it is not the intended behavior, and is a bug.
Maybe I'm missing some point there.
[1] https://docs.openstack.org/neutron/latest/admin/config-dns-
int.html
Setup:
======
- Openstack 16.2.
- OVN.
- Deployed with TripleO (Director).
- 3 controllers, 2 computes.
- Host images RHEL 8.4, guest images RHEL 8.4/cirrOS 0.3.4, all x86_64.
Steps to reproduce:
===================
1) Creating resources: network, subnet, etc.
2) Creating a port with '--dns-name' option:
openstack port create ... --dns-name test-hostname-1234 dns_port \
-c dns_name -c dns_assignment -c id
3) Creating a VM using the same predefined port with hostname (outputs changed hostname):
openstack server create ... --nic port-id=${port_id} vm1 \
-c OS-EXT-SRV-ATTR:hostname
4) Check the predefined port with changed hostname details
openstack port show dns_port \
-c dns_name -c dns_assignment -c id
Result:
=======
The VM/port predefined hostname from the port creation phase is replaced with the VM given name in VM creation phase.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1952249/+subscriptions
References