juju assumes lxd always available on machine nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Joseph Phillips |
Bug Description
When the machine agent starts up, it records in state the supported containers (lxd, kvm). This is used by the container broker worker to determine if the lxd infrastructure should be initialised.
It seems we are hard coding that lxd is always supported
supportsContainers := container.
if supportsContainers {
supportedCont
}
^^^ ContainersSuppo
This we always attempt to start the LXD broker. But if LXD is not installed, we get an error
ERROR juju.worker.
Over and over again in the logs. Not sure without looking deeper if this bounces the whole agent or not. But if it does, it would disrupt everything.
See bug 1984060. There's symptoms of leadership claims erroring out - maybe the agent bounce leads to leadership churn which can't keep up. Needs investigation.
We should not claim lxd support for a machine unless lxd is installed.
Changed in juju: | |
status: | Triaged → In Progress |
assignee: | nobody → Joseph Phillips (manadart) |
Changed in juju: | |
status: | In Progress → Incomplete |
Changed in juju: | |
status: | Incomplete → In Progress |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I believe this should be fixed with: /bugs.launchpad .net/juju/ +bug/1934176
https:/
If you look at: /github. com/juju/ juju/pull/ 14381
https:/
You see that the error annotation no longer exists.
There will however be problems if someone attempts to provision a LXD container on such a host, as HasSupport will still return true. I will look into this part.