Comment 0 for bug 2008509

Revision history for this message
Diko Parvanov (dparv) wrote : Juju should restrict upgrade-series prepare if a subordinate charm doesn't support the new series

Using 2.9.38 client,controller and model. Upgrading focal to jammy using upgrade-series prepare with a lldpd subordinate charm started execution of pre-series-upgrade hooks but failed, because that charm doesn't support jammy. All subordinate units + principal units went into an endless loop with error status and couldn't be fixed/resolved.

Juju shouldn't trigger prepare, so pre-checks are necessary and prevent the operator to do it, unless --force is specified.

Now the cloud is in a blocked and charms can't complete with:

nova-compute-kvm-sriov/6 blocked idle 9 10.11.2.184 Ready for do-release-upgrade and reboot. Set complete when finished.
  ceilometer-agent/0 blocked idle 10.11.2.184 Services not running that should be: memcached, ceilometer-agent-compute
  ovn-chassis-sriov/1 blocked failed 10.11.2.184 Ready for do-release-upgrade and reboot. Set complete when finished.

juju upgrade-series 9 prepare jammy -y
ERROR Upgrade series is currently being prepared for machine "9".

juju upgrade-series 9 complete
ERROR machine "9" can not complete, it is either not prepared or already completed