Changes in the gadget.yaml spec can cause ubuntu-image to be unusable

Bug #1780295 reported by Łukasz Zemczak
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Image

Bug Description

Currently, if the gadget.yaml format gets some stanza additions, those will cause ubuntu-image to not be able to build the selected image at all. This is basically correct as we should always make sure we can only parse gadget.yaml's in a format that we support. But if there are wanted changes in the format, before users can actually start building images they need to wait for a new ubuntu-image release to happen.

Maybe we should add an option to ignore new fields?

Changed in ubuntu-image:
status: New → Confirmed
Revision history for this message
Paul Mars (upils) wrote :

We now use some snapd code to handle the gadget.yaml. So this problem is now more about keeping our dependency up-to-date with snapd. And I guess this is the job of the snapd lib to decide what to do with unknown/deprecated fields. I think we can close this bug.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Yes, agreed! Let me close this down.

Changed in ubuntu-image:
status: Confirmed → 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.