Activity log for bug #1988773

Date Who What changed Old value New value Message
2022-09-05 15:37:32 Ian Collier bug added bug
2022-09-05 17:25:21 Ian Collier summary 22.04 autoinstall ignores proxy while installing external packages 22.04 autoinstall crashes while installing external packages if a proxy was configured
2022-09-05 17:25:21 Ian Collier 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_log.2258[2675]: write apt proxy info to /tmp/tmp9e00ya_m/mount/etc/apt/apt.conf.d/90curtin-aptproxy 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/etc/apt/apt.conf.d. The installer crashes with a horrible message [insert rant about the fact that subiquity doesn't have decent error reporting] of the form: subiquity/Install/install/postinstall: Command: '['systemd-run',.......'system-install', '/target', '--', 'ubuntu-desktop']' returned non-zero exit status 100. 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_log.2258[17702]: E: Unable to locate package ubuntu-desktop What may also be relevant (although this install does work on a system that isn't proxied) is that /target/etc/apt/sources.list only contains: 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. 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_log.2258[2675]: write apt proxy info to /tmp/tmp9e00ya_m/mount/etc/apt/apt.conf.d/90curtin-aptproxy 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/etc/apt/apt.conf.d.) The installer crashes with a horrible message [insert rant about the fact that subiquity doesn't have decent error reporting] of the form: subiquity/Install/install/postinstall: Command: '['systemd-run',.......'system-install', '/target', '--', 'ubuntu-desktop']' returned non-zero exit status 100. 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_log.2258[17702]: E: Unable to locate package ubuntu-desktop What may also be relevant (although this install does work on a system that isn't proxied) is that /target/etc/apt/sources.list only contains: 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.
2022-09-06 13:44:34 Ian Collier 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
2023-03-30 14:47:49 Илия Анастасов bug added subscriber Илия Анастасов