Reviewed: https://review.openstack.org/469958 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f1b41683fc81db780c8939754f073a2644042543 Submitter: Jenkins Branch: master
commit f1b41683fc81db780c8939754f073a2644042543 Author: Matt Riedemann <[email protected]> Date: Thu Jun 1 13:47:40 2017 -0400 libvirt: fix call args to destroy() during live migration rollback This was missed during I6cca3b5ddd387dac86750be70f49c764a1be2fca where the migrate_data kwarg was removed from the destroy() method in the virt drivers. The existing test was already brittle in that it just asserts that was passed to the mocked method. This change at least makes the test a bit less brittle by validating the signature, but there should be a better way to do this with autospecing and mock, but I couldn't figure it out. Change-Id: Iaec2db92b4aa0e6d069c9c5071900e2627683e4e Closes-Bug: #1694834 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1694834 Title: libvirt rollback: destroy called with wrong number of args Status in OpenStack Compute (nova): Fix Released Bug description: While testing live migration, I hit an exception during libvirt.driver rollback_live_migration_at_destination. The first step is this: self.destroy(context, instance, network_info, block_device_info, destroy_disks, migrate_data) But there is no arg in the destroy method for migrate_data: def destroy(self, context, instance, network_info, block_device_info=None, destroy_disks=True): The tail end of the exception: File "/opt/stack/nova/nova/compute/manager.py", line 5896, in rollback_live_migration_at_destination destroy_disks=destroy_disks, migrate_data=migrate_data) File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 6690, in rollback_live_migration_at_destination destroy_disks, migrate_data) TypeError: destroy() takes at most 6 arguments (7 given) ubuntu/kvm/pike: commit 20f47b1a3e8e80e6f9e2373cacc2480404c3cfd9 Merge: c993572 e8afd71 Author: Jenkins <[email protected]> Date: Wed May 31 16:34:27 2017 +0000 Merge "Add policy description for os-networks" To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1694834/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

