Home · About · Download · Documentation · Getting Help · Google+

Ticket #43 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Can't set IPMI password with ipmi command

Reported by: ajdecon Owned by: gmk
Priority: major Milestone: Feature Update 3.2
Component: general Version:
Keywords: ipmi Cc:

Description

Warewulf r664 on CentOS 6.0. Was previously on release 3.0, uninstalled Warewulf packages and installed r664. (In-place upgrade failed. MySQL DB is still the 3.0 database.)

When trying to set the IPMI password on a node, the password is either set incorrectly or not set at all:

Warewulf> ipmi set wd0032 --ipaddr=10.106.7.32 --netmask=255.255.0.0 --username=root --password=fakepw
Are you sure you want to make the following changes to 1 node(s):

     SET: IPMI_IPADDR(wd0032)  = 10.106.7.32
     SET: IPMI_NETMASK         = 255.255.0.0
     SET: IPMI_USERNAME        = root
     SET: IPMI_PASSWORD        = root

Warewulf> object wd0032 -p :all
#### wd0032 ###################################################################
      15: IPMI_PASSWORD = root
      15: IPMI_USERNAME = root
      15: KARGS      = console=ttyS1,57600 quiet                 
      15: BOOTSTRAPID = 45
      15: NAME       = wd0032
      15: VNFSID     = 12
      15: NETDEVS    = netdev(NAME=eth0,IPADDR=10.8.7.32,HWADDR=00:15:c5:ef:78:db),netdev(NAME=ib0,IPADDR=10.208.7.32)
      15: IPMI_NETMASK = 255.255.0.0
      15: CLUSTER    = yetagain
      15: IPMI_IPADDR = 10.106.7.32
      15: FILEIDS    = 35,38
Warewulf> ipmi set wd0032 --password=fakepw
Use of uninitialized value $opt_username in sprintf at /usr/share/perl5/vendor_perl/Warewulf/Module/Cli/Ipmi.pm line 292.
Are you sure you want to make the following changes to 1 node(s):

     SET: IPMI_PASSWORD        = 

Setting the password with the object command does work correctly, and the poweron/poweroff/powercycle commands seem fine. But they throw warnings:

Warewulf> ipmi poweron wd0031
Use of uninitialized value in addition (+) at /usr/share/perl5/vendor_perl/Warewulf/ParallelCmd.pm line 172.
Use of uninitialized value $Warewulf::ParallelCmd::time in addition (+) at /usr/share/perl5/vendor_perl/Warewulf/ParallelCmd.pm line 203.
wd0031.testagain: 
Chassis Power Control: Up/On
Warewulf> ipmi poweroff wd0031
Use of uninitialized value in addition (+) at /usr/share/perl5/vendor_perl/Warewulf/ParallelCmd.pm line 172.
wd0031.testagain: 
Chassis Power Control: Down/Off

Change History

comment:1 Changed 7 years ago by ajdecon

  • Status changed from new to closed
  • Resolution set to fixed

Fixed; $opt_username was used instead of $opt_password in the "set username" part of Ipmi.pm. Expected it to be a more complex error when I filed the ticket, sorry. :)

Note: See TracTickets for help on using tickets.