Public bug reported:

I am using cloud-init from ansible 2.9 to set the FQDN on a newly
deployed VM host. In Red Hat and CentOS VMs the FQDN is being set with
the same ansible code but in Ubuntu 18.04 I am only getting the hostname
without the domain. The log file from the Ubuntu VM is attached below.
Red Hat says that this is not an issue with the ansible ovirt_vm package
which is calling the cloud-init library.


Segment from /var/log/cloud-init.log:
2020-06-08 06:14:43,790 - cc_set_hostname.py[DEBUG]: Setting the hostname to 
newu-1.habana-labs.com (newu-1)
2020-06-08 06:14:43,790 - util.py[DEBUG]: Reading from /etc/hostname 
(quiet=False)
2020-06-08 06:14:43,790 - util.py[DEBUG]: Read 19 bytes from /etc/hostname
2020-06-08 06:14:43,790 - util.py[DEBUG]: Writing to /etc/hostname - wb: [644] 
7 bytes
2020-06-08 06:14:43,791 - __init__.py[DEBUG]: Non-persistently setting the 
system hostname to newu-1
2020-06-08 06:14:43,792 - util.py[DEBUG]: Running command ['hostname', 
'newu-1'] with allowed return codes [0] (shell=False, capture=True)
2020-06-08 06:14:43,798 - atomic_helper.py[DEBUG]: Atomically writing to file 
/var/lib/cloud/data/set-hostname (via temporary file 
/var/lib/cloud/data/tmp0t78eh9q) - w: [644] 61 bytes/chars
2020-06-08 06:14:43,799 - handlers.py[DEBUG]: finish: 
init-local/config-set_hostname: SUCCESS: config-set_hostname ran successfully
2020-06-08 06:14:43,799 - stages.py[DEBUG]: Running module update_hostname 
(<module 'cloudinit.config.cc_update_hostname' from 
'/usr/lib/python3/dist-packages/cloudinit/config/cc_update_hostname.py'>) with 
frequency always
2020-06-08 06:14:43,799 - handlers.py[DEBUG]: start: 
init-local/config-update_hostname: running config-update_hostname with 
frequency always
2020-06-08 06:14:43,799 - helpers.py[DEBUG]: Running config-update_hostname 
using lock (<cloudinit.helpers.DummyLock object at 0x7f0607029c88>)
2020-06-08 06:14:43,799 - cc_update_hostname.py[DEBUG]: Updating hostname to 
newu-1.habana-labs.com (newu-1)
2020-06-08 06:14:43,800 - util.py[DEBUG]: Reading from /etc/hostname 
(quiet=False)
2020-06-08 06:14:43,800 - util.py[DEBUG]: Read 7 bytes from /etc/hostname
2020-06-08 06:14:43,800 - __init__.py[DEBUG]: Attempting to update hostname to 
newu-1 in 1 files

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883649

Title:
  cloud-init on Ubuntu 18.04 does not set FQDN

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1883649/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to