commit 189e5377e0b2917cb663eec3611071e5853707b5
Author: James Page <email address hidden>
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)
Reviewed: https:/ /review. openstack. org/440278 /git.openstack. org/cgit/ openstack/ charm-percona- cluster/ commit/ ?id=189e5377e0b 2917cb663eec361 1071e5853707b5
Committed: https:/
Submitter: Jenkins
Branch: stable/17.02
commit 189e5377e0b2917 cb663eec3611071 e5853707b5
Author: James Page <email address hidden>
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: Iff998c4c23fcad 71cffe9bbee60df 7f00d2c9893 97129f5246fff92 fefb18353f) af9681b2c823643 c42565bc33)
Closes-Bug: 1664025
Closes-Bug: 1668833
(cherry picked from commit fddc1b78f4251db
(cherry picked from commit 1cae1942d451e0d