Skip to content

Conversation

@BengangY
Copy link
Contributor

Host index (a number range from 0 ~ number_of_hosts - 1) is an important information of xHA. But it's not easy for us to find each host's index. The only method currently is to check each host's xha.log to get it.

Solution:
Print host index in the result of the command /opt/xensource/debug/debug_ha_query_liveset. The command also returns each host's UUID. Then we can associate the host index with host via UUID.
We can also get it from debug_ha_query_liveset.out in the status-report.

Host index (a number range from 0 ~ number_of_hosts - 1) is an important
information of xHA. But it's not easy for us to find each host's index. The
only method currently is to check each host's xha.log to get it.

Solution:
Print host index in the result of the command `/opt/xensource/debug/debug_ha_query_liveset`.
The command also returns each host's UUID. Then we can associate the host
index with host via UUID.
We can also get it from `debug_ha_query_liveset.out` in the status-report.

Signed-off-by: Bengang Yuan <bengang.yuan@cloud.com>
@BengangY BengangY marked this pull request as ready for review March 14, 2025 02:51
Copy link
Contributor

@psafont psafont left a comment

Choose a reason for hiding this comment

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

It's definitely better than having to count the index of the @ symbol when there's an ongoing operation.

@minglumlu minglumlu merged commit 0b12f40 into xenserver:master Mar 18, 2025
4 checks passed
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