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

pool: Return error if device class update fails #14057

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

travisn
Copy link
Member

@travisn travisn commented Apr 10, 2024

Updating the device class swallowed any error if updated for the pool. The error was not even logged, so we couldn't troubleshoot why the new crush rule was not applied. Log the error for troubleshooting and also fail the pool reconcile since the desired configuration was not applied.

As I recall, there was some concern in the past about best effort vs failing the reconcile when updating the crush rule for the pool. But now it seems like the wrong decision that the best effort approach was taken since it hid any errors about setting the expected pool's crush rule.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

@travisn
Copy link
Member Author

travisn commented May 31, 2024

Let's keep this in master and target the 1.15 release. Added a pending release note to point out the potential impact to existing pools that may have been hiding this error.

Copy link

github-actions bot commented Jul 5, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Labeled by the stale bot label Jul 5, 2024
@parth-gr parth-gr removed the stale Labeled by the stale bot label Jul 8, 2024
Copy link

mergify bot commented Jul 10, 2024

This pull request has merge conflicts that must be resolved before it can be merged. @travisn please rebase it. https://rook.io/docs/rook/latest/Contributing/development-flow/#updating-your-fork

Updating the device class swallowed any error if updated
for the pool. The error was not even logged, so we couldn't
troubleshoot why the new crush rule was not applied.
Log the error for troubleshooting and also fail the pool
reconcile since the desired configuration was not applied.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
@travisn travisn merged commit 689b39d into rook:master Jul 12, 2024
49 of 52 checks passed
@travisn travisn deleted the deviceclass-log branch July 12, 2024 14:50
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

Successfully merging this pull request may close these issues.

2 participants