Created attachment 931457 [details] Fix set_hostname Description of problem: Distro.set_hostname() uses wrong hostname when calling _apply_hostname(). On initial boot, the hostname is set to the short name, but after reboot it is set to the fqdn. Version-Release number of selected component (if applicable): 0.7.4-2 How reproducible: On openstack or AWS, use the following user data: #cloud-config manage_etc_hosts: true hostname: myhostname fqdn: myhostname.domain.tld Launch the machine and login. Then run hostname: [root@myhostname ~]# hostname myhostname Reboot. Login and run hostname again: [root@myhostname ~]# hostname myhostname.domain.tld Expected results: [root@myhostname ~]# hostname myhostname.domain.tld Additional info: Patch attached works against current version in EPEL.
Hi, Any update on this bug? It's really simple and solves the problem. Could it be shipped in the next release?
Hi, A fix has been committed upstream to address this issue. Are we getting closer to a fix in the EPEL RPM, or is an upstream release required? Thanks!
There's a cloud-init-0:0.7.5-10.el6.centos.2.x86_64 available in centos-extras repository.
This package is no longer included in epel7. https://src.fedoraproject.org/rpms/cloud-init/c/aeebc66ebb93afe224cc4752a58955dad03a5dde?branch=epel7