[Bug 1809155] [NEW] subiquity in 18.04.1 via cloud-init doesn't set hostname persistence

Thomas Ward teward at thomas-ward.net
Wed Dec 19 19:37:14 UTC 2018


Public bug reported:

When installing with Subiquity, on the Live ISOs for Server, once the
system is installed, cloud-init in /etc/cloud/cloud.cfg has
preserve_hostname set to "False".

In essence, if you are trying to change the hostname post-install on
such an installation, the changed hostname will *not* persist.

Therefore, if I installed with the hostname 'ubuntu' and want to change
it to 'teward-server', the typical process is to edit /etc/hosts,
/etc/hostname, and run hostnamectl to change the hostname references for
the system.

Currently, however, we have to set preserve_hostname to 'True' for
/etc/cloud/cloud.cfg in order for the hostname change to persist.

It should probably be done by Subiquity that after you install it you
set persist_hostname to "True" in order for hostname changes post-
install to still be kept and applied.

** Affects: subiquity (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  subiquity in 18.04.1 via cloud-init doesn't set hostname persistence

Status in subiquity package in Ubuntu:
  New

Bug description:
  When installing with Subiquity, on the Live ISOs for Server, once the
  system is installed, cloud-init in /etc/cloud/cloud.cfg has
  preserve_hostname set to "False".

  In essence, if you are trying to change the hostname post-install on
  such an installation, the changed hostname will *not* persist.

  Therefore, if I installed with the hostname 'ubuntu' and want to
  change it to 'teward-server', the typical process is to edit
  /etc/hosts, /etc/hostname, and run hostnamectl to change the hostname
  references for the system.

  Currently, however, we have to set preserve_hostname to 'True' for
  /etc/cloud/cloud.cfg in order for the hostname change to persist.

  It should probably be done by Subiquity that after you install it you
  set persist_hostname to "True" in order for hostname changes post-
  install to still be kept and applied.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1809155/+subscriptions



More information about the foundations-bugs mailing list