Commissioning fails with binary data in IPMI Lan_Conf_Security_Keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Seyeong Kim | ||
2.9 |
Fix Released
|
Undecided
|
Unassigned | ||
3.0 |
Fix Released
|
High
|
Seyeong Kim | ||
3.1 |
Fix Released
|
Undecided
|
Unassigned | ||
3.2 |
Fix Released
|
Undecided
|
Anton Troyanov |
Bug Description
maas 2.9/stable: 2.9.2-9165-
Commissioning process fails when the target server has binary data in the "Lan_Conf_
How to reproduce:
1. Confirm Lan_Conf_
$ bmc-config -D LAN_2_0 -u Administrator -p PASSWORD -h BMC_IP --checkout \
-S Lan_Conf_
Section Lan_Conf_
## 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 and output the following traceback.
File "/tmp/user_
for line in proc.stdout.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x86 in position 20499: invalid start byte
Some related information:
https:/
https:/
Related branches
- Jack Lloyd-Walters: Approve
- MAAS Lander: Approve
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py (+1/-1)
- Jack Lloyd-Walters: Approve
- MAAS Lander: Approve
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py (+1/-1)
- Anton Troyanov: Approve
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py (+1/-1)
- Alexsander de Souza: Approve
- MAAS Lander: Approve
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py (+1/-1)
description: | updated |
Changed in maas: | |
assignee: | Lee Trager (ltrager) → nobody |
Changed in maas: | |
milestone: | none → 3.3.0 |
status: | Triaged → Fix Committed |
Changed in maas: | |
assignee: | nobody → Seyeong Kim (seyeongkim) |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
tags: | added: sts |
A workaround is to clear out the key explicitly: pair="Lan_ Conf_Security_ Keys:K_ R="
$ bmc-config -D LAN_2_0 -u Administrator -p PASSWORD -h BMC_IP --commit \
--key-