charm fails to query mysql, mysql running leader-settings-changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnocchi Charm |
New
|
Undecided
|
Unassigned | ||
OpenStack Keystone Charm |
New
|
Undecided
|
Unassigned |
Bug Description
One of three gnocchi units went into an error state because it lost connection to mysql during a query. At the same time, the mysql-innodb-
Im not sure if either gnocchi or mysql-innodb-router should defer/retry the request till the hook has finished, or if mysql-innodb-
Gnocchi_0 upgrade log shows:
2021-05-19 13:31:59,256 [113103] CRITICAL root: Traceback (most recent call last):
....
File "/usr/lib/
packet_header = self._read_bytes(4)
File "/usr/lib/
raise err.Operational
sqlalchemy.
[SQL: SHOW VARIABLES LIKE 'sql_mode']
(Background on this error at: http://
and at the same time mysql-innodb-
2021-05-19 13:31:58 DEBUG jujuc server.go:211 running hook tool "network-get" for mysql-innodb-
2021-05-19 13:31:59 DEBUG jujuc server.go:211 running hook tool "juju-log" for mysql-innodb-
2021-05-19 13:31:59 ERROR juju-log Failed checking cluster status: Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory
Traceback (most recent call last):
File "<string>", line 3, in <module>
mysqlsh.DBError: MySQL Error (1053): Cluster.status: Failed to execute query on Metadata server 192.168.
2021-05-19 13:31:59 DEBUG jujuc server.go:211 running hook tool "status-set" for mysql-innodb-
2021-05-19 13:31:59 DEBUG jujuc server.go:211 running hook tool "is-leader" for mysql-innodb-
2021-05-19 13:31:59 DEBUG jujuc server.go:211 running hook tool "is-leader" for mysql-innodb-
and full test run at:
https:/
Another instance of this bug here: https:/ /solutions. qa.canonical. com/testruns/ testRun/ fccf0a28- 3601-4aaf- 99ee-33e7112c5a b3
Crashdump: https:/ /oil-jenkins. canonical. com/artifacts/ fccf0a28- 3601-4aaf- 99ee-33e7112c5a b3/generated/ generated/ openstack/ juju-crashdump- openstack- 2021-08- 14-08.14. 40.tar. gz
Bundle: https:/ /oil-jenkins. canonical. com/artifacts/ fccf0a28- 3601-4aaf- 99ee-33e7112c5a b3/generated/ generated/ openstack/ bundle. yaml