fix(xo-server): auto reconnection infinite loop when pool is already connectd - #10355
Open
fbeauchamp wants to merge 5 commits into
Open
fix(xo-server): auto reconnection infinite loop when pool is already connectd#10355fbeauchamp wants to merge 5 commits into
fbeauchamp wants to merge 5 commits into
Conversation
… error for example a pool already connected like on ticket #63909
an `Error` cannot be stored as-is: the collection copies the record with `JSON.stringify` before the model gets a chance to serialize it, which silently drops its non-enumerable properties (`message`, `name`, `stack`). Serializing here keeps the message readable by the user, and makes the stored error comparable with the next one, without which the check would write to the database on every single attempt.
… if they have changed thei id
fbeauchamp
marked this pull request as ready for review
September 4, 2026 08:43
All-Ki
reviewed
Sep 4, 2026
All-Ki
reviewed
Sep 4, 2026
All-Ki
reviewed
Sep 4, 2026
All-Ki
approved these changes
Sep 4, 2026
b-Nollet
reviewed
Sep 4, 2026
| xapi.xo.uninstall() | ||
|
|
||
| // switch server status from connected to connecting | ||
| delete serverIdsByPool[poolId] |
Collaborator
There was a problem hiding this comment.
Shouldn't this also be replaced by _forgetXenServerPool?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
review by commit
this PR fix multiple issues in the auto reconnection loop that can lead to an infinite reconnection loop.
*a lot of more cleanup to ensure that the connection is really dropped even if the host changed its id
introduced by #10016
journalctl logs are thousands of
Checklist
Fixes #007,See xoa-support#42,See https://...)Introduced byCHANGELOG.unreleased.mdReview process
If you are an external contributor, you can skip this part. Simply create the pull request, and we'll get back to you as soon as possible.
Notes: