unknown error crashed with NotImplementedError

Bug #1980584 reported by corrado venturini
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Olivier Gayot

Bug Description

trying install from canary ISO

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: subiquity (unknown)
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.22.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.472
Date: Sun Jul 3 05:14:59 2022
ExecutablePath: /snap/ubuntu-desktop-installer/511/bin/subiquity/subiquity/cmd/server.py
InterpreterPath: /snap/ubuntu-desktop-installer/511/usr/bin/python3.8
LiveMediaBuild: Ubuntu 22.10 "Kinetic Kudu" - Alpha amd64 (20220702)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcAttrCurrent: snap.hostname-desktop-installer.subiquity-server (complain)
ProcCmdline: /snap/hostname-desktop-installer/511/usr/bin/python3.8 -m subiquity.cmd.server --use-os-prober --autoinstall=
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz layerfs-path=minimal.standard.live.squashfs maybe-ubiquity --- quiet splash
Python3Details: /usr/bin/python3.10, Python 3.10.5, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
SnapChannel:

SnapRevision: 511
SnapUpdated: False
SnapVersion: 0+git.33f917dc
SourcePackage: subiquity
Title: unknown error crashed with NotImplementedError
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/11/2017
dmi.bios.release: 5.12
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.10
dmi.board.name: H110M-G/M.2
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.10:bd05/11/2017:br5.12:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnH110M-G/M.2:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:skuToBeFilledByO.E.M.:
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: To Be Filled By O.E.M.
dmi.product.sku: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

Revision history for this message
corrado venturini (corradoventu) wrote :
information type: Private → Public
Revision history for this message
Dan Bungert (dbungert) wrote :

Hi Corrado :) - something with the Apt handling hit a bug, and the logs are a bit boring otherwise. Any thoughts on what you were doing right before you ran into this?

Revision history for this message
corrado venturini (corradoventu) wrote :

Just running ubuntu-desktop-installer

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

After looking in depth at the logs, I noticed that the apply_apt_config task was started without a source being selected before.

There are two code paths that start this task:

* One is when the source model gets configured.
* The other is when the mirror model gets marked configured.

mirror.py:
    async def configured(self):
        await super().configured()
        self.configured_once = True
        self._apply_apt_config_task.start_sync()

mirror.py:
        self.app.hub.subscribe(
            (InstallerChannels.CONFIGURED, 'source'), self.on_source)

where self.on_source starts the task.

Therefore, it is unsafe to mark mirror configured if the source is not selected first.

Revision history for this message
corrado venturini (corradoventu) wrote :

Problem seems disappeared with following versions of subiquity.

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

A similar issue can be reproduced in dry-run mode after applying the following patch:

https://pastebin.canonical.com/p/xNK3ZtBNFc/

Then run `make dry-run` and send the following request:

curl --unix-socket .subiquity/socket \
     -X POST \
    'a/meta/mark_configured?endpoint_names=%5B"mirror"%5D'

Changed in subiquity:
assignee: nobody → Olivier Gayot (ogayot)
status: New → In Progress
Revision history for this message
Olivier Gayot (ogayot) wrote :
Dan Bungert (dbungert)
Changed in subiquity:
status: In Progress → Fix Committed
Revision history for this message
Dan Bungert (dbungert) wrote :

We believe a fix for this can be found in Subiquity 22.10.1. On
install you will be offered to update to the new version of the
installer if network is available, or you can perform a manual update
by running the follwing in a terminal:
sudo snap refresh subiquity

Changed in subiquity:
status: Fix Committed → 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.