← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1375252] Re: [SRU] Hostname change is not preserved across reboot on Azure Ubuntu VMs

 

This bug was fixed in the package cloud-init - 0.7.6~bzr1022-0ubuntu4

---------------
cloud-init (0.7.6~bzr1022-0ubuntu4) utopic; urgency=medium

  * d/patches/lp-1375252-1458052-Azure-hostname_password.patch:
    Backport of 15.10 Azure Datasource to fix various issues:
    - Azure Datasource writes user password in plain text (LP: #1458052).
    - Hostname not preserved across Azure reboots (LP: #1375252).

 -- Ben Howard <ben.howard@xxxxxxxxxx>  Mon, 25 May 2015 08:53:25 -0600

** Changed in: cloud-init (Ubuntu Utopic)
       Status: Fix Committed => Fix Released

** Changed in: cloud-init (Ubuntu Vivid)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1375252

Title:
  [SRU] Hostname change is not preserved across reboot on Azure Ubuntu
  VMs

Status in Init scripts for use on cloud images:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Fix Released
Status in walinuxagent package in Ubuntu:
  Invalid
Status in cloud-init source package in Trusty:
  Fix Released
Status in walinuxagent source package in Trusty:
  Invalid
Status in cloud-init source package in Utopic:
  Fix Released
Status in walinuxagent source package in Utopic:
  Invalid
Status in cloud-init source package in Vivid:
  Fix Released
Status in walinuxagent source package in Vivid:
  Invalid

Bug description:
  SRU Justification

  [IMPACT] Cloud-init overrides the hostname each boot with the fabric
  provided name. Users expect that the hostname will not be reset each
  boot.

  [Test Case 1] Upgrade from proposed
  1. Install cloud-init from proposed
  2. Change the hostname via /etc/hostname
  3. Reboot
  4. Confirm that the new hostname is used

  [Test Case 2] Reprovision
  (Follow Test Case 1)
  1. Capture Azure VM
  2. Start captured VM
  3. Confirm that the new fabric name is used

  [Test Case 3] New Image Launch
  1. Build an Azure image from -proposed
  2. Boot and confirm that hostname is set properly
  3. Follow test case 1
  4. Follow test case 2

  [Regression Potential] As this is a backport of the 15.10 Datasource,
  there is a medium regression potential. The 15.10 Datasource fixes a
  number of Azure provisioning bugs and is thus desirable.

  [ORIGINAL REPORT]

  Whilst a hostname change is immediately effective using the hostname
  or hostnamectl commands, and changing the hostname this way is
  propagated to the hostname field in the Azure dashboard, upon
  rebooting the Ubuntu VM the hostname reverts to the Virtual Machine
  name as displayed in the Azure dashboard.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: walinuxagent 2.0.8-0ubuntu1~14.04.0
  ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
  Uname: Linux 3.13.0-36-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.4
  Architecture: amd64
  Date: Mon Sep 29 12:48:56 2014
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: walinuxagent
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.waagent.conf: 2014-09-29T09:37:10.758660

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