canonical / openstack-exporter-operator

The openstack-exporter-operator is a machine charm for openstack-exporter.
https://charmhub.io/openstack-exporter
Apache License 2.0
1 stars 6 forks source link

Need to check if snap service is active after machine reboot #64

Closed jneo8 closed 2 months ago

jneo8 commented 2 months ago

Since we use zaza for functional test. It's not able to reboot the unit during test running.

What we can do are

jneo8 commented 2 months ago

Hi @przemeklal,

Currently the service will be enabled on config-change hook and the restart-condition is on-abnormal. We don't have any restart logic in the charm, we think it fine to control by snap service itself. Is it good for you?

jneo8 commented 2 months ago

Because the service life-cycle is control by snap. The service will be active if it's active before reboot.

The situation service is not active may be a bug inside exporter itself.