ConnectedSlotSnippet not invoked when connecting two snaps

Bug #1625291 reported by Jonathan Cave
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Invalid
Undecided
Zygmunt Krynicki

Bug Description

I have a slot declared on a gadget snap of type gpio, for example:

name: gadget-snap
...
slots:
  my-gpio:
    interface: gpio
    number: 346
...

I install a snap with a plug that wants to use this slot:

name: app-snap
...
apps:
  my-app:
    command: gpio-up
    plugs: [gpio]
...

When the plug and slot are connected I would expect that ConnectedSlotSnippet is called on gadget-snap. Currently it is not. In this particular example the result is that the code in ConnectedSlotSnippet for the gpio interface [1] is not called and the gpio is not exported.

[1] https://github.com/snapcore/snapd/blob/master/interfaces/builtin/gpio.go#L129

Zygmunt Krynicki (zyga)
Changed in snappy:
assignee: nobody → Zygmunt Krynicki (zyga)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I believe this is not the case.

This pull request https://github.com/snapcore/snapd/pull/1951 contains a regression test for this that shows we do call the ConnectedSlotSnippet method.

Details start at: https://github.com/snapcore/snapd/pull/1951/files#diff-d63f90d47aab6c5372ae154516d8d43bR105

Changed in snappy:
status: New → Won't Fix
status: Won't Fix → Invalid
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.