Skip to content

tests/storage/linstor: Add test for forgetting and introducing Linstor SR #279

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

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

rushikeshjadhav
Copy link
Contributor

Added test_forget_and_introduce_sr in test_linstor_sr.py` to validate forgetting and reintroducing an SR, ensuring correct PBD restoration and proper exception handling.
Updated SR class in sr.py with methods for retrieving parameters, getting type, forgetting, and introducing SR.

…uring availability across all hosts and handling "auto" selection dynamically.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…collectively, refining vgcreate and pvcreate logic.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…, reducing setup time.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…namically configure storage provisioning (thin or thick).

Refactored Linstor SR test cases to use the new fixtures, improving test coverage across provisioning types.

Signed-off-by: Rushikesh Jadhav <[email protected]>
- Added support for handling both dictionary and list-based arguments.
- Fixed command formatting for `config:key=value` scenarios.

Signed-off-by: Rushikesh Jadhav <[email protected]>
- `param_get()`: Fetch a specific SR parameter.
- `type()`: Retrieve SR type.
- `forget()`: Remove SR from the pool.
- `introduce()`: Introduce SR.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…r SR

Introduced `test_forget_and_introduce_sr` in `test_linstor_sr.py`
- Validates the ability to forget an SR and properly reintroduce it.
- Ensures all PBD configurations are stored and restored correctly.
- Checks that exceptions are raised when querying a forgotten SR.
- Restores the SR and verifies successful reattachment of PBDs.

Signed-off-by: Rushikesh Jadhav <[email protected]>
@rushikeshjadhav rushikeshjadhav force-pushed the feat-storage-linstor-611 branch from 221d797 to 988e81e Compare March 6, 2025 13:35
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.

1 participant