Skip to content

Conversation

BulaYoungR
Copy link

QEMU now reports "nvdimm is not enabled: add 'nvdimm=on' to '-M'" instead of the old "missing 'nvdimm' in '-M'". Updated the expected hot_plug_error in cfg (with_slot → hot_plug_nvdimm.with_node) so the test properly recognizes the failure again.
Committer: Bolatbek Issakh [email protected]

@BulaYoungR
Copy link
Author

Before fix

JOB ID     : 19a0aeda42ce370c921bb305c4f705a12e1d726b
JOB LOG    : /var/log/avocado/job-results/job-2025-09-04T05.50-19a0aed/job.log
 (1/1) type_specific.io-github-autotest-libvirt.memory.devices.nvdimm.memory_allocation_and_numa.hot_plug_nvdimm.with_node.no_numa.with_slot: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.memory.devices.nvdimm.memory_allocation_and_numa.hot_plug_nvdimm.with_node.no_numa.with_slot: FAIL: Expect should fail with one of ["nvdimm is not enabled: missing 'nvdimm' in '-M'"], but failed with:\n\n\nerror: Failed to attach device from /var/tmp/xml_utils_temp__y3trmae.xml\nerror: internal error: unable to execute QEMU command 'device_add': nvdimm is n... (8.33 s)
RESULTS    : PASS 0 | ERROR 0 | FAIL 1 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2025-09-04T05.50-19a0aed/results.html
JOB TIME   : 9.98 s

Test summary:
1-type_specific.io-github-autotest-libvirt.memory.devices.nvdimm.memory_allocation_and_numa.hot_plug_nvdimm.with_node.no_numa.with_slot: FAIL

After fix

JOB ID     : d0dcc98c6f6f7953e5e04ac76838a8d8ba237a00
JOB LOG    : /var/log/avocado/job-results/job-2025-09-04T06.34-d0dcc98/job.log
 (1/1) type_specific.io-github-autotest-libvirt.memory.devices.nvdimm.memory_allocation_and_numa.hot_plug_nvdimm.with_node.no_numa.with_slot: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.memory.devices.nvdimm.memory_allocation_and_numa.hot_plug_nvdimm.with_node.no_numa.with_slot: PASS (7.40 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2025-09-04T06.34-d0dcc98/results.html
JOB TIME   : 9.17 s

hot_plug_error = "target NUMA node needs to be specified for memory device"
hot_plug_nvdimm..with_node:
hot_plug_error = "nvdimm is not enabled: missing 'nvdimm' in '-M'"
hot_plug_error = "nvdimm is not enabled: add 'nvdimm=on' to '-M'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please align with the old line for indentation. And for detecting error message, we do not need to search exactly. Use below is ok.
hot_plug_error = "nvdimm is not enabled:"

Copy link
Contributor

Choose a reason for hiding this comment

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

@BulaYoungR Please align with the old line for indentation.

Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

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

Please align with the old line for indentation.

QEMU now reports "nvdimm is not enabled: add 'nvdimm=on' to '-M'"
instead of the old "missing 'nvdimm' in '-M'". Updated the expected
hot_plug_error in cfg (with_slot → hot_plug_nvdimm.with_node) so the
test properly recognizes the failure again.
Committer: Bolatbek Issakh <[email protected]>
Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

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

LGTM

@dzhengfy dzhengfy merged commit db929ce into autotest:master Sep 19, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants