-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hardware-exporter service wasn't installed by the charm #281
Comments
The work-around is to force execute the install hook again with The part make me confuse is that the |
From the log shared internally, the install hook -> config_changed hook caused the issue (the charm continue to run the config hook even though the install is not successful), but it could have been prevented by |
Fixing #203 may also help here |
iiuc the current approach is to not install the exporter unless all the resources we expect are available. While I think that's a valid approach, given that attaching resources triggers a config_changed event, it would seem cleaner to me if we were to segment the lifecycle in:
Another approach would possibly be making |
I agree with @chanchiwai-ray 's guess. Furthermore, based on the description, it seems we can easily reproduce this issue when the resource is unavailable. Please ensure this case is covered in the functional test cases when we address this issue. Regarding @aieri 's idea, it seems feasible and it's a clear strategy. But I am a bit concerned that we might be doing too much in the _on_config_changed function, which is not intuitive given its name. Additionally, there is an implicit assumption that the 'config_change' event must be sent out after the installation event. Anyway, we can discuss that later. I suggest we fix the issue first and then refactor under the stable state. |
The hardware-exporter service was not installed and config-changed hooks failed.
Versions: latest/edge rev 86
First, I tried with latest/stable rev 84 and ran into the same problem.
Hardware: Lenovo ThinkSystem SR665
Steps:
The text was updated successfully, but these errors were encountered: