Comment 6 for bug 1890470

Revision history for this message
Aurelien Lourot (aurelien-lourot) wrote :

The file /usr/lib/ocf/resource.d/percona/mysql_monitor has been installed on the mysql/1 unit:

2020-08-05 07:26:29 INFO juju-log Installing /usr/lib/ocf/resource.d/percona/mysql_monitor
...
2020-08-05 07:36:35 INFO juju-log '/usr/lib/ocf/resource.d/percona/mysql_monitor' already exists, skipping

The content of this file shows a very simple implementation for retrieving the meta-data:
https://opendev.org/openstack/charm-percona-cluster/src/branch/master/ocf/percona/mysql_monitor#L610
https://opendev.org/openstack/charm-percona-cluster/src/branch/master/ocf/percona/mysql_monitor#L91

However the following crmd error happened 3 times before the file was installed:

Aug 5 07:25:48 juju-1e2915-4-lxd-13 crmd[14520]: error: Failed to retrieve meta-data for ocf:percona:mysql_monitor

So I think this is normal to have crmd complaining about not being able to find the meta-data up to the point where the mysql_monitor script gets installed. Still digging.