ec2-images have ubuntu.canonical.com in /etc/hosts
Bug #440757 reported by
Scott Moser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Fix Released
|
Medium
|
Scott Moser | ||
Karmic |
Fix Released
|
Medium
|
Scott Moser |
Bug Description
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bug 407861 brought up this issue, but we never opened another bug to
address it.
The following is present on an ec2-image out of the box:
$ grep 127. /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu.
affects ubuntu/vm-builder
tag ec2-images uec-images
status confirmed
importance medium
subscribe Eric Hammond
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkr
WysAnRFTpCRYWcw
=NfW4
-----END PGP SIGNATURE-----
Changed in vm-builder (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in vm-builder (Ubuntu Karmic): | |
assignee: | nobody → Scott Moser (smoser) |
milestone: | none → ubuntu-9.10 |
To post a comment you must log in.
I really don't feel like fixing this correctly in vmbuilder at the moment. Doing so I think would be to either: host-entry' like field
a.) add a '--no-local-
b.) allow '--host' to be 'null' or 'unset' special case. On that, the 127.0.1.1 entry would not be written.
Neither of those are trivial. The reason for this is that the values populated into /etc/hosts come from the '--hostname' and '--domain' arguments. --hostname (vm.hostname) is used:
$ grep vm.hostname -r * -l plugins/ libvirt/ __init_ _.py plugins/ ubuntu/ dapper. py plugins/ virtualbox/ vm.py plugins/ vmware/ vm.py
VMBuilder/
VMBuilder/
VMBuilder/
VMBuilder/
So, I'm planning on removing the 127.0.1.1 entry in a '--execscript' script that will be pasted from build-ec2-image