My app snap's plug is not auto-connected to my gadget snap's slot

Bug #1677015 reported by Kyle Fazzari
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

I have a gadget snap with the following slot:

    slots:
        kobuki:
            interface: serial-port
            path: /dev/serial-port-kobuki
            usb-vendor: 0x0403
            usb-product: 0x6001

I have an app snap with the following plug:

    plugs:
        kobuki:
            interface: serial-port

Both of these are published on their respective stable channels. I put these together in a model definition like so:

    {
        [...]
        "gadget": "my-gadget-snap",
        "required-snaps": ["my-app-snap"]
    }

And build it into an image with ubuntu-image. However, when I boot that image, this interface is not automatically connected:

    $ snap interfaces
    Slot________________________Plug
    [...]
    my-gadget-snap:kobuki_______-
    -___________________________my-app-snap:kobuki

There seems to be no way to specify that this interface should be automatically connected. I figure this belongs in the gadget, but perhaps it belongs in the model definition itself, as that's where extra snaps are added via required-snaps.

Kyle Fazzari (kyrofa)
description: updated
description: updated
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Yes, that feature is definitely coming somehow.

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :
Michael Vogt (mvo)
Changed in snapd:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Ian Johnson (anonymouse67) wrote :

If I understand correctly, this bug can probably closed now with the introduction of `connections` stanza in the gadget.yaml which does exactly this

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.