Skip to content
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

Separate enabling logic of individual ipmi services monitoring #123

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

sudeephb
Copy link
Contributor

@sudeephb sudeephb commented Dec 4, 2023

Fixes: #106

@sudeephb sudeephb requested a review from a team as a code owner December 4, 2023 16:19
@Pjack
Copy link

Pjack commented Dec 5, 2023

Is it related to any bug?

tests/unit/test_hw_tools.py Outdated Show resolved Hide resolved
tests/unit/test_exporter.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jneo8 jneo8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add related issue in the pr description.

src/hw_tools.py Show resolved Hide resolved
src/hw_tools.py Show resolved Hide resolved
tests/unit/test_exporter.py Outdated Show resolved Hide resolved
@sudeephb sudeephb requested review from Pjack and jneo8 December 5, 2023 17:09
@sudeephb sudeephb requested a review from Pjack December 6, 2023 04:23
Copy link
Contributor

@dashmage dashmage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✔️

@sudeephb sudeephb merged commit 4dfc192 into canonical:feat/life-cycle Dec 6, 2023
jneo8 added a commit that referenced this pull request Dec 25, 2023
* Enhance charm's life cycle. (#119)

* Enhance charm's life cycle.

* Remove unused property.

* Cherry-pick from 7513f18, and fix
linting.

Co-authored-by: jneo8 <[email protected]>

Continue to remove refactoring code from the previous branch, and fix
status handling.

* Move "exporter health check failed and restart" logic into charm.py

* add resource check in update_status event, and change Error -> Blocked

* Fix typo

* Add unittests.

* Update unit test docstring and name.

* - Used `parameterized`
- Fixed some warning message in unittest
- Patched exporter retry constants

* Separate enabling logic of individual ipmi services monitoring (#123)

* Separate enabling logic of individual ipmi services monitoring

* Add and refactor unit tests

* Fix/resoure install failed (#135)

* fix: lifecycle bug fix

- Remove install retry
- Add cache to hw_white_list to avoid repeat calls
- Fix missing resource failed msg in update status hook

* fix: Remove resource_failed_msg

* fix: Fix type checking comments and defer relation_join hook if checking not pass

* fix: Missing return after grafana-agent relation join event defer

* fix: Force re-config exporter when upgrade (#140)

* refactor: Move restart exporter logic as single function (#139)

* Fix/skip remove freeipmi tools (#138)

* fix: Skip removing pkg on IPMI strategy

Skip removing package because we afraid this cause
dependency error for any other services on the same machine.

* fix: Skip remove ssacli pkg and repo

* test: Fix failed functional test (#141)

Fix failure functional test caused because of life-cycle changing.

* style: Linter fix (#142)

* fix: apt install freeipmi-tools failed on focal (#143)

* fix: apt install freeipmi-tools failed on focal

Fix: #128

---------

Co-authored-by: Ray Chan <[email protected]>
Co-authored-by: Sudeep Bhandari <[email protected]>
@Pjack Pjack linked an issue Dec 26, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ipmi_dcmi_command_success is always 0 on Huawei 2288H V5 (Purley)
4 participants