need a way to distinguish closed channel from epoch mismatch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Triaged
|
Low
|
Matias Bordese | ||
snapd |
Triaged
|
Low
|
Unassigned |
Bug Description
Given a snap set up like "test-snapd-epoch" is, where different channels have different epochs, some of them incompatible, the store currently gives no hint that it's serving a channel different to the one requested due to an epoch mismatch instead of it being due to the channel being closed:
$ snap info test-snapd-epoch
name: test-snapd-epoch
summary: Basic snap with epochs
publisher: Canonical✓
license: unset
description: |
A basic snap that has epochs
snap-id: 3EWQJuQAKGGSVsD
channels:
stable: 1 (1) 4kB -
candidate: 2star0 (2) 4kB -
beta: 2 (3) 4kB -
edge: 3complex (4) 4kB -
installed: 1 (1) 4kB -
$ snap install test-snapd-epoch
test-
$ snap refresh --beta test-snapd-epoch
test-
Channel beta for test-snapd-epoch is closed; temporarily forwarding to candidate.
that last message is wrong, but snapd doesn't currently have a way of telling one case from the other.
Changed in snapstore: | |
assignee: | nobody → Matias Bordese (matiasb) |
Changed in snapstore: | |
importance: | Undecided → Low |
status: | New → Triaged |
tags: | added: snap-releases |
tags: | added: epochs |
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → Low |
This one might be the same, or it might be slightly different:
$ snap install --edge test-snapd-epoch snapd-epoch (edge) 3complex from Canonical✓ installed
following channels:
test-
$ snap refresh --beta test-snapd-epoch
error: snap "test-snapd-epoch" is not available on beta but is available to install on the
edge snap refresh --edge test-snapd-epoch
Get more information with 'snap info test-snapd-epoch'.