snap connections doesn't work as expected when interface attributes change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
High
|
Paweł Stołowski |
Bug Description
In looking at https:/
plugs:
hardware-observe:
allow-
optical-drive:
allow-
deny-
plug-
write: true
I then install makemkv from 'stable':
$ sudo snap install makemkv
makemkv 1.14.5 from Daniel Llewellyn (diddledan) installed
which has the following snap.yaml:
apps:
makemkv:
plugs:
- optical-drive
$ snap connections makemkv|grep optical
optical-drive makemkv:
So far so good. Now, if I 'snap refresh makemkv --edge' I see something weird with snap connections:
$ sudo snap refresh makemkv --edge
makemkv (edge) 1.14.5 from Daniel Llewellyn (diddledan) refreshed
which has the following snap.yaml:
plugs:
optical-write:
interface: optical-drive
write: true
apps:
makemkv:
plugs:
- optical-write
$ snap connections makemkv|grep optical
optical-drive makemkv:
optical-drive makemkv:
So, 'optical-drive' is shown as connected when it isn't even plugged, and optical-write is disconnected (as it should be).
But, the interface is not actually connected:
$ grep optical /var/lib/
$
This is likely related to bug 1848516 but filing separately since it is a different variation (ie, the interface isn't 'dropped' from the snap.yaml per se since optical-write is there).
summary: |
- snap refresh doesn't work as expected when interface attributes change + snap connections doesn't work as expected when interface attributes + change |
Changed in snapd: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in snapd: | |
assignee: | nobody → Paweł Stołowski (stolowski) |