← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383794] Re: [SRU] GCE datasource should use the short hostname

 

fix-committed in revno 1049.


** Also affects: cloud-init
   Importance: Undecided
       Status: New

** Changed in: cloud-init
       Status: New => Fix Committed

-- 
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/1383794

Title:
  [SRU] GCE datasource should use the short hostname

Status in Init scripts for use on cloud images:
  Fix Committed
Status in cloud-init package in Ubuntu:
  New
Status in cloud-init source package in Precise:
  New
Status in cloud-init source package in Trusty:
  New
Status in cloud-init source package in Utopic:
  New

Bug description:
  [IMPACT] Since GCE FQDN are usually longer than 64-characters, several
  hi-profile tools like Java and Hadoop may break.

  [FIX] Per GCE's recommendation, Linux instances should use the short
  hostname over the FQDN. This change sets the system hostname to the
  short name.

  [VERIFICATION]
  1. Install new cloud-init from proposed
  2. Re-run cloud-config:
     * 14.04/14.10: cloud-init single -n set_hostname --frequency=always
     * 12.04: cloud-init-cfg set_hostname always
  3. Check to make sure that the short name is used for /etc/hostname

  [RISK] This is a very low risk change. The actual change is a single
  line, and has test cases for 14.04 and 14.10. Further, since this
  change is only in the GCE datasource, it only affects GCE instances.

  [ORIGINAL REPORT]
  The GCE datasource uses the long hostname. Hostnames longer than 64 characters can break several tools.

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