juju upgrade-series prepare $MACHINE bionic will run and hang if already on Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Joseph Phillips |
Bug Description
While performing series upgrades we accidentally ran juju upgrade-series prepare $machine bionic to a host which had already been upgraded to Bionic.
Juju started running the preparation hooks, but ultimately hung.
I can see from logs that it's trying and failing to do "lstat /var/lib/
The call to upgrade-series prepare should first verify what series the current OS is on and error out without performing any actions if its the same as the specified series.
Snip from /var/log/
2020-04-01 16:06:03 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 DEBUG juju.service discovery.go:64 discovered init system "systemd" from series "bionic"
2020-04-01 16:06:05 INFO juju.worker.
2020-04-01 16:06:05 DEBUG juju.service discovery.go:64 discovered init system "systemd" from series "bionic"
2020-04-01 16:06:05 DEBUG juju.service discovery.go:64 discovered init system "systemd" from series "bionic"
2020-04-01 16:06:05 DEBUG juju.worker.
2020-04-01 16:06:05 ERROR juju.worker.
ectory
2020-04-01 16:06:05 DEBUG juju.worker.
lstat /var/lib/
/workspace/
/workspace/
/workspace/
/workspace/
/workspace/
/workspace/
/workspace/
Changed in juju: | |
milestone: | none → 2.8.1 |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in juju: | |
assignee: | nobody → Joseph Phillips (manadart) |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I tried this on 2.7.6 and I do not observe this.
$ juju upgrade-series --yes 7 prepare bionic
ERROR machine-7 is already running series bionic