Skip to content

Robustify LINSTOR test_diskless_kept test#494

Merged
stormi merged 4 commits into
masterfrom
ran-skip-linstor-replica-diskless
Apr 30, 2026
Merged

Robustify LINSTOR test_diskless_kept test#494
stormi merged 4 commits into
masterfrom
ran-skip-linstor-replica-diskless

Conversation

@Wescoeur
Copy link
Copy Markdown
Member

  • Execute test only when required (when we have at least one diskless).
  • Ensure we are not impacted by a coalesce. Otherwise the test can fail.
  • Add LINSTOR_REDUNDANCY to configure LINSTOR replication count.

@Wescoeur Wescoeur requested review from a team as code owners April 22, 2026 11:51
Copy link
Copy Markdown
Member

@gduperrey gduperrey left a comment

Choose a reason for hiding this comment

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

We had the CI ran on this branch, so ok on the CI side :)

@gduperrey gduperrey requested a review from a team April 22, 2026 12:20
Comment thread tests/storage/linstor/test_linstor_sr.py Outdated
Comment thread tests/storage/linstor/test_linstor_sr.py Outdated
@Wescoeur Wescoeur force-pushed the ran-skip-linstor-replica-diskless branch from 0e75881 to b5bf74f Compare April 22, 2026 14:30
@Wescoeur Wescoeur requested a review from Nambrok April 22, 2026 14:31
Comment thread data.py-dist
CACHE_IMPORTED_VM = False

# Default LINSTOR redundancy configuration for creating SRs.
LINSTOR_REDUNDANCY = 2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I see that value is decreased from 3 to 2 ? may this be explained in commit message ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not totally true, this value is not decreased from 3 to 2. Before this change the number of hosts was used as LINSTOR redundancy with a maximum value of 3. But yes I agree, not a bad idea to add this info in the first commit.

Before this change the number of hosts was used as LINSTOR redundancy with a maximum value of 3.
We can now explicitly choose 1, 2 or 3.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Without this fix, the `assert diskless` line is triggered and the test fails.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
@Wescoeur Wescoeur force-pushed the ran-skip-linstor-replica-diskless branch from b5bf74f to a1a6f99 Compare April 23, 2026 08:42
@Wescoeur Wescoeur requested a review from rzr April 23, 2026 08:42
Comment thread tests/storage/linstor/conftest.py Outdated
@stormi stormi force-pushed the ran-skip-linstor-replica-diskless branch 2 times, most recently from 0a10055 to b2f7a8a Compare April 30, 2026 13:29
Co-authored-by: Gaëtan Lehmann <glehmann@users.noreply.github.com>
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
@stormi stormi force-pushed the ran-skip-linstor-replica-diskless branch from b2f7a8a to c8a7875 Compare April 30, 2026 13:33
@stormi stormi merged commit e50aa64 into master Apr 30, 2026
9 checks passed
@stormi stormi deleted the ran-skip-linstor-replica-diskless branch April 30, 2026 13:34
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.

6 participants