failure: sudo failed with stderr: "sudo: unable to resolve host autopkgtest"

Bug #2067072 reported by Paride Legovini
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Auto Package Testing
New
Undecided
Unassigned

Bug Description

This is biting us again?

https://autopkgtest.ubuntu.com/results/autopkgtest-xenial/xenial/i386/u/ubuntu-advantage-tools/20240524_123321_36163@/log.gz

Note that:

0. The test log says `git checkout: 699e7f9f ssh-setup/nova: explicitely set 'fqdn' in cloud-init` which is the very commit that should prevent this failure from happening. :(

1. This is an i386 test, but the failure happened very early, so maybe the fact that it's i386 is not relevant. *Unless* we're running some early command like `dpkg --add-architecture i386` and that happens to be racy with cloud-init. E.g. I don't see us doing stuff like `cloud-init status --wait` in setup-testbed.

2. This is a Xenial test. Xenial has an older cloud-init:

 cloud-init | 21.1-19-gbad84ad4-0ubuntu1~16.04.2 | xenial-updates |
 cloud-init | 24.1.3-0ubuntu1~20.04.1 | focal-updates |
 cloud-init | 24.1.3-0ubuntu1~22.04.1 | jammy-updates |
 cloud-init | 24.1.3-0ubuntu1~23.10.2 | mantic-updates |
 cloud-init | 24.1.3-0ubuntu3 | noble |
 cloud-init | 24.1.3-0ubuntu3.2 | noble-proposed |

Does the fqdn setting behave differently there? Does it work at all?

Revision history for this message
Paride Legovini (paride) wrote :

Note that this is about an unsupported configuration (xenial/i386 is not ESM supported and there is no commercial offering for it). It may still be worth doing a timeboxed investigation, just trying to reproduce the issue as it happened in [1]. This is because we _may_ have a bug that could bite in other configurations.

[1] https://autopkgtest.ubuntu.com/results/autopkgtest-xenial/xenial/i386/u/ubuntu-advantage-tools/20240524_123321_36163@/log.gz

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.