when undoing an installation, snapd doesn't clear the snapset values
Bug #1855428 reported by
Robert Liu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Samuele Pedroni |
Bug Description
When snapd is undoing an installation, it doesn't clear the variables which are set through 'snapctl set'.
The scenario is: the first boot was interrupted by power outage, and snapd tried to recover. A snap has a hook which calls 'snapctl set' to record a counter for later use. When snapd undoed the installation of this snap, it didn't clear configuration options (here is the counter). Later the snap will get a wrong counter and led to a unexpected condition.
Changed in snapd: | |
assignee: | nobody → Samuele Pedroni (pedronis) |
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → High |
status: | Triaged → In Progress |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I could reproduce the bug with an additional test in our suite. Proposed:
https:/ /github. com/snapcore/ snapd/pull/ 7889