2.9 controller and 2.8 model - cannot provision lxd containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
bootstrap a 2.8 controller on aws or maas or openstack (or ...) and add a model
upgrade the controller to 2.9
it's not possible to then provision a container on a machine
$ juju add-machine lxd
$ juju status
...
0/lxd/0 down pending bionic unknown OS for series: "ubuntu"
...
The root cause is a 2.8 bug in the lxd borker which provisions containers. The series to provision is passed in via the instance config args. But we ignore that and instead get the series from the tools metadata. A 2.9 controller populates tools metadata with os type, not series. It wouldn't be an issue if the 2.8 code did not have the bug, and this has already been fixed in 2.9
However, we need to support older, buggy juju releases so a server side tweak to FindTools() is needed. There's already 2.8 compatibility added for upgrade-model - that needs to be extended for this case also.
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.9.1 → 2.9.2 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/juju/ juju/pull/ 12943