canonical / hardware-observer-operator

A charm to setup prometheus exporter for IPMI, RedFish and RAID devices from different vendors.
Apache License 2.0
7 stars 14 forks source link

Exporters fail to install #253

Closed sudeephb closed 3 weeks ago

sudeephb commented 1 month ago

On the edge channel, exporters fail to install. The install method should be triggered on installation here. The config files are present, but the service files are not. Manually adding the same exporter.install() logic on another hook(eg. config-changed) installs the exporters successfully:

for exporter in self.exporters:
    exporter.install()

So there's nothing wrong with the installation logic inside the exporter service objects themselves.

jneo8 commented 1 month ago

Can you provide more details why the service file is not not there why first time install?

Also trigger exporter installation in another hook will break our life-cycle design, we should figure out why it's failing.

sudeephb commented 1 month ago

While I'm still not sure of the exact cause, this seems like a race condition somewhere, as it doesn't occur everytime. I ran the hardware-dependent tests multiple times today, but this issue hasn't appeared at all.

Pjack commented 3 weeks ago

We cannot reproduce it again so we close it after 2 weeks waiting.