And the APIWorker call actually starts the state worker *when it sees we need a state connection after reading the API*.
Which means that upgrading juju 1.10 => 1.11 will spam the log file for machine-0, but fail to start any actual worker tasks for all the other machine agents.
I just realized things are probably worse than we expected.
Specifically, on machine-0 being unable to connect the API is bad, but it doesn't stop any of the actual workers.
However, the code in MachineAgent is:
if a.MachineId == "0" { rker() StartWorker( "api", func() (worker.Worker, error) { ensureStateWork er)
...
ensureStateWo
}
a.runner.
return a.APIWorker(
}
And the APIWorker call actually starts the state worker *when it sees we need a state connection after reading the API*.
Which means that upgrading juju 1.10 => 1.11 will spam the log file for machine-0, but fail to start any actual worker tasks for all the other machine agents.