Comment 0 for bug 1929478

Revision history for this message
Nobuto Murata (nobuto) wrote :

maas 2.9/stable: 2.9.2-9165-g.c3e7848d1 2021-04-16 (12555) 149MB -

Commissioning process fails with timeout instead of an explicit failure or output when the target server has binary data in the "Lan_Conf_Security_Keys" of IPMI.

How to reproduce:
1. Confirm Lan_Conf_Security_Keys:K_R returns some binary data instead of UTF-8 string. Some Huawei servers including FusionServer 2288H V5 do that out of the box.

$ bmc-config -D LAN_2_0 -u Administrator -p PASSWORD -h BMC_IP --checkout \
    -S Lan_Conf_Security_Keys

Section Lan_Conf_Security_Keys
        ## Give string or blank to clear. Max 20 chars
        K_R <BINARY_DATA>
        ## Give string or blank to clear. Max 20 bytes, prefix with 0x to enter hex
        K_G 0x0000000000000000000000000000000000000000

2. Commission the node with IPMI 2.0 power driver.

Then, the commissioning will fail with timeout. And the following traceback will be output.

File "/tmp/user_data.sh.alJy2M/scripts/commissioning/30-maas-01-bmc-config", line 186, in _bmc_get_config
    for line in proc.stdout.decode().splitlines():
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 20499: invalid start byte

Some related information:
https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1892983
https://bugs.launchpad.net/kunpeng920/+bug/1916565