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

warewulf-ipmi-ohpc-3.7pre-30.1.x86_64 not compiled with "lanplus" interface #570

Closed
truatpasteurdotfr opened this issue Oct 11, 2017 · 9 comments
Milestone

Comments

@truatpasteurdotfr
Copy link

[tru@admin ~]$ /usr/libexec/warewulf/ipmitool -I lanplus
Error loading interface lanplus
[tru@admin ~]$ rpm -qf /usr/libexec/warewulf/ipmitool
warewulf-ipmi-ohpc-3.7pre-30.1.x86_64

as a consequence, one needs to force the IPMI protocol to "lan" (while the default being "lanplus")
wwsh ipmi set \* --proto=lan

@jmstover
Copy link

Err... I don't think we're distributing it that way.

I don't have a current build, but I'll try to get one done to see if there was a change to IPMI I missed.

Did you build this from source? If so was openssl-devel on the node? That's required to build lanplus.

# /usr/libexec/warewulf/ipmitool -H 10.3.124.11 -U root -I lanplus power status
Password: 
Chassis Power is on
# strings /usr/libexec/warewulf/ipmitool | grep 'lanplus_' 
ipmi_lanplus_send_payload
ipmi_lanplus_rakp3
ipmi_lanplus_build_v2x_msg
  [ ... ]

@truatpasteurdotfr
Copy link
Author

Thanks, I was surprised to see that too (trying ohpc), instead of doing it myself...

[tru@admin ~]$ strings /usr/libexec/warewulf/ipmitool | grep 'lanplus_' 
[tru@admin ~]$ rpm -qif /usr/libexec/warewulf/ipmitool 
Name        : warewulf-ipmi-ohpc
Version     : 3.7pre
Release     : 30.1
Architecture: x86_64
Install Date: Sat 07 Oct 2017 04:24:09 PM EDT
Group       : ohpc/provisioning
Size        : 5250161
License     : US Dept. of Energy (BSD-like)
Signature   : RSA/SHA256, Thu 23 Mar 2017 07:19:02 PM EDT, Key ID c46807ff26ce6884
Source RPM  : warewulf-ipmi-ohpc-3.7pre-30.1.src.rpm
Build Date  : Thu 23 Mar 2017 07:18:52 PM EDT
Build Host  : ohpc1
Relocations : (not relocatable)
Vendor      : obs://build.openhpc.community/OpenHPC:1.3:Factory
URL         : http://warewulf.lbl.gov/
Summary     : IPMI Module for Warewulf
Description :
Warewulf >= 3 is a set of utilities designed to better enable
utilization and maintenance of clusters or groups of computers.

This is the IPMI module package.  It contains Warewulf modules for
adding IPMI functionality.
[tru@admin ~]$ rpm --verify -q warewulf-ipmi-ohpc
[tru@admin ~]$ echo $?
0

@truatpasteurdotfr
Copy link
Author

@jmstover
Copy link

Well... how ipmitool package is built, running the ./configure script, I get in the output:

Interfaces
  lan     : yes
  lanplus : yes
  open    : yes
  [ ... ]

I'm guessing you didn't have openssl-devel on system you built on, so the lanplus interface couldn't be built.

@jmstover
Copy link

does not have the BuildRequires openssl-devel line ;P

It's not required to build it. Only if you want the lanplus interface. So, it's "technically" correct without it. ;)

@truatpasteurdotfr
Copy link
Author

I didn't build that rpm, that's the one provided by openhpc... built by them on obs.

[tru@admin shm]$ wget http://build.openhpc.community/OpenHPC:/1.3/CentOS_7/x86_64/warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm
--2017-10-11 14:58:02--  http://build.openhpc.community/OpenHPC:/1.3/CentOS_7/x86_64/warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm
Resolving build.openhpc.community (build.openhpc.community)... 52.88.216.145
Connecting to build.openhpc.community (build.openhpc.community)|52.88.216.145|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1742436 (1.7M) [application/x-rpm]
Saving to: ‘warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm’

100%[===================================================================================================================================================================================================>] 1,742,436   1.62MB/s   in 1.0s   

2017-10-11 14:58:04 (1.62 MB/s) - ‘warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm’ saved [1742436/1742436]

[tru@admin shm]$ rpm -K warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm
warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm: rsa sha1 (md5) pgp md5 OK
[tru@admin shm]$ rpm2cpio warewulf-ipmi-ohpc-3.7pre-30.1.x86_64.rpm| (cd /dev/shm && cpio -iudv ./usr/libexec/warewulf/ipmitool); md5sum /dev/shm/usr/libexec/warewulf/ipmitool; strings /dev/shm/usr/libexec/warewulf/ipmitool |grep lanplus_
./usr/libexec/warewulf/ipmitool
10260 blocks
499ed08f775d7e2cc9f8eb28bfde618a  /dev/shm/usr/libexec/warewulf/ipmitool

-> no lanplus

@koomie
Copy link
Contributor

koomie commented Oct 11, 2017

We could presumably add the BuildRequires openssl-devel to the ohpc build if that helps. @crbaird - any issues you can think of here in doing that?

@jmstover
Copy link

Ahhh....

@crbaird @koomie Can openssl-devel be added onto the build system? That or the ./configure script from ipmitool that Warewulf ships with isn't finding it.

@crbaird
Copy link
Member

crbaird commented Oct 25, 2017

Tests passing in CI. Will be included in v1.3.3 release.

@crbaird crbaird closed this as completed Oct 25, 2017
@crbaird crbaird added this to the 1.3.3 milestone Oct 26, 2017
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

4 participants