upgrading 2.8.10 to 2.9.0 does a 'double upgrade'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Medium
|
Unassigned |
Bug Description
I was testing upgrading from 2.8.10 to 2.9.0 in HA with a lot of units. I saw this in the debug logs:
2021-05-07 20:48:30 INFO juju.worker.
ERROR must restart: an agent upgrade is available
2021-05-07 20:48:31 INFO juju.cmd supercommand.go:56 running jujud [2.9.0 0 ac860f7db429627
and then later
2021-05-07 20:49:58 INFO juju.cmd.jujud errors.go:45 upgraded from 2.9.0-bionic-amd64 to 2.9.0-ubuntu-amd64 ("https:/
ERROR must restart: an agent upgrade is available
2021-05-07 20:49:58 INFO juju.cmd supercommand.go:56 running jujud [2.9.0 0 ac860f7db429627
(note that both are running the exact same hash).
This is because 2.8 thinks in terms of series, and tells the agent to upgrade to a particular series, while 2.9 thinks in terms of OS and so wants the agent to match a known os.
But doing down time twice during the upgrade path is probably not ideal.
Note that during this time it was bouncing unit agents: connection request_ notifier. go:96 agent login: unit-ul18-1 for 7c9cdc76- 95a7-4eae- 80e0-6051207a6f ef connection request_ notifier. go:125 agent disconnected: unit-ul18-1 for 7c9cdc76- 95a7-4eae- 80e0-6051207a6f ef connection request_ notifier. go:96 agent login: unit-ul19-1 for 7c9cdc76- 95a7-4eae- 80e0-6051207a6f ef connection request_ notifier. go:125 agent disconnected: unit-ul19-1 for 7c9cdc76- 95a7-4eae- 80e0-6051207a6f ef connection request_ notifier. go:96 agent login: unit-ul51-0 for 7c9cdc76- 95a7-4eae- 80e0-6051207a6f ef connection request_ notifier. go:125 agent disconnected: unit-ul51-0 for 7c9cdc76- 95a7-4eae- 80e0-6051207a6f ef
2021-05-07 20:49:41 INFO juju.apiserver.
2021-05-07 20:49:41 INFO juju.apiserver.
2021-05-07 20:49:42 INFO juju.apiserver.
2021-05-07 20:49:42 INFO juju.apiserver.
2021-05-07 20:49:42 INFO juju.apiserver.
2021-05-07 20:49:42 INFO juju.apiserver.
It may be that we were just denying them because we were in the process of upgrading.