22.04: autoinstall ignores proxy on unattended-upgrades job

Bug #1970409 reported by Patrick Elmer
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
subiquity
Fix Committed
Undecided
Olivier Gayot

Bug Description

When autoinstall comes to the task to update / upgrade its installed packages, it ignores the apt proxy. In wireshark I can see, that the server is trying to connect to de.archive.ubuntu.com directly instead using the proxy.

In 20.04.4 this issue does not exist.

As there is no option to disable auto upgrade we are not able to rollout Ubuntu 22.04.

Related branches

Revision history for this message
Nate Childers (nate-duke) wrote :

I've been fighting with the same issue the last few days as well. Thank you for reporting this!

Revision history for this message
Nate Childers (nate-duke) wrote :

i have noticed that on the half-installed system there is no mention _at all_ of a proxy configuration anywhere in /target/etc/apt.conf.d/

Revision history for this message
Nate Childers (nate-duke) wrote :

I've been able to fetch logs off of the half-installed system. I'll attach those here.

Revision history for this message
Nate Childers (nate-duke) wrote :
Revision history for this message
Nate Childers (nate-duke) wrote :
Revision history for this message
Patrick Elmer (lemerp) wrote :

Thank you for posting your logs, Nate.

I can confirm that there is no /target/etc/apt/apt.conf.d/90curtin-aptproxy file.

BTW, the kernel gets upgraded through proxy. As I can see in your curtin-install.log, Nate, yours should be also up-to-date.

All in all, your logs are similar to ours.

Revision history for this message
Nate Childers (nate-duke) wrote :

Good to hear we're in the same situation. Hopefully the subiquity maintainers will have enough information to act on. I'll be happy to post anything else needed or anything else that's needed.

Revision history for this message
Anton (user1553) wrote :

Affects us in a way that installing apt packages with autoinstall is not possible and crashes the installation with error 100

Revision history for this message
Patrick Elmer (lemerp) wrote :

Anton, I can confirm that installing packages is failing, too.

Revision history for this message
Mabine (mabine) wrote :

Same here... Could the priority be set to high please? This bug does not allow for automated installs using a proxy.

Revision history for this message
Nate Childers (nate-duke) wrote :

If this affects you please click the thing up top so that we increase the visibility. Once they come through and triage we might be able to get some traction.

Revision history for this message
Olivier Gayot (ogayot) wrote :

I've been able to reproduce this crash, thanks.

This looks very much like an issue with curt hooks removing the apt proxy file when they execute.
We had a very similar issue a few months ago with APT preferences being discarded right before installing APT packages.

Olivier Gayot (ogayot)
tags: added: fr-2310
Olivier Gayot (ogayot)
Changed in subiquity:
assignee: nobody → Olivier Gayot (ogayot)
status: New → Fix Committed
Revision history for this message
Dan Bungert (dbungert) wrote :

A fix for this has been merged to the Subiquity snap beta channel.
If you would like to help test this fix, please do the following:
* Launch your installer ISO as you normally would
* During the install, when the network is configured enough that snap
  should be able to reach the snap store, please go to a command line.
  The easiest way to do this should be to use the "Enter Shell" option
  in the "Help Menu"
* Run command `sudo snap refresh --beta subiquity`
* Complete your install as you would normally

Autoinstall users would need to use:
  refresh-installer:
    update: yes
    channel: beta

This build differs from the released version with the following fixes:
https://github.com/canonical/probert/pull/116/commits/e4115e837ed9e48b714b17f7a1c57cc62e5f7abe
https://git.launchpad.net/curtin/commit/?id=15ecdeab1e3a41069e84ddcac42d8bd1747e0382

Revision history for this message
Patrick Elmer (lemerp) wrote :

Hi Dan,

many thanks for the very fast fix to the whole team.

The fix is working as long as you do not have an "interactive-sections" part in your autoconfig file.
If this is the case, the installer crashes.

We, for example, let the user manually configure the drives and added:
  interactive-sections:
    - storage

Revision history for this message
Patrick Elmer (lemerp) wrote :

PS: The issue with the interactive-sections has gone, if I am removing the proxy setting. So this must be related to the proxy fix.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: [Bug 1970409] Re: 22.04: autoinstall ignores proxy on unattended-upgrades job

Can you extract the crash file for the problem you are seeing?

Revision history for this message
Patrick Elmer (lemerp) wrote (last edit ):

@Michael, please find the crash dump attached.

Revision history for this message
Dan Bungert (dbungert) wrote :

Patrick, thanks for the report.

I was able to see that crash using the existing Focal ISO and by refreshing to the version without the proxy fix, so I feel confident that the proxy fix did not create the interactive-sections crash.
I have split that problem out to a new bug as I want to release the fixes we have here.
https://bugs.launchpad.net/subiquity/+bug/1974077

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.