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.
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
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: 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.
1. Confirm Lan_Conf_
$ bmc-config -D LAN_2_0 -u Administrator -p PASSWORD -h BMC_IP --checkout \ Security_ Keys
-S Lan_Conf_
Section Lan_Conf_ Security_ Keys 000000000000000 000000000000
## 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 0x0000000000000
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 decode( ).splitlines( ):
for line in proc.stdout.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 20499: invalid start byte
Some related information: /bugs.launchpad .net/plainbox- provider- checkbox/ +bug/1892983 /bugs.launchpad .net/kunpeng920 /+bug/1916565
https:/
https:/