default bases don't include jammy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Fix Released
|
High
|
Guillermo Gonzalez |
Bug Description
We are noticing in Juju 3.0 that when deploying certain charms, they default to focal instead of jammy. This is strange because deployed machines default to jammy on Juju 3.0.
We've looked into it and think there's a bug in the Charmhub API. We're making a request to the API with
```
"base":
```
to try and get the supported bases for the charm. For some reason, it's not returning jammy in the list of default bases, even though the charm supports jammy (and Charmhub info API says that it supports jammy too).
```
"default-
```
We've noticed this with both the `juju-dashboard` charm and the `tiny-bash` charm. The logs below should give some more context with our request and the response from Charmhub.
```
machine-0: 16:12:30 TRACE juju.apiserver.
Host: api.charmhub.io
Accept: application/json
Content-Type: application/json
User-Agent: Juju/3.0.1
{"context"
machine-0: 16:12:30 TRACE juju.apiserver.
Content-Length: 531
Content-Type: application/json
Date: Tue, 01 Nov 2022 15:12:30 GMT
Server: gunicorn/20.0.4
Snap-Store-Version: 50
X-Request-Id: 3EA8230BD3E40A8
X-Vcs-Revision: 9a1852f6
X-View-Name: snapdevicegw.
{"error-
```
Changed in snapstore-server: | |
status: | Confirmed → In Progress |
assignee: | nobody → Guillermo Gonzalez (verterok) |
Changed in snapstore-server: | |
status: | In Progress → Fix Released |
I’m fairly sure it’s going to be the hardcoded list of LTSes in (devicegw? snaprevs?) which considers Focal the most recent LTS we give out. We need to clear the decision with the Juju team but the fix is likely going to be adding Jammy to that list and making Jammy the preferred/default Ubuntu release / base.