xen-org/xen-api — pull request #729 by mcclurmc (2012-07-04 17:51:08+00:00)
Title: CA-83040: suspend_SR not reset after storage migration

The VM's original suspend_SR is left set after migration. On intra-pool storage migrations, this leads us to have an existing SR set as the suspend_SR, though that SR could potentially be a local SR on another host.

We now check that the suspend_SR is visible to a host on which we're suspending a VM, and we also blank out the suspend_SR on a cross-pool migrate, and on an intra-pool storage migrate when the SR is not visible to the receiving host.