Trailing dot in fqdn of ps5 VMs regresses some tests (e.g. postfix)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Auto Package Testing |
Fix Released
|
Undecided
|
Paride Legovini |
Bug Description
On ps5 amd64 VMs (lcy02) we have that:
$ hostname --fqdn
adt-paride-
Note the trailing dot. This causes regressions in some packages, see for example LP: #2019195. Ideally we should fix the regressed packages (the trailing dot is technically correct), but it makes sense to workaround the problem while the packages are getting fixed. Some possibilities are:
(1) Remove `manage_etc_hosts: true` from the cloud-init user-data used by the create-
# unbreak my server option :-(
userdata=`mktemp`
trap "rm $userdata" EXIT TERM INT QUIT PIPE
/bin/echo -e "#cloud-
and that was the *only* use of user-data back then. Looks like it was a workaround for some issue? In any case I can't be sure that disabling manage_etc_hosts won't cause other issues.
(2) Remove the trailing dot in /etc/hosts using the setup-canonical.sh script, e.g.
sed -Ei '/^127\.0\.1\.1 /s/([a-z])\. /\1 /' /etc/hosts
I don't think this can be racey with cloud-init reconfiguring the hostname because testbed-setup removes cloud-init. Cons of this approach: very hacky. We ask cloud-init to manage /etc/hosts (via manage_etc_hosts), but then mangle it manually (not nice).
Related branches
- Tim Andersson: Needs Fixing
-
Diff: 16 lines (+4/-0)1 file modifiedcharms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker-config-production/setup-canonical.sh (+4/-0)
- Ubuntu Release Team: Pending requested
-
Diff: 63 lines (+54/-0)1 file modifiedcharms/focal/autopkgtest-cloud-worker/autopkgtest-cloud/worker-config-production/setup-canonical.sh (+54/-0)
description: | updated |
Changed in auto-package-testing: | |
assignee: | nobody → Paride Legovini (paride) |
Changed in auto-package-testing: | |
status: | Fix Released → Incomplete |
Changed in auto-package-testing: | |
status: | Incomplete → In Progress |
Postfix is not trivial to fix, see discussion on:
https:/ /bugs.launchpad .net/ubuntu/ +source/ postfix/ +bug/2019195
As discussed we're moving ahead with solution (2).