-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libvirt_numa: Fix parsing of continuous numa nodes #3883
Conversation
In PR#3804, a similar bug is fixed by replacing parse_numa_nodeset_to_str with the new convert_all_nodes_to_string function. However, parse_numa_nodeset_to_str is still called at several places. Therefore, in this PR, directly call convert_all_nodes_to_string in parse_numa_nodeset_to_str to fix the bug with minimal changes. Signed-off-by: Qian Jianhua <[email protected]>
@dzhengfy Could you please review this PR for me? |
) | ||
|
||
LOG.debug("Parse output for numa nodeset: '%s'", numa_nodeset) | ||
numa_nodeset = convert_all_nodes_to_string(node_list) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If convert_all_nodes_to_string() could completely replace the old function, we'd better replace it completely, which is to replace in tp-libvirt instead of keeping old function as a shell. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I have removed parse_numa_nodeset_to_str(). And add a PR for tp-libvirt autotest/tp-libvirt#5616. Please review it again.
Signed-off-by: Qian Jianhua <[email protected]>
Signed-off-by: Qian Jianhua <[email protected]>
Signed-off-by: Qian Jianhua <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In PR#3804, a similar bug is fixed by replacing parse_numa_nodeset_to_str with the new convert_all_nodes_to_string function. However, parse_numa_nodeset_to_str is still called at several places. Therefore, in this PR, directly call convert_all_nodes_to_string in parse_numa_nodeset_to_str to fix the bug with minimal changes.
Signed-off-by: Qian Jianhua [email protected]
Before:
After: