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

redfishpower: add more details on hierarchy errors #174

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

chu11
Copy link
Member

@chu11 chu11 commented Apr 11, 2024

Problem: When a power operation cannot be done due to an issue with the hierarchy, a very general "ancestor off" or "ancestor error" is returned. This does not provide alot of detail to users.

Update the error message to be of the form

cannot perform <op>, dependency <issue> (host=<host>, plug=<plug>)

for example

cannot perform on, dependency off (host=cmm plug=Enclosure)

Update tests for new error message.

Fixes #153

Problem: When a power operation cannot be done due to an
issue with the hierarchy, a very general "ancestor off" or
"ancestor error" is returned.  This does not provide alot of
detail to users.

Update the error message to be of the form

cannot perform <op>, dependency <issue> (host=<host>, plug=<plug>)

for example

cannot perform on, dependency off (host=cmm plug=Enclosure)

Update tests for new error message.

Fixes chaos#153
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

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

Sounds good!

@mergify mergify bot merged commit 00cd6c3 into chaos:master Apr 11, 2024
8 checks passed
@chu11 chu11 deleted the redfishpower_more_detailed_error branch April 11, 2024 01:40
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.

powerman/redfishpower: report information on hierarchy
2 participants