Fail to connect to MySQL after upgrade that includes PID change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Router Charm |
Fix Committed
|
Undecided
|
Rodrigo Barbieri |
Bug Description
Opening a new bug to track the current state of the charm for the purpose of fixing the original issue [1].
Basically when upgrading from an older version of the charm (such as charm store revision 6) that does not include commit [2], which updates the /etc/systemd/
After the many recently-landed patches up to [3], what happens now is that the config_changed hook is invoked at [4], before upgrade-charm is run, and then it writes a new config file and attempts to restart at [5], which does not succeed because upgrade-charm hasn't run and the systemd definition was not updated yet.
What needs to happen is that the restart [5] is skipped, so upgrade_charm runs first, then [5] runs. Aside from the PID change, the currently flow is also not correct as [6] makes adjustments to the config and needs to be run before, and it is currently running after [5].
[1] https:/
[2] https:/
[3] https:/
[4] https:/
[5] https:/
[6] https:/
Changed in charm-mysql-router: | |
assignee: | nobody → Rodrigo Barbieri (rodrigo-barbieri2010) |
tags: | added: sts |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- mysql-router/ +/848673
Review: https:/