Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenBMC] Support bootmode generically #4727

Merged
merged 5 commits into from
Jan 25, 2018

Conversation

whowutwut
Copy link
Member

This function is used to view/set the host bootmode. This is really added to help debug some strange issues that we are seeing where certain machines are stopping at Petitboot and not booting off the network on first discovery.

The 4th commit is related to PowerSupplyRedundancy (tag #4715) in that the value takes effect on a IPL, not a bmc reboot. A bmcreboot actually removes the setting.

I'd like to get this into the 2.13.10 release tomorrow.

UT:

[root@stratton01 Control]# rspconfig p9euh01 powersupplyredundancy=disablEd
p9euh01: BMC Setting BMC PowerSupplyRedundancy...
[root@stratton01 Control]# rspconfig p9euh01 bootmode
p9euh01: BMC BootMode : Regular
[root@stratton01 Control]# rspconfig p9euh01 bootmode=setup
p9euh01: BMC Setting BMC BootMode...
[root@stratton01 Control]# rspconfig p9euh01 bootmode
p9euh01: BMC BootMode : Setup
[root@stratton01 Control]# rspconfig p9euh01 bootmode=regular
p9euh01: BMC Setting BMC BootMode...
[root@stratton01 Control]# rspconfig p9euh01 bootmode
p9euh01: BMC BootMode : Regular
[root@stratton01 Control]#

On errror, we would see the following msg:

[root@stratton01 Control]# rspconfig p9euh01 bootmode
p9euh01: BMC BootMode : Regular
p9euh01: WARNING: Unexpected value set: xyz.openbmc_project.Control.Boot.Mode.Modes.Regular
p9euh01: WARNING: Valid values: xyz.openbmc_project.Control.Boot.Mode.Safe,xyz.openbmc_project.Control.Boot.Mode.Regular,xyz.openbmc_project.Control.Boot.Mode.Setup

@xcatbot
Copy link

xcatbot commented Jan 25, 2018

CI CHECK RESULT : > PR FORMAT CORRECT> BUILD SUCCESSFUL > INSTALL XCAT SUCCESSFUL> CODE SYNTAX CORRECT> FAST REGRESSION TEST Successful: Totalcase 215 Pass 215 failed 0

Copy link
Contributor

@gurevichmark gurevichmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me

@zet809
Copy link

zet809 commented Jan 30, 2018

hi, @whowutwut , why not implement the boot mode interface to rsetboot as I suggest in https://ibm-systems-storage.slack.com/archives/C68N2UK0X/p1516868331000070?thread_ts=1516820529.000339&cid=C68N2UK0X?
For rsetboot, it is used to set boot order, and also can be used to set boot mode, right?

@whowutwut whowutwut deleted the support_bootmode branch January 30, 2018 14:34
@whowutwut
Copy link
Member Author

whowutwut commented Jan 30, 2018

@zet809 What would be the suggested interface here if we tagged to rsetboot?

The rsetboot is temporarily setting the next boot of the server, where this bootmode in my opinion is really a debug attribute. The use case here is to run across a large number of systems and make sure that the value is "Regular" I don't think customer should be modifying the value, but we allow a get/set based on our generic code support. MFG uses it when pre-loading the server, but should return the value to Regular when it ships.

So really, adding this attribute is really to help us use xCAT to debug systems in the field.

@zet809
Copy link

zet809 commented Feb 1, 2018

Hi, @whowutwut , I think you are right that bootmode mainly useful for debugging.
But rspconfig is mostly configuration for BMCs, bootmode works for host, right?

@whowutwut
Copy link
Member Author

Resolves #4718

@whowutwut
Copy link
Member Author

@zet809 Yes, bootmode controls the behavior I believe up to Petitboot... when the host IPLs..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants