Not able to preseed snaps from private snap store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Invalid
|
Medium
|
Unassigned |
Bug Description
[Summary]
I was using ubuntu-
[Steps]
1. Prepare model.assert that contains gadget snap from private store
2. Prepare a credential that is allowed to access the private store
3. Use the command
$ sudo 'UBUNTU_
[Result]
```
[8] clean_extra_ppas
duration: 2.651111ms
[9] install_extra_snaps
Fetching nvent-9400i-
duration: 6.455209737s
Error: Error preparing image: received an unexpected http response code (404) when trying to download https:/
```
[Other Info]
Previously with ubuntu-image 2.x, we can set UBUNTU_
description: | updated |
Changed in ubuntu-image: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Hey Aristo,
Ubuntu-image is preparing the snaps by using the snapd lib. From what I can see in the code, the env var UBUNTU_ STORE_AUTH_ DATA_FILENAME is still used in snapd, so this should still work.
We do not have test on this feature so I cannot confirm there is a bug without testing with a private store.
Are you sure the account you used is authorized to access the private store? Are you sure the macaroon in the store.auth file did not expire?