Skip to content

Re-enable LINSTOR tests#2558

Merged
stgraber merged 1 commit intolxc:mainfrom
bensmrs:patch-2
Oct 14, 2025
Merged

Re-enable LINSTOR tests#2558
stgraber merged 1 commit intolxc:mainfrom
bensmrs:patch-2

Conversation

@bensmrs
Copy link
Contributor

@bensmrs bensmrs commented Oct 13, 2025

Closes: #2409

LINSTOR 1.32.3 has landed on LINBIT’s ppa

Signed-off-by: Benjamin Somers <benjamin.somers@imt-atlantique.fr>
@bensmrs bensmrs requested a review from stgraber as a code owner October 13, 2025 09:47
@stgraber
Copy link
Member

I've retried the test to see if it's just racy, but we got:

 + timeout --foreground 120 /home/runner/go/bin/incus storage volume copy incustest-fpxY8q6ip-linstor/vol1/snap0 incustest-fpxY8q6ip-linstor1/vol3 --verbose
Error: Create custom volume from copy failed: [Could not delete temporary resource definition: Message: 'Resource 'incus-volume-fc9c5ff363ed460da96d7db22af5eb7a' on node 'local' is still in use.'; Cause: 'Resource is mounted/in use.'; Details: 'Resource definition: incus-volume-fc9c5ff363ed460da96d7db22af5eb7a'; Correction: 'Un-mount resource 'incus-volume-fc9c5ff363ed460da96d7db22af5eb7a' on the node 'local'.'; Reports: '[68ECCC82-00000-000000]']

@bensmrs
Copy link
Contributor Author

bensmrs commented Oct 13, 2025

I've retried the test to see if it's just racy

Yeah good call.

I should have time for this tomorrow or the day after.

@stgraber
Copy link
Member

The retry gave:


+ incus storage volume copy incustest-7FUwmLDQw-linstor/vol1/snap0 incustest-7FUwmLDQw-linstor1/vol3
+ timeout --foreground 120 /home/runner/go/bin/incus storage volume copy incustest-7FUwmLDQw-linstor/vol1/snap0 incustest-7FUwmLDQw-linstor1/vol3 --verbose
Error: Create custom volume from copy failed: [Could not delete temporary resource definition: Message: 'Resource 'incus-volume-b93f06bf91324fc1b49abfc998a7f33a' on node 'local' is still in use.'; Cause: 'Resource is mounted/in use.'; Details: 'Resource definition: incus-volume-b93f06bf91324fc1b49abfc998a7f33a'; Correction: 'Un-mount resource 'incus-volume-b93f06bf91324fc1b49abfc998a7f33a' on the node 'local'.'; Reports: '[68ED3ADA-00000-000000]']

So looks like it's not a race. I've retried it one more time just in case, but I suspect we'll need to actually look into this one.

@bensmrs
Copy link
Contributor Author

bensmrs commented Oct 14, 2025

The last one gives yet another error…

@stgraber
Copy link
Member

Ah yeah, we got:

+ timeout --foreground 120 /home/runner/go/bin/incus storage delete incustest-heXX61xjx-pool --verbose
Error: Could not delete Linstor resource group : Message: 'Cannot delete resource group 'incustest-heXX61xjx-pool' because it has existing resource definitions.'; Details: 'Resource group: incustest-heXX61xjx-pool'

Re-tried again to see if we're back to the failure we had the other two times.

@bensmrs
Copy link
Contributor Author

bensmrs commented Oct 14, 2025

You see, no problem at all :)
That’ll be fun to debug…

@stgraber
Copy link
Member

Oh, great... Yeah, that will be fun...
I do remember the Linstor tests being rather racy in the past though I don't recall exactly where they used to fail.

Anyway, we can merge this one since it at least passes "sometimes", then can work on sorting out the race conditions...

@stgraber stgraber merged commit fac7063 into lxc:main Oct 14, 2025
136 of 140 checks passed
@bensmrs bensmrs deleted the patch-2 branch October 15, 2025 08:58
@bensmrs
Copy link
Contributor Author

bensmrs commented Oct 16, 2025

I’m running tests in bensmrs#1 and will try i) to add a few sleeps before the racy lines (if they can clearly be identified) then ii) try to actually remedy it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Linstor tests failing

2 participants