I am using a brand store and don’t want to share the whole assertion due to company-specific stuff.
The base is core-22, as we haven’t done the work to update our gadget snap yet. We want to use the 24 pc-kernel and mesa for a new computer model we need to start using. As I mentioned, including the snap as a parameter has worked, and the resulting img works.
Here is how the snap has been added to the assertion.
Did you make sure to include the core24 snap in your model assertion? It will not be pulled in automatically and mesa-2404 will require it…
(Also note the model assertions are processed top to bottom, so the additional core snap needs to be above mesa in the assertion)
And since you use a brand store, did you make sure both snaps are copied into it from the global store ? Else the device (or ubuntu-image, when properly pointing to your store) will indeed not find them…
None of the mesa snaps have ever been included in the brand store, don’t remember the reason from when we first set it up with help from canonical.
Trying to add any of the mesa snaps just results in an error. The mesa-core20 and mesa-core22 snaps have worked without issue so far, so I assumed mesa-2404 would do the same.
As I recall, snap download doesn’t pass authentication tokens, so the server would see that as coming from any e.g., average desktop user, rather than associated with a brand.
OTOH, your model containing stuff in a brand store implies you’ve probably run snap login at somepoint, and presumably are passing authentication tokens in the API call, which is likely influencing the underlying server side API.
Ogra’s right to contact support, but I thought I’d add this to maybe provide some insight why there could be a difference between what at a high level is basically the same operation (downloading the snap) - snap download is a very different codepath to most other snap commands as IIRC it was designed to be somewhat capable of working even if the rest of snapd isn’t (for example in an environment where you might not be capable of running systemd, say Docker, you could still potentially make use of snap download even if it can’t run the snaps themselves).