openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

[Openpower] Test Inband Bmc Auth Reset #2231

Closed tom-ky-wu closed 8 months ago

tom-ky-wu commented 8 months ago

Hi , I would like to ask for test case: Test Inband Bmc Auth Reset image

It appears that it is testing the functionality of the "ipmitool raw 0x3a 0x11" command. Therefore, before proceeding with this command, the HTTP response is expected to be 'OK,' which is a reasonable result. However, what is the reason for performing verification steps before proceeding with this command in robot procedure?

gkeishin commented 8 months ago

I vaguely remember this test and it was meant as a script to recover the system in case of BMC REST gets locked or something.. as mentioned in the test suite file documentation.

# This resets the BMC authentication:
# - Enable local users if they were disabled.
# - Delete the LDAP configuration if there was one.
# - Reset the root password back to the default one.

and also OEM IPMI in-band BMC authentication reset,, so it might not work in your env unless the implementation supports it.

gkeishin commented 8 months ago

Closing this ticket as no further is required. Thank you for the ticket and feedback.