openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

Ipmi.Test Ipmi User.Verify IPMI Root User Password Change teardown truncates long passwords #2192

Open generatz opened 2 years ago

generatz commented 2 years ago

In the test Ipmi.Test Ipmi User.Verify IPMI Root User Password Change teardown the original password is restored by calling Set Default Password For IPMI Root User

Set Default Password For IPMI Root User restores the password with the following code:

    ${result}=  Run External IPMI Standard Command
    ...  user set password ${root_userid} ${OPENBMC_PASSWORD}
    ...  P=${valid_password}

This truncates the password if it is more than 16 characters.

Workaround: Modify above code as follows:

    ${result}=  Run External IPMI Standard Command
    ...  user set password ${root_userid} ${OPENBMC_PASSWORD}
    ...  P=${valid_password} 20
gkeishin commented 1 year ago

@rahulmah Please take a look