KVM test: Check guest for kernel crashes during migration
PATCH 1/1 KVM test: Check guest for kernel crashes during migration
It's possible that the guest kernel dies during migration, this will lead in many time errors like:
Unhandled VMAddressVerificationError: Cannot verify MAC-IP address mapping using arping: 9a:95:62:c5:0d:c0 ---> 192.168.122.68
Since in fact what happened is that the guest died, hence it's unable to request an IP to the DHCP server.
So put this verification code in 2 places:
1) Right before a round of migration, on the source vm
2) Right after we move the internal state of the source vm object to the clone vm object
With this, we should see more meaningful test failures.
Signed-off-by Lucas Meneghel Rodrigues <[email protected]>
--- client/virt/kvm_vm.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
client/virt/kvm_vm.py +3 -0
@@ -1451,6 +1451,8 @@ class VM(virt_vm.BaseVM): return wait_for_migration() + self.verify_kernel_crash() + self.verify_alive() # Report migration status if mig_succeeded():
@@ -1473,6 +1475,7 @@ class VM(virt_vm.BaseVM): error.context("after migration") if local: time.sleep(1) + self.verify_kernel_crash() self.verify_alive() if local and stable_check:
Signature · 1 line
1.7.7.3