Comment 5 for bug 1566622

Revision history for this message
Bob Ball (bob-ball) wrote :

I'm worried this may be a bigger problem than described above, and it may not be fixable without reverting the SR naming: https://github.com/xapi-project/xen-api/blob/master/ocaml/xapi/xapi_vm_migrate.ml#L481

Here XAPI explicitly checks the SR uuid on source and destination being the same before it decides that it does not have to mirror; i.e. the VDI UUIDs matching is not sufficient.
If the UUIDs of the SRs differ between source and destination then XAPI will attempt to copy the VDI during the migrate phase, which will be reading from the remote SR from the source host and writing back to the same remote SR from the destination host. This is clearly not suitable.

I think that perhaps the only fix would be to specify old style when connecting the SR on the destination host.