/etc/hosts in container is missing the usual aliases
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
lxc (Ubuntu) | ||||||
Precise |
Fix Released
|
Undecided
|
Stéphane Graber | |||
Quantal |
Fix Released
|
Undecided
|
Stéphane Graber |
Bug Description
The /etc/hosts file created by the lxc-ubuntu template is missing some of the usual entries.
A standard /etc/hosts should look like this:
127.0.0.1 localhost
127.0.1.1 castiana castiana.
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
But a standard /etc/hosts generated by LXC looks like:
127.0.0.1 localhost quantal
----
[impact]
Non standard /etc/hosts makes services using the ip6- aliases fail to work entirely, the non-standard 127.0.0.1/127.0.1.1 setup was actually causing behaviour changes for the hostname command among others.
[test case]
Testcase:
1) sudo rm -Rf /var/cache/
2) sudo lxc-create -n p1 -t ubuntu
3) cat /var/lib/
Here, 3) should list a standard /etc/hosts with both a 127.0.0.1 and 127.0.1.1 entry and the usual ip6- aliases
[regression potential]
The SRU just adds the missing text to /etc/hosts, only potential regression is if something was specifically depending on the broken format and that'd be bug.
Related branches
Changed in lxc (Ubuntu): | |
status: | New → Fix Released |
Changed in lxc (Ubuntu Precise): | |
status: | New → In Progress |
assignee: | nobody → Stéphane Graber (stgraber) |
description: | updated |
summary: |
- /etc/hosts in conainer is missing the usual aliases + /etc/hosts in container is missing the usual aliases |
Changed in lxc (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
no longer affects: | lxc (Ubuntu) |
Changed in lxc (Ubuntu Quantal): | |
assignee: | nobody → Stéphane Graber (stgraber) |
description: | updated |
description: | updated |
Thanks for uploading the fix for this bug report to -proposed. However, when reviewing the package in -proposed and the details of this bug report I noticed that the bug description is missing information required for the SRU process. You can find full details at http:// wiki.ubuntu. com/StableRelea seUpdates# Procedure but essentially this bug is missing some of the following: a statement of impact, a test case and details regarding the regression potential. Thanks in advance!