-
Thomas Gambier authored
Scaphandre (https://github.com/hubblo-org/scaphandre) is a project to monitor energy consumption accross VM. Integrate this to the KVM SR thanks to virtiofsd. * installation: https://hubblo-org.github.io/scaphandre-documentation/tutorials/getting_started.html * integration inside qemu: https://hubblo-org.github.io/scaphandre-documentation/how-to_guides/propagate-metrics-hypervisor-to-vm_qemu-kvm.html A resilient instance renders its slap-parameter section with json.dumps for every value, so energy-monitoring arrives as a real JSON boolean there, not the capitalized Python string every other software type gives it. template-kvm-run.py called .lower() on it unconditionally, so qemu crashed on start for a resilient instance with energy-monitoring on. Accept both forms, the same way auto-ballooning already does. A resilient instance's kvm_raw.json stores energy-monitoring as a real JSON boolean for the same reason. test_energy_monitoring_default/set compared against the capitalized string form unconditionally, so the resilient variant failed on a value mismatch, not on real behavior. Let the resilient subclass override the expected representation, following the existing test_cpu_count_set/test_ram_size_set precedent. multiprocessing's forkserver start method, the Python 3.14 default on Linux, pickles the process target and its arguments. A live TCPServer holds a socket and internal locks, so it cannot be pickled, and setUpClass fails for every test that starts one. Reserve the port in the parent process, then create and bind the TCPServer in the child. /reviewed-on !2235 Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
7e90fff2