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

osd: print warning message if no matching node found for osd #13046

Merged
merged 1 commit into from Oct 17, 2023

Conversation

wb14123
Copy link
Contributor

@wb14123 wb14123 commented Oct 16, 2023

Description of your changes:

As seen in #1988, it's a common mistake to configure rook nodes with names that don't match Kubernetes's node label. This PR prints more detailed message to help debugging problem.

Which issue is resolved by this Pull Request:
Resolves #

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.

Copy link
Contributor

@subhamkrai subhamkrai left a comment

Choose a reason for hiding this comment

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

LGTM

@wb14123
Copy link
Contributor Author

wb14123 commented Oct 16, 2023

Hi @subhamkrai , I'm not really familiar with the tests. Do you think those 2 failures are related to this PR?

Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

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

Can you confirm if you tested this manually? It's difficult to confirm in the automated tests when a logging change is made. The CI failure look like known intermittent issues.

pkg/operator/k8sutil/node.go Show resolved Hide resolved
pkg/operator/k8sutil/node.go Outdated Show resolved Hide resolved
@wb14123
Copy link
Contributor Author

wb14123 commented Oct 16, 2023

Can you confirm if you tested this manually? It's difficult to confirm in the automated tests when a logging change is made. The CI failure look like known intermittent issues.

No, I didn't test it manually since it's hard for me to build and deploy it locally. (It's only a homelab setup and I don't have much resource to do it). This is a simple change and passed other tests so maybe it's enough? Of course it will be great if someone else want to test it manually.

Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

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

I ran a quick test with these changes, just one more suggestion, thanks.

pkg/operator/k8sutil/node.go Outdated Show resolved Hide resolved
As seen in rook#1988, it's a common
mistake to configure rook nodes with names that don't match Kubernetes's
node label. This PR prints more detailed message to help debugging
problem.

Signed-off-by: Bin Wang <bin.wang@mail.binwang.me>

Add break according to review comment

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>

Update log message according to review comment

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
@travisn travisn merged commit 918b544 into rook:master Oct 17, 2023
50 checks passed
travisn added a commit that referenced this pull request Oct 18, 2023
osd: print warning message if no matching node found for osd (backport #13046)
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.

None yet

3 participants