nri-plugins
nri-plugins copied to clipboard
e2e: enable running commands in Qemu monitor and hotpluggin memory
Launch Qemu always with monitor server listening to a unix socket file in the VM directory. Add test script functions vm-monitor, vm-mem-hw, vm-mem-hotplug, and vm-mem-hotremove.
This PR paves way for testing topologies where memory can be hotplugged to the system.
Tested with a topology with nodes that have
- cpu + memory
- cpu-only
- cpu + hotpluggable memory (memory appears in correct node)
- no-cpu + hotpluggable memory (node is not shown by kernel, memory added to it appears into node0)
- no-cpu + memory
Don't know if the behavior in case (4) is due to qemu parameters or kernel handling of numa nodes that don't have memory or cpus at boot. Rebooting did not change the issue, all hotplugged memory in this case remained mapped to node0.