Skip to content

feat(linstorvolumemanager): raise when empty device path is detected - #104

Merged
Wescoeur merged 1 commit into
3.2.12-8.3from
ran-log-empty-dev-res-path
Oct 24, 2025
Merged

Wescoeur merged 1 commit into
3.2.12-8.3from
ran-log-empty-dev-res-path

Conversation

@Wescoeur

Copy link
Copy Markdown
Member

In _request_device_path:
Before this change, an exception was thrown when a resource was missing, but not when the returned path was empty. Now it's raised in both cases.

@Wescoeur

Copy link
Copy Markdown
Member Author

For the context of this commit, we have a ticket regarding a completely empty path causing an error during an unpause call:

Oct 21 18:00:22 HOST-1 SM: [2953417] ***** TAP-PAUSE:<function Tapdisk.Unpause at 0x7f434b013510>: EXCEPTION <class 'linstorvolumemanager.LinstorVolumeManagerError'>, Invalid path, current=None, expected=/dev/drbd/by-res/xcp-volume-4a454d72-b17b-4995-96d6-26f1ec01f84d/0 (realpath=/dev/drbd/by-res/xcp-volume-4a454d72-b17b-4995-96d6-26f1ec01f84d/0)

I'm trying to make sure that the problem is caused by the LINSTOR API and not something else in our driver.

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
@Wescoeur
Wescoeur force-pushed the ran-log-empty-dev-res-path branch from b5c1e8e to ee6425c Compare October 23, 2025 22:08
@Wescoeur
Wescoeur merged commit de309bc into 3.2.12-8.3 Oct 24, 2025
5 checks passed
@Wescoeur
Wescoeur deleted the ran-log-empty-dev-res-path branch October 24, 2025 08:44
Wescoeur added a commit that referenced this pull request Dec 1, 2025
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Dec 1, 2025
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Dec 1, 2025
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Dec 9, 2025
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Dec 9, 2025
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Millefeuille42 pushed a commit that referenced this pull request Dec 10, 2025
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Feb 2, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Feb 3, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Feb 3, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Feb 3, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request May 19, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request May 19, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Jun 25, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Jun 25, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Jun 25, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Jun 25, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Jun 25, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Nambrok pushed a commit that referenced this pull request Sep 23, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
Wescoeur added a commit that referenced this pull request Sep 24, 2026
…104)

In `_request_device_path`:
Before this change, an exception was thrown when a resource was missing,
but not when the returned path was empty. Now it's raised in both cases.

Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
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.

2 participants