xen-org/xen-api — pull request #821 by johnelse (2012-08-10 12:46:45+00:00)
Title: Make sure we clean up the cross-pool migration network mapping keys from VIF.other_config

A successful cross-pool migration creates VIFs in the remote pool with the mapping keys still present. A failed cross pool migration leaves the mapping keys on the VIFs in the local pool. This set of patches should fix both issues.

Tested on a pair of standalone hosts using local storage:

* Migrate a VM from host A to host B using XenCenter (which makes use of the VIF mapping) then migrate back from host B to host A using the CLI (with no VIF mapping).
* Attempt to migrate a VM from host A to host B but kill xapi and xenopsd on host B once metadata has been transferred, so the migration fails. Restart xapi and xenopsd and attempt the migration again.