Better handle failures talking to Snapstore
Bug #1869630 reported by
Haw Loeung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Livepatch Charm |
Fix Released
|
Critical
|
Jeremy Lounder | ||
Prometheus2 charm |
Fix Released
|
Critical
|
Jeremy Lounder | ||
Snap Layer |
Fix Released
|
Critical
|
Haw Loeung |
Bug Description
Hi,
As seen elsewhere (LP:1850809):
| DEBUG:root:
| ERROR:root:
/var/log/
| 2020-03-26 16:00:44 DEBUG update-status error: cannot list updates: Post https:/
I think this is the check_refresh_
Related branches
~hloeung/layer-snap:master
- Stuart Bishop: Approve
-
Diff: 19 lines (+7/-1)1 file modifiedlib/charms/layer/snap.py (+7/-1)
Changed in layer-snap: | |
assignee: | nobody → Haw Loeung (hloeung) |
Changed in layer-snap: | |
status: | Triaged → In Progress |
Changed in layer-snap: | |
status: | In Progress → Fix Released |
Changed in charm-canonical-livepatch: | |
importance: | Undecided → Critical |
Changed in charm-prometheus2: | |
importance: | Undecided → Critical |
Changed in charm-canonical-livepatch: | |
assignee: | nobody → Jeremy Lounder (jldev) |
Changed in charm-prometheus2: | |
assignee: | nobody → Jeremy Lounder (jldev) |
Changed in charm-prometheus2: | |
milestone: | none → 20.08 |
To post a comment you must log in.
check_refresh_ available( ) should handle the error, on failure clearing the snap.refresh- available. foo flag. Because there is no refresh available, because the snap store is unavailable.