CA-75697: Disallow VBD.create during VM migration
CA-75697: Disallow VBD.create during VM migration

All manner of bad things happen if a VBD is created during a VM's migration, and such new VBDs bypass the checks that would normally happen before a migrate can start.

This patch raises an "other operation in progress" error if you try to create a VBD on a VM that's in the middle of a migration.

Example output:

  # xe vbd-create vdi-uuid=<vdi> vm-uuid=efc5e680-21a1-b0b5-7787-a49fe4ebec34 device=autodetect
  Another operation involving the object is currently in progress
  class: VM
  object: efc5e680-21a1-b0b5-7787-a49fe4ebec34 (demo)
  <extra>: pool_migrate

Signed-off-by: Jonathan Davies <d3af50858a27f644d377a39d1fbd399608163688@citrix.com>

huizh/xen-api,djs55/xen-api,guard163/xen-api,guard163/xen-api,huizh/xen-api,Frezzle/xen-api,djs55/xen-api,robertbreker/xen-api,robertbreker/xen-api,cheng--zhang/xen-api,salvocambria/xen-api,euanh/xen-api,simonjbeaumont/xen-api,agimofcarmen/xen-api,euanh/xen-api,salvocambria/xen-api,huizh/xen-api,simonjbeaumont/xen-api,robertbreker/xen-api,djs55/xen-api,agimofcarmen/xen-api,srowe/xen-api,guard163/xen-api,euanh/xen-api,koushikcgit/xen-api,djs55/xen-api,salvocambria/xen-api,guard163/xen-api,cheng-z/xen-api,djs55/xen-api,huizh/xen-api,cheng-z/xen-api,robertbreker/xen-api,huizh/xen-api,koushikcgit/xen-api,jjd27/xen-api,jjd27/xen-api,jjd27/xen-api,koushikcgit/xen-api,srowe/xen-api,djs55/xen-api,guard163/xen-api,thomassa/xen-api,jjd27/xen-api,thomassa/xen-api,Frezzle/xen-api,simonjbeaumont/xen-api,euanh/xen-api,cheng-z/xen-api,cheng--zhang/xen-api,anoobs/xen-api,agimofcarmen/xen-api,srowe/xen-api,Frezzle/xen-api,anoobs/xen-api,cheng-z/xen-api,euanh/xen-api,rafalmiel/xen-api,ravippandey/xen-api,ravippandey/xen-api,srowe/xen-api,cheng--zhang/xen-api,rafalmiel/xen-api,simonjbeaumont/xen-api,vasilenkomike/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,Frezzle/xen-api,ravippandey/xen-api,ravippandey/xen-api,anoobs/xen-api,agimofcarmen/xen-api,agimofcarmen/xen-api,thomassa/xen-api,anoobs/xen-api,thomassa/xen-api,simonjbeaumont/xen-api,simonjbeaumont/xen-api,ravippandey/xen-api,koushikcgit/xen-api,huizh/xen-api,robertbreker/xen-api,euanh/xen-api,robertbreker/xen-api,rafalmiel/xen-api,thomassa/xen-api,cheng-z/xen-api,anoobs/xen-api,ravippandey/xen-api,vasilenkomike/xen-api,srowe/xen-api,jjd27/xen-api,rafalmiel/xen-api,vasilenkomike/xen-api,salvocambria/xen-api,cheng-z/xen-api,salvocambria/xen-api,koushikcgit/xen-api,rafalmiel/xen-api,vasilenkomike/xen-api,rafalmiel/xen-api,salvocambria/xen-api,cheng--zhang/xen-api,cheng-z/xen-api,vasilenkomike/xen-api,cheng--zhang/xen-api,Frezzle/xen-api,cheng--zhang/xen-api,guard163/xen-api,anoobs/xen-api,thomassa/xen-api,jjd27/xen-api,koushikcgit/xen-api,agimofcarmen/xen-api