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

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

Closed
przemeklal opened this issue Dec 7, 2023 · 5 comments · Fixed by #143
Closed

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

przemeklal opened this issue Dec 7, 2023 · 5 comments · Fixed by #143
Labels
bug Something isn't working
Milestone

Comments

@przemeklal
Copy link
Member

przemeklal commented Dec 7, 2023

On Dell PowerEdge R650xs running on focal:

unit-hardware-observer-0: 15:43:07 WARNING unit.hardware-observer/0.juju-log Strategy <hw_tools.IPMIStrategy object at 0x7f8268f5ad60> install fail: Could not install package(s) [['freeipmi-tools=1.6.9-2~bpo20.04.1']]: None
unit-hardware-observer-0: 15:43:07 INFO unit.hardware-observer/0.juju-log Fail strategies: [<HWTool.IPMI: 'ipmi'>]

Charm is blocked, all IPMI checks are failing.

Revision 22 of hardware-observer.

@przemeklal
Copy link
Member Author

I ran apt install freeipmi-tools on affected machines manually without any issues, the charm stayed in the blocked state but at least IPMIDCMICommandFailed alerts got resolved.

@Pjack Pjack added the bug Something isn't working label Dec 8, 2023
@jneo8
Copy link
Contributor

jneo8 commented Dec 8, 2023

What is the package version you manually install?

@przemeklal
Copy link
Member Author

@jneo8 1.6.4-3ubuntu1.1 gets installed.

Trying to manually install the same version as the charm results in:

$ sudo apt install freeipmi-tools=1.6.9-2~bpo20.04.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 freeipmi-tools : Depends: freeipmi-common (= 1.6.9-2~bpo20.04.1) but 1.6.4-3ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.

@jneo8
Copy link
Contributor

jneo8 commented Dec 8, 2023

The 1.6.9-2~bpo20.04.1 which be chosen by the apt lib, seems not able to be installed on this machine and it's not the version which normal apt command choose. I suggest we review the behavior of apt lib and to see what can we do to let apt lib choose the same version as apt command.

(I think we are able to reproduce this issue with some old version focal image)

@przemeklal
Copy link
Member Author

If it helps, the "bad" package comes from focal-backports:

$ sudo apt-cache policy freeipmi-tools
freeipmi-tools:
  Installed: 1.6.4-3ubuntu1.1
  Candidate: 1.6.4-3ubuntu1.1
  Version table:
     1.6.9-2~bpo20.04.1 100
        100 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages
 *** 1.6.4-3ubuntu1.1 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.6.4-3ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

jneo8 added a commit to jneo8/hardware-observer-operator that referenced this issue Dec 15, 2023
@jneo8 jneo8 linked a pull request Dec 15, 2023 that will close this issue
@jneo8 jneo8 linked a pull request Dec 15, 2023 that will close this issue
@jneo8 jneo8 added this to the 23.10.2 milestone Dec 15, 2023
jneo8 added a commit that referenced this issue Dec 15, 2023
* fix: apt install freeipmi-tools failed on focal

Fix: #128
@jneo8 jneo8 closed this as completed in f064828 Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants