22.04 autoinstall crashes while installing external packages if system has two IPs on same link
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
This is closely related to bug 1970409; but that bug is fixed (or claims to be) and indeed it looks to be the case that "updating packages on target system" job completes successfully if there are no extra packages to install. However, if the autoinstall config specifies extra packages to install, the installer crashes at that point.
I am currently using the 22.04.1 server install iso and have verified that the commit from bug 1970409 is present in the installer. The install is taking place on a VM that does not have direct access to the Internet and so must use a proxy. The proxy is added to the user-data YAML file for the autoinstall by a script that runs at "early-commands" stage.
The syslog from the crashed install contains this line:
subiquity_
The proxy configuration is indeed present at that location after the crash. (However, at no point during the install does the proxy info appear in /target/
The installer crashes with a horrible message [insert rant about the fact that subiquity doesn't have decent error reporting] of the form:
subiquity/
We have to dig into /var/log/syslog on the crashed installer to find the relevant message (it's not even in the crash dump that the installer saves):
subiquity_
What may also be relevant (although this install does work on a system that isn't proxied) is that /target/
deb [check-date=no] file:///cdrom jammy main restricted
If I remove the "packages:" section from the autoinstall YAML file then the installation succeeds, and indeed the proxy setting *is* present in /etc/apt/apt.conf.d on the installed system.
description: | updated |
summary: |
- 22.04 autoinstall ignores proxy while installing external packages + 22.04 autoinstall crashes while installing external packages if a proxy + was configured |
summary: |
- 22.04 autoinstall crashes while installing external packages if a proxy - was configured + 22.04 autoinstall crashes while installing external packages if system + has two IPs on same link |
Hmm, there's not really much network activity either via the proxy
or bypassing the proxy before the installer crashes. So it seems
that the installer is believing some cache that tells it the package
does not exist.
But the exact same config, minus the proxy, works on a directly
Internet-connected VM.