cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiping Zhang <>
Subject API migrateVirtualMachine does not respect affinity group assignment
Date Wed, 09 Nov 2016 01:03:19 GMT

It seems that the API migrateVirtualMachine does not respect instance’s affinity group assignment.
 Is this intentional?

To reproduce:

Assigning two VM instances running on different hosts, say v1 running on h1 and v2 running
on h2, to the same affinity group.  In GUI, it won’t let you migrate v1 and v2 to the same
host, but if you use cloudmonkey,  you are able to move both instances to h1 or h2 with migrateVirtualMachine
API call.

IMHO, the API call should return with an error message that the migration is prohibited by
affinity group assignment. However, if the current behavior is desirable in some situations,
then a parameter like ignore-affinity-group=true should be passed to the API call (or vice
versa, depending on which behavior is chosen as the default)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message