Commit 18917b4
authored
Merge pull request #1063 from jack-w-shaw/JUJU-6223_add_noble_support
#1063
The pylibjuju client hardcodes a mapping between series codename and the base channel.
Noble was absent from this mapping, meaning pylibjuju doesn't know know to deploy to noble.
Add noble to this mapping.
After noble, we will only support deploying by base. Noble will be the last series added to this map
Fixes: #1062
#### QA Steps
Download a local charm `juju download ubuntu`, unzip, and amend the `manifest,yaml` to support ubuntu@24.04
Place the charm dir at `./ubuntu`
You will see
```
$ cat ./ubuntu/manifest.yaml
bases:
- architectures:
- amd64
channel: '20.04'
name: ubuntu
- architectures:
- amd64
channel: '22.04'
name: ubuntu
- architectures:
- amd64
channel: '24.04'
name: ubuntu
```
Then:
```
$ juju bootstrap lxd lxd
$ juju add-model
$ python -m asyncio
>>> from juju.model import Model
>>> m = Model()
>>> await m.connect()
>>> await m.deploy("./ubuntu", series="noble")
<Application entity_id="ubuntu">
>>> exit
(wait)
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
m lxd localhost/localhost 3.6-beta1.1 unsupported 12:03:15+01:00
App Version Status Scale Charm Channel Rev Exposed Message
ubuntu 24.04 active 1 ubuntu 0 no
Unit Workload Agent Machine Public address Ports Message
ubuntu/0* active idle 0 10.219.211.77
Machine State Address Inst id Base AZ Message
0 started 10.219.211.77 juju-742671-0 ubuntu@24.04 Running
```
All CI tests need to pass.3 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
440 | 449 | | |
441 | 450 | | |
442 | 451 | | |
| |||
0 commit comments