autopkgtest changes hostname in a bad way

Bug #1570001 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In scalingstack instances:

# hostname
localhost

# cat /etc/hostname
adt

This confuses e. g. postfix tests.

Martin Pitt (pitti)
Changed in auto-package-testing:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Martin Pitt (pitti)
Martin Pitt (pitti)
Changed in auto-package-testing:
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

This is somehow specific to the postfix tests, I suppose they change the hostname at some point. In the instances /etc/hostname is adt, and on boot I clearly see

  Apr 14 09:41:31 adt systemd[1]: Set hostname to <adt>.

but it gets changed later on. I don't get that with other tests, so this isn't a general fault of the infra or cloud-init or similar.

Changed in auto-package-testing:
assignee: Martin Pitt (pitti) → nobody
importance: Medium → Undecided
status: In Progress → Invalid
Revision history for this message
Martin Pitt (pitti) wrote : Re: changes hostname in a bad way

Reopening after talking to Lamont and reassigning to postfix.

  debian/tests/postfix:hostname localhost

This is very dubious, and a bit unexpected. It should *at least* also update /etc/hostname, but "localhost" has a special meaning. So if you need a predictable host name to simplify the tests, please use something else.

summary: - Scalingstack instances have wrong hostname
+ changes hostname in a bad way
affects: auto-package-testing → postfix (Ubuntu)
Changed in postfix (Ubuntu):
status: Invalid → Triaged
summary: - changes hostname in a bad way
+ autopkgtest changes hostname in a bad way
tags: added: bot-stop-nagging
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Martin,
is it possible that this was fixed a long time ago?
I mean the tests still overwrite hostname - that is bad but not critical as the test systems should be ephemeral right?

Just on the day of your last post LaMont made a change to postfix in https://launchpad.net/ubuntu/+source/postfix/3.1.0-3
Since that (and before) Tests are fine.

I wonder did this back then fail the tests for you?
Or did it affect the scalingstack system in some way?

Changed in postfix (Ubuntu):
status: Triaged → Incomplete
tags: removed: bot-stop-nagging
Revision history for this message
Martin Pitt (pitti) wrote :

Indeed http://autopkgtest.ubuntu.com/packages/postfix looks fine now. Yes, the postfix tests were failing back then and the /etc/hostname vs. actual hostname discrepancy was the cause.

Changed in postfix (Ubuntu):
status: Incomplete → 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.