Now that dbctl is in place, we should build some automation around automatically upgrading databases (mysql, kernel...).
Ideally the script should:
- Check if the host can be depooled (min_number of hosts in a section)
- No upgrade if there are replicas hanging
- depool
- Stop MySQL
- Upgrade the host
- Reboot it if that's the desire
- Start mysql
- Run mysql_upgrade
- Start replication
- Wait for replication to catch up
- Wait for icinga to go green
- Pool the host back in using the pool cookbook