Use EC2 DHCP hostname and domain name instead of "ubuntu."

Bug #316201 reported by Eric Hammond
2
Affects Status Importance Assigned to Milestone
Ubuntu on EC2
Fix Released
Undecided
Unassigned
ec2-init (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

AMI id: ami-814aaee8, ami-a84aaec1

The 32- and 64-bit official Ubuntu beta AMIs currently have a hardcoded hostname of "ubuntu" with no domain name, so "hostname -f" returns "ubuntu."

As one beta tester has reported (not sure if he wants his name posted here) this causes an error when postfix is installed:

  newaliases: fatal: bad string length 0 < 1: mydomain =

In addition, the default name of "ubuntu" is not resolvable by other hosts.

The common standard with existing EC2 AMIs is for the hostname and domain to default to the internal DNS name as assigned by EC2 (DHCP).

Another option would be to obtain the external DNS name and set that as the hostname on boot. This would let the hostname be resolvable from outside of EC2 which might be useful when some software is configured. The external DNS name can be obtained here on an EC2 instance:
  http://169.254.169.254/latest/meta-data/public-hostname/

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-init - 0.2

---------------
ec2-init (0.2) jaunty; urgency=low

  * debian/init: Run fetch-credentials before anything else.
    (LP: #308533)
  * Add ec2-set-hostname.py: Queries ec2 metdada for public-hostname
    and then sets it (LP: #316201)

 -- Chuck Short <email address hidden> Tue, 13 Jan 2009 15:20:21 -0500

Changed in ec2-init:
status: New → Fix Released
Revision history for this message
Chuck Short (zulcss) wrote :

This is fixed in jaunty I will fix it for the next beta as well.

Changed in ubuntu-on-ec2:
status: New → Fix Committed
Revision history for this message
Chuck Short (zulcss) wrote :

Set milestone

Changed in ubuntu-on-ec2:
milestone: none → beta2
Revision history for this message
Chuck Short (zulcss) wrote :

beta2 is out

Changed in ubuntu-on-ec2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.