snap prepare-image --channel ignores tracks in model

Bug #1851401 reported by Dimitri John Ledkov on 2019-11-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
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.

Dimitri John Ledkov (xnox) wrote :
description: updated
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.

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) on 2019-11-07
Changed in snapd:
status: New → Triaged
importance: Undecided → High
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)
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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers