Skip to content

Improve LinstorSR.py to handle thick SR creation #85

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

Merged
merged 3 commits into from
Jun 25, 2025

Conversation

rushikeshjadhav
Copy link

@rushikeshjadhav rushikeshjadhav commented Apr 21, 2025

In some cases thick SR creation may fail due to get_online_hosts as the metrics could take time. Thus, changed the mechanism to get_enabled_hosts.

@rushikeshjadhav rushikeshjadhav force-pushed the 3.2.3-8.3-online-hosts branch 2 times, most recently from 697676c to 2b681af Compare April 28, 2025 08:47
@Wescoeur Wescoeur changed the base branch from 3.2.3-8.3 to 3.2.12-8.3 April 29, 2025 07:33
@Wescoeur
Copy link
Member

I changed the base branch to 3.2.12-8.3, can you rebase on it? Thanks! :)

…In some drivers e.g. Linstor, we need to ensure that hosts are enabeld before performing operations, hence this function is needed.

Signed-off-by: Rushikesh Jadhav <[email protected]>
…as the metrics could take time.

Thus, changed the mechanism to `get_enabled_hosts`.

Signed-off-by: Rushikesh Jadhav <[email protected]>
@rushikeshjadhav rushikeshjadhav force-pushed the 3.2.3-8.3-online-hosts branch from 2b681af to 2395ddb Compare April 29, 2025 08:21
@Nambrok
Copy link

Nambrok commented Apr 29, 2025

@rushikeshjadhav Have you tested this code in real condition already?

@rushikeshjadhav
Copy link
Author

@rushikeshjadhav Have you tested this code in real condition already?

Yes, it's being referred and tested in xcp-ng/xcp-ng-tests#282. It's in Draft and will convert once done.

@stormi stormi removed their request for review April 29, 2025 15:55
@stormi
Copy link
Member

stormi commented Apr 29, 2025

I won't have time to review this one.

@rushikeshjadhav rushikeshjadhav removed the request for review from last-genius April 30, 2025 13:47
@rushikeshjadhav
Copy link
Author

@Wescoeur @Nambrok can this be merged? Hope that will resolve "Not enough online hosts".

@rushikeshjadhav
Copy link
Author

@stormi kindly check if its suitable to merge or hold till we enable "thick" back? Ref xcp-ng/xcp-ng-tests#305

@stormi
Copy link
Member

stormi commented May 22, 2025

@rushikeshjadhav I prefer to let the storage team merge PRs on this repository.

CC @Nambrok

Avoiding extra step and variable.

Co-authored-by: Ronan Abhamon <[email protected]>
Signed-off-by: Rushikesh Jadhav <[email protected]>
@Wescoeur Wescoeur changed the title Improve LinstorSR.py to handle thick SR creation Check enabled hosts instead of online during SR creation Jun 25, 2025
@Wescoeur Wescoeur merged commit 97e2083 into xcp-ng:3.2.12-8.3 Jun 25, 2025
3 checks passed
@Wescoeur Wescoeur changed the title Check enabled hosts instead of online during SR creation Improve LinstorSR.py to handle thick SR creation Jun 25, 2025
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.

5 participants