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

ipmitool chassis power reset issue #211

Open
jacobweinstock opened this issue Mar 19, 2021 · 2 comments
Open

ipmitool chassis power reset issue #211

jacobweinstock opened this issue Mar 19, 2021 · 2 comments

Comments

@jacobweinstock
Copy link
Member

func (i *Ipmi) PowerReset(ctx context.Context) (status bool, err error) {

ipmitool chassis power reset on a powered-off machine returns true but doesn't actually do anything. This was tested on a single supermicro box. I don't know if this is a thing across the board. I couldn't find any good documentation around the expected behavior. Don't know if we just want to be a comment here to make a note of this or if we want to make a definition and then do some status checking before. Something to think about/discuss.

@zevweiss
Copy link
Contributor

For what it's worth, (what I think is) the relevant section of the IPMI spec seems a little vague here:

In some implementations, the BMC may not know whether a reset will cause any particular effect and will pulse the system reset signal regardless of power state. If the implementation can tell that no action will occur if a reset is delivered in a given power state, then it is recommended (but still optional) that a D5h "Request parameter(s) not supported in present state." error completion code be returned.

(Sec. 28.3, "Chassis Control Command")

@jacobweinstock
Copy link
Member Author

jacobweinstock commented Mar 20, 2021

thanks, @zevweiss. this is good info. What would you recommend, do we follow this? or do we do something else like make the D5h equivalent error in bmclib required?

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

No branches or pull requests

2 participants