Reviewed: https://review.openstack.org/440278 Committed: https://git.openstack.org/cgit/openstack/charm-percona-cluster/commit/?id=189e5377e0b2917cb663eec3611071e5853707b5 Submitter: Jenkins Branch: stable/17.02
commit 189e5377e0b2917cb663eec3611071e5853707b5 Author: James Page <[email protected]> Date: Tue Feb 28 11:57:43 2017 +0100 Ensure bootstrap-pxc mysqld not in unit cgroup The bootstrap process for percona-xtradb-cluster requires execution of a non-standard init.d scrip target to start the mysqld in wsrep new cluster mode. The processes started by the operation where ending up in the cgroup associated with the Juju unit daemon, which on restart (as a result of a upgrade to juju for example) would result in the mysql daemon being killed and not restarted. Use systemd-run to ensure that the bootstrap-pxc operation ends up in a distinct cgroup so that this does not happen. Drop capture of pty for bootstrap-pxc Use of the '-t' flag to capture the output of the pty results in a non-zero return code in later systemd/Ubuntu releases (specifically zesty). Drop use of this flag for broader compatibility. Change-Id: Iff998c4c23fcad71cffe9bbee60df7f00d2c9893 Closes-Bug: 1664025 Closes-Bug: 1668833 (cherry picked from commit fddc1b78f4251db97129f5246fff92fefb18353f) (cherry picked from commit 1cae1942d451e0daf9681b2c823643c42565bc33) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1664025 Title: juju agent upgrade causes mysqld to stop (part of same systemd cgroup) To manage notifications about this bug go to: https://bugs.launchpad.net/charm-percona-cluster/+bug/1664025/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
