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
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
Description
Model.add_machine takes only a
series
parameters, when usingjammy
, everything works as expected, but when usingnoble
, the machine is still deployed as jammyhttps://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