mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-9081 Migration of vm across clusters fails in clustered MS setupStorage motion of vm across clusters/xenserver-pools fails in a clustered management server setup. In xen storage motion we have to send a migrate_receive command to the destination host, followed by migrate_send command to the source host. The sr and network detials of the destination host have to be passed in migrate_send command on the source. While migrating across clusters the source and destination resources are seperate objects. To pass this information across resources we have to send seperate migrate with storage receive and send commands to the resource. In a clustered ms setup these commands may have to be forwarded to another ms as the resource may be owned by it. The serilization of the command and answer objects fails in such case as it doesn't understand the xapi sr and network objects. Made a change to serialize these objects in the resource layer and pass the around as strings in the command and answer objects. Reviewed-By: @likitha Author: @devdeep Tested-By: @sailajamada * pr/1118: CLOUDSTACK-9081 Migration of vm across clusters fails in clustered MS setup Signed-off-by: Remi Bergsma <github@remi.nl>