Skip to content

fix(blktap2): Retry tag removal on XAPI HTTP failure. - #149

Merged
Wescoeur merged 5 commits into
3.2.12-8.3-develfrom
agf-XAPI_retry_call_wrapper
Aug 4, 2026
Merged

fix(blktap2): Retry tag removal on XAPI HTTP failure.#149
Wescoeur merged 5 commits into
3.2.12-8.3-develfrom
agf-XAPI_retry_call_wrapper

Conversation

@Ythogtha

Copy link
Copy Markdown

Decorator to retry a method when it fails with HTTPStatus.INTERNAL_SERVER_ERROR
Should only be used for replayable XAPI operations.

@Ythogtha
Ythogtha force-pushed the agf-XAPI_retry_call_wrapper branch 2 times, most recently from 086146a to 9960a59 Compare July 24, 2026 15:01
Decorator to retry a method when it fails with HTTPStatus.INTERNAL_SERVER_ERROR
Should only be used for replayable XAPI operations.

Signed-off-by: Arnaud Garcia-Fernandez <arnaud.garcia-fernandez@vates.tech>

@AnthoineB AnthoineB left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The patch seems simple and clear.
As the Plane card speaks about a generic solution, can you create a second commit to convert one or two other functions with the same pattern?

Comment thread drivers/blktap2.py
Comment thread drivers/util.py Outdated
Comment thread drivers/blktap2.py
Comment thread drivers/util.py Outdated
Comment thread drivers/util.py Outdated
@Ythogtha
Ythogtha force-pushed the agf-XAPI_retry_call_wrapper branch from 3d6c66e to ea529f3 Compare July 30, 2026 10:13
This method gets data, therefore it can be retried.

Signed-off-by: Arnaud Garcia-Fernandez <arnaud.garcia-fernandez@vates.tech>
@Ythogtha

Copy link
Copy Markdown
Author

The patch seems simple and clear. As the Plane card speaks about a generic solution, can you create a second commit to convert one or two other functions with the same pattern?

I've added a few commits, going through blktap2 to add retry where it is useful.
The file is not finished, but I'm working on going one level above, and make all calls retry silently until some timeout.
That woul make those changes irrelevant, except the one that removes seemingly unused calls and data gathering (on blktap2#activate()).

@Ythogtha
Ythogtha force-pushed the agf-XAPI_retry_call_wrapper branch from c77c92c to c2660f9 Compare July 30, 2026 10:45
Ythogtha added 3 commits July 30, 2026 12:45
Signed-off-by: Arnaud Garcia-Fernandez <arnaud.garcia-fernandez@vates.tech>
…_coalesce_chain()

Signed-off-by: Arnaud Garcia-Fernandez <arnaud.garcia-fernandez@vates.tech>
Avoids having to XAPI-retry the calls.
There is no purpose in gathering unused data.

Note: There might be an undocumented side-effect to this removal.

Signed-off-by: Arnaud Garcia-Fernandez <arnaud.garcia-fernandez@vates.tech>
@Ythogtha
Ythogtha requested review from AnthoineB and Wescoeur July 30, 2026 15:37
@Wescoeur
Wescoeur merged commit 459cb9d into 3.2.12-8.3-devel Aug 4, 2026
5 checks passed
@Wescoeur
Wescoeur deleted the agf-XAPI_retry_call_wrapper branch August 4, 2026 16:12
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.

4 participants