-
Notifications
You must be signed in to change notification settings - Fork 3
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
spdk: validate nodes running instance manager pod rather than all nodes #1
base: master
Are you sure you want to change the base?
Conversation
Longhorn 5739 Signed-off-by: Derek Su <[email protected]>
WalkthroughThe changes in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- datastore/longhorn.go (1 hunks)
🧰 Additional context used
🔇 Additional comments (1)
datastore/longhorn.go (1)
403-410
:⚠️ Potential issuePotential oversight in validating nodes without instance managers
By iterating only over instance managers to validate hugepages-2Mi capacity, the code may miss nodes that do not currently have instance managers but could in the future. This could lead to enabling SPDK on nodes without sufficient hugepages-2Mi capacity when new instance managers are scheduled.
Consider modifying the validation to include all nodes that could potentially run instance managers to ensure cluster-wide safety when enabling SPDK.
Run the following script to identify nodes without instance managers and check their hugepages-2Mi capacity:
e33b2f3
to
9aa9ee7
Compare
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Longhorn 5739
Summary by CodeRabbit
New Features
Bug Fixes