cluster-status: "null" with cluster-status action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL InnoDB Cluster Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
After reboot of units one by one, MySQL cluster got into unhealthy status. However, the cluster-status didn't give any informative messages except for cluster-status: "null" which is not so helpful in this context.
$ juju run-action mysql-innodb-
unit-mysql-
UnitId: mysql-innodb-
id: "390"
results:
cluster-status: "null"
status: completed
timing:
completed: 2020-12-08 07:35:10 +0000 UTC
enqueued: 2020-12-08 07:34:27 +0000 UTC
started: 2020-12-08 07:34:41 +0000 UTC
mysql-innodb-
filebeat/107 active idle 10.130.11.56 Filebeat ready.
logrotate/95 active idle 10.130.11.56 Unit is ready.
nrpe-container/68 active idle 10.130.11.56 icmp,5666/tcp ready
telegraf/107 active idle 10.130.11.56 9103/tcp Monitoring mysql-innodb-
mysql-innodb-
filebeat/93 active idle 10.130.12.59 Filebeat ready.
logrotate/55 active idle 10.130.12.59 Unit is ready.
nrpe-container/54 active idle 10.130.12.59 icmp,5666/tcp ready
telegraf/33 active idle 10.130.12.59 9103/tcp Monitoring mysql-innodb-
mysql-innodb-
filebeat/92 active idle 10.130.13.133 Filebeat ready.
logrotate/64 active idle 10.130.13.133 Unit is ready.
nrpe-container/55 active idle 10.130.13.133 icmp,5666/tcp ready
telegraf/32 active idle 10.130.13.133 9103/tcp Monitoring mysql-innodb-
unit-mysql- innodb- cluster- 0: 07:33:39 INFO unit.mysql- innodb- cluster/ 0.juju- log DEPRECATION WARNING: Function action_set is being removed : moved to function_set() innodb- cluster- 0: 07:34:09 ERROR unit.mysql- innodb- cluster/ 0.juju- log Cluster is unavailable: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
unit-mysql-
Traceback (most recent call last):
File "<string>", line 2, in <module>
SystemError: RuntimeError: Dba.get_cluster: This function is not available through a session to a standalone instance (metadata exists, instance belongs to that metadata, but GR is not active)
unit-mysql- innodb- cluster- 0: 07:34:09 INFO unit.mysql- innodb- cluster/ 0.juju- log DEPRECATION WARNING: Function action_set is being removed : moved to function_set() innodb- cluster- 0: 07:34:40 ERROR unit.mysql- innodb- cluster/ 0.juju- log Cluster is unavailable: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
unit-mysql-
Traceback (most recent call last):
File "<string>", line 2, in <module>
SystemError: RuntimeError: Dba.get_cluster: This function is not available through a session to a standalone instance (metadata exists, instance belongs to that metadata, but GR is not active)
unit-mysql- innodb- cluster- 0: 07:34:40 INFO unit.mysql- innodb- cluster/ 0.juju- log DEPRECATION WARNING: Function action_set is being removed : moved to function_set() innodb- cluster- 0: 07:35:09 ERROR unit.mysql- innodb- cluster/ 0.juju- log Cluster is unavailable: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
unit-mysql-
Traceback (most recent call last):
File "<string>", line 2, in <module>
SystemError: RuntimeError: Dba.get_cluster: This function is not available through a session to a standalone instance (metadata exists, instance belongs to that metadata, but GR is not active)
unit-mysql- innodb- cluster- 0: 07:35:09 INFO unit.mysql- innodb- cluster/ 0.juju- log DEPRECATION WARNING: Function action_set is being removed : moved to function_set() innodb- cluster- 0: 07:35:10 INFO unit.mysql- innodb- cluster/ 0.juju- log cluster:30: Reactive main running for hook cluster- relation- changed innodb- cluster- 0: 07:35:12 INFO unit.mysql- innodb- cluster/ 0.juju- log cluster:30: Initializing Snap Layer innodb- cluster- 0: 07:35:12 WARNING unit.mysql- innodb- cluster/ 0.cluster- relation- changed All snaps up to date. innodb- cluster- 0: 07:35:12 INFO unit.mysql- innodb- cluster/ 0.juju- log cluster:30: Coordinator: Initializing coordinator layer innodb- cluster- 0: 07:35:12 INFO unit.mysql- innodb- cluster/ 0.juju- log cluster:30: Initializing Leadership Layer (is leader) innodb- cluster- 0: 07:35:12 INFO unit.mysql- innodb- cluster/ 0.juju- log cluster:30: Invoking reactive handler: reactive/ mysql_innodb_ cluster_ handlers. py:274: db_router_ respond innodb- cluster- 0: 07:35:41 ERROR unit.mysql- innodb- cluster/ 0.juju- log cluster:30: Cluster is unavailable: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
unit-mysql-
unit-mysql-
unit-mysql-
unit-mysql-
unit-mysql-
unit-mysql-
unit-mysql-
Traceback (most recent call last):
File "<string>", line 2, in <module>
SystemError: RuntimeError: Dba.get_cluster: This function is not available through a session to a standalone instance (metada...