status is active while mysqld is not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Percona Cluster Charm |
New
|
Undecided
|
Unassigned | ||
percona-cluster (Juju Charms Collection) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm running a simple Openstack bundle (see attachment) that uses percona-cluster.
After everything is set up, I can normally access to my setup for a while.
But after a time (or maybe related to the number/type of commands typed?) I can no longer proceed with my `nova` commands:
$ nova list
ERROR (InternalServer
I noticed that on my percona-cluster container, the mysql service is marked as active (yet exited), but there's no longer any mysqld process running:
$ juju status mysql
App Version Status Scale Charm Store Rev OS Notes
mysql 5.6.21-25.8 active 1 percona-cluster jujucharms 246 ubuntu
Unit Workload Agent Machine Public address Ports Message
mysql/0* active idle 0/lxd/1 10.19.0.9 Unit is ready
$ juju ssh mysql/0
ubuntu@
● mysql.service - LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon
Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
Active: active (exited) since Tue 2016-11-22 16:27:25 UTC; 17h ago
Docs: man:systemd-
Process: 12766 ExecStop=
Process: 13381 ExecStart=
Tasks: 0
Memory: 0B
CPU: 0
Nov 22 16:27:24 juju-896271-0-lxd-1 systemd[1]: Starting LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon...
Nov 22 16:27:25 juju-896271-0-lxd-1 mysql[13381]: * Starting MySQL (Percona XtraDB Cluster) database server mysqld
Nov 22 16:27:25 juju-896271-0-lxd-1 mysql[13381]: ...done.
Nov 22 16:27:25 juju-896271-0-lxd-1 systemd[1]: Started LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon.
Nov 23 09:20:50 juju-896271-0-lxd-1 systemd[1]: Started LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon.
ubuntu@
ubuntu 5887 0.0 0.0 12944 784 pts/1 S+ 09:46 0:00 grep --color=auto mysqld
When starting the service, the mysqld process running was like this:
/usr/sbin/mysqld --basedir=/usr --datadir=
If I manually run this command in my container (I don't know how to daemonize it though), I can use my `nova` commands again:
$ nova list
+----+-
| ID | Name | Status | Task State | Power State | Networks |
+----+-
+----+-
Changed in percona-cluster (Juju Charms Collection): | |
status: | New → Invalid |
I think this is related to bug 1664025 where the unit is bootstrapped using the bootstrap-pxc action, but ends up in the wrong cgroup and can be shutdown and not restarted if the juju unit agent is restarted for some reason (a juju upgrade-juju operation for example).
This has just been fixed into the stable percona-cluster charm, so this should now be resolved.