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

ipmitool execution fails when ipmitool -C 17 required #926

Open
magicite opened this issue Aug 12, 2022 · 1 comment
Open

ipmitool execution fails when ipmitool -C 17 required #926

magicite opened this issue Aug 12, 2022 · 1 comment

Comments

@magicite
Copy link

On Intel S2600WF hardware with updated BMC et al:

1.6603249394315164e+09	ERROR	controllers.Server	failed to check power state	{"server": "/009d38f7-264d-ea11-8397-a4bf0164f174", "error": "run /usr/sbin/ipmitool ipmitool -H 172.30.223.79 -U sidero -I lanplus -E -p 623 raw 0x00 0x01: Error in open session response message : insufficient resources for session\n\nError: Unable to establish IPMI v2 / RMCP+ session\n (exit status 1)"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
	/.cache/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:114
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/.cache/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:311
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/.cache/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
	/.cache/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227

Checking the documentation, these BMCs since 2016 require the "17" cipher.

Trying out the invocation in the pod without (fails) and with (succeeds).

[root@dill04 test (⎈|admin@workload:default)]# kubectl --context admin@bootstrap exec -n sidero-system sidero-controller-manager-7554d4b757-874hn -it -c manager -- /usr/sbin/ipmitool -I lanplus -H 172.30.223.79 -U root -P foo -p 623 raw 0x00 0x01
Error in open session response message : insufficient resources for session

Error: Unable to establish IPMI v2 / RMCP+ session
command terminated with exit code 1
[root@dill04 test (⎈|admin@workload:default)]# kubectl --context admin@bootstrap exec -n sidero-system sidero-controller-manager-7554d4b757-874hn -it -c manager -- /usr/sbin/ipmitool -I lanplus -H 172.30.223.79 -U root -P foo -p 623 -C 17 raw 0x00 0x01
 00 10 40 70

The version of ipmitool in the sidero image and my shell environment are the same, but I don't need to include the -C 17 in my shell environment. So, not sure why my shell version seems to be able to auto detect but the sidero image version does not.

@frezbo
Copy link
Member

frezbo commented Aug 12, 2022

we build ipmitool here, even if the version is same, it's possible we missed some option.

@smira smira self-assigned this Apr 7, 2023
@smira smira removed their assignment Apr 24, 2023
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

No branches or pull requests

3 participants