snap prepare-image --channel ignores tracks in model

Bug #1851401 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Won't Fix
High
Samuele Pedroni

Bug Description

I am trying to run

$ snap prepare-image --channel=edge ./uc20.model $(mktemp -d)

it downloads things from wrong locations.

Ie. it gets snapd and core20 from "edge", but it also gets pc and pc-kernel from "edge". It should be using "20/edge" for pc and pc-kernel, as specified track field in the model.

uc20.model attached.

Tags: core20
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
description: updated
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I think i worked around this by using "default-channel" key.

However, that fixes everything for me, but snapd itself. Ie. since i cannot list snapd in the model, i cannot specify "default-channel: edge" for it.

So I kind of need for --channel option to be inteligent, or be a "map" on per-snap basis. Or something like that.

Opened a separate bug about inability to specify snapd in the model, which imho now needs to happen explicitely, now that it's a stand alone snap.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Here is

tags: added: core20
summary: - snap prepare-image downloads wrong snaps
+ snap prepare-image --channel ignores tracks in model
John Lenton (chipaca)
Changed in snapd:
status: New → Triaged
importance: Undecided → High
Revision history for this message
John Lenton (chipaca) wrote :

I can confirm that 'track' is ignored atm. Having both track and defualt-track is confusing, and I'm sure it's a bug of some sort, but I'm not sure if the bug is having both, ignoring one and not the other, or not complaining when one is specified in a place it isn't expected. Something's confusing, for sure, and we should fix it.

Meanwhile, you can now have snapd in the model, so that works :-)

Changed in snapd:
status: Triaged → Confirmed
assignee: nobody → Samuele Pedroni (pedronis)
Revision history for this message
John Lenton (chipaca) wrote :

I'm assinging it to Samuele for him to take a look and see what exactly is the bug :-) then we can sort it out.

Revision history for this message
Samuele Pedroni (pedronis) wrote :

We dropped "track" key support for UC 20 model spec. There is only default-channel now, a default channel of 20 combined with a --channel=edge should give 20/edge assuming the model is grade: dangerous (it errors othewise atm).

Changed in snapd:
status: Confirmed → 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.