-
Notifications
You must be signed in to change notification settings - Fork 54
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
test(volume): reject strict-local RWX volumes #2239
base: master
Are you sure you want to change the base?
test(volume): reject strict-local RWX volumes #2239
Conversation
longhorn/longhorn-9781 Signed-off-by: Raphanus Lo <yunchang.lo@suse.com>
WalkthroughThe pull request adds a new test case to the Robot Framework test suite for volume testing. The test case specifically verifies the behavior of RWX volumes in strict-local mode when set to non-migratable. It ensures that volume creation is rejected under these specific conditions, aligning with the test's objective of validating volume management constraints. Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)e2e/tests/regression/test_volume.robot (2)
The descriptive test name and reference to the relevant GitHub issue help maintain clarity and traceability for future maintenance. Additionally, the
Creating a volume with 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 (
|
... | ||
... Issue: https://github.com/longhorn/longhorn/issues/6735 | ||
|
||
When Create volume 0 with numberOfReplicas=1 migratable=False accessMode=RWX dataLocality=strict-local |
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.
Could we add dataEngine=${DATA_ENGINE}
to improve v2 test coverage?
Which issue(s) this PR fixes:
Issue longhorn/longhorn#6736
What this PR does / why we need it:
When a RWX volume is not migratable, the webhook should reject the volume creation if data locality is set to
strict-local
.The webhook is implemented in: longhorn/longhorn#6735
Special notes for your reviewer:
Additional documentation or context
Summary by CodeRabbit