non-utf8 char in Lan_Conf_Security_Keys from BMC

Bug #1916565 reported by Ike Panhc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kunpeng920
Won't Fix
Undecided
Unassigned

Bug Description

[Bug Description]
Non UTF-8 char in `ipmi-config --checkout` output after BMC power cycle.

[Steps to Reproduce]
1) BMC power cycle
2) sudo apt install freeipmi-tools
3) sudo /usr/sbin/ipmi-config --checkout --lan-channel-number 1 | grep -a -A5 '^Section Lan_Conf_Security_Keys'

[Actual Results]
Section Lan_Conf_Security_Keys
 ## Give string or blank to clear. Max 20 chars
 K_R Ӷ:΁,ء�Z��*�N��
 ## Give string or blank to clear. Max 20 bytes, prefix with 0x to enter hex
 K_G 0x0000000000000000000000000000000000000000
EndSection

[Expected Results]
All chars are in utf8

[Reproducibility]
It can be clear with ipmi-config, but coming back after BMC power cycle

[Additional information]
Platforms impacted: d06-3

[Resolution]

Taihsiang Ho (tai271828)
description: updated
Revision history for this message
dann frazier (dannf) wrote :

hey @Tai - can you clarify what ipmi-config tool is used to clear it? Is the command designed to clear it, or does it happen as a side-effect?

Revision history for this message
Ike Panhc (ikepanhc) wrote :

@dannf,

Those non-utf8 chars are from BMC and automatically restored after BMC power cycle.

The command to clear it is

1) Create a txt file as
$ cat test.txt
Section Lan_Conf_Security_Keys
 ## Give string or blank to clear. Max 20 chars
 K_R
 ## Give string or blank to clear. Max 20 bytes, prefix with 0x to enter hex
 K_G 0x0000000000000000000000000000000000000000
EndSection

2) use `ipmi-config` and update into BMC
$ sudo ipmi-config --commit --lan-channel-number 1 --filename=test.txt

Revision history for this message
Taihsiang Ho (tai271828) wrote :

More tips about workaround:

If your system is unable to access for any reason, for example, fails to deploy or commission by MaaS, you may invoke the command similar to the `ipmi-config` in comment#2 to apply the workaround remotely by:

$ ipmi-config --commit --lan-channel-number 1 --filename=test.txt -u <BMC username> -p <BMC password> -h <BMC IP> -D LAN_2_0

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

HiSilicon have no current plans to address this issue. Closing out with "won't fix".

Changed in kunpeng920:
status: New → Won't Fix
Revision history for this message
Taihsiang Ho (tai271828) wrote :

additional info: d05-4 also has this issue https://bugs.launchpad.net/scalebot/+bug/1947771/comments/24

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.