Proxy settings are not applied to the installed system

Bug #1953619 reported by Paride Legovini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
High
Dan Bungert
subiquity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In the current Focal and Jammy dailies the proxy settings set in subiquity while installing are not applied to the installed system:

 * `apt-config dump Acquire::HTTP::Proxy` is empty
 * /proc/<snapd.service MainPID>/environ has no proxy variables

These are were set in the past, and are expected to be.

Steps to reproduce:

 * Download a recent focal-live-server-amd64.iso
   Last tested with: 20211208
 * Do an "all defaults" install but set a proxy
 * Reboot to the installed system and verify that
   no apt/snap proxy is set.

(Spotted by the ubuntu-focal-live-server-amd64-smoke-proxy Jenkins job)

Tags: iso-testing
Revision history for this message
Paride Legovini (paride) wrote :

On the installed system /var/lib/cloud/instance/user-data.txt has no proxy settings, so this looks like a subiquity issue to me.

tags: added: iso-testing
Paride Legovini (paride)
description: updated
Changed in subiquity:
importance: Undecided → High
tags: added: rls-ff-incoming rls-jj-incoming
Dan Bungert (dbungert)
Changed in subiquity:
assignee: nobody → Dan Bungert (dbungert)
status: New → In Progress
Revision history for this message
Dan Bungert (dbungert) wrote :
Dan Bungert (dbungert)
Changed in subiquity:
status: In Progress → Fix Committed
Revision history for this message
Dan Bungert (dbungert) wrote :

@Paride - I was not able to reproduce the snap environment part of this problem. The merged PR includes a fix for the apt proxy setting, which I could reproduce. Do you mind retesting with the next edge build?

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

Thanks! I tried to verify the fix bug edge subiquity looks very broken to me. I refreshed subiquity from edge on a focal-live-server-amd64 image but it crashes at the storage config screen:

Installer debug log: https://paste.ubuntu.com/p/fpvd9JzF5h/

---
ERROR root:39 finish: subiquity/Filesystem/_probe/probe_once: FAIL: [Errno 2] No such file or directory: 'os-prober'
---

os-prober is indeed missing.

I tried the same on Jammy. It doesn't crash, but subiquity gets stuck at the "Installing system" screen, printing no output (see screenshot).

All of this even *without* setting the proxy.

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

(https://github.com/canonical/subiquity/pull/1142/commits/90d764af36c0ff7b511c39d0b1810fbcc659fda6 fixed edge subiquity on Focal.)

I can confirm that edge subiquity correctly applies the proxy settings to the installed system apt and snapd on both Focal and Jammy.

On Jammy subiquity doesn't really get stuck in the "Installing system" view as I reported in my previous comment: the installation proceeds, but nothing is printed in the view (see the sad-subiquity.png screenshot). This isn't spotted by our automated testing (OTOH OpenQA would easily spot the issue). I'm going to file a separate bug for this.

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

Filed: LP: #1953744.

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

We believe this bug was resolved in Subiquity 21.12.2. Please reopen if you see otherwise. Thanks!

Changed in subiquity:
status: Fix Committed → Fix Released
tags: removed: rls-ff-incoming rls-jj-incoming
Changed in subiquity (Ubuntu):
status: New → 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.