Unable to deploy workloads to lxd cloud added to k8s controller

Bug #1943265 reported by Achilleas Anagnostopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Harry Pidcock

Bug Description

Since 2.9.10 (we have verified that it works in 2.9.9), when lxd is added as a cloud to a k8s controller, Juju is unable to provision lxd containers for workloads.

The logs show the following error:
controller-0: 16:51:44 ERROR juju.apiserver GET(/model/94581850-9042-474d-8ebe-b60dff1f7d21/tools/2.9.10-ubuntu-amd64?%3Amodeluuid=94581850-9042-474d-8ebe-b60dff1f7d21&%3Aversion=2.9.10-ubuntu-amd64&) failed: error fetching agent binaries: cloud environ provider provider.kubernetesEnvironProvider not valid

The Open method in environs/open.go attempts includes a check to ensure that the provided argument implements the environs.CloudEnvironProvider interface. The k8s provider implementation in caas/kubernetes/provider.kubernetesEnvironProvider provides an Open() method with a different erasure for the return value (caas.Broker instead of environs.Environ; also caas.Broker does not not satisfy environs.Environ).

As a result the type check in environs/open.go fails and the above error is emitted to the logs.

Tags: k8s lxd
Revision history for this message
Harry Pidcock (hpidcock) wrote :

Changing to High because if there is already a k8s controller with a lxd cloud that upgrades to 2.9.10+ that could be an issue.

tags: added: k8s lxd
Changed in juju:
importance: Medium → High
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

Marking as critical since it's a regression

Changed in juju:
importance: High → Critical
Changed in juju:
milestone: 2.9.15 → 2.9.16
Harry Pidcock (hpidcock)
Changed in juju:
status: Triaged → In Progress
assignee: nobody → Harry Pidcock (hpidcock)
Revision history for this message
Harry Pidcock (hpidcock) wrote :
Changed in juju:
milestone: 2.9.16 → 2.9.17
Harry Pidcock (hpidcock)
Changed in juju:
milestone: 2.9.17 → 2.9.16
status: In Progress → Fix Released
status: Fix Released → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.