refresh fails when gpio is not exported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Michael Vogt |
Bug Description
snapd: 2.44~pre1
preconditions:
- gadget snap has defined multiple gpio slots
- there are snap(s) with gpio plugs connected to those slots
- not all gpios are exported at the time of refresh
expected result:
snap refresh refreshes snaps
actual result:
snapd goes cuckoo and refresh fails with:
error: cannot perform the following tasks:
- Setup snap "snapd" (6709) security profiles (cannot setup profiles for snap "my-gpio-
checking the system, reported gpio is not exported so file path is not valid at the time of refresh. plug and slot for defined gpio pin are connected though
tags: | added: mvo |
information type: | Public → Private |
information type: | Private → Public |
information type: | Public → Private |
information type: | Private → Public |
Changed in snapd: | |
status: | Triaged → In Progress |
I was actually able to reproduce this also with snapd 2.43.3
I tested following scenarios:
edge -> beta : fail
beta -> edge: fail
beta -> candidate: fail
candidate -> beta: fail
candidate -> candidate: fail
at the time of testing candidate = stable