sysinv mgmt_mac attribute update is case-sensitive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
John Kung |
Bug Description
*Description of failure: *
sysinv mgmt_mac attribute update is case-sensitive, thus restricting other valid updates
Timestamp when failure occurred:
03/04 18:42:59.993015
Is the issue intermittent or is it 100% Reproducible? Frequency of Occurrence?
100% Reporducible
Events leading up to failure:
Set upper case characters in the host definition for mgmt_mac/bootMac attribute.
Key Logs entrys:
{
**When upper case characters are used in the host update, even though it would've matched in a case-insensitive comparison:
{
***Bash.log shows sysinv erroring out when upper case used and then cli output.
2022-03-
Change ['mgmt_mac'] contains restricted set(['mgmt_mac']).
***Sysinv.log.3 showing error for upper case
sysinv.
**Bash.log showing lower case success and cli output.
2022-03-
+------
| Property | Value |
+------
| action | none |
| administrative | unlocked |
| availability | available |
| bm_ip | 2607:f160:
| bm_type | redfish |
| bm_username | redacted |
| boot_device | /dev/disk/
| capabilities | {} |
| clock_synchroni
| config_applied | 2a1993e3-
| config_status | None |
| config_target | 2a1993e3-
| console | ttyS0,115200 |
| created_at | 2021-11-
| device_image_update | None |
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| inv_state | inventoried |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 2607:f160:
| mgmt_mac | 48:df:37:3d:b1:14 |
| operational | enabled |
| personality | controller |
| reboot_needed | False |
| reserved | False |
| rootfs_device | /dev/disk/
| serialid | None |
| software_load | 21.05 |
| task | |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2022-03-
| uptime | 2773576 |
| uuid | fa957919-
| vim_progress_status | services-enabled |
+------
}
Impact of Failure:
When upper case characters are used in the host definition, errors occur as show below:
E0304 18:42:59.993015 1 common.go:138] controller/host "msg"="user error" "error"="failed to update host attributes: 4cfc8b5e-
{\"mgmt_
: Bad request with: [PATCH http://[2607:f160:
{\\\"debuginfo\\\": null, \\\"faultcode\\\": \\\"Client\\\", \\\"faultstring
\"}" "request"=
Did the system automatically recover?
No
*Log/File location:
See logs above
*Triage:
Was the issue reproduced internally?*
yes
Workaround:
redeploy with lower case mgmt_mac
Changed in starlingx: | |
assignee: | nobody → John Kung (john-kung) |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 stx.config |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/841607
Review: https:/