subiquity asks to "update" to version older the the one actually installed

Bug #1936190 reported by Alfonso Sanchez-Beato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Won't Fix
Undecided
Unassigned

Bug Description

When running subiquity 21.06.01 from channel latest/stable, it shows this message in one of the initial screens:

  Version 21.01.2 of the installer is now available (21.06.01 is currently
  running).

so it is suggesting to update to a version older than the current one (21.01.2 is from the latest/stable/ubuntu-20.04.2 branch).

snap info shows that subiquity is tracking latest/stable/ubuntu-20.04.2 branch:

tracking: latest/stable/ubuntu-20.04.2

but not sure why that happens, as seed.yaml seems fine:

snaps:
  -
    name: core18
    channel: stable
    file: core18_2073.snap
  -
    name: snapd
    channel: stable
    file: snapd_12397.snap
  -
    name: subiquity
    channel: latest/stable
    classic: true
    file: subiquity_2502.snap

Tags: fr-1509
description: updated
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yeah, snapd doesn't have a concept of ordering of versions, it just offers you the version in the channel you are tracking if it is different to the one you are running. How did you end up in this situation? Using livefs-editor to inject an updated snap to the 20.04.2 media?

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

We are doing snap_preseed as a livecd hook:

snap_preseed $INSTALLER_ROOT subiquity/classic=latest/stable

I have seen that actually something triggers a channel switch by looking at snap changes:

# snap changes
ID Status Spawn Ready Summary
2 Doing today at 15:16 UTC - Initialize device
3 Done today at 15:16 UTC today at 15:16 UTC Change configuration of "core" snap
4 Done today at 15:17 UTC today at 15:17 UTC Switch "subiquity" snap to channel "stable/ubuntu-20.04.2"
1 Done in 48 days, at 08:29 UTC today at 15:16 UTC Initialize system state

And I found in the subiquity log (see attached the full log):

2021-05-27 15:17:38,610 DEBUG root:39 finish: subiquity/Refresh/configure_snapd/get_details: SUCCESS: current version of snap is: '21.06.01'
2021-05-27 15:17:38,611 DEBUG root:39 start: subiquity/Refresh/configure_snapd/switching: switching subiquity to stable/ubuntu-20.04.2

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

It looks like subiquity is taking the channel from /cdrom/.disk/info, that is

Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release arm64 (20210714)

in this case. But we don't want that in this case. I guess that the workaround would be to set the kernel command line to "subiquity-channel=latest/stable"?

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yes that will work as a workaround. How are you making your images though? An ISO made on 20210714 shouldn't be labelled 20.04.2 really -- the ones we make at http://cdimage.ubuntu.com/ubuntu-server/focal/daily-live/ aren't (unless I completely forget how this works).

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

The information in /cdrom/.disk/info comes from debian-cd:

https://bazaar.launchpad.net/~ubuntu-cdimage/debian-cd/ubuntu/view/head:/CONF.sh#L302

We can replace that in the build script, but not sure what should be put there tbh.

Dan Bungert (dbungert)
tags: added: fr-1509
Revision history for this message
Dan Bungert (dbungert) wrote :

We did actually go and implement this, but this sort of "downgrade" does show up in some legitimate cases as well. So yesterday we ended up reverting to the previous logic, which is that whatever is on the tracked channel is considered the version that we should offer.

Marking this Won't Fix, sorry.

Changed in subiquity:
status: New → Won't Fix
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.