Get the model assertion from the store automatically

Bug #1650577 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Invalid
Wishlist
Unassigned

Bug Description

`snap known` provides a way to download a model assertion file from the store, so it might be kind of nice to provide a u-i cli interface for that. That would eliminate an out-of-band step where the user has to get their model assertion and then pass it to u-i cli.

E.g.

% snap known --remote model series=16 model=pc-amd64 brand-id=canonical

We'd have to figure out a nice way to structure the option, and provide some defaults, but it would help having to remember the magic `snap known` incantation.

Revision history for this message
Steve Langasek (vorlon) wrote :

I am unconvinced that this belongs in ubuntu-image. Model assertions may come from a number of different sources, including being locally generated by the developer; I don't think ubuntu-image should treat store-sourced model assertions specially.

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1650577] Re: Get the model assertion from the store automatically

On Dec 16, 2016, at 03:33 PM, Steve Langasek wrote:

>I am unconvinced that this belongs in ubuntu-image. Model assertions
>may come from a number of different sources, including being locally
>generated by the developer; I don't think ubuntu-image should treat
>store-sourced model assertions specially.

It would just be an optional convenience. Of course you'd always be able to
specify a model assertion file on the cli. Anyway it was just a thought
springing out from conversations w/infinity.

Revision history for this message
Steve Langasek (vorlon) wrote :

On Fri, Dec 16, 2016 at 04:05:32PM -0000, Barry Warsaw wrote:
> On Dec 16, 2016, at 03:33 PM, Steve Langasek wrote:

> >I am unconvinced that this belongs in ubuntu-image. Model assertions
> >may come from a number of different sources, including being locally
> >generated by the developer; I don't think ubuntu-image should treat
> >store-sourced model assertions specially.

> It would just be an optional convenience. Of course you'd always be able to
> specify a model assertion file on the cli. Anyway it was just a thought
> springing out from conversations w/infinity.

I assume that's related to ubuntu-image autobuilding. I definitely don't
see any reason for ubuntu-image to wrap this, considering launchpad
autobuilds are going to need to support building for arbitrary models, which
means exposing the full array of options to 'snap known' through the
launchpad json. So passing this through ubuntu-image instead of directly to
'snap known' doesn't buy us anything.

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

I think this is not a feature we'd want to directly support, so let me mark this Invalid.

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