juju / python-libjuju

Python library for the Juju API
Apache License 2.0
61 stars 102 forks source link

Can't deploy ubuntu@24.04 using add_machine #1229

Open gboutry opened 2 days ago

gboutry commented 2 days ago

Description

Model.add_machine takes only a series parameters, when using jammy, everything works as expected, but when using noble, the machine is still deployed as jammy

https://github.com/juju/python-libjuju/blob/f87b50c9dcce723443e0d416b2ca2fea1adfc606/juju/model.py#L1469

Urgency

Blocker for our release

Python-libjuju version

3.6.0.0

Juju version

3.6.0

Reproduce / Test

In a machine model supporting adding machines:

MAAS example

name = 'system-id=weBqr6'
await model.add_machine(spec=model.uuid + ":" + name, series="noble")
ubuntu@reproducer-gboutry-project-bastion:~$ juju machines -m openstack-machines
Machine  State    Address       Inst id                     Base          AZ       Message
0        started  10.149.73.19  reproducer-gboutry-hosts-0  ubuntu@22.04  default  Deployed
1        started  10.149.73.20  reproducer-gboutry-hosts-1  ubuntu@22.04  default  Deployed
2        started  10.149.73.21  reproducer-gboutry-hosts-2  ubuntu@22.04  default  Deployed
gboutry commented 2 days ago

This might be an issue with the whole series to base migration?

gboutry commented 2 days ago

Using the base ubuntu@24.04 instead of series nobles in series argument does not work either.