when undoing an installation, snapd doesn't clear the snapset values

Bug #1855428 reported by Robert Liu
6
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
Revision history for this message
Samuele Pedroni (pedronis) wrote :

I could reproduce the bug with an additional test in our suite. Proposed:

https://github.com/snapcore/snapd/pull/7889

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

The fix was landed and will be in 2.44

Changed in snapd:
status: In Progress → Fix Committed
Changed in snapd:
status: Fix Committed → Fix Released
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.