Comment 1 for bug 1714546

Revision history for this message
Jacek Nykis (jacekn) wrote :

Storage hooks run before install so we will always hit this when using juju storage.

It is a bit tricky because we set "prometheus.do-install" state when "install" hooks is triggered but we also gate "check_reconfig_prometheus" on @when_not('prometheus.do-install')

So what I think is happening is that storage hooks run, set prometheus.do-check-reconfig state which then triggers check_reconfig_prometheus function _before_ install hook has time to set "prometheus.do-install".

I _think_ the fix is to simply remove "set_state('prometheus.do-check-reconfig')" from the "configure_storage()" function but please double check my logic.