juju bootstrap --agent-version=2.2.6
juju add-model foo
juju deploy cs:ubuntu
juju deploy cs:telegraf
juju add-relation ubuntu telegraf
juju upgrade-juju -m controller
# Notice bug #1737058 and decide to upgrade unit agents to see if it's a compat issue.
juju upgrade-juju
# Where are my unit agents
unit-ubuntu-0: 06:49:36 DEBUG juju.worker.dependency "uniter" manifold worker stopped: failed to initialize uniter for "unit-ubuntu-0": cannot create relations: cannot get status: relation not found
unit-ubuntu-0: 06:49:36 ERROR juju.worker.dependency "uniter" manifold worker returned unexpected error: failed to initialize uniter for "unit-ubuntu-0": cannot create relations: cannot get status: relation not found
Relation status was introduced in https:/ /github. com/juju/ juju/commit/ fe60b166756826f c982762c1dee84e 272a252483, as part of the CMR work.
In State.Relation. SetStatus, there's an assumption that a relation already has a status: https:/ /github. com/juju/ juju/blob/ 2.3/state/ relation. go#L125. No upgrade step was written to set a status for existing relations.