Activity log for bug #1966533

Date Who What changed Old value New value Message
2022-03-26 01:17:58 Evan Carroll bug added bug
2022-03-26 06:21:37 Evan Carroll description A fully qualified domain is not foo.bar.com But instead, foo.bar.com. Otherwise the fqdn hit up the resolver and searches on the network for a matching host. So if the resolver is on network foobar.com. And you query for `foo.bar.com` it'll look up a host by that name foo.bar.com.foobar.com. To stop this you fully-qualify with a terminal dot. This creates a problem because hostname does not accept a terminal dot, sudo hostname host-10-2-65-89.openstack.build. hostname: the specified hostname is invalid And cloud-init blindly submits the input to hostname. Which is weird, because you have to supply an fqdn which actually can _not_ currently be a fqdn. The desired fix for this would be to trim off the dot from the value supplied in fqdn, before providing it to hostname. A fully qualified domain is not     foo.bar.com But instead,     foo.bar.com. Otherwise the fqdn hit up the resolver and searches on the network for a matching host. So if the resolver is on network     foobar.com. And you query for `foo.bar.com` it'll look up a host by that name     foo.bar.com.foobar.com. To stop this you fully-qualify with a terminal dot. This creates a problem because hostname does not accept a terminal dot, sudo hostname host-10-2-65-89.openstack.build. hostname: the specified hostname is invalid And cloud-init blindly submits the input to hostname. Which is weird, because you have to supply an fqdn which actually can _not_ currently be a fqdn. The desired fix for this would be to trim off the dot from the value supplied in fqdn, before providing it to hostname.
2022-03-28 15:28:37 James Falcon cloud-init: status New Triaged
2022-03-28 15:28:40 James Falcon cloud-init: importance Undecided Medium
2022-03-28 15:28:48 James Falcon tags bitesize
2022-04-26 13:33:43 James Falcon cloud-init: status Triaged Fix Committed
2022-12-12 13:58:53 James Falcon cloud-init: status Fix Committed Fix Released
2023-05-12 17:01:25 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/3962