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

Bug #1855428 reported by Robert Liu on 2019-12-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
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
Samuele Pedroni (pedronis) wrote :

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

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

Samuele Pedroni (pedronis) wrote :

The fix was landed and will be in 2.44

Changed in snapd:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers