Skip to content

Conversation

@psafont
Copy link
Member

@psafont psafont commented Nov 28, 2025

In particular a couple of unused modules using it have been removed, and using List.hd on Pool.get_all has been removed and replaced with Failures with the name of the function raising the exception. The latter can be hit in some exceptional cases, like some platform engineers have found when preparing and testing xcp-ng 9.

The methods were not safe and thankfully unused as well

Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
During the bringup of a new platform for XCP-ng, one of the users has
raised an exception because the database doesn't have any pool record.

This change makes sure that the there's more information on the
exception.

Also changes other places where Pool.get_all to make it obvious that the
result is matched and List.hd is less likely to be used.

Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>
@psafont psafont added this pull request to the merge queue Dec 1, 2025
Merged via the queue into xapi-project:master with commit 4906a4a Dec 1, 2025
16 checks passed
@psafont psafont deleted the dev/pau/quality branch December 1, 2025 09:13
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.

3 participants