Queens: Updating mariadb-server package on the host disrupts containerized mysql service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Damien Ciabrini |
Bug Description
Spotted during a minor update of an HA overcloud.
If mariadb-server rpms are installed on the host, and packages mariadb-server* can be upgraded during the update_tasks, the rpm scriptlets will change the ownership of /var/lib/mysql to mysql user from the host (uid=27) in place of kolla's mysql user (uid=42434).
This confuses the containerized server, pacemaker detects it and tries to restart it, without being able to do so, because ownership is not changed unless the entire container is restarted.
Failed Resource Actions:
* rabbitmq_
last-
* galera_start_0 on galera-bundle-0 'insufficient privileges' (4): call=12, status=complete, exitreason=
last-
Fix proposed to branch: stable/train /review. opendev. org/c/openstack /tripleo- heat-templates/ +/814532
Review: https:/