Closed justin0309 closed 7 months ago
@Ganesan149 can you respond to this?
@gkeishin I have found that the step of setting the user in the test item sometimes fails. This fail will appear in different test items from time to time. It seems random id sometimes fails
ok. if we can figure out what causes the intermittent failure would be great. Having said that probably there is a problem causing the user creation failure or failed to clean up.
1.Is the failure to set the user name related to the setting of the Privilege permission level?
`/xyz/openbmc_project/ipmi/sol/eth0:
ipmitool -I lanplus -C 17 -N 3 -p 623 -U root -P 0penBmc -H xx.xx.xx.xx user set name 6 ZqlZeWFU
2.It seems that the user that has been set previously will fail when the same user is randomly set during the next test.
As far as I know, there is a problem with the determination of invalid user and invalid channel. If you need to meet the requirements of robot test, you should modify the test like this to pass
1.Verify Set User Access Payload For Invalid User
https://github.com/openbmc/phosphor-host-ipmid/blob/ea46f3ca61dd12b210a74cf78e464c78e0987a47/user_channel/user_mgmt.cpp#L862C1-L862C1
std::string userName;
userName.assign(reinterpret_cast<char>(userInfo->userName), 0,
ipmiMaxUserName);
if (userName.empty())
{
log
if (!isValidChannel(chNum))
{
log
These areas @Ganesan149 and @nagarjunb22 can help explain or look at it ..
@justin0309 posted a question to them on discord https://discord.gg/ygQcVkuD
may be you can as well join the discord to talk to them on it.
@gkeishin I think I have solved this problem, thank you
I would like to ask if you have encountered similar problems? I added channel_config.json (0-15) Unused channels are also changed to reserved. does not contain 'rsp=0xcc