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

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

Merged

Conversation

jneo8
Copy link
Contributor

@jneo8 jneo8 commented Dec 15, 2023

Fix: #128

Copy link

@Pjack Pjack left a comment

Choose a reason for hiding this comment

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

Please add comment


def install(self) -> None:
for pkg in self.pkgs:
apt.add_package(pkg)
apt_helpers.add_pkg_with_candidate_version(self.pkg)
Copy link

Choose a reason for hiding this comment

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

Please leave a comment . We can use operator-libs-linux after this issue/feature been implemented. Then we don't need to maintain the code in apt-helper.py
canonical/operator-libs-linux#113

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added related issue links in apt_helpers module

@Pjack
Copy link

Pjack commented Dec 15, 2023

Please link this PR to ("Development" at right side panel). Thanks!
#128

@jneo8 jneo8 merged commit 50a93bf into canonical:feat/life-cycle Dec 15, 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]>
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.

Fail strategies: [<HWTool.IPMI: 'ipmi'>] on focal on Dell PowerEdge R650xs
2 participants