Can no longer install snaps with multiline plugs

Bug #1633638 reported by Chad Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned

Bug Description

Potential regression:
A snap we have been writing published in the beta channel has been successfully installing for a few weeks. I just updated my snap-related packages to the following and now that snap install fails parsing the snap header.

ii snap-confine 1.0.38-0ubuntu0.16.04.8 amd64 Support executable to apply confinement for snappy apps
ii snapcraft 2.17 all easily craft snaps
ii snapd 2.14.2~16.04
ii ubuntu-core-launcher 1.0.43-0ubuntu1~16.04.1

- Fetch and check assertions for snap (6) (parsing assertion headers: expected 4 chars nesting prefix after multiline introduction "plugs:": " hardware-observe:")

Our snapcraft.yaml has the following defined for plugs definitions

plugs: [ network-bind, network-control, kernel-module-control, system-observe, hardware-observe ]

Chad Smith (chad.smith)
description: updated
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

This is actually a problem in the snap-declaration assertion, not in the snap itself.

We need to review the assertion text and see if that's a bug in the parser or in the text itself. More likely it's the latter.

Chad Smith (chad.smith)
description: updated
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

These changes in the store have been reverted so your snap should start working again. Let us know if it does not.

Revision history for this message
Chad Smith (chad.smith) wrote :

targeting this to snapcraft as the snap can be installed locally via --force-dangerous without header parse errors. This seems to be the yaml parsing the snapcrafts auto-plugging feature.

affects: snappy → snapcraft
Revision history for this message
Chad Smith (chad.smith) wrote :

@Gustavo and @Jaime the fix to the snap-declaration assertion revert must have solved this. I can now install those snaps without seeing this issue. Thanks for the fast response!

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Moving back to snappy

affects: snapcraft → snappy
Changed in snappy:
status: New → Fix Released
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.